@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Minimalist Obsidian Theme */
    --bg-body: #0b0f19;
    --bg-surface: #121826;
    --bg-surface-hover: #1a2235;
    --bg-glass: rgba(18, 24, 38, 0.95);

    --primary: #818cf8;
    --primary-hover: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.15);

    --secondary: #00f2fe;
    --secondary-glow: rgba(0, 242, 254, 0.1);

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.8);
    --ring-focus: 0 0 0 3px rgba(99, 102, 241, 0.3);

    --accent: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.2);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #4f5b66;

    --border-light: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
        background-color 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    background-image: radial-gradient(circle at top center, rgba(30, 30, 47, 0.5) 0%, transparent 100%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Background Lighting - Optimized & Premium */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.04;
}

.blob-1 {
    top: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

.blob-3 {
    top: 30%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Typing Effect Cursor */
.typing-wrapper {
    min-height: 1.5em;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .typing-wrapper {
        justify-content: center;
        min-height: 2.4em;
        /* Allow multi-line height */
    }
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--primary);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    font-family: var(--font-heading);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 6px 16px var(--primary-glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px var(--primary-glow);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--ring-focus);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(5px);
    /* Reduced blur */
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.badge {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-primary {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}

.badge-secondary {
    background: rgba(6, 182, 212, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(5, 5, 7, 0.95);
    /* More opaque background */
    backdrop-filter: blur(6px);
    /* Reduced blur for performance */
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.logo i {
    color: var(--primary);
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

.nav-mobile-actions {
    display: none;
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    display: inline-block;
}

.badge-text {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text-main);
}

.hero-title span {
    display: block;
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 540px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.stat-item {
    position: relative;
    padding-right: 20px;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.stat-item h4 {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: -0.02em;
}

.stat-item p {
    font-size: 0.75rem;
    margin-bottom: 0;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.hero-visual {
    position: relative;
    perspective: 1000px;
}

/* macOS Window Mockup - Premium Vercel/Linear Style */
.window-mockup {
    background: #08080a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(99, 102, 241, 0.03);
    width: 100%;
    transition: var(--transition);
}

.window-header {
    background: #0d0d11;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    position: relative;
}

.window-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.window-dot-close {
    background-color: #ff5f56;
}

.window-dot-minimize {
    background-color: #ffbd2e;
}

.window-dot-maximize {
    background-color: #27c93f;
}

.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.window-body {
    position: relative;
    background: #000;
}

.window-footer {
    background: #0d0d11;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 18px;
    display: flex;
    justify-content: flex-end;
}

.window-footer-text {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Features Grid */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--primary-glow), transparent 40%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-hover);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.06);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 24px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.feature-media-inline {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.feature-card:hover .feature-media-inline {
    border-color: var(--primary-glow);
}

/* Pricing Card */
.pricing-card {
    background: rgba(24, 24, 27, 0.4);
    /* Much more transparent */
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    transition: var(--transition);
}

.pricing-card.premium {
    border-color: rgba(99, 102, 241, 0.3);
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.5) 0%, rgba(99, 102, 241, 0.08) 100%);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.1);
}

.pricing-card.premium:hover {
    transform: scale(1.02);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.2);
}

.price-amount {
    font-size: 4rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1;
    margin: 24px 0 8px;
}

.price-currency {
    font-size: 1.5rem;
    color: var(--text-muted);
    vertical-align: top;
}

.price-period {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.pricing-features {
    margin-bottom: 40px;
    text-align: left;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.pricing-feature i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    padding: 80px 0 40px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--text-main);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* Glass Card & Stat Card Styles */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.glass-card:hover {
    border-color: var(--primary-hover);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.05);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 12px !important;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

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

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    padding: 24px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.dashboard-main {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    background: var(--bg-body);
    width: calc(100% - 280px);
}

.dashboard-main > * {
    max-width: 1400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.sidebar-nav {
    margin-top: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.menu-item:hover,
.menu-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-main);
}

.menu-item.active {
    color: var(--primary);
}

.menu-item i {
    width: 20px;
    text-align: center;
}

.user-profile {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.page-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    z-index: 2000;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    gap: 4px;
    padding: 8px;
    flex: 1;
    text-align: center;
    border-radius: 8px;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.25rem;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .dashboard-main {
        margin-left: 0;
        width: 100%;
        padding: 30px 20px 80px 20px;
        /* Added bottom padding for nav */
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert i {
    font-size: 1.25rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        min-height: 110px;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-text>div[style*="display: flex"] {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .dashboard-main {
        margin-left: 0;
        padding: 24px;
    }
}

@media (max-width: 768px) {

    .nav-menu,
    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        padding: 24px;
        border-bottom: 1px solid var(--border-light);
        gap: 16px;
    }

    .nav-mobile-actions {
        display: block;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--border-light);
    }

    .hero-text h1 {
        font-size: 2rem;
        min-height: 90px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Disable expensive effects on mobile */
    .blob {
        display: none;
    }

    .glass-card,
    .header.scrolled {
        backdrop-filter: none !important;
        background: var(--bg-surface) !important;
    }
}

/* Fix for Select/Option Colors in Dark Mode */
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

select.form-input option {
    background-color: var(--bg-surface);
    color: var(--text-main);
    padding: 12px;
}

/* Custom Combo Box Styles (if used) */
.combo-wrap {
    position: relative;
    display: inline-block;
}

.combo-btn {
    width: 100%;
    min-width: 150px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.combo-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

.combo-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-top: 4px;
    padding: 4px;
    list-style: none;
    z-index: 100;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.combo-list.active {
    display: block;
}

.combo-list li {
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 4px;
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 0.9rem;
}

.combo-list li:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-main);
}

.combo-list li.selected {
    background: var(--primary);
    color: white;
}

/* Video Overlay Styles */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
    backdrop-filter: blur(5px);
}

.video-wrap {
    width: 90%;
    max-width: 1000px;
    position: relative;
    aspect-ratio: 16/9;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    transform: scale(0.9);
    animation: scaleIn 0.3s 0.1s forwards;
}

.video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    to {
        transform: scale(1);
    }
}

/* Responsive Dashboard Adjustments */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .dashboard-main {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 20px !important;
        padding-bottom: 100px !important;
        /* Bottom nav spacing */
    }

    .grid-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .glass-card {
        padding: 20px !important;
    }
}

@media (max-width: 768px) {
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
    }

    .table {
        min-width: 600px;
        /* Force scroll on small screens */
    }

    .stat-card {
        padding: 16px !important;
    }

    .stat-value {
        font-size: 1.25rem !important;
    }

    .mobile-bottom-nav {
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        z-index: 2000;
    }

    .nav-item span {
        font-size: 10px;
    }
}

/* =========================================================
   Homepage refinement — existing KO Helper design language
   Scoped to index.php so dashboard/auth pages stay untouched.
   ========================================================= */
.home-page {
    background-color: #0b0f19;
    background-image: radial-gradient(circle at 78% 8%, rgba(99, 102, 241, 0.12), transparent 28%);
    background-attachment: scroll;
}

.home-page .container {
    max-width: 1180px;
}

.home-page .container-wide {
    max-width: 1280px;
}

.home-page .header,
.home-page .header.scrolled {
    padding: 16px 0;
    background: rgba(11, 15, 25, 0.9);
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(14px);
}

.home-page .logo {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: -0.025em;
}

.home-page .logo img {
    border-radius: 8px;
}

.home-page .nav-menu {
    gap: 28px;
}

.home-page .nav-link {
    font-size: 0.875rem;
}

.home-page .nav-link::after {
    height: 1px;
}

.home-page .nav-toggle {
    padding: 8px;
    border: 0;
    background: transparent;
}

.home-page .btn {
    min-height: 44px;
    border-radius: 9px;
    font-weight: 600;
    box-shadow: none;
}

.home-page .btn-primary {
    background: #6366f1;
    border-color: #6366f1;
}

.home-page .btn-primary:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    box-shadow: none;
    transform: translateY(-1px);
}

.home-page .btn-secondary,
.home-page .btn-outline {
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.1);
}

.home-page .btn-secondary:hover,
.home-page .btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.home-page .hero {
    min-height: 760px;
    padding-top: 150px;
    padding-bottom: 88px;
    border-bottom: 1px solid var(--border-light);
}

.home-page .hero-content {
    grid-template-columns: minmax(0, 0.94fr) minmax(480px, 1.06fr);
    gap: 72px;
}

.home-page .hero-badge {
    padding: 0;
    margin-bottom: 26px;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.home-page .badge-dot {
    width: 7px;
    height: 7px;
    background: var(--primary);
    box-shadow: none;
}

.home-page .badge-text {
    color: #a5b4fc;
    font-size: 0.7rem;
    letter-spacing: 0.09em;
}

.home-page .hero-title {
    max-width: 650px;
    margin-bottom: 26px;
    font-size: clamp(2.85rem, 4.2vw, 3.9rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.home-page .hero-title .text-gradient-primary {
    background: linear-gradient(100deg, #a5b4fc 0%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.home-page .hero-title .hero-typing-line {
    min-height: 2.08em;
}

.home-page .hero-title .hero-typing-line .typing-text {
    display: inline;
}

.home-page .hero-title .hero-typing-line .typing-cursor {
    display: inline-block;
    height: 0.82em;
    margin-left: 8px;
}

.home-page .hero-text > p {
    max-width: 560px;
    margin-bottom: 30px;
    color: #a3aec0;
    font-size: 1.05rem;
    line-height: 1.7;
}

.home-page .hero-actions {
    display: flex;
    gap: 12px;
}

.home-page .hero-actions .btn {
    min-width: 160px;
    justify-content: center;
}

.home-page .hero-actions .btn i {
    font-size: 0.8rem;
}

.home-page .hero-support {
    position: relative;
}

.home-page .hero-support-toggle {
    width: 100%;
}

.home-page .hero-support-chevron {
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.home-page .hero-support.open .hero-support-chevron {
    transform: rotate(180deg);
}

.home-page .hero-support-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 30;
    width: min(330px, calc(100vw - 48px));
    padding: 8px;
    background: #101725;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 24px 55px -24px rgba(0, 0, 0, 0.95);
}

.home-page .hero-support-menu[hidden] {
    display: none;
}

.home-page .hero-support-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px;
    border-radius: 9px;
}

.home-page .hero-support-menu a:hover,
.home-page .hero-support-menu a:focus-visible {
    background: rgba(255, 255, 255, 0.055);
    outline: none;
}

.home-page .hero-support-menu a > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-page .hero-support-menu strong {
    color: #e2e8f0;
    font-size: 0.84rem;
    font-weight: 600;
}

.home-page .hero-support-menu small {
    color: #7f8a9c;
    font-size: 0.72rem;
}

.home-page .hero-support-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 1rem;
}

.home-page .hero-support-icon--whatsapp {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.1);
}

.home-page .hero-support-icon--instagram {
    color: #f0abfc;
    background: rgba(217, 70, 239, 0.1);
}

.home-page .hero-support-icon--discord {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.12);
}

.home-page .hero-stats {
    max-width: 560px;
    gap: 0;
    margin-top: 46px;
    padding-top: 24px;
}

.home-page .stat-item {
    flex: 1;
    padding-right: 20px;
}

.home-page .stat-item + .stat-item {
    padding-left: 24px;
}

.home-page .stat-item:not(:last-child)::after {
    right: 0;
}

.home-page .stat-item h4 {
    color: var(--text-main);
    font-size: 1.55rem;
}

.home-page .stat-item p {
    color: #64748b;
    font-size: 0.68rem;
}

.home-page .window-mockup {
    background: #0d1422;
    border-color: rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    box-shadow: 0 32px 70px -24px rgba(0, 0, 0, 0.8);
}

.home-page .window-header {
    min-height: 52px;
    padding: 14px 18px;
    background: #101725;
    border-color: var(--border-light);
}

.home-page .window-dots {
    display: none;
}

.home-page .window-title {
    position: static;
    transform: none;
    color: #cbd5e1;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
}

.home-page .window-header::after {
    content: 'GÜNCEL';
    margin-left: auto;
    color: #34d399;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.home-page .window-footer {
    background: #101725;
}

.home-page .window-footer-text {
    color: #64748b;
}

.home-page .section {
    padding: 110px 0;
}

.home-page .section-header {
    max-width: 760px;
    margin: 0 0 54px;
    text-align: left;
}

.home-page .section-label {
    display: block;
    margin-bottom: 14px;
    color: #a5b4fc;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-page .section-title {
    margin-bottom: 16px;
    color: var(--text-main);
    background: none;
    -webkit-text-fill-color: currentColor;
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.home-page .section-subtitle {
    max-width: 650px;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.65;
}

.home-page .how-it-works-section {
    background: #0b101b;
    border-bottom: 1px solid var(--border-light);
    font-family: var(--font-body);
}

.home-page .setup-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
}

.home-page .setup-step {
    min-width: 0;
    padding: 26px;
    background: rgba(18, 24, 38, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 14px;
    transition: var(--transition);
}

.home-page .setup-step:hover {
    background: #151d2d;
    border-color: rgba(129, 140, 248, 0.34);
    transform: translateY(-2px);
}

.home-page .setup-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.home-page .setup-step-number {
    color: #818cf8;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.home-page .setup-step-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.18);
    border-radius: 10px;
    font-size: 0.95rem;
}

.home-page .setup-step h3 {
    min-height: 2.5em;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.home-page .setup-step p {
    color: #8f9bad;
    font-size: 0.86rem;
    line-height: 1.68;
}

.home-page .setup-step p strong {
    color: #d8dee9;
    font-weight: 600;
}

.home-page #features {
    background: rgba(8, 12, 20, 0.45);
    border-bottom: 1px solid var(--border-light);
}

.home-page #features .features-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 16px;
}

.home-page #features .feature-card {
    padding: 26px;
    background: rgba(18, 24, 38, 0.72);
    border-color: rgba(255, 255, 255, 0.065);
    border-radius: 14px;
    box-shadow: none;
    backdrop-filter: none;
}

.home-page #features .feature-card::before {
    display: none;
}

.home-page #features .feature-card:hover {
    background: #151d2d;
    border-color: rgba(129, 140, 248, 0.34);
    box-shadow: none;
    transform: translateY(-2px);
}

.home-page #features .feature-card--compact {
    grid-column: span 4;
    min-height: 210px;
}

.home-page #features .feature-card--detailed {
    grid-column: span 6;
}

.home-page #features .feature-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 22px;
    border: 1px solid rgba(129, 140, 248, 0.18);
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    font-size: 1rem;
}

.home-page #features .feature-card:hover .feature-icon {
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.16);
    transform: none;
}

.home-page #features .feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.08rem;
    letter-spacing: -0.02em;
}

.home-page #features .feature-card p,
.home-page #features .feature-card li {
    color: #8f9bad !important;
    font-size: 0.86rem !important;
    line-height: 1.6;
}

.home-page #features .feature-card ul {
    gap: 7px !important;
    margin-top: 6px;
}

.home-page #features .feature-card li strong {
    color: #d8dee9;
    font-weight: 600;
}

.home-page #features .feature-media-inline {
    margin: 2px 0 20px;
    border-color: rgba(255, 255, 255, 0.07);
    border-radius: 9px;
}

.home-page .pricing-section {
    background: #0b101b;
    border-bottom: 1px solid var(--border-light);
}

.home-page .pricing-card,
.home-page .pricing-card.premium {
    max-width: 900px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 58px;
    padding: 44px;
    text-align: left;
    background: #121826;
    border-color: rgba(129, 140, 248, 0.25);
    border-radius: 16px;
    box-shadow: 0 28px 70px -35px rgba(0, 0, 0, 0.9);
}

.home-page .pricing-card.premium:hover {
    transform: none;
    box-shadow: 0 28px 70px -35px rgba(0, 0, 0, 0.9);
}

.home-page .pricing-eyebrow {
    display: block;
    margin-bottom: 24px;
    color: #a5b4fc;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-page .pricing-summary h3 {
    margin-bottom: 20px;
    font-size: 1.35rem;
}

.home-page .price-line {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 18px;
}

.home-page .price-amount {
    margin: 0;
    font-size: 4.8rem;
    letter-spacing: -0.07em;
}

.home-page .price-currency {
    padding-bottom: 10px;
    color: #94a3b8;
    font-size: 1rem;
}

.home-page .pricing-summary p {
    color: #7f8a9c;
    font-size: 0.9rem;
}

.home-page .pricing-body {
    padding-left: 46px;
    border-left: 1px solid var(--border-light);
}

.home-page .pricing-features {
    margin-bottom: 24px;
}

.home-page .pricing-feature {
    min-height: 42px;
    margin: 0;
    border-bottom: 1px solid var(--border-light);
    color: #cbd5e1;
    font-size: 0.9rem;
}

.home-page .pricing-feature i {
    width: 18px;
    color: #818cf8;
    font-size: 0.78rem;
}

.home-page .pricing-feature--discount {
    margin: 0 0 16px;
    padding: 13px 15px;
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.09);
    border: 1px solid rgba(129, 140, 248, 0.18);
    border-radius: 9px;
}

.home-page .pricing-cta {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.home-page #contact {
    background: #0b0f19;
}

.home-page #contact .features-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px;
}

.home-page #contact .feature-card {
    padding: 26px;
    background: rgba(18, 24, 38, 0.68);
    border-color: var(--border-light);
    box-shadow: none;
    backdrop-filter: none;
}

.home-page #contact .feature-card::before {
    display: none;
}

.home-page #contact .feature-card:hover {
    transform: translateY(-2px);
    background: #151d2d;
    border-color: rgba(129, 140, 248, 0.3);
    box-shadow: none;
}

.home-page #contact .feature-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.home-page .footer {
    padding: 68px 0 32px;
    background: #080b12;
}

.home-page .footer-grid {
    grid-template-columns: minmax(0, 2fr) minmax(150px, 0.8fr) minmax(230px, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.home-page .footer-socials {
    display: flex;
    gap: 20px;
}

.home-page .footer-brand p,
.home-page .footer-links a {
    color: #7f8a9c;
    font-size: 0.86rem;
}

.home-page .footer-links a:hover {
    padding-left: 0;
    color: #a5b4fc;
}

@media (max-width: 1024px) {
    .home-page .hero-content {
        grid-template-columns: 1fr;
        gap: 64px;
        text-align: left;
    }

    .home-page .hero-text h1 {
        max-width: 760px;
        min-height: 0;
        font-size: clamp(2.65rem, 6.5vw, 3.75rem);
    }

    .home-page .hero-text > p {
        margin-left: 0;
        margin-right: 0;
    }

    .home-page .hero-actions,
    .home-page .hero-stats {
        justify-content: flex-start;
    }

    .home-page #features .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .home-page .setup-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-page .footer-grid {
        grid-template-columns: 1.5fr 0.75fr 1fr;
    }

    .home-page #features .feature-card--compact,
    .home-page #features .feature-card--detailed {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .home-page .header,
    .home-page .header.scrolled {
        padding: 13px 0;
        background: #0b0f19 !important;
        backdrop-filter: none;
    }

    .home-page .hero {
        min-height: 0;
        padding-top: 116px;
        padding-bottom: 70px;
    }

    .home-page .hero-content {
        gap: 48px;
    }

    .home-page .hero-text h1 {
        min-height: 0;
        font-size: clamp(2.25rem, 9.5vw, 3rem);
    }

    .home-page .hero-title .hero-typing-line {
        min-height: 3.12em;
    }

    .home-page .hero-text > p {
        font-size: 0.98rem;
    }

    .home-page .hero-actions {
        flex-direction: column;
    }

    .home-page .hero-actions .btn {
        width: 100%;
    }

    .home-page .hero-stats {
        margin-top: 38px;
    }

    .home-page .stat-item + .stat-item {
        padding-left: 14px;
    }

    .home-page .stat-item h4 {
        font-size: 1.15rem;
    }

    .home-page .stat-item p {
        font-size: 0.58rem;
    }

    .home-page .window-title {
        max-width: 70%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .home-page .section {
        padding: 80px 0;
    }

    .home-page .section-header {
        margin-bottom: 38px;
    }

    .home-page .section-title {
        font-size: 2.3rem;
    }

    .home-page #features .features-grid,
    .home-page #contact .features-grid {
        grid-template-columns: 1fr !important;
    }

    .home-page .setup-steps {
        grid-template-columns: 1fr;
    }

    .home-page .setup-step {
        padding: 22px;
    }

    .home-page .setup-step h3 {
        min-height: 0;
    }

    .home-page .footer-grid {
        grid-template-columns: 1fr;
    }

    .home-page #features .feature-card {
        min-height: 0;
        padding: 22px;
    }

    .home-page .pricing-card,
    .home-page .pricing-card.premium {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 28px 22px;
    }

    .home-page .pricing-body {
        padding: 30px 0 0;
        border-top: 1px solid var(--border-light);
        border-left: 0;
    }

    .home-page .price-amount {
        font-size: 4.2rem;
    }
}
/* Checkout invoice identity fields */
.invoice-type-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.invoice-type-option {
    position: relative;
    cursor: pointer;
}

.invoice-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.invoice-type-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 11px 13px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-muted);
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.invoice-type-card i {
    width: 20px;
    text-align: center;
    color: var(--primary);
}

.invoice-type-card strong,
.invoice-type-card small {
    display: block;
}

.invoice-type-card strong {
    color: var(--text-main);
    font-size: 0.92rem;
}

.invoice-type-card small {
    margin-top: 2px;
    font-size: 0.76rem;
}

.invoice-type-option input:checked + .invoice-type-card {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.12);
    color: var(--text-main);
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.18);
}

.invoice-type-option input:focus-visible + .invoice-type-card {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.invoice-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.invoice-section-label {
    margin: 2px 0 10px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Dashboard checkout: desktop fields share one compact, non-scrolling surface. */
body.invoice-checkout-open {
    overflow: hidden;
}

.invoice-checkout-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(3, 7, 18, 0.76);
    backdrop-filter: blur(5px);
}

.invoice-checkout-dialog {
    width: min(920px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 18px 20px 20px;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    background: var(--bg-surface);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
}

.invoice-checkout-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.invoice-checkout-header h3 {
    margin: 0 0 3px;
    font-size: 1.18rem;
}

.invoice-checkout-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.invoice-checkout-close {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.invoice-checkout-close:hover,
.invoice-checkout-close:focus-visible {
    border-color: var(--primary);
    color: var(--text-main);
    outline: none;
}

.invoice-checkout-type {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.invoice-checkout-type > .invoice-section-label {
    margin: 0;
}

.invoice-checkout-dialog .invoice-type-switch {
    max-width: 520px;
}

.invoice-checkout-dialog .invoice-type-card {
    min-height: 44px;
    padding: 7px 11px;
}

.invoice-checkout-dialog .invoice-type-card strong {
    font-size: 0.85rem;
}

.invoice-checkout-dialog .invoice-type-card small {
    display: inline;
    margin: 0 0 0 6px;
    font-size: 0.72rem;
}

.invoice-checkout-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px;
}

.invoice-checkout-section {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
}

.invoice-checkout-address {
    display: flex;
    flex-direction: column;
}

.invoice-checkout-section > .invoice-section-label {
    margin: 0 0 10px;
    color: var(--primary-light, #a5b4fc);
}

.invoice-checkout-dialog .form-group {
    margin-bottom: 10px;
}

.invoice-checkout-dialog .form-label {
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.invoice-checkout-dialog .form-label span {
    color: #f87171;
}

.invoice-checkout-dialog .form-input {
    min-height: 39px;
    padding: 8px 11px;
    border-radius: 8px;
    font-size: 0.87rem;
}

.invoice-checkout-dialog textarea.form-input {
    min-height: 86px;
    resize: vertical;
    line-height: 1.4;
}

.invoice-checkout-dialog .invoice-form-grid {
    gap: 10px;
}

.invoice-phone-row {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 8px;
}

.invoice-field-help {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.invoice-postal-field {
    max-width: calc(50% - 5px);
}

.invoice-address-field {
    margin-bottom: 8px !important;
}

.invoice-checkout-error {
    display: none;
    margin: 0 0 8px;
    padding: 8px 10px;
    border: 1px solid rgba(239, 68, 68, 0.24);
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.09);
    color: #f87171;
    font-size: 0.78rem;
}

.invoice-checkout-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 6px;
}

.invoice-checkout-actions > span {
    max-width: 210px;
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.35;
}

.invoice-checkout-actions > span i {
    margin-right: 4px;
    color: var(--primary);
}

.invoice-checkout-actions .btn {
    flex: 0 0 auto;
    min-height: 39px;
    padding: 9px 15px;
}

@media (min-width: 741px) and (min-height: 620px) {
    .invoice-checkout-dialog {
        overflow: hidden;
    }
}

@media (max-width: 560px) {
    .invoice-type-switch,
    .invoice-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 740px) {
    .invoice-checkout-overlay {
        align-items: flex-start;
        padding: 10px;
    }

    .invoice-checkout-dialog {
        max-height: calc(100vh - 20px);
        padding: 15px;
    }

    .invoice-checkout-header p {
        max-width: 34ch;
    }

    .invoice-checkout-type,
    .invoice-checkout-columns {
        grid-template-columns: 1fr;
    }

    .invoice-checkout-type {
        gap: 7px;
    }

    .invoice-checkout-dialog .invoice-type-switch,
    .invoice-postal-field {
        max-width: none;
    }

    .invoice-checkout-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .invoice-checkout-actions > span {
        max-width: none;
    }

    .invoice-checkout-actions .btn {
        width: 100%;
    }
}

/* Invoice operations: compact queue layout using the existing dashboard palette. */
.invoice-admin-page .invoice-admin-shell {
    display: block;
    max-width: 1480px;
    margin: 0 auto;
    padding: 28px;
}

.invoice-admin-page .dashboard-main {
    margin: 0;
}

.invoice-admin-header {
    align-items: flex-end;
}

.invoice-kicker,
.invoice-section-index {
    display: block;
    margin-bottom: 7px;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.invoice-status-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.58);
}

.invoice-status-cell {
    display: flex;
    min-height: 82px;
    padding: 17px 20px;
    border-right: 1px solid var(--border-light);
    flex-direction: column;
    justify-content: space-between;
}

.invoice-status-cell:last-child {
    border-right: 0;
}

.invoice-status-cell span {
    color: var(--text-muted);
    font-size: 0.77rem;
    font-weight: 700;
}

.invoice-status-cell strong {
    color: var(--text-main);
    font-size: 1.55rem;
    line-height: 1;
}

.invoice-status-cell--attention strong {
    color: #f59e0b;
}

.invoice-status-cell--done strong {
    color: #22c55e;
}

.invoice-connection-card,
.invoice-card-title-row,
.invoice-section-head,
.invoice-sms-form {
    display: flex;
    align-items: center;
}

.invoice-connection-card {
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.invoice-card-title-row {
    gap: 12px;
    margin-bottom: 8px;
}

.invoice-card-title-row h2,
.invoice-section-head h2,
.invoice-sms-card h2 {
    margin: 0;
    font-size: 1.12rem;
}

.invoice-connection-card p,
.invoice-section-head p,
.invoice-sms-card p {
    margin: 5px 0 0;
    color: var(--text-muted);
}

.invoice-muted {
    font-size: 0.8rem;
}

.invoice-ip-box {
    display: flex;
    min-width: 245px;
    padding: 13px 15px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.12);
    flex-direction: column;
    gap: 5px;
}

.invoice-ip-box span,
.invoice-ip-box small {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.invoice-ip-box strong {
    color: var(--secondary);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 1rem;
}

.invoice-sms-card {
    margin-bottom: 20px;
    border-color: var(--primary);
}

.invoice-sms-card h2 i {
    margin-right: 7px;
    color: var(--primary);
}

.invoice-sms-form {
    gap: 10px;
    align-items: flex-end;
    margin-top: 14px;
}

.invoice-sms-form .form-group {
    min-width: 220px;
    margin: 0;
}

.invoice-work-queue {
    margin-bottom: 20px;
    padding: 0;
    overflow: hidden;
}

.invoice-section-head {
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--border-light);
}

.invoice-count-pill {
    padding: 6px 10px;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.76rem;
    white-space: nowrap;
}

.invoice-table-wrap {
    overflow-x: auto;
}

.invoice-table {
    width: 100%;
    min-width: 1060px;
    border-collapse: collapse;
}

.invoice-table th {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-align: left;
    text-transform: uppercase;
}

.invoice-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
    font-size: 0.86rem;
    vertical-align: middle;
}

.invoice-table tbody tr:last-child td {
    border-bottom: 0;
}

.invoice-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.035);
}

.invoice-table td strong,
.invoice-table td small {
    display: block;
}

.invoice-table td small {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.73rem;
}

.invoice-table .invoice-error-text {
    max-width: 290px;
    color: #f87171;
}

.invoice-check-col {
    width: 42px;
    text-align: center !important;
}

.invoice-check-col input {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
}

.invoice-state {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.invoice-state--ready {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.09);
    color: #4ade80;
}

.invoice-state--warning {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.09);
    color: #fbbf24;
}

.invoice-state--draft {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
}

.invoice-state--signed {
    border-color: rgba(14, 165, 233, 0.38);
    background: rgba(14, 165, 233, 0.09);
    color: #7dd3fc;
}

.invoice-state--corporate {
    margin-top: 6px;
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.1);
    color: #c4b5fd;
}

.invoice-row-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.invoice-row-actions form {
    margin: 0;
}

.invoice-corporate-note {
    grid-column: 1 / -1;
    display: flex;
    padding: 11px 13px;
    border: 1px solid rgba(168, 85, 247, 0.32);
    border-radius: 9px;
    background: rgba(168, 85, 247, 0.08);
    flex-direction: column;
    gap: 3px;
}

.invoice-corporate-note strong {
    color: #c4b5fd;
    font-size: 0.82rem;
}

.invoice-corporate-note span {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.invoice-action-btn {
    padding: 8px 11px;
    white-space: nowrap;
}

.invoice-empty {
    padding: 28px !important;
    color: var(--text-muted) !important;
    text-align: center;
}

@media (max-width: 900px) {
    .invoice-status-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .invoice-status-cell:nth-child(2) {
        border-right: 0;
    }

    .invoice-status-cell:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border-light);
    }

    .invoice-connection-card,
    .invoice-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .invoice-ip-box {
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .invoice-admin-page .invoice-admin-shell {
        padding: 16px;
    }

    .invoice-status-strip {
        grid-template-columns: 1fr;
    }

    .invoice-status-cell,
    .invoice-status-cell:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--border-light);
    }

    .invoice-status-cell:last-child {
        border-bottom: 0;
    }

    .invoice-sms-form {
        align-items: stretch;
        flex-direction: column;
    }

    .invoice-sms-form .form-group,
    .invoice-sms-form .btn {
        width: 100%;
    }
}
