:root {
    --accent: #e26f1d;
    --accent-strong: #f08b3c;
    --accent-soft: rgba(226, 111, 29, 0.2);
    --bg: #294f66;
    --bg-soft: #23485c;
    --panel: #1b3445;
    --panel-alt: #203b4e;
    --text: #eef5fa;
    --muted: #b3c5d1;
    --muted-light: #d0dbe2;
    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --font-body: 'Manrope', sans-serif;
    --font-mono: 'Azeret Mono', monospace;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.background-grid {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(226, 111, 29, 0.22), transparent 55%),
        radial-gradient(circle at 82% 12%, rgba(83, 189, 253, 0.18), transparent 50%),
        linear-gradient(180deg, #274b61 0%, #1f3c4e 100%);
    z-index: -3;
    pointer-events: none;
}

.background-grid::before {
    content: '';
    position: absolute;
    inset: -200% 0 0 -200%;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 180px),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 160px);
    opacity: 0.3;
    animation: slide-bg 48s linear infinite;
}

.background-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 80%, rgba(226, 111, 29, 0.24), transparent 55%),
        radial-gradient(circle at 10% 65%, rgba(83, 189, 253, 0.18), transparent 45%);
    filter: blur(10px);
    opacity: 0.6;
    animation: moveleft 14s ease-in-out infinite;
}

.ambient-orb {
    position: fixed;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(226, 111, 29, 0.35) 0%, rgba(226, 111, 29, 0) 70%);
    opacity: 0.35;
    mix-blend-mode: screen;
    z-index: -2;
    pointer-events: none;
}

.orb-1 {
    top: -160px;
    right: -120px;
    animation: move1 18s ease-in-out infinite;
}

.orb-2 {
    bottom: -200px;
    left: -140px;
    animation: movedown 20s ease-in-out infinite;
}

.app-shell {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    background: rgba(41, 79, 102, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    width: 50px;
    height: 50px;
    border-radius: 2px;
    /* border: 1px solid rgba(255, 255, 255, 0.12); */
    padding: 2px;
    /* background: rgba(255, 255, 255, 0.04); */
}

.brand-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-subtitle {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    flex: 1;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: clamp(12px, 1.1vw, 14px);
    text-transform: uppercase;
    letter-spacing: clamp(0.08em, 0.25vw, 0.18em);
}

.main-nav a {
    position: relative;
    color: var(--muted-light);
    padding: 8px 2px;
    transition: color 0.2s ease;
}

.main-nav .nav-logout {
    display: none;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 10px 16px;
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: 0.2s ease;
}

.main-nav .nav-logout:hover {
    border-color: rgba(226, 111, 29, 0.6);
    color: var(--accent);
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    transition: 0.2s ease;
}

.user-panel {
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
}

.user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.user-name {
    font-weight: 600;
}

.user-email {
    font-size: 11px;
    color: var(--muted);
}

.page {
    margin-top: 28px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.view-section {
    animation: fadeUp 0.55s ease;
}

.auth-view {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 24px;
}

.auth-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: var(--panel);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    width: min(1100px, 100%);
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-top: 1px solid rgba(226, 111, 29, 0.4);
    pointer-events: none;
}

.auth-content {
    padding: 52px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(226, 111, 29, 0.18);
    color: var(--accent);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: var(--font-mono);
    box-shadow: 0 0 0 1px rgba(226, 111, 29, 0.25);
    animation: moveleft 6s ease-in-out infinite;
}

.auth-content h1 {
    font-size: 42px;
    margin: 18px 0 12px;
}

.auth-visual {
    position: relative;
    min-height: 420px;
    background: #1a3242;
}

.auth-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.7) contrast(1.05);
}

.auth-visual-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    background: linear-gradient(180deg, rgba(20, 44, 60, 0) 0%, rgba(20, 44, 60, 0.9) 88%);
    color: var(--text);
}

.auth-visual-overlay h2 {
    font-size: 28px;
    margin: 0 0 6px;
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted-light);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    min-width: 0;
}

.form-field input,
.form-field select,
.form-field textarea {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: rgba(226, 111, 29, 0.6);
    box-shadow: 0 0 0 3px rgba(226, 111, 29, 0.2);
}

.form-field input:disabled,
.form-field select:disabled,
.form-field textarea:disabled {
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-helper {
    margin-top: 6px;
}

.link-button {
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--muted-light);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.link-button:hover {
    color: var(--accent);
}

.form-error {
    color: var(--accent-strong);
    font-size: 13px;
    margin: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 10px 16px;
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    cursor: pointer;
    transition: 0.2s ease;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.btn-primary {
    background: var(--accent);
    color: #161616;
    box-shadow: 0 16px 30px rgba(226, 111, 29, 0.35);
    border-color: transparent;
}

.btn-primary:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
    border-color: rgba(226, 111, 29, 0.6);
    color: var(--accent);
}

.page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-size: 32px;
    margin: 0 0 6px;
}

.muted {
    color: var(--muted);
}

.section-stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section-block {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 38px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.section-block::after {
    content: '';
    position: absolute;
    right: -120px;
    top: -120px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(226, 111, 29, 0.2), transparent 70%);
    animation: rotateleftright1 6s ease-in-out infinite;
    pointer-events: none;
}

.section-block.tone-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-header h3 {
    margin: 0 0 6px;
    font-size: 22px;
}

.section-body {
    display: block;
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.card {
    background: var(--panel);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 12px;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.card-body {
    padding: 16px 24px 24px;
}

.pill {
    background: rgba(226, 111, 29, 0.18);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.list-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--panel-alt);
}

.list-item strong {
    display: block;
    margin-bottom: 4px;
}

.list-meta {
    font-size: 13px;
    color: var(--muted);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.metric-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.metric-card h4 {
    margin: 0 0 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
    font-family: var(--font-mono);
}

.metric-card .metric-value {
    font-size: 24px;
    font-weight: 700;
}

.calendar {
    min-height: 520px;
}

.legend {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 4px;
    margin-right: 6px;
}

.legend-dot.trial {
    background: #5b7dff;
}

.legend-dot.training-pending {
    background: #e26f1d;
}

.legend-dot.training-done {
    background: #1bc88b;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid .form-field {
    font-weight: 500;
}

.form-grid .span-2 {
    grid-column: span 2;
}

.alert {
    background: rgba(226, 111, 29, 0.12);
    color: var(--accent);
    border: 1px solid rgba(226, 111, 29, 0.3);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.coach-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.coach-avatar {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: rgba(226, 111, 29, 0.18);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 700;
}

.coach-profile {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
}

.coach-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;
}

.coach-photo {
    width: 160px;
    height: 160px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    padding: 0;
    overflow: hidden;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.coach-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-photo.is-empty {
    cursor: default;
    background: rgba(226, 111, 29, 0.12);
    color: var(--accent);
}

.coach-photo-placeholder {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.coach-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coach-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.coach-title-row h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.coach-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(226, 111, 29, 0.16);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.coach-meta {
    display: grid;
    gap: 6px;
    color: var(--muted-light);
    font-size: 14px;
}

.coach-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.coach-meta-label {
    color: var(--muted);
    min-width: 72px;
}

.coach-meta-value {
    color: var(--text);
}

.coach-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.coach-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.coach-detail {
    background: var(--panel-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 16px 18px;
    display: grid;
    gap: 8px;
    min-height: 120px;
}

.coach-detail.span-2 {
    grid-column: span 2;
}

.coach-detail-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    font-family: var(--font-mono);
}

.coach-detail-value {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    white-space: pre-line;
}

.coach-gallery {
    background: var(--panel-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 18px;
    display: grid;
    gap: 12px;
}

.coach-gallery-title {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    font-family: var(--font-mono);
}

.coach-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.coach-gallery-item {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.coach-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-gallery-empty {
    color: var(--muted);
    font-size: 14px;
}

.coach-empty {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.swal-image-popup {
    padding: 20px;
    max-width: min(92vw, 860px);
}

.swal-image-title {
    display: none !important;
}

.swal-image-body {
    margin: 0;
}

.swal-image-body img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid var(--border);
}

.swal-image-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--text);
}

.swal-image-close:hover {
    background: rgba(226, 111, 29, 0.18);
    color: var(--accent);
    border-color: rgba(226, 111, 29, 0.4);
}

.swal2-container.swal2-backdrop-show {
    background: rgba(8, 14, 20, 0.82);
    backdrop-filter: blur(2px);
}

.swal2-popup {
    background: var(--panel);
    color: var(--text);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 22px 24px;
}

.swal2-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
}

.swal2-html-container {
    color: var(--muted-light);
    font-size: 14px;
}

.swal2-close {
    color: var(--muted-light);
}

.swal2-close:hover {
    color: var(--text);
}

.swal2-actions {
    margin-top: 20px;
    gap: 12px;
}

.swal2-confirm,
.swal2-cancel {
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 10px 18px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    transition: 0.2s ease;
}

.swal2-confirm {
    background: var(--accent);
    color: #1b1b1b;
    border-color: transparent;
    box-shadow: 0 16px 30px rgba(226, 111, 29, 0.35);
}

.swal2-confirm:hover {
    background: var(--accent-strong);
}

.swal2-cancel {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.swal2-cancel:hover {
    border-color: rgba(226, 111, 29, 0.5);
    color: var(--accent);
}

.swal2-validation-message {
    background: rgba(226, 111, 29, 0.12);
    color: var(--accent);
    border: 1px solid rgba(226, 111, 29, 0.3);
}

.swal-signature {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.swal-meta {
    color: var(--muted-light);
    font-size: 13px;
}

.swal-signature-box {
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    height: 180px;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
}

.swal-signature-box canvas {
    width: 100%;
    height: 100%;
}

.swal-signature-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.feedback-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-button {
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--muted);
    font-size: 12px;
}

.feedback-button.active {
    color: var(--accent);
    border-color: rgba(226, 111, 29, 0.6);
}

.swal-info-list {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.swal-info-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--panel-alt);
}

.swal-info-item .label {
    color: var(--muted);
    font-size: 12px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.swal-info-item .value {
    color: var(--text);
    font-weight: 600;
}

.fc {
    --fc-page-bg-color: transparent;
    --fc-border-color: rgba(255, 255, 255, 0.08);
    --fc-neutral-bg-color: rgba(255, 255, 255, 0.04);
    --fc-neutral-text-color: var(--muted);
    --fc-button-bg-color: rgba(255, 255, 255, 0.06);
    --fc-button-border-color: rgba(255, 255, 255, 0.08);
    --fc-button-text-color: var(--text);
    --fc-button-active-bg-color: var(--accent);
    --fc-button-active-border-color: var(--accent);
    --fc-event-bg-color: var(--accent);
    --fc-event-border-color: var(--accent);
    --fc-today-bg-color: rgba(226, 111, 29, 0.12);
}

.fc .fc-toolbar-title {
    font-size: 18px;
    font-weight: 600;
}

.fc .fc-button {
    border-radius: 10px;
    text-transform: uppercase;
    font-family: var(--font-mono);
    letter-spacing: 0.12em;
    font-size: 11px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg) scale(1);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes flicker {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes moveleft {
    0% {
        transform: translate(0);
    }
    50% {
        transform: translate(-15px);
    }
    100% {
        transform: translate(0);
    }
}

@keyframes movedown {
    0% {
        transform: translate(0);
    }
    50% {
        transform: translateY(15px);
    }
    100% {
        transform: translate(0);
    }
}

@keyframes move1 {
    0% {
        transform: translate(0);
    }
    33% {
        transform: translate(-15px, -15px);
    }
    66% {
        transform: translate(-30px, 0);
    }
    100% {
        transform: translate(0);
    }
}

@keyframes slide-bg {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes rainbow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes scale1 {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes rotateleftright {
    0% {
        transform: rotate(-10deg);
    }
    50% {
        transform: rotate(10deg);
    }
    100% {
        transform: rotate(-10deg);
    }
}

@keyframes rotateleftright1 {
    0% {
        transform: rotate(-2deg);
    }
    50% {
        transform: rotate(2deg);
    }
    100% {
        transform: rotate(-2deg);
    }
}

@keyframes playline {
    0% {
        transform: translate3d(0, -50%, 0);
    }
    100% {
        transform: translateY(0, 0, 0);
    }
}

@keyframes playline1 {
    0% {
        transform: translateY(0, 0, 0);
    }
    100% {
        transform: translate3d(0, -50%, 0);
    }
}

@media (max-width: 1100px) {
    .header-inner {
        padding: 16px 20px;
    }

    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 260px;
    }

    .grid-two {
        grid-template-columns: 1fr;
    }

    .section-block {
        padding: 32px 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid .span-2 {
        grid-column: span 1;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 980px) {
    .nav-toggle {
        display: inline-flex;
    }

    .header-inner {
        justify-content: flex-start;
    }

    .brand {
        order: 1;
    }

    .user-panel {
        order: 2;
        margin-left: auto;
        gap: 10px;
    }

    .user-panel #logout-button {
        display: none;
    }

    .nav-toggle {
        order: 3;
        margin-left: 12px;
    }

    .main-nav {
        order: 4;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        background: rgba(35, 72, 92, 0.96);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        font-size: 14px;
        letter-spacing: 0.12em;
        display: none;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav .nav-logout {
        display: inline-flex;
        align-self: flex-start;
        margin-top: 6px;
    }

    .main-nav a::after {
        bottom: -4px;
    }

    .user-panel {
        gap: 12px;
    }
}

@media (max-width: 720px) {
    .site-header {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .header-inner {
        width: 100%;
    }

    .page {
        padding: 0 16px;
    }

    .header-inner {
        gap: 12px;
    }

    .user-email {
        display: none;
    }

    .page-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-inner {
        padding: 0 16px;
    }

    .section-block {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .auth-content {
        padding: 36px 28px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .coach-card {
        align-items: stretch;
    }

    .coach-header {
        grid-template-columns: 1fr;
    }

    .coach-photo {
        width: 140px;
        height: 140px;
    }

    .coach-details {
        grid-template-columns: 1fr;
    }

    .coach-detail.span-2 {
        grid-column: span 1;
    }

    .coach-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .brand img {
        width: 38px;
        height: 38px;
    }

    .brand-title {
        font-size: 18px;
    }

    .brand-subtitle {
        font-size: 9px;
    }

    .auth-content h1 {
        font-size: 32px;
    }

    .metric-card .metric-value {
        font-size: 20px;
    }

}
