/* ============================================================
   WhatsApp SaaS - OttoWeb Design System
   Clean, Modern, Data-Focused
   Author: OttoWeb
   ============================================================ */

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Gray Scale */
    --gray-50:  #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    /* Brand Colors - WhatsApp Green (used sparingly as accent) */
    --brand-50:  #ecfdf5;
    --brand-100: #d1fae5;
    --brand-500: #25D366;
    --brand-600: #128C7E;
    --brand-700: #075E54;

    /* Semantic Colors - Muted like Stripe */
    --success-50:  #f0fdf4;
    --success-500: #22c55e;
    --success-600: #16a34a;

    --error-50:    #fef2f2;
    --error-500:   #ef4444;
    --error-600:   #dc2626;

    --warning-50:  #fffbeb;
    --warning-500: #f59e0b;
    --warning-600: #d97706;

    --info-50:     #eff6ff;
    --info-500:    #3b82f6;
    --info-600:    #2563eb;

    /* Background & Surfaces */
    --bg-page:      #fafafa;           /* Main page background */
    --bg-surface:   #ffffff;           /* Card/panel background */
    --bg-elevated:  #ffffff;           /* Modal/dropdown background */
    --bg-muted:     var(--gray-50);    /* Subtle backgrounds */
    --bg-hover:     var(--gray-100);   /* Hover states */

    /* Borders */
    --border-color:       var(--gray-200);
    --border-color-hover: var(--gray-300);
    --border-color-focus: var(--brand-500);

    /* Text */
    --text-primary:   var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-tertiary:  var(--gray-500);
    --text-disabled:  var(--gray-400);
    --text-inverse:   #ffffff;
    --text-link:      var(--brand-600);

    /* Typography - Stripe uses Inter */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;

    /* Font Sizes */
    --text-xs:   0.75rem;    /* 12px */
    --text-sm:   0.875rem;   /* 14px */
    --text-base: 0.9375rem;  /* 15px - Stripe uses 15px as base */
    --text-lg:   1.125rem;   /* 18px */
    --text-xl:   1.25rem;    /* 20px */
    --text-2xl:  1.5rem;     /* 24px */
    --text-3xl:  1.875rem;   /* 30px */
    --text-4xl:  2.25rem;    /* 36px */

    /* Font Weights */
    --font-normal:  400;
    --font-medium:  500;
    --font-semibold: 600;
    --font-bold:    700;

    /* Line Heights */
    --leading-tight:  1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;

    /* Spacing System (4px base) */
    --space-1:  0.25rem;   /* 4px */
    --space-2:  0.5rem;    /* 8px */
    --space-3:  0.75rem;   /* 12px */
    --space-4:  1rem;      /* 16px */
    --space-5:  1.25rem;   /* 20px */
    --space-6:  1.5rem;    /* 24px */
    --space-8:  2rem;      /* 32px */
    --space-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */
    --space-20: 5rem;      /* 80px */

    /* Border Radius - Stripe uses subtle rounding */
    --radius-sm:   0.375rem;  /* 6px */
    --radius-base: 0.5rem;    /* 8px */
    --radius-lg:   0.75rem;   /* 12px */
    --radius-xl:   1rem;      /* 16px */
    --radius-full: 9999px;    /* Pills */

    /* Shadows - Stripe uses subtle shadows */
    --shadow-xs:  0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm:  0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md:  0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl:  0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Layout */
    --sidebar-width:     240px;
    --topbar-height:     64px;
    --content-max-width: 1280px;
}

/* ==================== BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background: var(--bg-page);
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
    margin: 0;
}

h1 { font-size: var(--text-4xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin: 0;
    color: var(--text-secondary);
}

a {
    color: var(--text-link);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--brand-700);
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    padding: 0.125rem 0.375rem;
    background: var(--gray-100);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

/* ==================== LAYOUT ==================== */
.app-container {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.app-topbar {
    height: var(--topbar-height);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.app-content {
    padding: var(--space-8);
    max-width: var(--content-max-width);
    margin: 0 auto;
}

/* ==================== CARDS ==================== */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--border-color);
    background: var(--bg-muted);
}

/* Metric Cards - Stripe style */
.metric-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all 0.2s ease;
}

.metric-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-sm);
}

.metric-label {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

.metric-value {
    font-size: var(--text-4xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.metric-change {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.metric-change.positive {
    color: var(--success-600);
}

.metric-change.negative {
    color: var(--error-600);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0 var(--space-4);
    height: 40px;
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    line-height: 1;
    border-radius: var(--radius-base);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
}

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

/* Primary Button - Brand color */
.btn-primary {
    background: var(--brand-500);
    color: white;
    border-color: var(--brand-500);
}

.btn-primary:hover:not(:disabled) {
    background: var(--brand-600);
    border-color: var(--brand-600);
}

/* Secondary Button - Outlined */
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: var(--border-color-hover);
}

/* Danger Button */
.btn-danger {
    background: var(--error-500);
    color: white;
    border-color: var(--error-500);
}

.btn-danger:hover:not(:disabled) {
    background: var(--error-600);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Button Sizes */
.btn-sm {
    height: 32px;
    padding: 0 var(--space-3);
    font-size: var(--text-sm);
}

.btn-lg {
    height: 48px;
    padding: 0 var(--space-6);
    font-size: var(--text-lg);
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-label.required::after {
    content: '*';
    color: var(--error-500);
    margin-left: var(--space-1);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0 var(--space-3);
    height: 40px;
    font-size: var(--text-base);
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-base);
    transition: all 0.15s ease;
}

.form-textarea {
    height: auto;
    padding: var(--space-3);
    min-height: 100px;
    resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--border-color-focus);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.form-input::placeholder {
    color: var(--text-disabled);
}

.form-hint {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-top: var(--space-2);
}

.form-error {
    display: block;
    font-size: var(--text-sm);
    color: var(--error-600);
    margin-top: var(--space-2);
}

/* ==================== BADGES ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 0.125rem var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    line-height: 1;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.badge-success {
    background: var(--success-50);
    color: var(--success-600);
}

.badge-error {
    background: var(--error-50);
    color: var(--error-600);
}

.badge-warning {
    background: var(--warning-50);
    color: var(--warning-600);
}

.badge-info {
    background: var(--info-50);
    color: var(--info-600);
}

.badge-gray {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* Badge with dot indicator */
.badge-dot::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ==================== TABLES ==================== */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.table thead {
    background: var(--bg-muted);
}

.table th {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.table td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.table tbody tr:hover {
    background: var(--bg-hover);
}

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

/* ==================== NAVIGATION ==================== */
.nav-menu {
    padding: var(--space-4);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    border-radius: var(--radius-base);
    transition: all 0.15s ease;
    cursor: pointer;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--brand-50);
    color: var(--brand-600);
}

.nav-item i {
    width: 20px;
    font-size: 1.25rem;
}

/* ==================== UTILITIES ==================== */
.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary  { color: var(--text-tertiary); }
.text-success   { color: var(--success-600); }
.text-error     { color: var(--error-600); }
.text-warning   { color: var(--warning-600); }

.bg-surface { background: var(--bg-surface); }
.bg-muted   { background: var(--bg-muted); }

.font-medium   { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold     { font-weight: var(--font-bold); }

.rounded-sm   { border-radius: var(--radius-sm); }
.rounded-base { border-radius: var(--radius-base); }
.rounded-lg   { border-radius: var(--radius-lg); }
.rounded-xl   { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-xs { box-shadow: var(--shadow-xs); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }

/* Spacing utilities */
.p-0 { padding: 0; }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Flexbox utilities */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }

/* Grid utilities */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* ==================== RESPONSIVE ==================== */

/* Tablet and below */
@media (max-width: 992px) {
    :root {
        --sidebar-width: 0;
    }

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

    .app-sidebar.open {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
    }

    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .app-content {
        padding: var(--space-4);
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    /* Table responsive */
    .table-container {
        margin: 0 calc(-1 * var(--space-4));
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .table th,
    .table td {
        padding: var(--space-3);
        font-size: var(--text-sm);
    }

    /* Metric cards stack nicely */
    .metric-value {
        font-size: var(--text-3xl);
    }

    /* Button full width on mobile */
    .btn-mobile-full {
        width: 100%;
        justify-content: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .app-content {
        padding: var(--space-3);
    }

    .metric-value {
        font-size: var(--text-2xl);
    }

    .card-header,
    .card-body,
    .card-footer {
        padding: var(--space-4);
    }
}
/* ============================================================
   WhatsApp SaaS - Component Styles
   Layout, Navigation, Forms, Cards, Modals, Utilities
   ============================================================ */

/* ==================== LAYOUT STYLES ==================== */

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-header {
    padding: var(--space-5) var(--space-4);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.sidebar-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    border-radius: var(--radius-base);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
}

.sidebar-logo-text {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-4);
}

.nav-section {
    margin-bottom: var(--space-6);
}

.nav-section-title {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 var(--space-3);
    margin-bottom: var(--space-2);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-base);
    transition: all 0.15s ease;
    margin-bottom: var(--space-1);
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--brand-50);
    color: var(--brand-600);
}

.nav-item i {
    width: 20px;
    font-size: 1.125rem;
    text-align: center;
}

.sidebar-footer {
    padding: var(--space-4);
    border-top: 1px solid var(--border-color);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-base);
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
}

.user-menu:hover {
    background: var(--bg-hover);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
}

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

.user-name {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-page);
}

/* Topbar */
.topbar {
    height: var(--topbar-height);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left h1 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.topbar-subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: var(--space-1) 0 0 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Content Area */
.content {
    padding: var(--space-6);
    max-width: var(--content-max-width);
}

/* ==================== BUTTON STYLES ==================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0 var(--space-4);
    height: 40px;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border-radius: var(--radius-base);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

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

/* Primary Button */
.btn-primary {
    background: var(--brand-500);
    color: white;
    border-color: var(--brand-500);
}

.btn-primary:hover:not(:disabled) {
    background: var(--brand-600);
    border-color: var(--brand-600);
}

/* Secondary Button */
.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: var(--border-color-hover);
}

/* Danger Button */
.btn-danger {
    background: var(--error-500);
    color: white;
    border-color: var(--error-500);
}

.btn-danger:hover:not(:disabled) {
    background: var(--error-600);
    border-color: var(--error-600);
}

/* Success Button */
.btn-success {
    background: var(--success-500);
    color: white;
    border-color: var(--success-500);
}

.btn-success:hover:not(:disabled) {
    background: var(--success-600);
    border-color: var(--success-600);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
}

.btn-ghost:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Button Sizes */
.btn-sm {
    height: 32px;
    padding: 0 var(--space-3);
    font-size: var(--text-xs);
}

.btn-lg {
    height: 48px;
    padding: 0 var(--space-6);
    font-size: var(--text-base);
}

/* Icon-only buttons */
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
}

.btn-icon.btn-sm {
    width: 32px;
    height: 32px;
}

/* Outline Buttons */
.btn-outline-primary {
    background: transparent;
    color: var(--brand-500);
    border: 1px solid var(--brand-500);
}

.btn-outline-primary:hover:not(:disabled) {
    background: var(--brand-50);
    color: var(--brand-600);
}

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

.btn-outline-secondary:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-outline-danger {
    background: transparent;
    color: var(--error-500);
    border: 1px solid var(--error-500);
}

.btn-outline-danger:hover:not(:disabled) {
    background: var(--error-50);
    color: var(--error-600);
}

.btn-outline-success {
    background: transparent;
    color: var(--success-500);
    border: 1px solid var(--success-500);
}

.btn-outline-success:hover:not(:disabled) {
    background: var(--success-50);
    color: var(--success-600);
}

/* ==================== FORM STYLES ==================== */

.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0 var(--space-3);
    height: 40px;
    font-size: var(--text-sm);
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-base);
    transition: all 0.15s ease;
}

.form-textarea {
    height: auto;
    padding: var(--space-3);
    min-height: 100px;
    resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-disabled);
}

.form-hint {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-top: var(--space-1);
}

.form-error {
    display: block;
    font-size: var(--text-xs);
    color: var(--error-600);
    margin-top: var(--space-1);
}

.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--brand-500);
}

/* ==================== CARD STYLES ==================== */

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-header {
    padding: var(--space-5);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: 0;
}

.card-subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-1);
}

.card-body {
    padding: var(--space-5);
}

.card-footer {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--border-color);
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
}

/* ==================== MODAL STYLES ==================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    padding: var(--space-4);
}

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

.modal-content {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95);
    transition: transform 0.2s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-header {
    margin-bottom: var(--space-5);
}

.modal-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: 0;
}

.modal-body {
    margin-bottom: var(--space-5);
}

.modal-footer {
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
}

/* ==================== EMPTY STATE ==================== */

.empty-state {
    padding: var(--space-12) var(--space-6);
    text-align: center;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-disabled);
    margin-bottom: var(--space-5);
}

.empty-state-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.empty-state-desc {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== BADGE STYLES ==================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 0.25rem var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    line-height: 1;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.badge-success {
    background: var(--success-50);
    color: var(--success-600);
}

.badge-error {
    background: var(--error-50);
    color: var(--error-600);
}

.badge-warning {
    background: var(--warning-50);
    color: var(--warning-600);
}

.badge-info {
    background: var(--info-50);
    color: var(--info-600);
}

.badge-gray {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* ==================== TOAST NOTIFICATIONS ==================== */

.toast-container {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.toast {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 300px;
    max-width: 450px;
    animation: toastSlideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid var(--success-500);
}

.toast.error {
    border-left: 4px solid var(--error-500);
}

.toast.warning {
    border-left: 4px solid var(--warning-500);
}

.toast.info {
    border-left: 4px solid var(--info-500);
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.toast.success .toast-icon { color: var(--success-500); }
.toast.error .toast-icon { color: var(--error-500); }
.toast.warning .toast-icon { color: var(--warning-500); }
.toast.info .toast-icon { color: var(--info-500); }

.toast-message {
    flex: 1;
    font-size: var(--text-sm);
    color: var(--text-primary);
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: var(--space-1);
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.toast-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ==================== SPINNER ==================== */

.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-top-color: var(--brand-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

.spinner-sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.spinner-lg {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

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

/* ==================== INSTANCE SELECTOR ==================== */

.instance-selector {
    position: relative;
    margin-right: var(--space-3);
}

.instance-selector-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-base);
    cursor: pointer;
    transition: all 0.15s ease;
    min-width: 180px;
}

.instance-selector-btn:hover {
    border-color: var(--border-color-hover);
    background: var(--bg-hover);
}

.instance-selector-info {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex: 1;
}

.instance-selector-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.instance-selector-status.connected {
    background: var(--success-500);
}

.instance-selector-status.qr_pending {
    background: var(--warning-500);
}

.instance-selector-status.disconnected {
    background: var(--gray-400);
}

.instance-selector-name {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
}

.instance-selector-phone {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

.instance-selector-btn i {
    color: var(--text-tertiary);
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.instance-selector.open .instance-selector-btn i {
    transform: rotate(180deg);
}

/* Instance Dropdown */
.instance-dropdown {
    position: absolute;
    top: calc(100% + var(--space-1));
    right: 0;
    min-width: 240px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 100;
    overflow: hidden;
}

.instance-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.instance-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.instance-dropdown-item:hover {
    background: var(--bg-hover);
}

.instance-dropdown-item.active {
    background: var(--brand-50);
}

.instance-dropdown-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.instance-dropdown-name {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

.instance-dropdown-phone {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

.instance-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: var(--space-2) 0;
}

/* ==================== ALERT STYLES ==================== */

.alert {
    padding: var(--space-4);
    border-radius: var(--radius-base);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.alert-success {
    background: var(--success-50);
    color: var(--success-600);
    border: 1px solid var(--success-500);
}

.alert-error {
    background: var(--error-50);
    color: var(--error-600);
    border: 1px solid var(--error-500);
}

.alert-warning {
    background: var(--warning-50);
    color: var(--warning-600);
    border: 1px solid var(--warning-500);
}

.alert-info {
    background: var(--info-50);
    color: var(--info-600);
    border: 1px solid var(--info-500);
}

.alert a {
    color: inherit;
    text-decoration: underline;
    font-weight: var(--font-medium);
}

/* ==================== UTILITY CLASSES ==================== */

/* Text utilities */
.text-muted { color: var(--text-tertiary); }
.text-primary-color { color: var(--text-primary); }
.text-secondary-color { color: var(--text-secondary); }
.text-success { color: var(--success-500); }
.text-danger { color: var(--error-500); }
.text-warning { color: var(--warning-600); }

/* Spacing utilities */
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.me-1 { margin-right: var(--space-1); }
.me-2 { margin-right: var(--space-2); }
.me-3 { margin-right: var(--space-3); }

/* Flex utilities */
.d-flex { display: flex; }
.d-none { display: none; }
.d-block { display: block; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }

/* Width utilities */
.w-100 { width: 100%; }
.w-auto { width: auto; }

/* ==================== MOBILE MENU TOGGLE ==================== */

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: var(--radius-base);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.15s ease;
    margin-right: var(--space-3);
}

.mobile-menu-toggle:hover {
    background: var(--bg-hover);
}

/* Mobile overlay when sidebar is open */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
}

/* Close button for mobile sidebar */
.sidebar-close {
    display: none;
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: var(--radius-base);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    z-index: 10;
}

.sidebar-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-xl);
    }

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

    .sidebar-overlay {
        display: block;
    }

    .sidebar-close {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-content {
        margin-left: 0;
    }

    .topbar {
        padding: 0 var(--space-4);
    }

    .topbar-left h1 {
        font-size: var(--text-lg);
    }

    .content {
        padding: var(--space-4);
    }

    .instance-selector {
        display: none;
    }
}

@media (max-width: 768px) {
    .topbar {
        flex-wrap: wrap;
        height: auto;
        min-height: var(--topbar-height);
        padding: var(--space-3) var(--space-4);
        gap: var(--space-3);
    }

    .topbar-left {
        flex: 1;
        min-width: 0;
    }

    .topbar-left h1 {
        font-size: var(--text-base);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .topbar-right {
        flex-shrink: 0;
    }

    .content {
        padding: var(--space-3);
    }

    .toast {
        min-width: auto;
        max-width: calc(100vw - var(--space-8));
    }

    /* Modal mobile */
    .modal-content {
        margin: var(--space-4);
        max-height: calc(100vh - var(--space-8));
    }

    /* Card adjustments */
    .card-header {
        padding: var(--space-4);
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    .card-body {
        padding: var(--space-4);
    }

    .card-footer {
        padding: var(--space-3) var(--space-4);
        flex-wrap: wrap;
    }

    /* Button adjustments */
    .btn {
        padding: 0 var(--space-3);
    }

    .btn-lg {
        height: 44px;
        padding: 0 var(--space-4);
    }
}

@media (max-width: 480px) {
    .topbar-left h1 {
        font-size: var(--text-sm);
    }

    .content {
        padding: var(--space-2);
    }

    .btn-sm {
        font-size: var(--text-xs);
        padding: 0 var(--space-2);
        height: 28px;
    }

    /* Hide button text, show only icon */
    .btn-mobile-icon-only span {
        display: none;
    }

    .btn-mobile-icon-only {
        width: 40px;
        padding: 0;
    }
}

/* ============================================================
   LANDING PAGE STYLES
   ============================================================ */

/* ==================== NAVBAR ==================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: var(--font-semibold);
    font-size: var(--text-lg);
    color: var(--text-primary);
    text-decoration: none;
}

.navbar-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    border-radius: var(--radius-base);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.navbar-link {
    padding: var(--space-2) var(--space-3);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-decoration: none;
    border-radius: var(--radius-base);
    transition: all 0.15s ease;
}

.navbar-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

/* ==================== HERO ==================== */
.hero {
    padding: var(--space-20) var(--space-6) var(--space-16);
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.hero-content {
    max-width: 540px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--brand-50);
    color: var(--brand-600);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.hero-title {
    font-size: 3rem;
    font-weight: var(--font-semibold);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.hero-subtitle {
    font-size: var(--text-xl);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.hero-stats {
    display: flex;
    gap: var(--space-8);
}

.hero-stat-value {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.hero-preview {
    position: relative;
}

.preview-window {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    background: var(--gray-100);
    border-bottom: 1px solid var(--border-color);
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.preview-body {
    padding: var(--space-6);
    background: var(--bg-page);
}

/* ==================== SECTIONS ==================== */
.section {
    padding: var(--space-16) var(--space-6);
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-12);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--gray-100);
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-semibold);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-lg);
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ==================== FEATURES ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.feature-card {
    padding: var(--space-8);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.feature-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--brand-50);
    color: var(--brand-600);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
}

.feature-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.feature-desc {
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ==================== CODE EXAMPLE ==================== */
.code-section {
    background: var(--gray-900);
    color: white;
}

.code-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-12);
    align-items: center;
}

.code-example {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-comment { color: #6b7280; }
.code-method { color: #60a5fa; }
.code-string { color: #34d399; }
.code-property { color: #f472b6; }
.code-value { color: #a78bfa; }

/* ==================== PRICING ==================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-12);
}

.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all 0.2s ease;
}

.pricing-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--brand-500);
    border-width: 2px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: var(--space-6);
    padding: var(--space-1) var(--space-3);
    background: var(--brand-500);
    color: white;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}

.pricing-name {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.pricing-price {
    font-size: var(--text-4xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.pricing-price small {
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    color: var(--text-tertiary);
}

.pricing-features {
    list-style: none;
    margin: var(--space-6) 0;
    padding: 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.pricing-features li i {
    color: var(--brand-500);
    font-size: 1rem;
}

/* ==================== CTA ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
    color: white;
}

.cta-container {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-semibold);
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

.cta-subtitle {
    font-size: var(--text-lg);
    opacity: 0.9;
    margin-bottom: var(--space-8);
}

/* ==================== LANDING FOOTER ==================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--space-12) var(--space-6);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: var(--font-semibold);
    font-size: var(--text-lg);
    color: white;
    text-decoration: none;
    margin-bottom: var(--space-6);
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    border-radius: var(--radius-base);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
}

.footer-text {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

/* ==================== MOBILE MENU (LANDING) ==================== */
.navbar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: var(--radius-base);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.navbar-toggle:hover {
    background: var(--bg-hover);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 99;
    padding: var(--space-6);
    flex-direction: column;
    gap: var(--space-4);
    animation: mobileMenuSlideDown 0.3s ease;
}

.mobile-menu.show {
    display: flex;
}

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

.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: var(--space-4);
    color: var(--text-primary);
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    text-decoration: none;
    border-radius: var(--radius-base);
    transition: background 0.15s ease;
}

.mobile-menu-link:hover {
    background: var(--bg-hover);
}

.mobile-menu .btn {
    width: 100%;
    justify-content: center;
    height: 48px;
}

/* ==================== LANDING PAGE RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero-container,
    .code-container {
        grid-template-columns: 1fr;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-preview {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-nav {
        display: none;
    }

    .navbar-container {
        padding: 0 var(--space-4);
    }

    .hero {
        padding: var(--space-10) var(--space-4) var(--space-12);
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: var(--text-base);
    }

    .hero-badge {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-3);
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: var(--space-4);
        flex-wrap: wrap;
    }

    .hero-stat-value {
        font-size: var(--text-xl);
    }

    .section {
        padding: var(--space-10) var(--space-4);
    }

    .section-title {
        font-size: var(--text-2xl);
    }

    .section-subtitle {
        font-size: var(--text-base);
    }

    .feature-card,
    .pricing-card {
        padding: var(--space-6);
    }

    .pricing-price {
        font-size: var(--text-3xl);
    }

    .code-example {
        font-size: 0.75rem;
        padding: var(--space-4);
    }

    .cta-title {
        font-size: var(--text-2xl);
    }

    .cta-subtitle {
        font-size: var(--text-base);
    }

    .footer {
        padding: var(--space-8) var(--space-4);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-stats {
        justify-content: space-between;
    }

    .section-title {
        font-size: var(--text-xl);
    }

    .feature-title {
        font-size: var(--text-base);
    }

    .feature-desc {
        font-size: var(--text-sm);
    }
}
