:root {
    --navy: #0A192F;
    --navy-mid: #112240;
    --navy-light: #1a3260;
    --green: #00C853;
    --green-dark: #00a844;
    --green-glow: rgba(0, 200, 83, 0.15);
    --slate: #8892A4;
    --slate-light: #CCD6F6;
    --white: #E6F1FF;
    --card-bg: rgba(17, 34, 64, 0.7);
    --glass: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.07);
    --red: #FF3D57;
    --info: #60A5FA;
    --nav-bg: rgba(10, 25, 47, 0.95);
    --nav-link: #CCD6F6;
    --nav-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --bg-gradient: radial-gradient(ellipse 80% 50% at 20% 10%, rgba(0, 200, 83, 0.06) 0%, transparent 60%),
                   radial-gradient(ellipse 60% 40% at 80% 80%, rgba(10, 25, 47, 0.9) 0%, transparent 70%);
    --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    --hero-card-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    --split-top-bg: linear-gradient(135deg, #1a1a2e 0%, #2d1b1b 100%);
    --split-bottom-bg: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%);
    --pricing-bg: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%);
    --input-bg: rgba(255, 255, 255, 0.03);
    --wa-in-bg: rgba(255, 255, 255, 0.1);
    --wa-out-bg: rgba(37, 211, 102, 0.15);
    --btn-primary-text: #0A192F;
}

[data-theme="light"] {
    --navy: #FFFFFF;
    --navy-mid: #F8FAFC;
    --navy-light: #E2E8F0;
    --green: #00A844;
    --green-dark: #008F39;
    --green-glow: rgba(0, 168, 68, 0.1);
    --slate: #475569;
    --slate-light: #1E293B;
    --white: #0F172A;
    --card-bg: #FFFFFF;
    --glass: rgba(0, 0, 0, 0.03);
    --border: rgba(0, 0, 0, 0.1);
    --red: #DC2626;
    --info: #2563EB;
    --nav-bg: #FFFFFF;
    --nav-link: #1E293B;
    --nav-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --bg-gradient: radial-gradient(ellipse 80% 50% at 20% 10%, rgba(0, 200, 83, 0.04) 0%, transparent 60%),
                   radial-gradient(ellipse 60% 40% at 80% 80%, rgba(248, 250, 252, 0.9) 0%, transparent 70%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hero-card-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    --split-top-bg: #F1F5F9;
    --split-bottom-bg: #FFFFFF;
    --pricing-bg: #F8FAFC;
    --input-bg: #FFFFFF;
    --wa-in-bg: #F1F5F9;
    --wa-out-bg: rgba(0, 200, 83, 0.08);
    --btn-primary-text: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    background: var(--navy);
    color: var(--white);
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
    line-height: 1.6;
}

html[dir="rtl"] body { 
    direction: rtl; 
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}
html[dir="ltr"] body { direction: ltr; }

/* ─── GEOMETRIC BACKGROUND ─── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: var(--bg-gradient);
    pointer-events: none;
    z-index: 0;
}

.geo-pattern {
    position: fixed;
    inset: 0;
    opacity: 0.035;
    pointer-events: none;
    z-index: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(0, 200, 83, 1) 0px, rgba(0, 200, 83, 1) 1px, transparent 1px, transparent 60px),
        repeating-linear-gradient(-45deg, rgba(0, 200, 83, 1) 0px, rgba(0, 200, 83, 1) 1px, transparent 1px, transparent 60px);
}

/* ─── NAVBAR ─── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5%;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--nav-shadow);
    transition: all 0.3s;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--green);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--nav-link);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--green);
}

.nav-ctas {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-ghost {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--slate);
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-ghost:hover {
    border-color: var(--green);
    color: var(--green);
}

.btn-primary {
    padding: 0.55rem 1.4rem;
    background: var(--green);
    border: none;
    border-radius: 8px;
    color: var(--btn-primary-text);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 800;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #00d455;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 200, 83, 0.3);
}

.nav-toggles {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-right: 1.5rem;
    border-right: 1px solid var(--border);
    padding-right: 1.5rem;
}

html[dir="ltr"] .nav-toggles {
    margin-right: 0;
    margin-left: 1.5rem;
    border-right: none;
    border-left: 1px solid var(--border);
    padding-right: 0;
    padding-left: 1.5rem;
}

.toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--slate);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
    text-decoration: none;
}

.toggle-btn:hover {
    color: var(--green);
    border-color: rgba(0, 200, 83, 0.3);
    background: rgba(0, 200, 83, 0.05);
}

.lang-link {
    font-size: 0.85rem;
    font-weight: 700;
    width: auto;
    padding: 0 0.75rem;
}

.auth-toggles {
    position: absolute;
    top: 1.5rem;
    display: flex;
    gap: 0.5rem;
}

.auth-toggles.left { left: 1.5rem; }
.auth-toggles.right { right: 1.5rem; }

/* ─── HERO ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 5% 4rem;
    position: relative;
    z-index: 1;
    gap: 4rem;
}

.hero-left {
    flex: 1;
    max-width: 55%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(0, 200, 83, 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    background: rgba(0, 200, 83, 0.05);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero h1 .highlight {
    color: var(--green);
    position: relative;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--slate);
    line-height: 1.9;
    max-width: 520px;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2rem;
}

.btn-hero-primary {
    padding: 0.9rem 2.2rem;
    background: var(--green);
    border: none;
    border-radius: 10px;
    color: var(--btn-primary-text);
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    transition: all 0.25s;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 200, 83, 0.4);
    background: #00d455;
}

.btn-hero-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-hero-secondary {
    padding: 0.9rem 2.2rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--slate);
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.25s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero-secondary:hover {
    border-color: var(--green);
    color: var(--white);
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--slate);
    font-size: 0.85rem;
}

.hero-trust .check {
    color: var(--green);
    font-size: 1rem;
}

/* ─── HERO VISUAL ─── */
.hero-right {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.split-card {
    width: 100%;
    max-width: 520px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--hero-card-shadow), 0 0 0 1px var(--border);
    position: relative;
}

.split-card-top {
    background: var(--split-top-bg);
    padding: 1.5rem;
    border-bottom: 2px dashed var(--border);
    position: relative;
}

.split-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--slate);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    display: block;
}

.whatsapp-msgs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wa-bubble {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border-radius: 12px;
    font-size: 0.8rem;
    max-width: 75%;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.wa-in {
    background: var(--wa-in-bg);
    align-self: flex-start;
    color: var(--slate);
}

.wa-out {
    background: var(--wa-out-bg);
    align-self: flex-end;
    color: var(--slate);
}

.chaos-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 61, 87, 0.15);
    border: 1px solid rgba(255, 61, 87, 0.3);
    color: var(--red);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
}

.split-card-bottom {
    background: var(--split-bottom-bg);
    padding: 1.5rem;
}

.order-success {
    background: rgba(0, 200, 83, 0.08);
    border: 1px solid rgba(0, 200, 83, 0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-icon {
    width: 40px;
    height: 40px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--btn-primary-text);
}

.order-info h4 {
    color: var(--green);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.order-info p {
    color: var(--slate);
    font-size: 0.75rem;
}

.store-mini-ui {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.mini-stat {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem;
}

.mini-stat-label {
    font-size: 0.65rem;
    color: var(--slate);
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.mini-stat-val {
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
}

.mini-stat-val.green {
    color: var(--green);
}

/* ─── SECTION BASE ─── */
section {
    position: relative;
    z-index: 1;
    padding: 6rem 5%;
}

.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 2.5rem;
}

.section-sub {
    font-size: 1rem;
    color: var(--slate);
    max-width: 580px;
    line-height: 1.8;
    margin: 0 auto 3.5rem;
}

.text-center {
    text-align: center;
}

/* ─── WHY SECTION ─── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.why-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.why-card:hover::before {
    opacity: 1;
}

.why-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 200, 83, 0.2);
}

.why-icon {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    display: block;
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.6rem;
}

.why-card p {
    font-size: 0.875rem;
    color: var(--slate);
    line-height: 1.8;
}

/* ─── BENTO GRID FEATURES ─── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 1.25rem;
    margin-top: 3rem;
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
    box-shadow: var(--card-shadow);
}

.bento-card:hover {
    border-color: rgba(0, 200, 83, 0.2);
    transform: translateY(-3px);
}

.bento-1 { grid-column: span 7; }
.bento-2 { grid-column: span 5; }
.bento-3 { grid-column: span 5; }
.bento-4 { grid-column: span 7; }

.bento-card .feat-icon {
    font-size: 2rem;
    background: var(--green-glow);
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 200, 83, 0.15);
    margin-bottom: 1.2rem;
}

.bento-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.6rem;
}

.bento-card p {
    font-size: 0.875rem;
    color: var(--slate);
    line-height: 1.85;
}

.bento-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    background: rgba(0, 200, 83, 0.08);
    border: 1px solid rgba(0, 200, 83, 0.15);
    color: var(--green);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
}

/* ─── COD VISUAL ─── */
.cod-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cod-badge {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
    color: var(--slate);
    font-weight: 600;
}

/* ─── STEPS ─── */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    right: 16.66%;
    left: 16.66%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    opacity: 0.3;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    box-shadow: var(--card-shadow);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--green);
    color: var(--btn-primary-text);
    font-size: 1.3rem;
    font-weight: 900;
    margin: 0 auto 1.25rem;
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--slate);
    line-height: 1.7;
}

/* ─── PRICING ─── */
.pricing-section {
    background: var(--pricing-bg);
}

.pricing-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.price-card {
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    background: var(--card-bg);
}

.price-card.theirs {
    background: rgba(255, 61, 87, 0.05);
    border-color: rgba(255, 61, 87, 0.15);
}

.price-card.ours {
    border-color: rgba(0, 200, 83, 0.2);
    position: relative;
    overflow: hidden;
}

.price-card.ours::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(0, 200, 83, 0.05) 0%, transparent 70%);
}

.price-card-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.price-card.theirs .price-card-label { color: var(--red); }
.price-card.ours .price-card-label { color: var(--green); }

.price-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.price-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.price-row .label { color: var(--slate); }
.price-row .val { font-weight: 700; }
.val.red { color: var(--red); }
.val.green { color: var(--green); }

.pricing-fee-hero {
    text-align: center;
    margin-top: 3rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    max-width: 700px;
    margin: 3rem auto 0;
    backdrop-filter: blur(10px);
    box-shadow: var(--card-shadow);
}

.big-fee {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    color: var(--green);
    line-height: 1;
    margin: 0.5rem 0;
}

.fee-note {
    color: var(--slate);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: 0.5rem;
}

.fee-limits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.fee-limit .amt {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
}

.fee-limit .lbl {
    font-size: 0.75rem;
    color: var(--slate);
}

/* ─── SERVICES ─── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    box-shadow: var(--card-shadow);
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 200, 83, 0.2);
}

.service-icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--slate);
    line-height: 1.7;
}

/* ─── FAQ ─── */
.faq-list {
    max-width: 750px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: border-color 0.2s;
    box-shadow: var(--card-shadow);
}

.faq-item.open { border-color: rgba(0, 200, 83, 0.2); }

.faq-q {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    gap: 1rem;
}

.faq-q:hover { color: var(--green); }

.faq-arrow {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: transform 0.3s;
    color: var(--green);
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s;
    font-size: 0.875rem;
    color: var(--slate);
    line-height: 1.8;
}

.faq-item.open .faq-a {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem;
}

/* ─── SOCIAL PROOF ─── */
.testimonial-card {
    max-width: 700px;
    margin: 3rem auto 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    box-shadow: var(--card-shadow);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 6rem;
    color: rgba(0, 200, 83, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--white);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: 800;
    color: var(--white);
    font-size: 0.9rem;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--green);
    margin-top: 0.2rem;
}

.stars {
    color: #FFD700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.ticker-wrap {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
    margin: 2rem 0;
}

.ticker {
    display: flex;
    gap: 2rem;
    animation: ticker 20s linear infinite;
    width: max-content;
}

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.ticker-item {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--slate);
    white-space: nowrap;
}

/* ─── FINAL CTA ─── */
.final-cta {
    text-align: center;
    background: var(--bg-gradient);
    border-top: 1px solid var(--border);
}

.final-cta h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.final-cta p {
    color: var(--slate);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.final-cta .small {
    font-size: 0.8rem;
    color: var(--slate);
    margin-top: 1.5rem;
}

.final-cta .small .check { color: var(--green); }

/* ─── FOOTER ─── */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem 5% 2rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand .logo {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-brand p {
    font-size: 0.8rem;
    color: var(--slate);
    max-width: 300px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--slate);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--green); }

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
    color: var(--slate);
}

.social-btn:hover {
    background: rgba(0, 200, 83, 0.1);
    border-color: rgba(0, 200, 83, 0.3);
    color: var(--green);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--slate);
}

/* ─── AUTH PAGES ─── */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--card-shadow);
    animation: authIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 0.75rem;
    display: block;
    text-decoration: none;
}

.auth-logo span { color: var(--green); }

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--slate);
    font-size: 0.9rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 0.6rem;
}

.form-control {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 1.2rem;
    color: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
    outline: none;
}

select.form-control {
    padding-inline-end: 2.5rem;
}

.form-control:focus {
    border-color: var(--green);
    background: var(--navy-mid);
    box-shadow: 0 0 0 4px var(--green-glow);
}

[data-theme="light"] .form-control:focus {
    background: #FFFFFF;
}

.auth-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--slate);
    cursor: pointer;
}

.remember-me input {
    accent-color: var(--green);
    width: 16px;
    height: 16px;
}

.forgot-password {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
}

.btn-auth {
    width: 100%;
    padding: 0.9rem;
    background: var(--green);
    color: var(--btn-primary-text);
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s;
    margin-bottom: 1.5rem;
}

.btn-auth:hover {
    background: #00d455;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 200, 83, 0.3);
}

.auth-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--slate);
}

.auth-footer a {
    color: var(--green);
    text-decoration: none;
    font-weight: 700;
}

.alert-error {
    background: rgba(255, 61, 87, 0.1);
    border: 1px solid rgba(255, 61, 87, 0.2);
    color: var(--red);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.alert-info {
    background: rgba(0, 200, 83, 0.05);
    border: 1px solid rgba(0, 200, 83, 0.1);
    color: var(--slate);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ─── ALERT SUCCESS ─── */
.alert-success {
    background: var(--green-glow);
    border: 1px solid rgba(0, 200, 83, 0.3);
    color: var(--green);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.text-error {
    color: #ff4444;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: block;
}

/* ─── DASHBOARD LAYOUT ─── */
.dark-icon { display: none; }
.light-icon { display: block; }

[data-theme="dark"] .dark-icon { display: block; }
[data-theme="dark"] .light-icon { display: none; }

[data-theme="light"] .dark-icon { display: none; }
[data-theme="light"] .light-icon { display: block; }

.text-center {
    text-align: center;
}

.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--nav-bg);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

html[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid var(--border);
}

.sidebar-brand {
    margin-bottom: 3rem;
    padding: 0 0.5rem;
}

.sidebar-brand-sub {
    font-size: 0.75rem;
    color: var(--slate);
    font-weight: 500;
    margin-top: 0.25rem;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--nav-link);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s;
}

.sidebar-link:hover, .sidebar-link.active {
    background: var(--green-glow);
    color: var(--green);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.sidebar-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.logout-btn {
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-align: inherit;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 3rem 5%;
    min-height: 100vh;
    position: relative;
    z-index: 10;
    width: calc(100% - 280px);
}

html[dir="rtl"] .main-content {
    margin-left: 0;
    margin-right: 280px;
}

/* ─── DASHBOARD MOBILE HEADER ─── */
.dashboard-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    z-index: 990;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    backdrop-filter: blur(20px);
}

.dashboard-mobile-header .burger {
    display: flex;
}

/* ─── RESPONSIVE DASHBOARD ─── */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    html[dir="rtl"] .sidebar {
        transform: translateX(100%);
    }

    .sidebar.open,
    html[dir="rtl"] .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 6rem 1.25rem 2rem;
        width: 100%;
    }

    .dashboard-mobile-header {
        display: flex;
    }
}

/* ─── DASHBOARD OVERLAY ─── */
.dashboard-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.dashboard-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ─── ANIMATIONS ─── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── BURGER BUTTON ─── */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    padding: 9px 10px;
    transition: background 0.2s, border-color 0.2s;
}

.burger:hover {
    background: var(--glass);
    border-color: rgba(0, 200, 83, 0.3);
}

.burger-line {
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    display: block;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.burger.open .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open .burger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE NAV OVERLAY ─── */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.nav-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ─── MOBILE NAV DRAWER ─── */
.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 82vw);
    height: 100%;
    background: var(--navy-mid);
    border-left: 1px solid var(--border);
    z-index: 200;
    padding: 1.5rem;
    transform: translateX(110%);
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

html[dir="ltr"] .nav-drawer {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 1px solid var(--border);
    transform: translateX(-110%);
}

.nav-drawer.open,
html[dir="ltr"] .nav-drawer.open { transform: translateX(0); }

.nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.nav-drawer-close {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--slate);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    font-family: sans-serif;
    transition: all 0.2s;
}

.nav-drawer-close:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.nav-drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.nav-drawer-links a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--nav-link);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s;
}

.nav-drawer-links a:hover {
    color: var(--green);
    background: var(--green-glow);
}

.nav-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: 1.5rem;
}

.nav-drawer-toggles {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.nav-drawer-actions .btn-ghost,
.nav-drawer-actions .btn-primary {
    text-align: center;
    padding: 0.75rem;
    font-size: 0.95rem;
    width: 100%;
    display: block;
}

/* ─── RESPONSIVE: TABLET (≤900px) ─── */
@media (max-width: 900px) {
    .nav-ctas,
    .nav-links { display: none; }

    .burger { display: flex; }

    .hero {
        flex-direction: column;
        padding: 5rem 5% 3rem;
        gap: 2.5rem;
    }

    .hero-left,
    .hero-right { max-width: 100%; width: 100%; }

    .pricing-cards { grid-template-columns: 1fr; }

    .bento-1, .bento-2,
    .bento-3, .bento-4 { grid-column: span 12; }

    .steps-container::before { display: none; }
}

/* ─── RESPONSIVE: MOBILE (≤600px) ─── */
@media (max-width: 600px) {
    nav { padding: 0.875rem 4%; }

    section { padding: 4rem 4%; }

    .hero {
        padding: 4.5rem 4% 2.5rem;
        gap: 2rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        text-align: center;
        justify-content: center;
    }

    .split-card { max-width: 100%; }

    .auth-card { padding: 2rem 1.5rem; }

    .pricing-fee-hero { padding: 2rem 1.5rem; }

    .testimonial-card { padding: 2rem 1.5rem; }

    footer { padding: 2.5rem 4% 1.5rem; }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ─── TICKET STATUS BADGES ─── */
.ticket-status {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticket-status-open {
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.25);
    color: var(--green);
}

.ticket-status-resolved {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.25);
    color: var(--info);
}

.ticket-status-closed {
    background: rgba(255, 61, 87, 0.1);
    border: 1px solid rgba(255, 61, 87, 0.25);
    color: var(--red);
}

/* ─── TICKET LIST ─── */
.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ticket-row {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: var(--card-shadow);
    min-width: 0;
}

.ticket-row:hover {
    border-color: rgba(0, 200, 83, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.ticket-row-body {
    flex: 1;
    min-width: 0;
}

.ticket-row-subject {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}

.ticket-row-preview {
    font-size: 0.95rem;
    color: var(--slate);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-row-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
}

.ticket-row-date {
    font-size: 0.72rem;
    color: var(--slate);
    white-space: nowrap;
}

/* ─── STORE LIST ─── */
.store-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.store-row {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: var(--card-shadow);
    min-width: 0;
}

.store-row:hover {
    border-color: rgba(0, 200, 83, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.store-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.store-row-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

.store-row-desc {
    font-size: 0.95rem;
    color: var(--slate);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-row-header .bento-tag,
.store-row-header .chaos-label {
    position: static;
    margin-top: 0;
    flex-shrink: 0;
}

/* ─── TICKET CHAT ─── */
.ticket-chat {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    max-height: 520px;
    overflow-y: auto;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 68%;
}

/* Physical margins — unaffected by RTL, user always right, support always left */
.chat-message-user {
    margin-left: auto;
}

.chat-message-support {
    margin-right: auto;
}

.chat-bubble {
    padding: 0.75rem 1rem;
    border-radius: 16px;
    word-break: break-word;
}

.chat-bubble-user {
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.2);
    border-bottom-right-radius: 4px; /* tail always on physical right */
}

.chat-bubble-support {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px; /* tail always on physical left */
    box-shadow: var(--card-shadow);
}

.chat-text {
    font-size: 0.875rem;
    color: var(--white);
    line-height: 1.65;
    white-space: pre-wrap;
    margin-bottom: 0.3rem;
}

.chat-time {
    font-size: 0.68rem;
    color: var(--slate);
    display: block;
    text-align: right; /* physical — timestamp always at bottom-right of bubble */
}

.chat-sender {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--slate);
    margin-top: 0.3rem;
    padding: 0 0.25rem;
}

.chat-message-user .chat-sender {
    color: var(--green);
    text-align: right; /* physical */
}

.chat-message-support .chat-sender {
    text-align: left; /* physical */
}

.chat-empty {
    text-align: center;
    color: var(--slate);
    font-size: 0.85rem;
    padding: 1.5rem 0;
}

/* ─── ALERT INFO ─── */
.alert-info {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.25);
    color: var(--info);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ─── PROFILE ACTION BUTTONS ─── */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: start;
    font-family: inherit;
}

.profile-action-btn:hover {
    border-color: rgba(0, 200, 83, 0.3);
    background: var(--green-glow);
}

.profile-action-btn .action-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.profile-action-btn .action-label {
    flex: 1;
}

.profile-action-btn .action-arrow {
    color: var(--slate);
    font-size: 1rem;
    margin-inline-start: auto;
}

.profile-action-btn.danger {
    color: var(--red);
    border-color: rgba(255, 61, 87, 0.2);
}

.profile-action-btn.danger:hover {
    border-color: rgba(255, 61, 87, 0.4);
    background: rgba(255, 61, 87, 0.06);
}

.profile-action-verified {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.875rem;
    color: var(--slate);
}

.profile-verified-badge {
    margin-inline-start: auto;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.25);
    color: var(--green);
    white-space: nowrap;
}

.profile-actions-divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0;
}

/* ─── MODALS ─── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    backdrop-filter: blur(4px);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: var(--nav-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    transform: translateY(12px);
    transition: transform 0.2s;
}

.modal-overlay.open .modal-card {
    transform: translateY(0);
}

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

.modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
}

.modal-close {
    background: none;
    border: none;
    color: var(--slate);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.1rem 0.3rem;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    font-family: inherit;
}

.modal-close:hover {
    color: var(--white);
    background: var(--glass);
}

.modal-hint {
    font-size: 0.83rem;
    color: var(--slate);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

/* ─── OTP INPUT ─── */
.otp-group {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    margin: 1.75rem 0 1.25rem;
    direction: ltr;
}

.otp-input {
    width: 3.25rem;
    height: 3.75rem;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: var(--glass);
    color: var(--white);
    caret-color: transparent;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.otp-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.15);
}

.otp-input.filled {
    border-color: var(--green);
    color: var(--green);
}

.otp-input.otp-error {
    border-color: var(--red);
    color: var(--red);
    box-shadow: 0 0 0 3px rgba(255, 61, 87, 0.1);
}

.otp-input.loading {
    opacity: 0.45;
    pointer-events: none;
}

.otp-error-msg {
    text-align: center;
    font-size: 0.8rem;
    color: var(--red);
    min-height: 1.2em;
    margin-bottom: 0.25rem;
}

/* ─── PROFILE PAGE GRID ─── */
.profile-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "details contact"
        "details security";
    gap: 1.25rem;
    align-items: start;
}

.profile-area-details  { grid-area: details; }
.profile-area-contact  { grid-area: contact; }
.profile-area-security { grid-area: security; }

/* ─── CONTACT SECTION ─── */
.contact-section {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 1rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    flex: 1;
}

.contact-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    padding-inline-start: 1.5rem;
    word-break: break-all;
}

.contact-footer {
    display: flex;
    gap: 0.5rem;
    padding-inline-start: 1.5rem;
    flex-wrap: wrap;
}

.profile-unverified-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    background: rgba(255, 61, 87, 0.1);
    border: 1px solid rgba(255, 61, 87, 0.25);
    color: var(--red);
    white-space: nowrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--glass);
    color: var(--white);
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
    white-space: nowrap;
}

.contact-btn:hover {
    border-color: rgba(0, 200, 83, 0.3);
    background: var(--green-glow);
}

.contact-btn.verify {
    color: var(--green);
    border-color: rgba(0, 200, 83, 0.25);
    background: rgba(0, 200, 83, 0.06);
}

.contact-btn.verify:hover {
    background: rgba(0, 200, 83, 0.12);
}

@media (max-width: 900px) {
    .profile-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "details"
            "contact"
            "security";
    }
}
