/**
 * Account Pages Styles
 * Login, Register, Onboarding, Dashboard
 * Design: Figma card-based centered layout
 */

/* ========== General Account Page ========== */
.account-page {
    padding: 0px 0px 60px;
    display: grid;
    gap: 12px;
    max-width: 1320px;
    margin: 0 auto;
}

/* ========== Account Container (Login/Register) ========== */
.account-container {
    width: 100%;
    max-width: 406px;
    margin: 0 auto;
    background: #F3F3F3;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: flex-start;
}

.account-container-onboarding {
    width: 100%;
    max-width: 406px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: flex-start;
}

/* ========== Account Header ========== */
.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}

.account-header h1 {
    font-family: 'Jost', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
    line-height: 1.3;
}

.account-header-emoji {
    font-size: 28px;
    line-height: 1;
}

/* ========== Account Card ========== */
.account-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
}

.terms-conditions-btn {
    background: #f3f3f3;
    max-width: 406px;
    width: 100%;
    margin: 0 auto;
}

/* ========== Section Label ========== */
.account-section-label {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    margin: 0 0 12px;
}

/* ========== Divider Text (register) ========== */
.account-divider-text {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: #6B7280;
    text-align: center;
    margin: 0;
}

#cipauto-login-form,
#cipauto-request-reset-form,
#cipauto-set-password-form {
    margin-top: 12px;
}

/* ========== Gmail Button ========== */
.btn-gmail {
    width: 100%;
    padding: 8px 20px;
    background: #3B00DD1A;
    border-radius: 8px;
    color: #3B00DD;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-gmail:hover:not(:disabled) {
    background: #EDE9FE;
    border-color: #D1D5DB;
}

.btn-gmail:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ========== Google Auth States ========== */
.btn-gmail.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.google-auth-error {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    margin-top: 12px;
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
    font-family: 'Jost', sans-serif;
}

/* ========== Auth Form ========== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ========== Form Group ========== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.account-container-onboarding .form-group {
    margin-bottom: 0;
}

/* ========== Form Label ========== */
.form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1F2937;
}

.form-label-link {
    font-size: 13px;
    font-weight: 400;
    color: #3B00DD;
    text-decoration: underline;
}

.form-label-link:hover {
    color: #2E00B0;
}

/* ========== Form Input ========== */
.form-input {
    width: 100%;
    padding: 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    color: #1F2937;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: #9CA3AF;
}

.form-input:focus {
    border-color: #3B00DD;
    box-shadow: 0 0 0 3px rgba(59, 0, 221, 0.08);
}

/* ========== Password Toggle ========== */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* ========== Form Message ========== */
.form-message {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.form-message.error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.form-message.success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

/* ========== Primary Button ========== */
.btn-primary {
    width: 100%;
    padding: 12px 20px;
    background: #3B00DD;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    line-height: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #2E00B0;
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-primary .btn-arrow {
    font-size: 20px;
    font-weight: 300;
}

.btn-primary .btn-loading svg {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.onboarding-submit {
    text-align: center;
    justify-content: center;
}

/* ========== Register / Login Prompt ========== */
.account-register-prompt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.account-register-prompt > span {
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    color: #374151;
}

.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    padding: 8px 24px;
    background: #3B00DD1A;
    color: #3B00DD;
    border-radius: 8px;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-outline-primary:hover {
    background: #F5F3FF;
}

/* ========== Benefits Section ========== */
.benefits-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.benefits-content {
    flex: 1;
    min-width: 0;
}

.benefits-title {
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #000000;
    margin: 0 0 10px;
    line-height: 20px;
}

.benefits-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.benefits-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: #000000;
    line-height: 1.4;
}

.benefits-checklist .check-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.benefits-image {
    width: 85px;
    flex-shrink: 0;
}

.benefits-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* ========== Terms Link ========== */
.terms-link {
    text-align: center;
}

.terms-link a {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: #3B00DD;
    text-decoration: underline;
}

.terms-link a:hover {
    color: #2E00B0;
}


/* ========================================== */
/*  LEGACY CLASSES (backward compat)          */
/* ========================================== */

/* Old auth-btn-submit mapped to new btn-primary */
.auth-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 8px;
    background: #3B00DD;
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-btn-submit:hover {
    background: #2E00B0;
}

.auth-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-btn-submit .btn-loading svg {
    animation: spin 0.8s linear infinite;
}

/* Old form-group label compat */
.form-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-left: 12px;
}

.form-link-inline {
    font-size: 13px;
    font-weight: 400;
    color: #3B00DD;
    text-decoration: underline;
}

.form-link-inline:hover {
    color: #2E00B0;
}

/* Old form-group inputs compat */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    line-height: 14px;
    color: #000000;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231F2937' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3B00DD;
    box-shadow: 0 0 0 3px rgba(59, 0, 221, 0.08);
}

.form-group input.input-readonly {
    cursor: not-allowed;
}

/* ========== Onboarding ========== */

/* Outlined card variant (border instead of fill) */
.account-card--outlined {
    background: #fff;
    border: 1px solid #CCCCCC;
}

/* Iesire / Exit button */
.btn-iesire,
.btn-purple {
    display: inline-flex;
    align-items: center;
    padding: 13px 16px;
    background: rgba(59, 0, 221, 0.1);
    color: #3B00DD;
    border-radius: 6px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    line-height: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-iesire:hover,
.btn-purple:hover {
    background: rgba(59, 0, 221, 0.15);
}

.btn-catalog-reduceri {
    width: 100%;
    justify-content: center;
}

/* Banner */
.onboarding-banner {
    position: relative;
    padding: 20px 140px 20px 20px;
    background-color: rgba(0, 229, 185, 0.2);
    background-image: url(../images/onboarding-confetti.png);
    background-repeat: no-repeat;
    background-position: right -20px top -20px;
    background-size: 190px auto;
    border-radius: 10px;
    overflow: visible;
}

.onboarding-banner h2 {
    font-family: 'Jost', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 4px;
    line-height: 1.3;
}

.onboarding-banner p {
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    color: #1F2937;
    margin: 0;
    line-height: 1.4;
}

/* Card Top: header left + avatar right */
.onboarding-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

/* Step Header (inside card, left-aligned) */
.onboarding-step-header {
    text-align: left;
    margin-bottom: 0;
}

.onboarding-step-header h3 {
    font-family: 'Jost', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 2px;
}

.step-subtitle {
    font-size: 14px;
    color: #000000;
    margin: 0;
    margin-bottom: 12px;
}

/* Card Bottom: step indicator left + dots right */
.onboarding-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.step-indicator {
    font-size: 13px;
    color: #9CA3AF;
    font-weight: 500;
}

/* Progress Dots (pill style) */
.onboarding-progress {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: #F3F3F3;
    transition: all 0.3s;
}

.progress-dot.active {
    width: 24px;
    background: #00E5B9;
}

.progress-dot.completed {
    width: 8px;
    background: #D1D5DB;
}

/* Onboarding Form */
.onboarding-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Form Row (2 columns) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Avatar Upload (in card top, right side) */
.avatar-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Upload link style (instead of button) */
.btn-upload-link {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: #3B00DD;
    text-decoration: underline;
    cursor: pointer;
    max-width: 90px;
    display: inline-block;
    line-height: 1.3;
}

.btn-upload-link:hover {
    color: #2B00AA;
}

/* Onboarding form inputs: darker borders like Figma */
.account-card--outlined .form-group input[type="text"],
.account-card--outlined .form-group input[type="email"],
.account-card--outlined .form-group input[type="tel"],
.account-card--outlined .form-group input[type="date"],
.account-card--outlined .form-group select {
    border-color: #1F2937;
    border-radius: 8px;
    padding: 9px 14px;
}

.account-card--outlined .form-group input[type="date"] {
    padding: 11px 14px;
}

/* Responsive: stack 2-col on small screens */
@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }

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

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-preview--small {
    width: 40px;
    height: 40px;
    border-width: 2px;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-upload-avatar {
    padding: 6px 14px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    background: rgba(59, 0, 221, 0.05);
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #3B00DD;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-upload-avatar:hover {
    background: rgba(59, 0, 221, 0.1);
    border-color: #3B00DD;
}

/* Notification Radio Buttons (Step 2 - simple style) */
.notification-radios {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    display: none;
}

/* Custom radio circle */
.radio-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #D1D5DB;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
    box-sizing: border-box;
}

.radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3B00DD;
    opacity: 0;
    transition: opacity 0.2s;
}

.radio-option input[type="radio"]:checked + .radio-circle {
    border-color: #3B00DD;
}

.radio-option input[type="radio"]:checked + .radio-circle::after {
    opacity: 1;
}

.radio-label {
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #1F2937;
}

/* Legacy compat: keep old notification-option styles for backwards compat */
.notification-option:has(input:checked) .option-check {
    color: #3B00DD;
}

/* ========== Green Button (reusable) ========== */
.btn-green {
    width: 100%;
    padding: 12px 20px;
    background: #00E5B9;
    color: #1F2937;
    border: none;
    border-radius: 10px;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: background 0.2s;
    box-sizing: border-box;
}

.btn-green:hover {
    background: #00CCa6;
}

/* ========== Dashboard ========== */
.dashboard-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.dashboard-greeting {
    font-family: 'Jost', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.greeting-wave {
    font-size: 28px;
}

.dashboard-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    text-decoration: none;
    transition: all 0.2s;
}

.dashboard-logout:hover {
    border-color: #EF4444;
    color: #EF4444;
}

/* Dashboard Sections */
.dashboard-section {
    margin-bottom: 24px;
    padding: 24px;
    background: #fff;
    border: 1px solid #f3f3f3;
    border-radius: 10px;
    margin-top: 24px;
}

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

.section-header-flex .section-title {
    margin-bottom: 0;
}

.section-icon {
    flex-shrink: 0;
}

.badge-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #00E5B9;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.section-title {
    font-family: 'Jost', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========== Club Card ========== */
.club-card-wrapper {
    margin-bottom: 12px;
}

.club-card {
    width: 100%;
    aspect-ratio: 366 / 200;
    margin: 0 auto;
    background:
        url('../images/club-card-bg.png') left center / auto 100% no-repeat,
        linear-gradient(88.14deg, rgba(0, 229, 185, 0) 0%, rgba(0, 229, 185, 0.62) 100%),
        linear-gradient(118.32deg, rgba(0, 0, 0, 0) 32.49%, rgba(0, 0, 0, 0.4) 100%),
        linear-gradient(0deg, #3B00DD, #3B00DD);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
}

.club-card-inner {
    padding: 20px;
    color: #fff;
    height: 100%;
    display: grid;
}

.card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    height: 30px;
}

.card-title {
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.card-number-badge {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 6px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    line-height: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 1);
    margin-left: auto;
}

.card-number-badge > span {
    font-weight: 800;
}

.card-level-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #00E5B9;
    background-color: #ffffff;
}

.card-level-badge.level-2 { background: #FFD700; color: #78350F; }
.card-level-badge.level-3 { background: #8B5CF6; color: #fff; }

.card-body {
    display: flex;
    align-items: end;
    gap: 16px;
    margin-top: auto;
}

.card-avatar-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.card-avatar-img {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    object-fit: cover;
}

.card-watermark {
    position: absolute;
    top: -10px;
    right: -10px;
    pointer-events: none;
}

.card-info {
    flex: 1;
    min-width: 0;
}

.card-user-name {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    line-height: 18px;
    font-weight: 700;
    color: #fff;
}

.card-days {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.card-qr {
    flex-shrink: 0;
    display: inline-flex;
    border: solid 6px #fff;
    border-radius: 6px;
}

.card-qr-img {
    width: 72px;
    height: 72px;
    border-radius: 6px;
}

/* ========== Levels Section ========== */
.levels-grid {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.level-circle-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    background: #f3f3f3;
    border-radius: 10px;
    padding: 12px;
}

.level-circle-item.current {
    border: solid 1px #f3f3f3;
    background: transparent;
}

.level-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E5E7EB;
}

.level-circle-item.level-1-item .level-circle { background: #00E5B9; }
.level-circle-item.level-2-item .level-circle { background: #FF005D; }
.level-circle-item.level-3-item .level-circle { background: #3B00DD; }

.level-number {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

.level-circle-item .level-label {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    line-height: 14px;
    font-weight: 700;
    color: #000000;
}

.level-circle-item .level-description {
    font-size: 12px;
    line-height: 14px;
    color: #000000;
}

/* ========== Notifications ========== */
.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-title {
    font-family: 'Jost', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #000000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notifications-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: #3B00DD;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 50%;
}

.notifications-bell {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.notifications-divider {
    border: none;
    border-top: 1px solid #E5E7EB;
    margin-top: 12px;
}

.notifications-list {
    display: flex;
    flex-direction: column;
}

.notification-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #F3F4F6;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-image {
    width: 90px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #F3F4F6;
}

.notification-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-image.partner-type {
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-image.partner-type img {
    width: 100%;
    object-fit: contain;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.notification-title.seen {
    font-weight: 400;
}

.notif-title-link {
    text-decoration: none;
    color: inherit;
}

.notif-title-link:hover .notification-title {
    color: #3B00DD;
}

.notification-date {
    font-size: 10px;
    line-height: 10px;
    color: #000000;
    margin: 0;
    opacity: .5;
}

.notification-link {
    font-size: 12px;
    line-height: 12px;
    color: #0f0a1d;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.notification-link:hover {
    text-decoration-style: solid;
}

/* Vandut (sold) — grayscale image */
/* .notification-item.vandut .notification-image img {
    filter: grayscale(100%);
    opacity: .5;
} */

/* Read state — faded + grayscale */
.notification-item.notif-read {
    opacity: 0.5;
}

.notification-item.notif-read .notification-image img {
    filter: grayscale(100%);
}

.notifications-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.btn-notifications-all,
.btn-notifications-settings {
    width: 100%;
    justify-content: center;
}

/* ========== Stats ========== */
.stats-grid {
    display: flex;
    gap: 16px;
}

.stat-card {
    flex: 1;
    text-align: center;
    padding: 20px;
    background: #F9FAFB;
    border-radius: 12px;
}

.stat-number {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #3B00DD;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: #6B7280;
    margin-top: 4px;
}

/* ========== Contact Section ========== */
.contact-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
}

.contact-info-simple {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-email,
.contact-phone {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    line-height: 14px;
    font-weight: 400;
    color: #000000;
}

.contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-actions {
    display: flex;
    gap: 10px;
}

.contact-actions .btn-purple {
    flex: 1;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    line-height: 14px;
    font-weight: 800;
}

/* Legacy compat */
.contact-info { margin-bottom: 16px; }
.contact-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #F3F4F6; }
.contact-row:last-child { border-bottom: none; }
.contact-label { font-size: 14px; color: #6B7280; }
.contact-value { font-family: 'Jost', sans-serif; font-size: 14px; font-weight: 500; color: #1F2937; }

/* ========== Buttons ========== */
.btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: #F3F4F6;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover:not(:disabled) {
    background: #E5E7EB;
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    background: #fff;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: #3B00DD;
    color: #3B00DD;
}

/* ========== Modal ========== */
.dashboard-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #374151;
    background: transparent;
}

.modal-subtitle {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
    margin: -12px 0 20px;
}

/* ========== AUTH LAYOUT (Login/Register Desktop 2-Column) ========== */

/* Mobile: auth-layout is transparent, children flow into account-page grid */
.auth-layout {
    display: contents;
    margin-bottom: 24px;
}

/* Desktop terms link inside form container — hidden on mobile */
.auth-desktop-only {
    display: none;
}

/* Advantages panel — hidden on mobile */
.advantages-panel {
    display: none;
}

/* Mobile benefits + terms — visible by default */
/* .auth-mobile-only — no styles needed on mobile */

/* ---- Desktop: 2-column layout ---- */
@media (min-width: 1024px) {
    .account-page:has(.auth-layout) {
        padding: 0px;
    }

    .auth-layout {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 24px;
        align-items: stretch;
    }

    .auth-layout .account-container {
        max-width: 100%;
        padding: 24px;
    }

    .auth-layout .account-header h1 {
        font-size: 30px;
        font-weight: 800;
    }

    .auth-desktop-only {
        display: block;
    }

    .auth-mobile-only {
        display: none !important;
    }

    /* ---- Advantages Panel ---- */
    .advantages-panel {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: #F3F3F3;
        border-radius: 16px;
        padding: 48px;
    }

    .advantages-top {
        margin-bottom: 0;
    }

    .advantages-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .advantages-titles {
        flex: 1;
        min-width: 0;
        margin-bottom: 24px;
    }

    .advantages-title {
        font-family: 'Jost', sans-serif;
        font-size: 30px;
        font-weight: 800;
        color: #000;
        margin: 0 0 16px;
        line-height: 1.2;
    }

    .advantages-subtitle {
        font-family: 'Jost', sans-serif;
        font-size: 18px;
        font-weight: 400;
        color: #000;
        margin: 0;
        line-height: 1.4;
    }

    .advantages-badge {
        background: #FF005D;
        border: 2px solid #fff;
        border-radius: 4px;
        padding: 10px;
        transform: rotate(-11deg);
        flex-shrink: 0;
        margin-left: 24px;
    }

    .advantages-badge span {
        font-family: 'Jost', sans-serif;
        font-size: 14px;
        font-weight: 800;
        color: #fff;
        line-height: 1.1;
        display: block;
        text-align: center;
        white-space: nowrap;
    }

    /* ---- Advantage Cards Grid ---- */
    .advantages-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-top: 0;
    }

    .advantage-card {
        background: #fff;
        border-radius: 6px;
        padding: 24px;
        display: inline-block;
        margin-bottom: 0;
        margin-right: 0;
    }

    .advantage-icon {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }

    .advantage-icon svg {
        width: 32px;
        height: 32px;
    }

    .advantage-card h3 {
        font-family: 'Jost', sans-serif;
        font-size: 16px;
        font-weight: 700;
        color: #000;
        margin: 0;
        line-height: 1.2;
    }

    .advantage-card p {
        font-family: 'Jost', sans-serif;
        font-size: 14px;
        font-weight: 400;
        color: #000;
        margin: 0;
        line-height: 1.4;
    }
}

/* ========== DESKTOP LAYOUT - 3 COLUMNS ========== */
@media (min-width: 1024px) {
    .dashboard-container {
        max-width: 1320px;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .dashboard-header {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    .left-column {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

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

    .dashboard-section {
        margin-bottom: 0;
        margin-top: 0;
    }

    .club-card-wrapper {
        margin-bottom: 0;
    }

    .dashboard-modal {
        grid-column: 1 / -1;
    }
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .dashboard-container {
        max-width: 1024px;
        padding: 0 24px;
    }

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

@media (max-width: 768px) {
    .dashboard-container {
        max-width: 1024px;
        padding: 0;
    }

    .account-page {
        padding: 0px 12px 12px;
    }

    .account-container {
        max-width: 100%;
        border-radius: 12px;
        padding: 16px;
    }

    .account-container-onboarding {
        max-width: 100%;
    }

    .account-header h1 {
        font-size: 22px;
    }

    .dashboard-header {
        gap: 12px;
        margin-bottom: 12px;
    }

    .greeting-wave {
        display: none;
    }

    .dashboard-greeting {
        font-size: 22px;
    }

    .dashboard-section {
        padding: 18px;
        margin-bottom: 0;
        margin-top: 12px;
    }

    .notifications-section {
        margin-top: 0;
    }

    .levels-grid {
        gap: 12px;
    }

    .btn-catalog-reduceri {
        margin-bottom: 12px;
    }

    .level-circle {
        width: 48px;
        height: 48px;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        padding: 16px 12px;
    }

    .contact-actions {
        flex-direction: column;
    }

    .notifications-actions {
        flex-direction: column;
    }

    .modal-content {
        padding: 20px;
    }

    .benefits-image {
        width: 100px;
    }
    .card-days {
        font-size: 12px;
        line-height: 14px;
    }

    .card-title {
        font-size: 16px;
    }

    .card-level-badge,
    .card-number-badge {
        font-size: 12px;
    }
}

@media (max-width: 425px) {
    .dashboard-container {
        max-width: 1024px;
        padding: 0px;
    }
}

@media (max-width: 400px) {
    .account-register-prompt {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .btn-outline-primary {
        width: 100%;
        justify-content: center;
    }

    .benefits-section {
        flex-direction: column;
    }

    .benefits-image {
        width: 100%;
    }
}


.mobile-sticky-footer-simple,
.cipauto-contact-section-shadow {
    display: none !important;
}