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

/* ===== 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;
}

/* ===== Bottom Navigation (Mobile) ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.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 */
    .page-content {
        padding: 12px 8px 90px 8px !important;
        padding-top: 70px !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 */
    .page-content {
        padding-bottom: 80px !important;
    }
}

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

    .page-content {
        padding-top: 80px !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%);
}

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

.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;
}

.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; }
.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-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 { 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-links a:not(.landing-nav-signin) { display: none; }
}

@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;
}
.back-to-top:hover { transform: translateY(-3px); }

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