/* AutoBuyPilot - Product Monitor Dark Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #0a0a0e;
    --bg-secondary: #111114;
    --bg-tertiary: #17171c;
    --bg-hover: #1e1e24;
    --text-primary: #e0e0e4;
    --text-secondary: #727278;
    --text-muted: #525258;
    --border-color: #222228;
    --accent: #FF9900;
    --accent-hover: #FFa929;
    --accent-dim: rgba(255, 153, 0, 0.12);
    --accent-glow: rgba(255, 153, 0, 0.25);
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --discord: #5865F2;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

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

.landing-page {
    min-height: 100vh;
    overflow-x: hidden;
}

/* Landing Nav */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.landing-nav .brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-nav .brand img {
    height: 36px;
    border-radius: 8px;
}

.landing-nav .brand span {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.landing-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.landing-nav .nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.landing-nav .nav-links a:hover {
    color: var(--text-primary);
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: var(--discord);
    color: white !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
    color: white !important;
}

.btn-discord svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Top Banner */
.top-banner {
    position: fixed;
    top: 69px;
    left: 0;
    right: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 10px 40px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
}

.banner-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.banner-icon {
    font-size: 16px;
}

.banner-divider {
    width: 1px;
    height: 20px;
    background: var(--border-color);
}

/* Hero Section */
.hero {
    padding: 200px 40px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 153, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-logo {
    width: 145px;
    border-radius: 24px;
    margin-bottom: 32px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #FF9900, #FFa929);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent);
    color: #000 !important;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary-lg:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-glow);
    color: #000 !important;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent) !important;
    background: var(--accent-dim);
}

/* Section alternating background */
.section-alt {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Features Section */
.features {
    padding: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-alt.features {
    max-width: none;
    padding-left: 40px;
    padding-right: 40px;
}

.section-alt.features > h2,
.section-alt.features > .subtitle,
.section-alt.features > .feature-grid {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.features .subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 60px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: rgba(255, 153, 0, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.feature-card .badge-free {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 12px;
}

.feature-card .badge-premium {
    display: inline-block;
    padding: 3px 10px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 12px;
}

/* Landing Footer */
.landing-footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
}

.landing-footer a {
    color: var(--text-secondary);
    margin: 0 12px;
}

.landing-footer a:hover {
    color: var(--accent);
}

/* ==========================================
   APP LAYOUT
   ========================================== */

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

/* Navigation */
.navigation {
    width: 250px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 50;
    display: flex;
    flex-direction: column;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.navigation .logo {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.navigation .logo-img {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.navigation .logo-img img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.navigation .logo h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.navigation .logo small {
    color: var(--text-muted);
    font-size: 11px;
}

.navigation nav {
    flex: 1;
}

.navigation nav ul {
    list-style: none;
}

.navigation nav ul li {
    margin-bottom: 4px;
}

.navigation nav ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.navigation nav ul li a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.navigation nav ul li a.active {
    background: var(--accent-dim);
    color: var(--accent);
}

.navigation nav ul li a .nav-icon {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.nav-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.nav-footer a {
    display: block;
    padding: 10px 14px;
    color: var(--text-muted);
    font-size: 13px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-footer a:hover {
    background: var(--bg-hover);
    color: var(--danger);
}

/* Content Wrapper */
.content-wrapper {
    margin-left: 250px;
    flex: 1;
    min-width: 0;
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header h1 {
    font-size: 1.3rem;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.user-info span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Language Switcher */
.lang-switch {
    font-size: 22px;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    cursor: pointer;
    line-height: 1;
}

.lang-switch:hover {
    opacity: 1;
}

/* Content */
.content {
    padding: 24px 30px;
}

/* Filter & Search Bar */
.filter-bar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
}

.filter-bar input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.filter-bar input[type="text"]::placeholder {
    color: var(--text-muted);
}

/* Add Product Button */
.add-product-btn {
    padding: 10px 20px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: all 0.2s;
}

.add-product-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 2px 8px var(--accent-glow);
}

/* Product Table */
.product-table-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.scrollable-table {
    overflow-x: auto;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
}

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

.product-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.product-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.product-table th.sortable:hover {
    color: var(--accent);
}

.product-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}

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

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

.product-table td {
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 13px;
}

.product-table td.center {
    text-align: center;
}

.product-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--bg-tertiary);
    padding: 2px;
}

.product-name {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: color 0.2s;
}

.product-name:hover {
    color: var(--accent);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
}

.badge-public {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.badge-private {
    background: rgba(251, 191, 36, 0.1);
    color: var(--warning);
}

.badge-own {
    background: var(--accent-dim);
    color: var(--accent);
}

/* Status Indicators */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.status-active {
    background: var(--success);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
    animation: pulse 2s infinite;
}

.status-inactive {
    background: var(--text-muted);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Action Buttons */
.action-btn {
    padding: 6px 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    margin: 0 2px;
    white-space: nowrap;
}

.action-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent);
}

.action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.action-btn.success:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--success);
    color: var(--success);
}

/* Price Cell */
.price-cell {
    font-weight: 600;
    color: var(--success);
    font-variant-numeric: tabular-nums;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

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

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

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

/* Country Selection Grid */
.country-select-all {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.country-select-all:hover {
    border-color: var(--accent);
}

.country-select-all input[type="checkbox"] {
    width: auto;
    accent-color: var(--accent);
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.country-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.2s;
    white-space: nowrap;
}

.country-checkbox:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.country-checkbox:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--text-primary);
}

.country-checkbox input[type="checkbox"] {
    width: auto;
    accent-color: var(--accent);
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

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

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-secondary {
    padding: 10px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-hover);
}

/* Webhook Management */
.webhook-list {
    margin-top: 12px;
}

.webhook-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.webhook-item:hover {
    border-color: var(--accent);
}

.webhook-info {
    flex: 1;
}

.webhook-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 13px;
}

.webhook-url {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-hover);
    transition: 0.3s;
    border-radius: 22px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--accent);
}

input:checked + .toggle-slider:before {
    transform: translateX(22px);
    background-color: #000;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 16px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    z-index: 9999;
    animation: slideIn 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }

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

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    transition: all 0.2s;
}

.product-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.product-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 12px;
}

.product-card h3 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.2s;
}

.mobile-menu-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 45;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-hover);
}

/* Responsive */
/* Pricing grid (2 cols centered on desktop) */
.pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    margin: 0 auto;
}

/* AutoBuy promo page classes */
.autobuy-promo-hero {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 32px;
    text-align: center;
}

.autobuy-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.autobuy-features-grid > div {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.autobuy-included-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 32px;
}

.autobuy-included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* === APP: Mobile Menu === */
    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-close {
        display: block;
    }

    .navigation {
        position: fixed;
        left: -250px;
        transition: left 0.3s;
        z-index: 50;
    }

    .navigation.mobile-open {
        left: 0;
    }

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

    .header {
        padding: 12px 16px;
    }

    .header h1 {
        font-size: 16px;
    }

    .user-info span {
        display: none;
    }

    .content {
        padding: 12px;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-bar input[type="text"] {
        min-width: unset;
    }

    /* === APP: Tables === */
    .product-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .product-table {
        font-size: 12px;
        min-width: 600px;
    }

    .product-table th,
    .product-table td {
        padding: 8px 10px;
        white-space: nowrap;
    }

    /* === LANDING: Navigation === */
    .landing-nav {
        padding: 10px 16px;
    }

    .landing-nav .brand img {
        height: 28px;
    }

    .landing-nav .brand span {
        font-size: 15px;
    }

    .landing-nav .nav-links {
        gap: 10px;
    }

    .landing-nav .nav-links a:not(.btn-discord) {
        display: none;
    }

    .landing-nav .btn-discord {
        padding: 8px 14px;
        font-size: 12px;
        gap: 6px;
    }

    .landing-nav .btn-discord svg {
        width: 16px;
        height: 16px;
    }

    /* === LANDING: Top Banner === */
    .top-banner {
        display: none;
    }

    /* === LANDING: Hero === */
    .hero {
        padding: 100px 20px 50px;
    }

    .hero-logo {
        width: 100px;
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-actions .btn-discord,
    .hero-actions .btn-outline {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
    }

    /* === LANDING: Feature Sections === */
    .features {
        padding: 40px 16px;
    }

    .section-alt.features {
        padding-left: 16px;
        padding-right: 16px;
    }

    .features h2 {
        font-size: 24px;
    }

    .features .subtitle {
        font-size: 14px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-card h3 {
        font-size: 15px;
    }

    .feature-card p {
        font-size: 13px;
    }

    /* === LANDING: Pricing === */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .pricing-grid .feature-card ul {
        font-size: 13px;
    }

    .pricing-grid .feature-card h3 {
        font-size: 20px;
    }

    .pricing-grid .feature-card p {
        font-size: 26px;
    }

    /* === LANDING: Country Grid === */
    .country-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* === LANDING: Footer === */
    .landing-footer {
        padding: 24px 16px;
    }

    .landing-footer a {
        margin: 0 6px;
        font-size: 12px;
    }

    /* === AUTOBUY: Promo Sections === */
    .autobuy-promo-hero {
        padding: 24px 16px;
    }

    .autobuy-promo-hero h2 {
        font-size: 20px;
    }

    .autobuy-promo-hero a {
        padding: 12px 24px;
        font-size: 14px;
    }

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

    .autobuy-included-box {
        padding: 20px 16px;
    }

    .autobuy-included-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .landing-nav .brand span {
        display: none;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero-logo {
        width: 80px;
    }

    .hero {
        padding: 120px 16px 40px;
    }

    .features h2 {
        font-size: 20px;
    }

    .product-table {
        font-size: 11px;
    }
}

/* Code/ASIN formatting */
code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Fira Code', 'Cascadia Code', monospace;
    color: var(--accent);
}

/* Info/Warning Boxes */
.info-box {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 20px;
}

.info-box.success {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.05);
    color: var(--success);
}

.info-box.warning {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.05);
    color: var(--warning);
}

.info-box.danger {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
    color: var(--danger);
}
