/* KK WiFi Tickets — Design A Purple Theme */

/* ===== Arabic / RTL Font ===== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

html[lang="ar"],
html[lang="fa"],
html[lang="he"],
html[lang="ur"],
html[lang="ps"],
html[lang="ku"],
html[lang="sd"],
html[lang="ug"],
html[lang="yi"] {
    font-family: 'Cairo', 'Segoe UI', sans-serif;
}

/* ===== RTL Layout Overrides ===== */
html[dir="rtl"] .mud-nav-link {
    flex-direction: row-reverse;
}

html[dir="rtl"] .mud-nav-link .mud-nav-link-icon {
    margin-right: 0;
    margin-left: 8px;
}

html[dir="rtl"] .mud-appbar .mud-button-root {
    margin-left: 0;
}

html[dir="rtl"] .landing-nav-inner {
    flex-direction: row-reverse;
}

html[dir="rtl"] .landing-nav-links {
    flex-direction: row-reverse;
}

/* Suppress browser focus rings on non-interactive headings / sections */
h1:focus, h2:focus, h3:focus, section:focus, div:focus:not([tabindex="0"]) {
    outline: none;
}

/* ===== Global Mobile Fix ===== */
html, body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Force MudBlazor containers to respect viewport */
.mud-layout {
    max-width: 100vw;
    overflow-x: hidden;
}

.mud-main-content {
    max-width: 100vw;
    overflow-x: hidden;
}

/* ===== Gradient Hero Cards ===== */
.hero-card {
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 50%, #4C1D95 100%);
    border-radius: 20px;
    color: #FFFFFF;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.hero-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero-card-label {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 4px;
}

.hero-card-value {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    word-break: break-all;
}

/* ===== Quick Actions Grid ===== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 8px 0;
}

.quick-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.quick-action-item:hover {
    transform: translateY(-2px);
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.quick-action-icon.purple { background: rgba(124, 58, 237, 0.12); color: #7C3AED; }
.quick-action-icon.green  { background: rgba(76, 175, 80, 0.12); color: #4CAF50; }
.quick-action-icon.blue   { background: rgba(33, 150, 243, 0.12); color: #2196F3; }
.quick-action-icon.orange { background: rgba(255, 152, 0, 0.12); color: #FF9800; }
.quick-action-icon.red    { background: rgba(244, 67, 54, 0.12); color: #F44336; }
.quick-action-icon.teal   { background: rgba(0, 150, 136, 0.12); color: #009688; }

.quick-action-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: #6B7280;
    text-align: center;
}

/* ===== Action Buttons (gradient) ===== */
.btn-gradient-green {
    background: linear-gradient(135deg, #4CAF50, #2E7D32) !important;
    color: white !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    text-transform: none !important;
}

.btn-gradient-red {
    background: linear-gradient(135deg, #EF5350, #C62828) !important;
    color: white !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    text-transform: none !important;
}

.btn-gradient-purple {
    background: linear-gradient(135deg, #7C3AED, #5B21B6) !important;
    color: white !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    text-transform: none !important;
}

/* ===== Mobile safe-area handling (MAUI edge-to-edge) ===== */
/* AppBar extends behind the status bar. padding-top pushes content below it.
   height must also grow so the toolbar is NOT compressed — border-box sizing
   means height = content + padding, so height: 48px + inset keeps 48px of
   usable toolbar while the inset area is filled by the bar's background.
   --mud-appbar-height must match the real height so the drawer and dialogs
   position correctly (below the AppBar, not behind it). */
:root {
    --mud-appbar-height: calc(48px + env(safe-area-inset-top, 0px));
}
.mud-appbar {
    padding-top: env(safe-area-inset-top, 0px) !important;
    height: calc(48px + env(safe-area-inset-top, 0px)) !important;
    border-bottom: none !important;
    box-shadow: none !important;
    /* AppBar must sit above the temporary drawer (which is appbar+2 in MudBlazor) */
    z-index: calc(var(--mud-zindex-appbar, 1200) + 3) !important;
}

/* Mobile: temporary drawer (web toggle overlay) must not cover the AppBar.
   Responsive drawer (mobile persistent sidebar) is handled natively by ClipMode.Always. */
.mud-drawer.mud-drawer-temporary {
    top: var(--mud-appbar-height) !important;
    height: calc(100% - var(--mud-appbar-height)) !important;
}
.mud-overlay.mud-overlay-drawer {
    top: var(--mud-appbar-height) !important;
    height: calc(100% - var(--mud-appbar-height)) !important;
}

/* Mobile persistent sidebar: narrower width so content area stays usable on small screens */
.mud-drawer.mud-drawer-responsive {
    --mud-drawer-width-left: 210px;
}

/* Dialogs: respect AppBar top and bottom-nav bottom on mobile */
.mud-dialog-container {
    padding-top: var(--mud-appbar-height) !important;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
}

/* On desktop there is no status bar — restore standard height */
@media (min-width: 960px) {
    :root {
        --mud-appbar-height: 48px;
    }
    .mud-appbar {
        height: 48px !important;
        padding-top: 0 !important;
        z-index: calc(var(--mud-zindex-appbar, 1200) + 3) !important;
    }
    /* Desktop: let DrawerClipMode.Always position the drawer below the AppBar natively */
    .mud-drawer.mud-drawer-temporary {
        top: var(--mud-appbar-height) !important;
        height: calc(100% - var(--mud-appbar-height)) !important;
    }
    .mud-overlay.mud-overlay-drawer {
        top: var(--mud-appbar-height) !important;
        height: calc(100% - var(--mud-appbar-height)) !important;
    }
    .mud-dialog-container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .mud-drawer.mud-drawer-responsive {
        --mud-drawer-width-left: 240px;
    }
}

/* ===== Bottom Navigation (Mobile) ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* Grow with the gesture-navigation safe area so items stay in the visible band */
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    background: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    z-index: 1000;
    padding-top: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.65rem;
    color: #9CA3AF;
    cursor: pointer;
    transition: color 0.15s ease;
    text-decoration: none;
    padding: 6px 8px;
    min-width: 0;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: #7C3AED;
}

.bottom-nav-item .mud-icon-root {
    font-size: 22px;
}

/* Center FAB in bottom nav */
.bottom-nav-fab {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #5B21B6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.bottom-nav-fab:hover {
    transform: scale(1.05);
}

/* ===== Cards ===== */
.card-elevated {
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #F3F4F6 !important;
}

/* ===== Activity Items ===== */
.activity-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
}

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

/* ===== Status Badges ===== */
.badge-confirmed {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-pending {
    color: #FF9800;
    background: rgba(255, 152, 0, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-expired {
    color: #F44336;
    background: rgba(244, 67, 54, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== Section Header ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1E1B4B;
}

.section-link {
    font-size: 0.8rem;
    color: #7C3AED;
    cursor: pointer;
    font-weight: 500;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 599px) {
    /* Main content padding for mobile — 48px AppBar + safe-area inset + small gap */
    .page-content {
        padding: 12px 8px !important;
        padding-top: calc(env(safe-area-inset-top, 0px) + 56px) !important;
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 72px) !important;
    }

    /* Smaller hero card on mobile */
    .hero-card {
        padding: 16px;
        border-radius: 16px;
    }

    .hero-card-value {
        font-size: 1.5rem;
    }

    /* Quick actions smaller on mobile */
    .quick-actions {
        gap: 8px;
    }

    .quick-action-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    /* Hide branch selector on very small screens */
    .branch-selector {
        display: none !important;
    }

    /* Tables should scroll horizontally */
    .mud-table,
    .mud-simple-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* MudContainer no excessive padding */
    .mud-container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* MudGrid tighter gap */
    .mud-grid {
        margin: -4px !important;
    }
    .mud-grid > .mud-item {
        padding: 4px !important;
    }

    /* MudPaper/card padding reduction */
    .card-elevated {
        border-radius: 12px !important;
    }

    /* MudDialog full width on mobile */
    .mud-dialog {
        margin: 8px !important;
        max-height: calc(100vh - 16px) !important;
    }

    /* AppBar items */
    .mud-appbar .mud-select {
        max-width: 120px !important;
        min-width: 80px !important;
    }
}

@media (max-width: 400px) {
    /* Very small phones */
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-card-value {
        font-size: 1.3rem;
    }
}

@media (min-width: 600px) and (max-width: 959px) {
    /* Tablet — 48px AppBar + 8px gap */
    .page-content {
        padding-top: calc(env(safe-area-inset-top, 0px) + 56px) !important;
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px) !important;
    }
}

@media (min-width: 960px) {
    .bottom-nav {
        display: none;
    }

    /* Desktop — 48px AppBar + 8px gap; no bottom nav to clear */
    .page-content {
        padding-top: 56px !important;
        padding-bottom: 16px !important;
    }
}

/* ===== Login Page ===== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 50%, #4C1D95 100%);
    padding: max(env(safe-area-inset-top, 0px), 24px)
             max(env(safe-area-inset-right, 0px), 16px)
             max(env(safe-area-inset-bottom, 0px), 24px)
             max(env(safe-area-inset-left, 0px), 16px);
    box-sizing: border-box;
    overflow-y: auto;
}

.login-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 32px 24px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.login-logo {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo h4 {
    color: #7C3AED;
    font-weight: 700;
    margin-top: 12px;
}

/* ===== Sync Indicator ===== */
.sync-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
}

.sync-online { color: #4CAF50; background: rgba(76, 175, 80, 0.1); }
.sync-syncing { color: #FF9800; background: rgba(255, 152, 0, 0.1); }
.sync-offline { color: #F44336; background: rgba(244, 67, 54, 0.1); }

/* Small online/offline dot shown in the app bar */
.kk-online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 8px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    display: inline-block;
}
.kk-online-dot-on {
    background: #4CAF50;
    animation: kk-dot-pulse 2.4s ease-in-out infinite;
}
.kk-online-dot-off {
    background: #F44336;
    animation: kk-dot-blink 1.2s ease-in-out infinite;
}
@keyframes kk-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(255,255,255,0.4); }
    50% { box-shadow: 0 0 0 4px rgba(76,175,80,0.35); }
}
@keyframes kk-dot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===== Splash Screen ===== */
.splash-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 50%, #4C1D95 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: splashFadeOut 0.5s ease-out 2s forwards;
}

.splash-content {
    text-align: center;
    padding: 16px;
    animation: splashPulse 1.5s ease-in-out infinite;
}

.splash-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

.splash-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.splash-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.splash-progress {
    max-width: 200px;
    margin: 0 auto;
}

@keyframes splashFadeOut {
    to { opacity: 0; pointer-events: none; }
}

@keyframes splashPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ===== Landing Page ===== */
.landing-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1E1B4B;
    overflow-x: hidden;
}

.landing-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(124,58,237,0.08);
}
.landing-nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 14px 16px;
    display: flex; align-items: center; justify-content: space-between;
}
.landing-nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1.15rem; color: #7C3AED; text-decoration: none;
}
.landing-nav-links { display: flex; align-items: center; gap: 20px; }
.landing-nav-links a { color: #6B7280; text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.landing-nav-links a:hover { color: #7C3AED; }
.landing-nav-signin {
    background: linear-gradient(135deg, #7C3AED, #5B21B6) !important;
    color: white !important; padding: 8px 22px; border-radius: 10px; font-weight: 600 !important;
}
.landing-nav-hamburger {
    display: none; flex-direction: column; justify-content: space-between;
    width: 28px; height: 20px; background: none; border: none; cursor: pointer; padding: 0;
}
.landing-nav-hamburger span {
    display: block; width: 100%; height: 2px; background: #7C3AED;
    border-radius: 2px; transition: transform 0.25s, opacity 0.25s;
}
.landing-nav-hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.landing-nav-hamburger.open span:nth-child(2) { opacity: 0; }
.landing-nav-hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.hero-section {
    position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #F5F3FF 0%, #EDE9FE 30%, #DDD6FE 60%, #C4B5FD 100%);
    padding: 100px 16px 60px; text-align: center; overflow: hidden;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.hero-shape {
    position: absolute; border-radius: 50%; opacity: 0.15;
    background: linear-gradient(135deg, #7C3AED, #A78BFA);
}
.hero-shape-1 { width: 500px; height: 500px; top: -150px; right: -100px; animation: float 8s ease-in-out infinite; }
.hero-shape-2 { width: 300px; height: 300px; bottom: -80px; left: -60px; animation: float 10s ease-in-out infinite reverse; }
.hero-shape-3 { width: 180px; height: 180px; top: 40%; left: 15%; animation: float 6s ease-in-out infinite 2s; }
@keyframes float { 0%,100%{ transform: translateY(0) scale(1); } 50%{ transform: translateY(-20px) scale(1.03); } }

.hero-content { position: relative; z-index: 1; max-width: 720px; width: 100%; }
.hero-logo { width: 80px; height: 80px; margin-bottom: 16px; filter: drop-shadow(0 8px 20px rgba(124,58,237,0.25)); }
.hero-title { font-size: clamp(1.8rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; color: #1E1B4B; margin-bottom: 16px; letter-spacing: -1px; }
.hero-highlight { background: linear-gradient(135deg, #7C3AED, #A78BFA); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: clamp(0.9rem, 2.5vw, 1.15rem); color: #6B7280; max-width: 540px; margin: 0 auto 24px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.btn-hero-primary {
    background: linear-gradient(135deg, #7C3AED, #5B21B6); color: white; padding: 12px 28px;
    border-radius: 14px; font-weight: 700; font-size: 0.95rem; text-decoration: none;
    box-shadow: 0 8px 24px rgba(124,58,237,0.3); transition: transform 0.2s;
}
.btn-hero-primary:hover { transform: translateY(-2px); }
.btn-hero-secondary {
    background: white; color: #7C3AED; padding: 12px 28px; border-radius: 14px;
    font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 2px solid #E5E7EB;
}
.btn-hero-secondary:hover { border-color: #7C3AED; }

.hero-stats { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-value { font-size: 1.4rem; font-weight: 800; color: #7C3AED; }
.hero-stat-label { font-size: 0.75rem; color: #9CA3AF; margin-top: 2px; }
.hero-stat-divider { width: 1px; height: 32px; background: #D1D5DB; }

.section-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section-badge {
    display: inline-block; background: rgba(124,58,237,0.08); color: #7C3AED;
    font-size: 0.8rem; font-weight: 700; padding: 6px 16px; border-radius: 100px;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.section-heading { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; color: #1E1B4B; margin-bottom: 12px; }
.section-subheading { font-size: 1rem; color: #6B7280; max-width: 500px; margin: 0 auto 40px; }

.features-section { padding: 80px 0; background: white; text-align: center; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
    text-align: left; padding: 24px; border-radius: 20px; background: #FAFAFA;
    border: 1px solid #F3F4F6; transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.feature-title { font-size: 1rem; font-weight: 700; color: #1E1B4B; margin-bottom: 6px; }
.feature-desc { font-size: 0.85rem; color: #6B7280; line-height: 1.6; }

.how-section { padding: 80px 0; background: #F5F3FF; text-align: center; }
.steps-grid { display: flex; align-items: flex-start; justify-content: center; gap: 0; flex-wrap: wrap; }
.step-card { flex: 0 0 180px; text-align: center; padding: 16px; }
.step-number {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #5B21B6); color: white;
    font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
}
.step-title { font-size: 0.95rem; font-weight: 700; color: #1E1B4B; margin-bottom: 6px; }
.step-desc { font-size: 0.8rem; color: #6B7280; line-height: 1.6; }
.step-connector { width: 40px; height: 2px; background: #C4B5FD; margin-top: 36px; flex-shrink: 0; }

.pricing-section { padding: 80px 0; background: white; text-align: center; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 960px; margin: 0 auto; }
.pricing-card {
    position: relative; padding: 32px 24px; border-radius: 20px; background: #FAFAFA;
    border: 2px solid #F3F4F6; text-align: center;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-featured {
    background: linear-gradient(160deg, #F5F3FF, #EDE9FE);
    border-color: #7C3AED;
}
.pricing-badge-popular {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #7C3AED, #5B21B6); color: white;
    padding: 4px 20px; border-radius: 100px; font-size: 0.75rem; font-weight: 700;
}
.pricing-name { font-size: 1.1rem; font-weight: 700; color: #6B7280; margin-bottom: 12px; }
.pricing-price { font-size: 2.2rem; font-weight: 800; color: #1E1B4B; margin-bottom: 20px; }
.pricing-period { font-size: 1rem; font-weight: 500; color: #9CA3AF; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 24px; }
.pricing-features li { padding: 8px 0; border-bottom: 1px solid #E5E7EB; color: #4B5563; font-size: 0.85rem; }
.pricing-features li:last-child { border-bottom: none; }
.btn-pricing-primary {
    display: inline-block; background: linear-gradient(135deg, #7C3AED, #5B21B6); color: white;
    padding: 10px 28px; border-radius: 12px; font-weight: 700; text-decoration: none;
}
.btn-pricing-outline {
    display: inline-block; background: white; color: #7C3AED; padding: 10px 28px;
    border-radius: 12px; font-weight: 600; text-decoration: none; border: 2px solid #E5E7EB;
}
.btn-pricing-outline:hover { border-color: #7C3AED; }

/* --- Bento Features Grid --- */
html { scroll-behavior: smooth; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(170px, auto);
    gap: 18px;
    max-width: 1180px;
    margin: 48px auto 0;
    text-align: left;
}
.bento-cell {
    background: white;
    border: 1px solid #EEF0F5;
    border-radius: 20px;
    padding: 26px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bento-cell:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(76, 29, 149, 0.08);
    border-color: rgba(124, 58, 237, 0.25);
}
.bento-cell h3 { font-size: 1.15rem; font-weight: 700; color: #1E1B4B; margin: 4px 0 0; line-height: 1.3; }
.bento-cell p  { color: #475569; line-height: 1.6; font-size: 0.92rem; margin: 0; }

.bento-badge {
    width: 42px; height: 42px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(124,58,237,0.1); color: #7C3AED;
    flex-shrink: 0;
}
.bento-eyebrow {
    display: inline-block; font-size: 0.72rem; font-weight: 700;
    color: #7C3AED; text-transform: uppercase; letter-spacing: 1px;
}
.bento-glyph { font-size: 28px; line-height: 1; }

/* Hero cell */
.bento-hero {
    grid-column: span 4;
    grid-row: span 2;
    background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
    border: 1px solid rgba(124, 58, 237, 0.18);
    flex-direction: row;
    gap: 28px;
    padding: 32px;
    align-items: center;
}
.bento-hero-copy { flex: 1; min-width: 0; }
.bento-hero-copy h3 { font-size: 1.6rem; margin-top: 6px; }
.bento-hero-list { list-style: none; padding: 0; margin: 12px 0 0; }
.bento-hero-list li {
    padding-left: 22px; position: relative;
    font-size: 0.88rem; color: #475569; line-height: 1.8;
}
.bento-hero-list li::before {
    content: ""; position: absolute; left: 0; top: 11px;
    width: 10px; height: 10px; border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #5B21B6);
}
.bento-hero-mock { flex: 0 0 280px; }

/* Mock window */
.mock-window {
    background: white; border-radius: 14px;
    box-shadow: 0 20px 40px rgba(76, 29, 149, 0.15), 0 0 0 1px rgba(124, 58, 237, 0.1);
    overflow: hidden;
}
.mock-title-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 12px;
    background: #FAFAFA;
    border-bottom: 1px solid #EEF0F5;
    font-size: 0.72rem; color: #6B7280;
}
.mock-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #E5E7EB;
}
.mock-dot:nth-of-type(1) { background: #FCA5A5; }
.mock-dot:nth-of-type(2) { background: #FCD34D; }
.mock-dot:nth-of-type(3) { background: #86EFAC; }
.mock-title { margin-left: 6px; font-weight: 500; }
.mock-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.mock-row {
    padding: 8px 10px; border-radius: 8px;
    background: #FAFAFA; font-family: 'SF Mono', Menlo, monospace;
    font-size: 0.76rem; color: #334155;
}
.mock-row.mock-active {
    background: rgba(124,58,237,0.1); color: #5B21B6;
    border: 1px solid rgba(124,58,237,0.3);
    font-weight: 600;
}
.mock-row.mock-total {
    background: #0F0A1A; color: white; font-weight: 700;
}
.mock-sep { height: 1px; background: #EEF0F5; margin: 4px 0; }
.mock-btn {
    padding: 10px 12px; border-radius: 8px; text-align: center;
    background: linear-gradient(135deg, #7C3AED, #5B21B6);
    color: white; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.2px;
}

/* Tall cell */
.bento-tall { grid-column: span 2; grid-row: span 2; }

/* Gradient accent */
.bento-gradient {
    background: linear-gradient(135deg, #7C3AED, #5B21B6);
    color: white; border-color: transparent;
}
.bento-gradient h3 { color: white; }
.bento-gradient p  { color: rgba(255,255,255,0.85); }
.bento-gradient .bento-glyph { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }

/* Dark cell with chart */
.bento-dark {
    background: #0F0A1A; color: white; border-color: transparent;
}
.bento-dark h3 { color: white; }
.bento-dark p  { color: rgba(255,255,255,0.75); }

/* Wide cell */
.bento-wide { grid-column: span 6; }

/* MikroTik cell */
.bento-mikrotik { grid-column: span 3; border-color: rgba(52,211,153,0.25); }
.bento-mikrotik h3 { color: #065F46; }
.mikrotik-visual {
    display: flex; align-items: center; gap: 12px;
    margin-top: 14px; padding: 10px 12px;
    background: rgba(52,211,153,0.08); border-radius: 10px;
    font-size: 0.75rem; font-weight: 600; color: #065F46;
}
.mt-router, .mt-cloud {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    flex: 1;
}
.mt-arrows {
    display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1;
}
.mt-arrow {
    width: 40px; height: 2px; background: linear-gradient(90deg, #059669, #7C3AED);
    border-radius: 2px;
}
.mt-badge {
    font-size: 0.65rem; background: rgba(124,58,237,0.12); color: #7C3AED;
    padding: 2px 6px; border-radius: 4px; font-weight: 700; letter-spacing: 0.3px;
}
.bento-wide-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px; align-items: center;
}

/* Stock bars */
.stock-visual {
    display: flex; flex-direction: column; gap: 4px; margin-top: 4px;
    font-size: 0.78rem; color: #64748B;
}
.stock-bar {
    height: 8px; background: #F1F5F9; border-radius: 4px; overflow: hidden; margin-top: 4px;
}
.stock-bar > span { display: block; height: 100%; border-radius: 4px; }
.stock-low { color: #DC2626; font-weight: 600; }

/* Mini chart bars */
.mini-chart {
    display: flex; align-items: flex-end; gap: 6px;
    margin-top: auto; height: 60px;
}
.mini-chart > span {
    flex: 1;
    background: linear-gradient(180deg, #A78BFA, #7C3AED);
    border-radius: 3px;
}

/* Tenant pills */
.tenant-row {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end;
}
.tenant-pill {
    padding: 8px 14px; border-radius: 999px;
    background: rgba(124,58,237,0.08); color: #5B21B6;
    font-size: 0.8rem; font-weight: 600;
    border: 1px solid rgba(124,58,237,0.18);
}

/* Bento responsive */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(4, 1fr); }
    .bento-hero { grid-column: span 4; grid-row: auto; flex-direction: column; }
    .bento-hero-mock { flex: 0 0 auto; width: 100%; max-width: 340px; margin: 0 auto; }
    .bento-tall { grid-column: span 2; grid-row: auto; }
    .bento-cell { grid-column: span 2; }
    .bento-wide { grid-column: span 4; }
    .bento-mikrotik { grid-column: span 2; }
    .bento-wide-inner { grid-template-columns: 1fr; }
    .tenant-row { justify-content: flex-start; }
}
@media (max-width: 640px) {
    .bento-grid { grid-template-columns: 1fr; gap: 14px; }
    .bento-cell, .bento-hero, .bento-tall, .bento-wide, .bento-mikrotik { grid-column: span 1; }
}

/* --- Download App --- */
.download-section { padding: 80px 0; background: #F5F3FF; text-align: center; }

.download-grid {
    display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
    margin-top: 32px;
}
.download-card { text-align: center; }
.qr-box {
    background: white; padding: 16px; border-radius: 20px;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.qr-target {
    width: 160px; height: 160px;
    display: flex; align-items: center; justify-content: center;
}
.qr-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #F5F3FF, #EDE9FE);
    color: #7C3AED; font-size: 0.8rem; font-weight: 500;
    border-radius: 8px;
}
.download-card-label {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 12px;
    font-weight: 600; color: #1E1B4B; font-size: 0.95rem;
}
.download-card-hint {
    color: #9CA3AF; font-size: 0.8rem; margin: 2px 0 0;
}
.download-buttons {
    margin-top: 32px;
    display: flex; justify-content: center; align-items: stretch;
    gap: 14px; flex-wrap: wrap;
}
.download-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-width: 240px;
    background: #1E1B4B; color: white;
    padding: 12px 24px; border-radius: 12px;
    text-decoration: none; font-weight: 600; font-size: 0.95rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 27, 75, 0.35);
}

.cta-section {
    padding: 80px 16px; text-align: center;
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 50%, #4C1D95 100%);
}
.cta-content { max-width: 600px; margin: 0 auto; }
.cta-title { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; color: white; margin-bottom: 16px; }
.cta-desc { font-size: 1rem; color: rgba(255,255,255,0.8); margin-bottom: 24px; line-height: 1.7; }
.btn-cta {
    display: inline-block; background: white; color: #7C3AED; padding: 14px 32px;
    border-radius: 14px; font-weight: 700; text-decoration: none;
}

.landing-footer { padding: 32px 16px; background: #0F0A1A; text-align: center; }
.footer-content { max-width: 1200px; margin: 0 auto; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; text-decoration: none; color: inherit; }
.footer-brand-name { font-size: 1rem; font-weight: 700; color: white; }
.footer-links { display: flex; justify-content: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { color: #9CA3AF; text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: #A78BFA; }
.footer-copyright { font-size: 0.8rem; color: #6B7280; }

/* --- Landing Responsive --- */
@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 360px; }
    .steps-grid { flex-direction: column; align-items: center; }
    .step-connector { width: 2px; height: 20px; margin: 0; }

    .landing-nav-hamburger { display: flex; }

    .landing-nav-links {
        display: none; flex-direction: column; align-items: flex-start; gap: 0;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
        border-top: 1px solid rgba(124,58,237,0.10);
        padding: 8px 0 16px; z-index: 999;
    }
    .landing-nav-links.open { display: flex; }
    .landing-nav-links a {
        width: 100%; padding: 12px 20px; font-size: 1rem;
        border-bottom: 1px solid rgba(124,58,237,0.06);
    }
    .landing-nav-links a:last-child { border-bottom: none; }
    .landing-nav-signin {
        margin: 8px 20px 0 !important; width: calc(100% - 40px) !important;
        text-align: center; border-radius: 10px !important; padding: 10px 0 !important;
    }
}

@media (max-width: 960px) and (min-width: 769px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

.back-to-top {
    position: fixed; bottom: 24px; right: 24px;
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #5B21B6); color: white;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
    z-index: 999; text-decoration: none;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease, transform 0.2s ease;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* ===== Comprehensive RTL Support ===== */

/* RTL: Cairo font for all elements */
html[dir="rtl"] * {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

/* RTL: flip drawer position */
html[dir="rtl"] .mud-drawer { left: unset; right: 0; }
html[dir="rtl"] .mud-drawer-mini { right: 0; left: unset; }
html[dir="rtl"] .mud-main-content { margin-right: var(--mud-drawer-width); margin-left: 0 !important; }
html[dir="rtl"] .mud-main-content.mud-main-content-left { margin-left: 0; margin-right: 0; }

/* RTL: text alignment in tables and forms */
html[dir="rtl"] .mud-table-cell { text-align: right; }
html[dir="rtl"] .mud-input-label { right: 14px; left: auto; transform-origin: right top; }
html[dir="rtl"] .mud-input-adornment-start { margin-right: 0; margin-left: 8px; }
html[dir="rtl"] .mud-input-adornment-end { margin-left: 0; margin-right: 8px; }

/* RTL: flip icons in breadcrumbs and pagination */
html[dir="rtl"] .mud-breadcrumb-separator { transform: scaleX(-1); }
html[dir="rtl"] .mud-pagination-item-before svg { transform: scaleX(-1); }
html[dir="rtl"] .mud-pagination-item-after svg { transform: scaleX(-1); }

/* RTL: card layouts */
html[dir="rtl"] .mud-card-header { flex-direction: row-reverse; }
html[dir="rtl"] .mud-avatar { margin-right: 0; margin-left: 16px; }
html[dir="rtl"] .mud-list-item { flex-direction: row-reverse; }
html[dir="rtl"] .mud-list-item-icon { margin-right: 0; margin-left: 8px; }

/* RTL: AppBar and toolbar */
html[dir="rtl"] .mud-appbar { flex-direction: row-reverse; }
html[dir="rtl"] .mud-toolbar { flex-direction: row-reverse; }

/* RTL: MudSelect dropdown arrow */
html[dir="rtl"] .mud-select-input .mud-input-slot { padding-right: 12px; padding-left: 40px; }
html[dir="rtl"] .mud-input-root .mud-input-end-adornment { left: 8px; right: auto; }

/* RTL: Stepper (used in New Sale wizard) */
html[dir="rtl"] .mud-stepper-step-connector { flex-direction: row-reverse; }

/* RTL: snackbar positioning */
html[dir="rtl"] .mud-snackbar { direction: rtl; }

/* RTL: badges */
html[dir="rtl"] .mud-badge-root { flex-direction: row-reverse; }

/* RTL: general page padding mirror */
html[dir="rtl"] .page-content { padding-right: 0; padding-left: 0; }

/* RTL: bottom nav */
html[dir="rtl"] .bottom-nav { direction: rtl; }
html[dir="rtl"] .bottom-nav-item { flex-direction: column; }

/* RTL: section headers */
html[dir="rtl"] .section-header { flex-direction: row-reverse; }

/* RTL: hero card content */
html[dir="rtl"] .hero-card { text-align: right; }

/* RTL: quick actions */
html[dir="rtl"] .quick-action-item { direction: rtl; }

/* RTL: activity items */
html[dir="rtl"] .activity-item { flex-direction: row-reverse; }

/* RTL: MudDivider text */
html[dir="rtl"] .mud-divider-text { flex-direction: row-reverse; }

/* RTL: MudAlert icon position */
html[dir="rtl"] .mud-alert { flex-direction: row-reverse; }
html[dir="rtl"] .mud-alert-icon { margin-right: 0; margin-left: 12px; }

/* RTL: MudChip close button */
html[dir="rtl"] .mud-chip { flex-direction: row-reverse; }
html[dir="rtl"] .mud-chip-close-button { margin-left: 0; margin-right: -4px; }

/* RTL: MudTooltip text */
html[dir="rtl"] .mud-tooltip { direction: rtl; text-align: right; }

/* RTL: dialog content */
html[dir="rtl"] .mud-dialog { direction: rtl; }
html[dir="rtl"] .mud-dialog-title { text-align: right; }
html[dir="rtl"] .mud-dialog-actions { flex-direction: row-reverse; }

/* RTL: progress linear label */
html[dir="rtl"] .mud-progress-linear-label { text-align: right; }

/* RTL: data grid */
html[dir="rtl"] .mud-table thead th { text-align: right; }
html[dir="rtl"] .mud-simple-table thead th { text-align: right; }
html[dir="rtl"] .mud-simple-table tbody td { text-align: right; }

/* ===== Print styles ===== */
@media print {
    .mud-appbar, .mud-drawer, .bottom-nav, .mud-snackbar-provider { display: none !important; }
    .page-content { padding: 0 !important; margin: 0 !important; }
}

/* ===== Print Voucher Overlay ===== */
#kkwifi-print-overlay {
    display: none;
}

@media print {
    body > *:not(#kkwifi-print-overlay) { display: none !important; }
    #kkwifi-print-overlay {
        display: block !important;
        position: static;
        width: 100%;
    }
    .kkv {
        width: 72mm;
        margin: 0 auto;
        padding: 8mm 4mm;
        page-break-after: always;
        text-align: center;
        border-bottom: 1px dashed #999;
        font-family: monospace, sans-serif;
        color: #111;
    }
    .kkv:last-child { border-bottom: none; page-break-after: auto; }
    .kkv-logo { width: 40px; height: 40px; margin: 0 auto 4px; }
    .kkv-brand { font-size: 11px; font-weight: bold; margin-bottom: 6px; color: #7C3AED; }
    .kkv-label { font-size: 9px; color: #666; margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }
    .kkv-val { font-size: 18px; font-weight: bold; margin: 2px 0 4px; letter-spacing: 1px; }
    .kkv-info { font-size: 10px; color: #444; margin-top: 4px; }
    .kkv-amount { font-weight: bold; font-size: 12px; margin-top: 4px; }
    .kkv-div { border-top: 1px dashed #ccc; margin: 6px 0; }
    .kkv-footer { font-size: 8px; color: #999; margin-top: 4px; }
    @page { margin: 2mm; size: 80mm auto; }
}

/* ===== Offline Sync Banner ===== */
.sync-banner {
    display: flex;
    align-items: center;
    padding: 6px 16px;
    font-size: 0.78rem;
    font-weight: 600;
}
.sync-banner--syncing {
    background: #EDE9FE;
    color: #5B21B6;
}
.sync-banner--pending {
    background: #FEF3C7;
    color: #92400E;
}

/* ===== Public-page offline banner (pure JS, no Blazor circuit needed) ===== */
#kk-offline-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    background: #F59E0B;
    color: #1C1917;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    animation: slideDown 0.25s ease;
}
#kk-offline-banner button {
    background: none; border: none; cursor: pointer;
    font-size: 1rem; color: inherit; padding: 0 4px; opacity: 0.75;
    margin-left: auto;
}
#kk-offline-banner button:hover { opacity: 1; }
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ===== Enhanced offline dot indicator ===== */
.kk-online-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.kk-online-dot-on  { background: #22C55E; box-shadow: 0 0 0 2px rgba(34,197,94,0.25); }
.kk-online-dot-off {
    background: #EF4444;
    box-shadow: 0 0 0 2px rgba(239,68,68,0.25);
    animation: pulse-red 1.5s infinite;
}
@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 0 2px rgba(239,68,68,0.25); }
    50%       { box-shadow: 0 0 0 5px rgba(239,68,68,0.10); }
}

/* ===== Reconnect Modal ===== */
#components-reconnect-modal {
    display: none;
    position: fixed; inset: 0;
    z-index: 99998;
    align-items: center; justify-content: center;
}
#components-reconnect-modal[open] { display: flex; }

/* CSS state visibility — Blazor toggles classes */
.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
.components-reconnect-pause-visible,
.components-reconnect-resume-failed-visible { display: none !important; }

#components-reconnect-modal[class~="components-reconnect-first-attempt"] .components-reconnect-first-attempt-visible { display: block !important; }
#components-reconnect-modal[class~="components-reconnect-repeated-attempt"] .components-reconnect-repeated-attempt-visible { display: block !important; }
#components-reconnect-modal[class~="components-reconnect-failed"] .components-reconnect-failed-visible { display: block !important; }
#components-reconnect-modal[class~="components-reconnect-paused"] .components-reconnect-pause-visible { display: block !important; }
#components-reconnect-modal[class~="components-reconnect-resume-failed"] .components-reconnect-resume-failed-visible { display: block !important; }

.reconnect-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
}
.reconnect-card {
    position: relative; z-index: 1;
    background: #fff; border-radius: 20px;
    padding: 36px 28px; width: 320px; max-width: 90vw;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,0.18);
    animation: reconnect-slideUp 0.3s ease;
}
@media (prefers-color-scheme: dark) {
    .reconnect-card { background: #1E1B2E; color: #E5E7EB; }
}
.reconnect-icon-wrap {
    position: relative; width: 72px; height: 72px;
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
}
.reconnect-ring {
    position: absolute; border-radius: 50%;
    border: 2px solid #7C3AED;
    animation: reconnect-pulse 2s ease-out infinite;
}
.reconnect-ring-1 { width: 56px; height: 56px; animation-delay: 0s; }
.reconnect-ring-2 { width: 72px; height: 72px; animation-delay: 0.5s; opacity: 0.5; }
.reconnect-wifi-icon { width: 32px; height: 32px; color: #7C3AED; position: relative; z-index: 1; }
.reconnect-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 8px; color: #111827; }
.reconnect-body  { font-size: 0.88rem; color: #6B7280; margin: 0 0 16px; line-height: 1.5; }
.reconnect-progress { height: 4px; background: #EDE9FE; border-radius: 4px; overflow: hidden; margin-bottom: 16px; }
.reconnect-progress-bar { height: 100%; background: #7C3AED; border-radius: 4px; animation: reconnect-progressSlide 2s linear infinite; }
.reconnect-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 24px; border-radius: 10px; border: none;
    font-size: 0.9rem; font-weight: 600; cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
}
.reconnect-btn-primary {
    background: linear-gradient(135deg, #7C3AED, #5B21B6);
    color: white;
    box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}
.reconnect-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(124,58,237,0.4); }
.reconnect-btn-primary:active { transform: translateY(0); }
@keyframes reconnect-pulse {
    0%   { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}
@keyframes reconnect-slideUp {
    from { transform: translateY(20px) scale(0.95); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}
@keyframes reconnect-progressSlide {
    0%   { width: 0%;   margin-left: 0; }
    50%  { width: 70%;  margin-left: 0; }
    100% { width: 0%;   margin-left: 100%; }
}
