.gym-page {
    direction: rtl;
    font-family: 'Vazirmatn', sans-serif;
    color: var(--text);
    padding: 0 16px 32px;
    max-width: 560px;
    margin: 0 auto;
}

    .gym-page.has-sticky-footer {
        padding-bottom: 100px;
    }

.gym-header {
    margin-bottom: 24px;
}

.eyebrow {
    display: inline-block;
    font-weight: 600;
    font-size: 12px;
    color: var(--accent);
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.gym-header h1 {
    font-weight: 800;
    font-size: clamp(22px, 5vw, 28px);
    margin: 0 0 8px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 13.5px;
    margin: 0;
    line-height: 1.6;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
}

    .card h2 {
        font-size: 16px;
        font-weight: 700;
        margin: 0 0 14px;
    }

.card-hint {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0 0 16px;
    line-height: 1.6;
}

.bar-divider {
    height: 5px;
    background: linear-gradient(to left, var(--border), var(--accent), var(--border));
    border-radius: 4px;
    margin: 18px 0;
}

.field {
    margin-bottom: 16px;
}

    .field label {
        display: block;
        font-weight: 600;
        font-size: 13.5px;
        margin-bottom: 8px;
        color: var(--text);
    }

    .field input[type="text"] {
        width: 100%;
        padding: 13px 14px;
        border: 2px solid var(--border);
        border-radius: 10px;
        font-family: inherit;
        font-size: 14px;
        background: var(--surface-2);
        color: var(--text);
        transition: border-color .15s;
    }

        .field input[type="text"]::placeholder {
            color: var(--text-muted);
        }

        .field input[type="text"]:focus-visible {
            outline: none;
            border-color: var(--accent);
        }

.error {
    color: var(--accent);
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.dropzone {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: 14px;
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    background: var(--surface-2);
}

    .dropzone.dragging {
        border-color: var(--accent);
        background: rgba(226, 89, 47, .12);
    }

    .dropzone.has-image .dropzone-hint {
        display: none;
    }

.dropzone-preview {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.dropzone-hint {
    text-align: center;
    padding: 20px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .dropzone-hint strong {
        font-size: 13.5px;
        color: var(--text);
    }

    .dropzone-hint span {
        font-size: 12px;
        color: var(--text-muted);
    }

.barbell-loader {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 26px;
    padding: 0 6px;
    flex-wrap: wrap;
}

.barbell-bar {
    flex: 1;
    min-width: 40px;
    height: 7px;
    border-radius: 5px;
    background: linear-gradient(to left, var(--border), #4b545c, var(--border));
}

.barbell-plate {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 3px solid var(--border);
    flex-shrink: 0;
    transition: background .2s, transform .2s, border-color .2s;
}

    .barbell-plate.lit {
        background: var(--accent);
        border-color: var(--accent);
        transform: scale(1.15);
    }

.equipment-category {
    margin-bottom: 20px;
}

.category-label {
    margin-bottom: 10px;
}

.plate-badge {
    display: inline-block;
    padding: 6px 16px;
    border: 3px solid var(--text-muted);
    border-radius: 999px;
    font-weight: 800;
    font-size: 12.5px;
    background: var(--surface-2);
    color: var(--text);
    box-shadow: inset 0 0 0 3px var(--surface);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.equipment-chip {
    padding: 12px;
    min-height: 44px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    transition: all .15s;
}

    .equipment-chip:hover {
        border-color: var(--text-muted);
    }

    .equipment-chip.selected {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
        font-weight: 600;
    }

    .equipment-chip:focus-visible {
        outline: 3px solid var(--accent-2);
        outline-offset: 1px;
    }

.add-custom-row {
    display: flex;
    gap: 8px;
}

    .add-custom-row input {
        flex: 1;
        padding: 11px 12px;
        min-height: 44px;
        border: 2px solid var(--border);
        border-radius: 8px;
        font-family: inherit;
        font-size: 13px;
        background: var(--surface-2);
        color: var(--text);
    }

        .add-custom-row input::placeholder {
            color: var(--text-muted);
        }

    .add-custom-row button {
        padding: 11px 18px;
        min-height: 44px;
        border: 2px solid var(--accent);
        border-radius: 8px;
        background: transparent;
        color: var(--accent);
        font-family: inherit;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }

.sticky-footer {
    position: fixed;
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    right: 0;
    left: 0;
    background: var(--surface);
    color: var(--text);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    z-index: 40;
}

    .sticky-footer strong {
        color: var(--accent-2);
        font-size: 17px;
    }

.btn-save {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 24px;
    min-height: 44px;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.btn-link {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
}

.alert-success {
    background: rgba(95, 190, 118, .12);
    color: var(--success);
    border: 1px solid rgba(95, 190, 118, .3);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 13.5px;
}

.gym-list {
    display: grid;
    gap: 10px;
    padding-bottom: 20px;
}

.gym-list-item h3 {
    margin: 0 0 6px;
    font-size: 15.5px;
    color: var(--text);
}

.field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    background: var(--surface-2);
    color: var(--text);
    resize: vertical;
    min-height: 80px;
}

    .field textarea::placeholder {
        color: var(--text-muted);
    }

    .field textarea:focus-visible {
        outline: none;
        border-color: var(--accent);
    }

.field input[type="number"] {
    width: 100%;
    padding: 13px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    background: var(--surface-2);
    color: var(--text);
    transition: border-color .15s;
    -moz-appearance: textfield;
}

    .field input[type="number"]::placeholder {
        color: var(--text-muted);
    }

    .field input[type="number"]:focus-visible {
        outline: none;
        border-color: var(--accent);
    }

    .field input[type="number"]::-webkit-outer-spin-button,
    .field input[type="number"]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.day-chip-group .equipment-chip {
    width: 44px;
    padding: 10px 0;
    flex: 0 0 auto;
}

.field-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 380px) {
    .field-grid-2 {
        grid-template-columns: 1fr;
    }
}

.optional-tag {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

.gym-switcher {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

    .gym-switcher::-webkit-scrollbar {
        display: none;
    }

.gym-chip {
    flex: 0 0 auto;
    padding: 9px 16px;
    border-radius: 999px;
    border: 2px solid var(--border);
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

    .gym-chip.active {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
    }

.athlete-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.athlete-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--accent-2);
    flex-shrink: 0;
}

.athlete-info h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.athlete-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.goal-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(226,89,47,.15);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.gym-picker-select {
    width: 100%;
    padding: 13px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
}

.gym-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.gym-action-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 0;
}

    .gym-action-link.primary {
        color: var(--accent);
    }

.custom-equipment-input.goal-custom-input {
    margin-top: 8px;
    width: 100%;
}

.alert-warning {
    background: rgba(214,164,49,.12);
    color: var(--accent-2);
    border: 1px solid rgba(214,164,49,.3);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13.5px;
}

.alert-error {
    background: rgba(226,89,47,.12);
    color: var(--accent);
    border: 1px solid rgba(226,89,47,.3);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13.5px;
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: grid;
    gap: 8px;
}

    .summary-list li {
        display: flex;
        justify-content: space-between;
        font-size: 13.5px;
        color: var(--text-muted);
        border-bottom: 1px solid var(--border);
        padding-bottom: 8px;
    }

        .summary-list li strong {
            color: var(--text);
        }

.btn-generate {
    width: 100%;
    font-size: 15px;
    padding: 16px;
}

.version-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

    .version-tabs::-webkit-scrollbar {
        display: none;
    }

.version-tab {
    flex: 0 0 auto;
    padding: 8px 16px;
    border-radius: 999px;
    border: 2px solid var(--border);
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

    .version-tab.active {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
    }

.final-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(95,190,118,.15);
    color: var(--success);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

.summary-callout {
    background: var(--surface-2);
    border-right: 3px solid var(--accent);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 18px;
}

.regenerate-tag {
    display: inline-block;
    font-size: 12px;
    color: var(--accent-2);
    margin-bottom: 14px;
    background: rgba(214,164,49,.12);
    padding: 6px 12px;
    border-radius: 8px;
}

.day-card {
    margin-bottom: 16px;
}

    .day-card h2 {
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .day-card h2 .day-number {
            background: var(--accent);
            color: #fff;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            flex-shrink: 0;
        }

.exercise-table {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.exercise-row {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    transition: opacity .2s;
}

    .exercise-row.marked-delete {
        opacity: .35;
    }

.exercise-row-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 8px;
    margin-bottom: 8px;
}

@media (max-width: 480px) {
    .exercise-row-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.exercise-row input[type="text"], .exercise-row input[type="number"] {
    padding: 9px 10px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    width: 100%;
}

.exercise-row input::placeholder {
    color: var(--text-muted);
}

.exercise-row .ex-small {
    text-align: center;
}

.exercise-row .ex-notes {
    width: 100%;
    margin-bottom: 8px;
}

.ex-delete {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
}

.add-exercise-btn {
    width: 100%;
    padding: 11px;
    border: 2px dashed var(--border);
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

    .add-exercise-btn:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

.regenerate-card {
    border-color: var(--accent);
}

    .regenerate-card textarea {
        width: 100%;
        min-height: 80px;
        padding: 12px;
        border: 2px solid var(--border);
        border-radius: 10px;
        background: var(--surface-2);
        color: var(--text);
        font-family: inherit;
        font-size: 13.5px;
        resize: vertical;
        margin-bottom: 10px;
    }

.btn-regenerate {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.review-footer .btn-save {
    width: 100%;
}

.btn-approve {
    background: var(--success);
}
.week-divider {
    font-weight: 800;
    font-size: 14px;
    color: var(--accent-2);
    margin: 22px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--border);
}
.plan-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

    .plan-list-item h3 {
        margin: 0 0 4px;
        font-size: 15px;
    }

.draft-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(152,161,170,.15);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.plan-history-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-history-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    gap: 10px;
}

.delete-form {
    flex-shrink: 0;
}

.delete-btn {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 8px 14px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.delete-btn-full {
    width: 100%;
    margin-top: 10px;
}

.athlete-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.action-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
}

    .action-btn.primary {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
    }

.experience-chip-group .equipment-chip {
    flex: 1;
    min-width: 90px;
}

/* ─── Login / Account Pages ─── */

.account-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    animation: loginFadeUp .5s ease-out both;
}

@keyframes loginFadeUp {
    from { opacity: 0; transform: translateY(24px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-card {
    background: rgba(28, 32, 38, .78);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 24px;
    padding: 36px 28px 28px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, .35),
        0 0 0 1px rgba(255, 255, 255, .03) inset;
}

/* Brand */
.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.login-brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #c94a22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 16px rgba(226, 89, 47, .35);
}

.login-brand-text {
    font-weight: 800;
    font-size: 18px;
    color: var(--text);
    letter-spacing: -.3px;
}

/* Title */
.login-title {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--text);
}

.login-subtitle {
    text-align: center;
    font-size: 13.5px;
    color: var(--text-muted);
    margin: 0 0 28px;
    line-height: 1.6;
}

/* Form */
.login-form .field {
    margin-bottom: 20px;
}

.login-form .field label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--text);
}

.input-wrap {
    position: relative;
}

.input-wrap .input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: color .2s;
}

.input-wrap input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    background: rgba(38, 43, 50, .6);
    color: var(--text);
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.input-wrap input::placeholder {
    color: rgba(152, 161, 170, .6);
}

.input-wrap input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(38, 43, 50, .85);
    box-shadow: 0 0 0 3px rgba(226, 89, 47, .15);
}

.input-wrap input:focus ~ .input-icon,
.input-wrap:has(input:focus) .input-icon {
    color: var(--accent);
}

.login-form .error {
    color: var(--accent);
    font-size: 12px;
    display: block;
    margin-top: 6px;
}

/* Options row */
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 2px;
}

.remember-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 5px;
    background: var(--surface-2);
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
    position: relative;
}

.remember-row input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.remember-row input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 4px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-row input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

/* Submit button */
.login-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #c94a22);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, opacity .2s;
    box-shadow: 0 4px 16px rgba(226, 89, 47, .3);
    min-height: 50px;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(226, 89, 47, .4);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(226, 89, 47, .25);
}

.login-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-btn svg {
    transition: transform .2s;
}

.login-btn:hover svg {
    transform: translateX(-3px);
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0 20px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.login-divider span {
    font-size: 12.5px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Account switch */
.account-switch {
    text-align: center;
    font-size: 13.5px;
    color: var(--text-muted);
    margin: 0;
}

.account-switch a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    transition: opacity .2s;
}

.account-switch a:hover {
    opacity: .8;
}

/* Alert - override base with icon support */
.login-card .alert-error {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.login-card .alert-error svg {
    flex-shrink: 0;
}

/* ─── Account Card (Register & other account pages) ─── */
.account-card {
    background: rgba(28, 32, 38, .78);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 24px;
    padding: 36px 28px 28px;
    width: 100%;
    max-width: 420px;
    direction: rtl;
    font-family: 'Vazirmatn', sans-serif;
    color: var(--text);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, .35),
        0 0 0 1px rgba(255, 255, 255, .03) inset;
    animation: loginFadeUp .5s ease-out both;
}

.account-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    font-weight: 800;
    color: var(--accent);
    font-size: 16px;
}

.account-card h1 {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 20px;
}

.account-card .field input {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    background: rgba(38, 43, 50, .6);
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}

.account-card .field input::placeholder {
    color: rgba(152, 161, 170, .6);
}

.account-card .field input:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(226, 89, 47, .15);
}

.account-card .field label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-logout {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 8px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

.gym-token-breakdown {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: grid;
    gap: 8px;
}

.gym-token-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

    .gym-token-row strong {
        color: var(--accent-2);
    }

.dashboard-links {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

/* ===========================================
   Dashboard V2
=========================================== */

.dashboard {
    max-width: 620px;
    margin: auto;
    padding: 18px 16px 110px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}


/* ================= HERO ================= */

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 24px;
    background: radial-gradient(circle at top left, rgba(226,89,47,.18), transparent 45%), linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 45px rgba(0,0,0,.25);
}


    .hero-card::before {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: rgba(226,89,47,.08);
        left: -90px;
        top: -90px;
    }


.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}


.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(226,89,47,.12);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}


.hero-text h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
}


.hero-text p {
    margin-top: 10px;
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 14px;
}


.hero-text strong {
    color: var(--accent);
}


.hero-circle {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--accent), #ff8d57);
    color: white;
    box-shadow: 0 12px 35px rgba(226,89,47,.45);
}


    .hero-circle span {
        font-size: 28px;
        font-weight: 900;
    }


    .hero-circle small {
        font-size: 12px;
        opacity: .9;
    }


/* ================= KPI ================= */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
}


.kpi-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 18px;
    padding: 20px 12px;
    text-align: center;
    transition: .28s;
    backdrop-filter: blur(10px);
}


    .kpi-card:hover {
        transform: translateY(-6px);
        border-color: rgba(226,89,47,.45);
        box-shadow: 0 15px 28px rgba(0,0,0,.25);
    }


    .kpi-card .icon {
        font-size: 24px;
        margin-bottom: 12px;
    }


    .kpi-card .number {
        font-size: 30px;
        font-weight: 900;
        color: var(--accent);
    }


    .kpi-card .title {
        margin-top: 6px;
        color: var(--text-muted);
        font-size: 12px;
    }


/* ================= Glass ================= */

.glass-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 22px;
    backdrop-filter: blur(14px);
}


.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}


    .section-head h2 {
        margin: 0;
        font-size: 18px;
    }


    .section-head span {
        color: var(--text-muted);
        font-size: 13px;
    }


.credit-number {
    font-size: 30px;
    color: var(--accent);
    font-weight: 900;
}


/* ================= Progress ================= */

.progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #2d3339;
}


.progress-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #ff8d57);
}


/* ================= GYMS ================= */

.gym-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


.gym-item {
    border-radius: 16px;
    padding: 16px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.06);
}


.gym-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}


    .gym-item-header h3 {
        margin: 0;
        font-size: 15px;
    }


    .gym-item-header span {
        color: var(--accent);
        font-weight: 700;
    }


.gym-meta {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
}


.mini-progress {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #2b3137;
}


.mini-progress-fill {
    width: 0;
    height: 100%;
    background: var(--accent);
}


/* ================= ACTION ================= */

.action-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


.action-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    transition: .25s;
}


    .action-card:hover {
        transform: translateX(-5px);
        border-color: rgba(226,89,47,.4);
    }


    .action-card h3 {
        margin: 0 0 6px;
        font-size: 17px;
    }


    .action-card p {
        margin: 0;
        color: var(--text-muted);
        font-size: 13px;
    }


    .action-card span {
        font-size: 26px;
        color: var(--accent);
    }


/* ================= FAB ================= */

.fab {
    position: fixed;
    bottom: 95px;
    left: 22px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 34px;
    background: linear-gradient( 135deg, var(--accent), #ff8d57);
    box-shadow: 0 18px 35px rgba(226,89,47,.45);
    transition: .25s;
    z-index: 100;
}


    .fab:hover {
        transform: scale(1.08);
    }


/* ================= Responsive ================= */

@media(max-width:520px) {

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-circle {
        align-self: flex-end;
    }

    .kpi-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

    .brand-text strong {
        color: #fff;
        font-size: 18px;
        font-weight: 800;
    }

    .brand-text small {
        color: var(--text-muted);
        font-size: 11px;
    }

.topbar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg,var(--accent),#ff8d57);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 6px 16px rgba(226,89,47,.35);
}

.topbar-user-info {
    display: flex;
    flex-direction: column;
}

.topbar-name {
    font-weight: 700;
    color: #fff;
}

.topbar-user-info small {
    color: var(--text-muted);
    font-size: 11px;
}

.topbar-logout {
    margin-right: 14px;
    transition: .2s;
}

    .topbar-logout:hover {
        color: var(--accent);
        transform: rotate(180deg);
    }

/* ---------- Bottom Navigation ---------- */

.app-tabbar {
    display: grid;
    grid-template-columns: repeat(4,1fr);
}

.tab-item {
    transition: .25s;
    position: relative;
}

    .tab-item svg {
        transition: .25s;
    }

    .tab-item.active {
        color: var(--accent);
    }

        .tab-item.active svg {
            transform: translateY(-3px) scale(1.08);
        }

        .tab-item.active .tab-dot {
            width: 26px;
            height: 4px;
            border-radius: 99px;
            background: var(--accent);
            opacity: 1;
        }

.tab-dot {
    transition: .25s;
    opacity: .35;
}

.tab-item:hover {
    color: var(--accent);
}

/* =====================================================
   Workout Plans V2
=====================================================*/

.plans-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-inline: 18px;
    padding-bottom: 110px;
}

/* Hero */

.plans-hero {
    margin-top: 8px;
    padding: 22px;
    border-radius: 22px;
    background: radial-gradient(circle at top left, rgba(226,89,47,.16), transparent 45%), rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(16px);
}

    .plans-hero h1 {
        margin: 10px 0 8px;
        font-size: 32px;
        font-weight: 900;
    }

    .plans-hero p {
        margin: 0;
        color: var(--text-muted);
    }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(226,89,47,.12);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}


/* Filter */

.gym-filter-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

    .gym-filter-scroll::-webkit-scrollbar {
        display: none;
    }

.filter-chip {
    flex-shrink: 0;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-muted);
    background: #23282e;
    transition: .25s;
    border: 1px solid rgba(255,255,255,.05);
}

    .filter-chip.active {
        background: var(--accent);
        color: #fff;
    }


/* Plans */

.plans-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.plan-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 22px;
    text-decoration: none;
    color: inherit;
    border-radius: 26px;
    background: #1d2228;
    border: 1px solid rgba(255,255,255,.06);
    transition: .25s;
}

    .plan-card:hover {
        transform: translateY(-5px);
        border-color: rgba(226,89,47,.35);
        box-shadow: 0 16px 28px rgba(0,0,0,.25);
    }

.plan-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient( 135deg, var(--accent), #ff8d57);
    flex-shrink: 0;
}

.plan-content {
    flex: 1;
}

.plan-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

    .plan-top h3 {
        margin: 0;
        font-size: 18px;
    }

.plan-meta {
    color: var(--text-muted);
    margin-bottom: 14px;
    font-size: 13px;
}

.plan-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.view-link {
    color: var(--accent);
    font-weight: 700;
}


/* Status */

.status {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

    .status.success {
        background: #1d4d36;
        color: #6dffb1;
    }

    .status.waiting {
        background: #3a3a3a;
        color: #ffc66e;
    }


/* Empty */

.empty-state {
    text-align: center;
    padding: 55px 25px;
    border-radius: 24px;
    background: #1d2228;
    border: 1px solid rgba(255,255,255,.06);
}

.empty-icon {
    font-size: 58px;
    margin-bottom: 18px;
}

.empty-state h3 {
    margin: 0;
}

.empty-state p {
    color: var(--text-muted);
    margin: 12px 0 24px;
    line-height: 2;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: 14px;
    text-decoration: none;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
}


/* FAB */

.plans-page .fab {
    right: 28px;
    bottom: 110px;
}


/* ===========================
   Plan Card Premium
===========================*/

.plan-card {
    position: relative;
    overflow: hidden;
    background: #1f2329;
}

    .plan-card::before {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        width: 5px;
        height: 100%;
        border-radius: 12px;
    }

.success-card::before {
    background: #23c26b;
}

.waiting-card::before {
    background: #ff8c32;
}


/* Avatar Animation */

.plan-avatar {
    transition: .3s;
}

.plan-card:hover .plan-avatar {
    transform: rotate(-10deg) scale(1.08);
}


/* View */

.view-link {
    transition: .25s;
}

.plan-card:hover .view-link {
    transform: translateX(-6px);
}


/* Status */

.status {
    transition: .25s;
}

.plan-card:hover .status {
    transform: scale(1.05);
}


/* Ripple */

.plan-card {
    background: radial-gradient(circle at top left, rgba(255,255,255,.02), rgba(255,255,255,.01));
}


    /* Premium Shadow */

    .plan-card:hover {
        box-shadow: 0 18px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(226,89,47,.15);
    }


    .plan-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:14px;

}

.plan-footer a{

    text-decoration:none;

}

.plan-footer a:last-child{

    color:#fff;

    background:var(--accent);

    padding:8px 14px;

    border-radius:12px;

}


.plan-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

    .plan-footer a {
        text-decoration: none;
    }

        .plan-footer a:last-child {
            color: #fff;
            background: var(--accent);
            padding: 8px 14px;
            border-radius: 12px;
        }



/*==================================================
    OWNER DASHBOARD V2
==================================================*/

.owner-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-inline: 18px;
    padding-bottom: 110px;
}

/*========== Stats ==========*/

.owner-stats {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 14px;
}

.owner-stat {
    background: #1d2228;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 22px;
    padding: 18px;
    text-align: center;
    transition: .25s;
}

    .owner-stat:hover {
        transform: translateY(-4px);
        border-color: rgba(226,89,47,.3);
        box-shadow: 0 15px 30px rgba(0,0,0,.22);
    }

.owner-stat-icon {
    width: 52px;
    height: 52px;
    margin: auto;
    margin-bottom: 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(226,89,47,.12);
}

.owner-stat strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
}

.owner-stat span {
    color: var(--text-muted);
    font-size: 13px;
}


/*========== Quick Actions ==========*/

.owner-actions {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
}

.owner-action {
    text-decoration: none;
    color: inherit;
    background: #1d2228;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.06);
    padding: 18px 12px;
    text-align: center;
    transition: .25s;
}

    .owner-action:hover {
        transform: translateY(-4px);
        border-color: rgba(226,89,47,.35);
    }

    .owner-action div {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .owner-action span {
        font-size: 13px;
        font-weight: 700;
    }


/*========== Cards ==========*/

.owner-gyms {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.owner-gym-card {
    background: #1d2228;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.06);
    padding: 22px;
    transition: .3s;
}

    .owner-gym-card:hover {
        transform: translateY(-4px);
        border-color: rgba(226,89,47,.25);
        box-shadow: 0 18px 40px rgba(0,0,0,.30);
    }

.owner-gym-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 22px;
}

    .owner-gym-top h3 {
        margin: 0;
        font-size: 22px;
    }

    .owner-gym-top span {
        color: var(--text-muted);
        margin-top: 6px;
        display: block;
    }


/*========== Menu ==========*/

.gym-menu {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: #282d33;
    color: #fff;
    cursor: pointer;
    font-size: 22px;
}


/*========== Info Grid ==========*/

.owner-info-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin-bottom: 20px;
}

    .owner-info-grid > div {
        background: #252a30;
        border-radius: 16px;
        padding: 14px;
        text-align: center;
    }

    .owner-info-grid small {
        display: block;
        color: var(--text-muted);
        margin-bottom: 8px;
        font-size: 11px;
    }

    .owner-info-grid strong {
        font-size: 18px;
    }


/*========== Bottom Buttons ==========*/

.owner-card-actions {
    display: flex;
    gap: 10px;
}

    .owner-card-actions a {
        flex: 1;
        text-align: center;
        text-decoration: none;
        padding: 12px;
        border-radius: 14px;
        background: #282d33;
        color: #fff;
        transition: .25s;
    }

        .owner-card-actions a:hover {
            background: var(--accent);
        }

    .owner-card-actions form {
        flex: 1;
    }

    .owner-card-actions button {
        width: 100%;
        border: none;
        cursor: pointer;
        padding: 12px;
        border-radius: 14px;
        background: rgba(220,53,69,.16);
        color: #ff6d6d;
        font-weight: 700;
        transition: .25s;
    }

        .owner-card-actions button:hover {
            background: #dc3545;
            color: white;
        }


/*========== Alerts ==========*/

.alert-success {
    background: rgba(41,160,92,.12);
    color: #71e39f;
    border-radius: 16px;
    padding: 14px 18px;
}

.alert-danger {
    background: rgba(220,53,69,.12);
    color: #ff7272;
    border-radius: 16px;
    padding: 14px 18px;
}


/*========== Mobile ==========*/

@media(max-width:480px) {

    .owner-actions {
        grid-template-columns: 1fr;
    }

    .owner-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .owner-card-actions {
        flex-direction: column;
    }
}

/*=============================
Status Badge
==============================*/

.owner-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
}

    .owner-status.success {
        background: #1d4d36;
        color: #6effa8;
    }

    .owner-status.warning {
        background: #4b3d1f;
        color: #ffc75d;
    }

    .owner-status.danger {
        background: #54222b;
        color: #ff7d7d;
    }



/*=============================
Token Progress
==============================*/

.token-section {
    margin-bottom: 20px;
}

.token-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

    .token-header span {
        color: var(--text-muted);
    }

.token-progress {
    height: 8px;
    border-radius: 999px;
    background: #2a2f35;
    overflow: hidden;
}

.token-progress-fill {
    height: 100%;
    background: linear-gradient( 90deg, #ff9d3f, #ff5c2c);
    border-radius: 999px;
    transition: width .4s;
}



/*=============================
Animation
==============================*/

.owner-gym-card {
    opacity: 0;
    transform: translateY(25px);
    animation: ownerCard .5s forwards;
}

    .owner-gym-card:nth-child(2) {
        animation-delay: .08s;
    }

    .owner-gym-card:nth-child(3) {
        animation-delay: .16s;
    }

    .owner-gym-card:nth-child(4) {
        animation-delay: .24s;
    }

    .owner-gym-card:nth-child(5) {
        animation-delay: .32s;
    }

@keyframes ownerCard {

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/*=============================
Hover
==============================*/

.owner-gym-card:hover .owner-info-grid > div {
    background: #2d333a;
}

.owner-gym-card:hover .owner-stat-icon {
    transform: scale(1.08);
}



/*=============================
Menu
==============================*/

.gym-menu {
    transition: .25s;
}

    .gym-menu:hover {
        background: var(--accent);
        transform: rotate(90deg);
    }