/* ===================================
   myxli - Professional SaaS Stylesheet
   =================================== */

/* --- CSS Variables --- */
:root {
    --primary: #1a8c4e;
    --primary-dark: #15793f;
    --primary-light: #27ae60;
    --primary-gradient: linear-gradient(135deg, #27ae60 0%, #1abc9c 100%);
    --secondary: #0f172a;
    --secondary-light: #1e293b;
    --accent: #1abc9c;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --info: #3b82f6;
    --purple: #8b5cf6;
    --pink: #ec4899;
    --bg: #f1f5f9;
    --bg-card: #ffffff;
    --text: #0f172a;
    --text-light: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
    --shadow-xl: 0 20px 40px -5px rgba(0,0,0,0.1);
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* --- Typography --- */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.3; color: var(--secondary); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { color: var(--text-light); }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 600px; margin: 0 auto; padding: 0 20px; }
.container-md { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* --- Navbar --- */
.navbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.navbar-brand span { color: var(--secondary); }
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    flex-wrap: nowrap;
}
.navbar-nav a {
    padding: 8px 12px;
    border-radius: var(--radius);
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
    white-space: nowrap;
}
.navbar-nav a:hover { color: var(--primary); background: rgba(26,140,78,0.06); }
.navbar-nav a.active { color: var(--primary); background: rgba(26,140,78,0.08); }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.5;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary-gradient); color: #fff; box-shadow: 0 2px 6px rgba(26,140,78,0.2); }
.btn-primary:hover { box-shadow: 0 4px 12px rgba(26,140,78,0.3); color: #fff; }

.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: #1e293b; color: #fff; }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; box-shadow: 0 2px 6px rgba(16,185,129,0.2); }
.btn-success:hover { box-shadow: 0 4px 12px rgba(16,185,129,0.3); color: #fff; }

.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 2px 6px rgba(239,68,68,0.2); }
.btn-danger:hover { box-shadow: 0 4px 12px rgba(239,68,68,0.3); color: #fff; }

.btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-light); }
.btn-ghost:hover { background: rgba(0,0,0,0.04); }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 50%; }

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 24px; }
.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: #fafbfc;
    font-weight: 600;
}
.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: #fafbfc;
}

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 6px;
}
.form-label .required { color: var(--danger); }

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: var(--font);
    color: var(--text);
    background: #fff;
    transition: var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,140,78,0.1);
    background: #fafffe;
}
.form-control::placeholder { color: var(--text-muted); }

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.form-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* --- Alerts --- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; border-left: 4px solid #10b981; }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; border-left: 4px solid #ef4444; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; border-left: 4px solid #f59e0b; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; border-left: 4px solid #3b82f6; }

/* --- Badge --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.badge-primary { background: rgba(26,140,78,0.1); color: var(--primary); }
.badge-success { background: rgba(16,185,129,0.1); color: #059669; }
.badge-danger { background: rgba(239,68,68,0.1); color: #dc2626; }
.badge-warning { background: rgba(245,158,11,0.1); color: #d97706; }
.badge-info { background: rgba(59,130,246,0.1); color: #2563eb; }
.badge-secondary { background: rgba(107,114,128,0.1); color: #4b5563; }
.badge-purple { background: rgba(139,92,246,0.1); color: #7c3aed; }
.badge-orange { background: rgba(249,115,22,0.1); color: #ea580c; }

/* --- Tables --- */
.table-responsive { overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.table th, .table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.table th {
    background: #fafbfc;
    font-weight: 600;
    color: var(--text);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.table tr:hover { background: #f8fafc; }

/* --- Stats Cards --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
}
.stat-card:nth-child(1)::before { background: linear-gradient(90deg, #10b981, #34d399); }
.stat-card:nth-child(2)::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.stat-card:nth-child(4)::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.stat-card:nth-child(1) .stat-icon { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #059669; }
.stat-card:nth-child(2) .stat-icon { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #2563eb; }
.stat-card:nth-child(3) .stat-icon { background: linear-gradient(135deg, #f5f3ff, #ede9fe); color: #7c3aed; }
.stat-card:nth-child(4) .stat-icon { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #d97706; }
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}
.stat-card .stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, #154360 0%, #1a5276 30%, #1a8c4e 70%, #27ae60 100%);
    color: #fff;
    padding: 100px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -200px;
    right: -100px;
}
.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    bottom: -150px;
    left: -100px;
}
.hero h1 {
    color: #fff;
    font-size: 3rem;
    max-width: 700px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}
.hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 36px;
    position: relative;
    z-index: 1;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}
.hero .btn-primary {
    background: #fff;
    color: var(--primary);
    font-size: 1rem;
    padding: 14px 32px;
}
.hero .btn-primary:hover { background: #e8f8f0; color: var(--primary-dark); }
.hero .btn-outline {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    font-size: 1rem;
    padding: 14px 32px;
}
.hero .btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* --- Section --- */
.section { padding: 80px 0; }
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 { margin-bottom: 12px; }
.section-title p { max-width: 500px; margin: 0 auto; }

/* --- Feature Cards --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.feature-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.feature-card .icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: rgba(26,140,78,0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}
.feature-card h4 { margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; }

/* --- Steps --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    text-align: center;
}
.step-card .step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.step-card h4 { margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; }

/* --- Pricing Box (legacy) --- */
.pricing-box {
    max-width: 500px;
    margin: 0 auto;
    background: linear-gradient(135deg, #154360 0%, #1a8c4e 100%);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-xl);
}
.pricing-box h3 { color: #fff; margin-bottom: 12px; font-size: 1.5rem; }
.pricing-box p { color: rgba(255,255,255,0.85); margin-bottom: 24px; }
.pricing-box .price { font-size: 3rem; font-weight: 800; margin-bottom: 8px; }
.pricing-box .btn { background: #fff; color: var(--primary); }

/* --- Hero Enhancements --- */
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 1;
}
.hero-highlight {
    background: linear-gradient(135deg, #a8edba, #e8f8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    position: relative;
    z-index: 1;
}
.hero-stat {
    text-align: center;
}
.hero-stat strong {
    display: block;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 4px;
}
.hero-stat span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

/* --- Section Badges --- */
.section-badge {
    display: inline-block;
    background: rgba(26,140,78,0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}
.section-alt {
    background: #f8faf9;
}

/* --- Pricing Grid --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.pricing-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.pricing-popular {
    border: 2px solid var(--primary);
    box-shadow: 0 8px 32px rgba(26,140,78,0.15);
}
.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.pricing-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.pricing-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}
.pricing-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    min-height: 40px;
}
.pricing-price {
    margin-bottom: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}
.price-currency {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 4px;
}
.price-period {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.price-usd-alt {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 6px;
    padding: 4px 10px;
    background: #f0fdf4;
    border-radius: 6px;
    font-weight: 600;
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    text-align: left;
}
.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid #f1f5f3;
}
.pricing-features li:last-child {
    border-bottom: none;
}
.pricing-features .feature-ai {
    background: linear-gradient(90deg, rgba(139,92,246,0.1), rgba(236,72,153,0.1));
    padding: 5px 10px;
    border-radius: 5px;
    margin: 5px -10px;
    font-weight: 500;
}
.pricing-features .feature-highlight {
    background: linear-gradient(90deg, rgba(34,197,94,0.1), rgba(16,185,129,0.1));
    padding: 5px 10px;
    border-radius: 5px;
    margin: 5px -10px;
    font-weight: 500;
    color: #22c55e;
}

/* --- Contact Form Row --- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.contact-form {
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .hero-stats { flex-direction: column; gap: 16px; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
    .form-row { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: 700px; }
}

/* --- Auth Pages --- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #e0f2f1 50%, #e3f0fa 100%);
}
.auth-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 48px;
    width: 100%;
    max-width: 460px;
}
.auth-card .logo {
    text-align: center;
    margin-bottom: 32px;
}
.auth-card .logo h1 {
    font-size: 2rem;
    color: var(--primary);
}
.auth-card .logo p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.code-input {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}
.code-input input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: var(--transition);
}
.code-input input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,140,78,0.12);
}

/* --- Dashboard Layout --- */
.app-layout {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 270px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition);
    border-right: 1px solid rgba(255,255,255,0.05);
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
.sidebar-header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-header h2 {
    color: #fff;
    font-size: 1.3rem;
}
.sidebar-header h2 span { color: var(--accent); }

.sidebar-nav { padding: 16px 14px; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius);
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); }
.sidebar-nav a.active { background: var(--primary-gradient); color: #fff; box-shadow: 0 2px 8px rgba(26,140,78,0.3); }
.sidebar-nav a .nav-icon { width: 20px; text-align: center; font-size: 1rem; }

.sidebar-section {
    padding: 12px 16px 6px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.25);
    margin-top: 10px;
    font-weight: 600;
}

.main-content {
    margin-left: 270px;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height: 100vh;
    background: var(--bg);
    overflow-x: hidden;
    max-width: calc(100% - 270px);
}
.main-body {
    flex: 1;
    overflow-x: auto;
}
.main-header {
    background: #fff;
    padding: 16px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}
.main-header h3 { font-size: 1.15rem; font-weight: 700; }
.main-body { padding: 32px; }

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 2px 8px rgba(26,140,78,0.25);
}

/* --- Project Cards --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}
.project-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}
.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
}
.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: rgba(26,140,78,0.2);
}
.project-card:hover::before { opacity: 1; }
.project-card-header {
    padding: 22px 24px 16px;
}
.project-card-header h4 { margin-bottom: 6px; font-size: 1.1rem; }
.project-card-header p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }
.project-card-body { padding: 0 24px 22px; }
.project-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}
.project-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.project-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(26,140,78,0.02) 0%, rgba(26,188,156,0.02) 100%);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
}
.empty-state .icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}
.empty-state h3 { margin-bottom: 8px; color: var(--text); }
.empty-state p { margin-bottom: 24px; color: var(--text-muted); max-width: 400px; margin-left: auto; margin-right: auto; }

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.25s ease;
}
@keyframes modalSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h3 { font-size: 1.1rem; }
.modal-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.modal-close:hover { background: var(--bg); }
.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* --- Color Picker --- */
.color-picker-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.color-picker-group input[type="color"] {
    width: 44px;
    height: 44px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 2px;
}

/* --- Toast --- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}
.toast {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 14px 20px;
    margin-bottom: 8px;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* --- Divider --- */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* --- Tabs --- */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
}
.tab {
    padding: 12px 22px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border-top: none; border-left: none; border-right: none;
    white-space: nowrap;
    border-radius: var(--radius) var(--radius) 0 0;
}
.tab:hover { color: var(--primary); background: rgba(26,140,78,0.04); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); background: rgba(26,140,78,0.06); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; max-width: 100%; }
    
    .navbar .container { padding: 0 16px; }
    .navbar-nav { display: none; }
    .navbar-nav.open { 
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    
    .auth-card { padding: 32px 24px; }
    
    .main-body { padding: 16px; }
    .main-header { padding: 12px 16px; }
    
    .table-responsive { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .hero { padding: 60px 0 80px; }
    .steps-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.hidden { display: none; }

/* --- Logo --- */
.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.navbar-brand img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}
.sidebar-logo h2 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0;
}
.sidebar-logo h2 .xl { color: var(--accent); }

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}
.auth-logo img {
    height: 90px;
    width: auto;
    object-fit: contain;
    margin-bottom: 14px;
}
.auth-logo h1 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #27ae60, #154360);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-logo p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- Footer styled --- */
.footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}
.footer a { color: var(--accent); }
.footer .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.footer .footer-brand img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

/* --- Hero with logo --- */
.hero-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 24px;
}

/* --- Auth footer --- */
.auth-footer {
    text-align: center;
    padding: 24px 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.auth-footer a {
    color: var(--primary);
    font-weight: 500;
}

/* --- Dashboard footer --- */
.dashboard-footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.7);
    padding: 20px 24px;
    text-align: center;
    font-size: 0.85rem;
    margin-top: auto;
}
.dashboard-footer a {
    color: var(--accent);
}
.dashboard-footer .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.dashboard-footer .footer-brand img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

/* --- Gradient text utility --- */
.text-gradient {
    background: linear-gradient(135deg, #27ae60, #1abc9c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Welcome Section --- */
.welcome-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #1a8c4e 100%);
    border-radius: var(--radius-xl);
    padding: 32px 36px;
    color: #fff;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.welcome-banner::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    top: -100px;
    right: -50px;
}
.welcome-banner::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(26,188,156,0.08);
    border-radius: 50%;
    bottom: -80px;
    left: 30%;
}
.welcome-banner h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}
.welcome-banner p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}
.welcome-banner .welcome-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    position: relative;
    z-index: 1;
}

/* --- Upgrade Banner --- */
.upgrade-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fbbf24 100%);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    border: 1px solid rgba(245,158,11,0.3);
    box-shadow: 0 2px 12px rgba(245,158,11,0.1);
}
.upgrade-banner .upgrade-text {
    display: flex;
    align-items: center;
    gap: 14px;
}
.upgrade-banner .upgrade-icon {
    width: 48px;
    height: 48px;
    background: rgba(245,158,11,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.upgrade-banner h4 { color: #92400e; margin-bottom: 2px; font-size: 1rem; }
.upgrade-banner p { color: #a16207; font-size: 0.85rem; margin: 0; }
.upgrade-banner .btn-upgrade {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(217,119,6,0.3);
}
.upgrade-banner .btn-upgrade:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217,119,6,0.4);
    color: #fff;
}

/* --- Section Header --- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-header h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Improved Buttons --- */
/* (combined above) */

/* --- Card improvements --- */
.card {
    border-color: var(--border);
    border-radius: var(--radius-lg);
}
.card-header {
    background: #fafbfd;
    font-weight: 600;
    color: var(--text);
    border-bottom-color: var(--border);
}

/* --- Table improvements --- */
.table th {
    background: #f8fafc;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 2px solid var(--border);
}
.table td { color: var(--text-light); vertical-align: middle; }
.table tr:hover { background: #f8fafc; }
.table tr:last-child td { border-bottom: none; }

/* --- Sidebar active gradient --- */
.sidebar-nav a.active {
    background: var(--primary-gradient);
    color: #fff;
}

/* --- Mobile toggle --- */
@media (max-width: 1024px) {
    .navbar-nav { gap: 2px; }
    .navbar-nav a { padding: 6px 8px; font-size: 0.8rem; }
}
@media (max-width: 768px) {
    .mobile-toggle { display: block !important; }
    .upgrade-banner { flex-direction: column; text-align: center; }
    .upgrade-banner .upgrade-text { flex-direction: column; text-align: center; }
}

/* ===== APP STORE ===== */
.store-header { margin-bottom: 1.5rem; }
.store-filters { padding: 1rem 1.25rem; }
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.store-product-card {
    background: var(--card-bg, #fff);
    border-radius: 12px;
    border: 1px solid var(--border, #e5e7eb);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.store-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.store-product-image {
    position: relative;
    height: 160px;
    background: #f3f4f6;
    overflow: hidden;
}
.store-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.store-product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}
.store-product-type-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}
.store-product-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.store-product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}
.store-product-seller {
    font-size: 0.8rem;
    color: var(--text-secondary, #6b7280);
    margin: 0 0 auto;
}
.store-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border, #e5e7eb);
}
.store-product-price {
    font-weight: 700;
    color: var(--primary, #1a8c4e);
    font-size: 0.95rem;
}
.store-product-stats {
    font-size: 0.8rem;
    color: var(--text-secondary, #6b7280);
}

/* Store Detail */
.store-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}
.store-detail-image {
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.store-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}
.store-detail-info {
    position: sticky;
    top: 1rem;
}
.store-detail-description {
    color: var(--text-secondary, #6b7280);
    line-height: 1.6;
    margin: 1rem 0;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Form control alias (store forms) */
.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    font-size: 0.875rem;
    background: var(--card-bg, #fff);
    color: var(--text-primary, #1f2937);
    transition: border-color 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary, #1a8c4e);
    box-shadow: 0 0 0 3px rgba(26,140,78,0.1);
}

@media (max-width: 768px) {
    .store-grid { grid-template-columns: 1fr 1fr; }
    .store-detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .store-grid { grid-template-columns: 1fr; }
}

/* Star Ratings */
.star { font-size: 1rem; line-height: 1; }
.star-filled { color: #f59e0b; }
.star-empty { color: #d1d5db; }
.star-input { font-size: 1.5rem; cursor: pointer; transition: transform 0.15s; }
.star-input:hover { transform: scale(1.2); }
.rating-text { font-size: 0.8rem; color: var(--text-secondary, #6b7280); margin-left: 0.25rem; }
.store-product-rating { display: flex; align-items: center; gap: 0.15rem; margin: 0.25rem 0; }
.review-item:last-child { border-bottom: none; }
.reviews-list { max-height: 600px; overflow-y: auto; }
.store-sort-tabs { border-bottom: 1px solid var(--border-color, #e5e7eb); padding-bottom: 0.75rem; }
.store-promo-links .btn { font-size: 0.85rem; }

/* ===== ENHANCED STORE UI ===== */
.store-hero {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}
.store-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.store-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #065f46;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.store-hero p {
    color: #047857;
    font-size: 1rem;
    margin: 0 0 1rem;
    line-height: 1.5;
}
.store-hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}
.store-hero-stats .stat-item {
    color: #065f46;
    font-size: 0.9rem;
    text-align: center;
}
.store-hero-stats .stat-item strong {
    font-size: 1.5rem;
    display: block;
    font-weight: 700;
}

/* Search Section */
.store-search-section {
    margin-bottom: 1.5rem;
}
.store-search-form {
    display: flex;
    gap: 0.5rem;
}
.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--card-bg, #fff);
    border: 2px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 0.25rem;
    transition: border-color 0.2s;
}
.search-input-wrapper:focus-within {
    border-color: var(--primary, #1a8c4e);
}
.search-icon {
    padding: 0 0.75rem;
    color: var(--text-secondary, #6b7280);
    font-size: 1.1rem;
}
.store-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 0;
    font-size: 1rem;
    outline: none;
}
.store-search-input::placeholder {
    color: var(--text-muted, #9ca3af);
}

/* Type Tabs */
.store-type-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border, #e5e7eb);
    padding-bottom: 0.75rem;
}
.type-tab {
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary, #6b7280);
    font-weight: 500;
    transition: all 0.2s;
}
.type-tab:hover {
    background: var(--bg-secondary, #f3f4f6);
    color: var(--text-primary, #1f2937);
}
.type-tab.active {
    background: var(--primary, #1a8c4e);
    color: white;
}

/* Category Pills */
.store-categories-section {
    margin-bottom: 1.25rem;
}
.categories-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}
.categories-scroll::-webkit-scrollbar {
    height: 4px;
}
.categories-scroll::-webkit-scrollbar-thumb {
    background: var(--border, #e5e7eb);
    border-radius: 4px;
}
.category-pill {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, #e5e7eb);
    color: var(--text-secondary, #6b7280);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
}
.category-pill:hover {
    border-color: var(--primary, #1a8c4e);
    color: var(--primary, #1a8c4e);
}
.category-pill.active {
    background: var(--primary, #1a8c4e);
    border-color: var(--primary, #1a8c4e);
    color: white;
}

/* Toolbar */
.store-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.active-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #065f46;
}
.filter-remove {
    color: #065f46;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
}
.filter-remove:hover {
    color: #dc2626;
}
.sort-options {
    display: flex;
    gap: 0.25rem;
}
.sort-btn {
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--text-secondary, #6b7280);
    transition: all 0.2s;
}
.sort-btn:hover {
    background: var(--bg-secondary, #f3f4f6);
}
.sort-btn.active {
    background: var(--bg-secondary, #f3f4f6);
    color: var(--primary, #1a8c4e);
    font-weight: 600;
}

/* Enhanced Product Cards */
.store-product-card {
    background: var(--card-bg, #fff);
    border-radius: 16px;
    border: 1px solid var(--border, #e5e7eb);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.store-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: var(--primary, #1a8c4e);
}
.store-product-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    overflow: hidden;
}
.store-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.store-product-card:hover .store-product-image img {
    transform: scale(1.05);
}
.store-product-logo-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}
.store-product-logo-wrapper .product-logo {
    max-width: 100px;
    max-height: 100px;
    border-radius: 12px;
}
.store-product-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.type-template {
    background: #3b82f6;
    color: white;
}
.type-app {
    background: #8b5cf6;
    color: white;
}
.store-product-free-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #10b981;
    color: white;
}
.store-product-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-category-tag {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 0.5rem;
}
.store-product-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    line-height: 1.4;
    color: var(--text-primary, #1f2937);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.store-product-seller {
    font-size: 0.8rem;
    color: var(--text-secondary, #6b7280);
    margin: 0 0 0.5rem;
}
.store-product-seller strong {
    color: var(--text-primary, #1f2937);
    font-weight: 500;
}
.verified-badge {
    color: #10b981;
    font-size: 0.75rem;
}
.store-product-rating .stars {
    display: flex;
    gap: 1px;
}
.store-product-rating .star {
    font-size: 0.85rem;
}
.store-product-rating .rating-value {
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    font-size: 0.8rem;
    margin-left: 0.25rem;
}
.store-product-rating .rating-count {
    color: var(--text-muted, #9ca3af);
    font-size: 0.75rem;
}
.store-product-rating .no-rating {
    font-size: 0.75rem;
    color: var(--text-muted, #9ca3af);
    font-style: italic;
}
.product-tags-preview {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 0.5rem;
}
.mini-tag {
    padding: 2px 8px;
    background: var(--bg-secondary, #f3f4f6);
    border-radius: 4px;
    font-size: 0.65rem;
    color: var(--text-secondary, #6b7280);
}
.store-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border, #e5e7eb);
    background: var(--bg-secondary, #fafafa);
}
.store-product-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary, #1f2937);
}
.store-product-price.price-free {
    color: #10b981;
}
.store-product-stats {
    font-size: 0.8rem;
    color: var(--text-secondary, #6b7280);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg, #fff);
    border-radius: 16px;
    border: 1px solid var(--border, #e5e7eb);
}
.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}
.empty-state h3 {
    color: var(--text-primary, #1f2937);
    margin: 0 0 0.5rem;
}
.empty-state p {
    color: var(--text-secondary, #6b7280);
    margin: 0 0 1.5rem;
}

/* Enhanced Pagination */
.store-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}
.pagination-btn {
    padding: 0.6rem 1.25rem;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    color: var(--text-primary, #1f2937);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}
.pagination-btn:hover {
    background: var(--primary, #1a8c4e);
    color: white;
    border-color: var(--primary, #1a8c4e);
}
.pagination-numbers {
    display: flex;
    gap: 0.25rem;
}
.page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary, #6b7280);
    font-weight: 500;
    transition: all 0.2s;
}
.page-num:hover {
    background: var(--bg-secondary, #f3f4f6);
}
.page-num.active {
    background: var(--primary, #1a8c4e);
    color: white;
}
.page-dots {
    width: 40px;
    text-align: center;
    color: var(--text-muted, #9ca3af);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .store-hero {
        padding: 1.5rem;
    }
    .store-hero h1 {
        font-size: 1.5rem;
    }
    .store-hero-stats {
        gap: 1rem;
    }
    .store-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .sort-options {
        width: 100%;
        overflow-x: auto;
    }
    .store-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .store-product-image {
        height: 140px;
    }
}
@media (max-width: 480px) {
    .store-grid {
        grid-template-columns: 1fr;
    }
    .store-type-tabs {
        overflow-x: auto;
    }
    .type-tab {
        flex-shrink: 0;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail-container {
    max-width: 1000px;
    margin: 0 auto;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary, #6b7280);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: color 0.2s;
}
.back-link:hover {
    color: var(--primary, #1a8c4e);
}
.product-detail-card {
    background: var(--card-bg, #fff);
    border-radius: 20px;
    border: 1px solid var(--border, #e5e7eb);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.product-detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
}
.product-detail-media {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.5rem;
}
.product-main-image {
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.product-main-image img {
    width: 100%;
    height: auto;
    display: block;
}
.product-logo-display {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}
.product-logo-display img {
    max-width: 180px;
    max-height: 180px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.product-placeholder-display {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}
.product-detail-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}
.product-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.product-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.product-type-badge.type-template {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}
.product-type-badge.type-app {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}
.product-type-badge.type-bundle {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

/* Bundle Choice Section */
.bundle-choice-section {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1rem;
}
.bundle-option {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 2px solid #e5e7eb;
    transition: all 0.2s;
}
.bundle-option:hover {
    border-color: var(--primary, #3b82f6);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}
.bundle-option-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.bundle-option-icon {
    font-size: 1.5rem;
}
.bundle-option-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1f2937;
    flex: 1;
}
.bundle-option-price {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary, #3b82f6);
    background: var(--primary-light, #eff6ff);
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
}
.bundle-option-description {
    margin-bottom: 1rem;
}
.bundle-option-description ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}
.bundle-option-description li {
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: #4b5563;
}
.bundle-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.25rem 0;
    position: relative;
}
.bundle-separator::before,
.bundle-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d1d5db;
}
.bundle-separator span {
    padding: 0 1rem;
    color: #9ca3af;
    font-weight: 600;
    font-size: 0.85rem;
}
.bundle-option-template .bundle-option-price {
    color: #2563eb;
    background: #eff6ff;
}
.bundle-option-excel .bundle-option-price {
    color: #059669;
    background: #ecfdf5;
}
.product-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
}
.product-category-badge:hover {
    background: #e5e7eb;
}
.product-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary, #1f2937);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}
.product-seller {
    color: var(--text-secondary, #6b7280);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.product-seller strong {
    color: var(--text-primary, #1f2937);
}
.verified-seller {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 0.5rem;
}
.product-price-section {
    margin-bottom: 1rem;
}
.price-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary, #1f2937);
}
.price-value.price-free {
    color: #10b981;
}
.product-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    border-top: 1px solid var(--border, #e5e7eb);
    border-bottom: 1px solid var(--border, #e5e7eb);
    margin-bottom: 1rem;
}
.product-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary, #6b7280);
    font-size: 0.85rem;
}
.product-stats .stat-icon {
    font-size: 1rem;
}
.product-stats .stat-value {
    font-weight: 600;
    color: var(--text-primary, #1f2937);
}
.product-stats .rating-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}
.stars-display {
    display: flex;
    gap: 2px;
}
.stars-display .star {
    font-size: 1rem;
}
.product-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.link-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--bg-secondary, #f3f4f6);
    color: var(--text-primary, #1f2937);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}
.link-btn:hover {
    background: var(--primary, #1a8c4e);
    color: white;
}
.product-cta-button {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    margin-top: auto;
}
.product-description-section {
    padding: 2rem;
    border-top: 1px solid var(--border, #e5e7eb);
}
.product-description-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #1f2937);
    margin: 0 0 1rem;
}
.description-content {
    color: var(--text-secondary, #6b7280);
    line-height: 1.8;
    font-size: 0.95rem;
}
.product-tags-section {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border, #e5e7eb);
    background: var(--bg-secondary, #fafafa);
}
.product-tags-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
    margin: 0 0 0.75rem;
}
.tags-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.product-tag {
    padding: 0.4rem 0.9rem;
    background: white;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 20px;
    color: var(--text-secondary, #6b7280);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.product-tag:hover {
    border-color: var(--primary, #1a8c4e);
    color: var(--primary, #1a8c4e);
    background: #f0fdf4;
}
.reviews-card {
    background: var(--card-bg, #fff);
    border-radius: 20px;
    border: 1px solid var(--border, #e5e7eb);
    padding: 2rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.reviews-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #1f2937);
    margin: 0 0 1.5rem;
}
.review-form-section {
    padding: 1.5rem;
    background: var(--bg-secondary, #f9fafb);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}
.review-form-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
}
@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
    .product-detail-media {
        padding: 1rem;
    }
    .product-detail-info {
        padding: 1.5rem;
    }
    .product-title {
        font-size: 1.4rem;
    }
    .price-value {
        font-size: 1.5rem;
    }
    .product-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-page {
    padding: 3rem 0 4rem;
    min-height: 60vh;
}
.legal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.legal-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary, #111827);
    margin-bottom: 0.5rem;
}
.legal-updated {
    color: var(--text-muted, #6b7280);
    font-size: 0.9rem;
}
.legal-content {
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.75;
}
.legal-section {
    margin-bottom: 2.5rem;
}
.legal-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary, #111827);
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--primary, #1a8c4e);
    display: inline-block;
}
.legal-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #111827);
    margin: 1.25rem 0 0.5rem;
}
.legal-section p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary, #374151);
}
.legal-section ul,
.legal-section ol {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}
.legal-section li {
    margin-bottom: 0.35rem;
    color: var(--text-secondary, #374151);
}
.legal-section a {
    color: var(--primary, #1a8c4e);
    text-decoration: underline;
}
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}
.legal-table th,
.legal-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border, #e5e7eb);
    text-align: left;
}
.legal-table th {
    background: var(--bg-secondary, #f9fafb);
    font-weight: 600;
    color: var(--text-primary, #111827);
}

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-page {
    padding: 3rem 0 4rem;
}
.pricing-page .pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.pricing-seller {
    border: 2px solid var(--primary, #1a8c4e);
    background: linear-gradient(135deg, rgba(26, 140, 78, 0.03), rgba(26, 140, 78, 0.08));
}
.currency-selector {
    text-align: center;
    margin-bottom: 2rem;
}
.currency-form {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.currency-form label {
    font-weight: 600;
    color: var(--text-secondary, #374151);
    font-size: 0.9rem;
}
.currency-form select {
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-md, 8px);
    border: 1px solid var(--border, #e5e7eb);
    font-size: 0.9rem;
    background: var(--bg-card, #fff);
    cursor: pointer;
}

/* Comparison table */
.pricing-comparison {
    margin: 3rem 0;
}
.pricing-comparison h3 {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary, #111827);
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.comparison-table th,
.comparison-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border, #e5e7eb);
    text-align: center;
}
.comparison-table th {
    background: var(--primary, #1a8c4e);
    color: #fff;
    font-weight: 600;
}
.comparison-table th:first-child {
    text-align: left;
    background: var(--bg-secondary, #f9fafb);
    color: var(--text-primary, #111827);
}
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}
.comparison-table tbody tr:nth-child(even) {
    background: var(--bg-secondary, #f9fafb);
}

/* FAQ */
.pricing-faq {
    margin: 3rem 0;
}
.pricing-faq h3 {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary, #111827);
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}
.faq-item {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius-lg, 12px);
    padding: 1.25rem;
}
.faq-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #111827);
}
.faq-item p {
    font-size: 0.88rem;
    color: var(--text-secondary, #374151);
    line-height: 1.6;
}

/* Premium Plus card */
.pricing-best {
    border: 2px solid #7c3aed;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}
.pricing-badge-best {
    background: linear-gradient(135deg, #7c3aed, #5b21b6) !important;
}

/* Column highlights in comparison table */
.comparison-table .col-popular {
    background: rgba(26, 140, 78, 0.06);
}
.comparison-table .col-best {
    background: rgba(124, 58, 237, 0.06);
}
.comparison-table .row-highlight td {
    font-weight: 600;
}
.comparison-table .row-highlight .col-best {
    color: #7c3aed;
}

/* Guarantee badge */
.pricing-guarantee {
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--text-muted, #6b7280);
    padding-top: 12px;
    border-top: 1px solid var(--border, #e5e7eb);
}

/* Plan highlights section */
.pricing-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 2.5rem 0;
}
.highlight-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius-lg, 12px);
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
}
.highlight-card .highlight-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.highlight-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #111827);
}
.highlight-card p {
    font-size: 0.85rem;
    color: var(--text-secondary, #374151);
    line-height: 1.5;
}
.highlight-premium {
    border-color: var(--primary, #1a8c4e);
    background: linear-gradient(135deg, rgba(26,140,78,0.03), rgba(26,140,78,0.08));
}
.highlight-plus {
    border-color: #7c3aed;
    background: linear-gradient(135deg, rgba(124,58,237,0.03), rgba(124,58,237,0.08));
}

/* Legal links grid */
.pricing-legal-links {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary, #f9fafb);
    border-radius: var(--radius-lg, 12px);
}
.pricing-legal-links p {
    font-size: 0.9rem;
    color: var(--text-secondary, #374151);
    margin-bottom: 0.75rem;
}
.legal-links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.legal-links-grid a {
    font-size: 0.85rem;
    color: var(--primary, #1a8c4e);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius-md, 8px);
    background: var(--bg-card, #fff);
    transition: var(--transition, all 0.2s);
}
.legal-links-grid a:hover {
    border-color: var(--primary, #1a8c4e);
    background: rgba(26, 140, 78, 0.05);
}

/* Legal consent notification banner */
.legal-consent-banner {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: var(--radius-lg, 12px);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}
.legal-consent-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.legal-consent-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}
.legal-consent-text strong {
    display: block;
    font-size: 0.95rem;
    color: #92400e;
    margin-bottom: 0.25rem;
}
.legal-consent-text p {
    font-size: 0.85rem;
    color: #78350f;
    margin: 0;
    line-height: 1.5;
}
.legal-consent-text a {
    color: #92400e;
    font-weight: 600;
    text-decoration: underline;
}

/* ═══════════════════════════════════════════
   KPI Dashboard
   ═══════════════════════════════════════════ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}
.kpi-widget {
    background: var(--white, #fff);
    border-radius: var(--radius, 12px);
    padding: 1.2rem;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.08));
    transition: box-shadow .2s;
}
.kpi-widget:hover { box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,.12)); }
.kpi-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: .6rem;
}
.kpi-widget-header h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}
.kpi-widget-meta {
    display: flex;
    gap: .4rem;
    align-items: center;
    margin-bottom: .8rem;
    flex-wrap: wrap;
}
.kpi-widget-body {
    min-height: 80px;
    position: relative;
}
.kpi-widget-body canvas {
    width: 100% !important;
    max-height: 220px;
}
.kpi-card-value {
    text-align: center;
    padding: 1rem 0;
}
.kpi-type-kpi_card .kpi-widget-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ═══════════════════════════════════════════
   Form Sections in sheet editor
   ═══════════════════════════════════════════ */
.section-columns-grid {
    display: grid;
    gap: 1rem;
}
.section-columns-grid.cols-1 { grid-template-columns: 1fr; }
.section-columns-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.section-columns-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.section-columns-grid .span-2 { grid-column: span 2; }
.section-columns-grid .span-3 { grid-column: span 3; }

@media (max-width: 768px) {
    .kpi-grid { grid-template-columns: 1fr; }
    .section-columns-grid.cols-2,
    .section-columns-grid.cols-3 { grid-template-columns: 1fr; }
    .section-columns-grid .span-2,
    .section-columns-grid .span-3 { grid-column: span 1; }
}
.faq-item a {
    color: var(--primary, #1a8c4e);
}
.pricing-legal-links {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border, #e5e7eb);
    font-size: 0.85rem;
    color: var(--text-muted, #6b7280);
}
.pricing-legal-links a {
    color: var(--primary, #1a8c4e);
}

/* ============================================================
   FOOTER (enhanced)
   ============================================================ */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 1.5rem;
}
.footer-tagline {
    color: var(--text-muted, #9ca3af);
    font-size: 0.88rem;
    margin-top: 0.75rem;
    line-height: 1.5;
}
.footer-links h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.4rem;
}
.footer-links a {
    color: var(--text-muted, #9ca3af);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #fff;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.25rem;
    text-align: center;
}
.footer-currency-form select {
    width: 100%;
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-md, 8px);
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
}
.footer-currency-form select option {
    color: #111;
    background: #fff;
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .comparison-table { font-size: 0.8rem; }
    .comparison-table th, .comparison-table td { padding: 0.5rem; }
    .legal-header h1 { font-size: 1.5rem; }
    .pricing-page .pricing-grid {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .pricing-page .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   Cookie Consent Banner & Modal
   =================================== */

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 1.5rem;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

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

#cookie-consent-banner.hiding {
    animation: slideDown 0.3s ease-in forwards;
}

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-banner-text p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-banner-actions .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cookie-banner-actions .btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.cookie-banner-actions .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.cookie-banner-actions .btn-secondary {
    background: #475569;
    border: none;
    color: white;
}

.cookie-banner-actions .btn-secondary:hover {
    background: #64748b;
}

/* Cookie Preferences Modal */
#cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

#cookie-preferences-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s;
}

#cookie-preferences-modal.show .cookie-modal-content {
    transform: translateY(0);
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1e293b;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    transition: color 0.2s;
}

.cookie-modal-close:hover {
    color: #1e293b;
}

.cookie-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-category {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.cookie-category-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

/* Toggle Switch */
.cookie-toggle {
    flex-shrink: 0;
}

.cookie-toggle input {
    display: none;
}

.cookie-toggle label {
    display: block;
    width: 48px;
    height: 26px;
    background: #cbd5e1;
    border-radius: 26px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.cookie-toggle label::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + label {
    background: var(--primary, #1a8c4e);
}

.cookie-toggle input:checked + label::after {
    transform: translateX(22px);
}

.cookie-toggle input:disabled + label {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.cookie-modal-footer .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-modal-footer .btn-secondary {
    background: #e2e8f0;
    border: none;
    color: #475569;
}

.cookie-modal-footer .btn-secondary:hover {
    background: #cbd5e1;
}

@media (max-width: 640px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-banner-actions .btn {
        flex: 1;
        min-width: 100px;
    }
}

/* ===== CONTEXTUAL HELP TRIGGER ===== */
.contextual-help-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg, #f1f5f9);
    border: 1px solid var(--border, #e2e8f0);
    font-size: 0.7rem;
    cursor: pointer;
    margin-left: 6px;
    color: var(--text-muted, #94a3b8);
    transition: all 0.2s;
    font-weight: 700;
    vertical-align: middle;
}

.contextual-help-trigger:hover {
    background: var(--primary, #1a8c4e);
    color: white;
    border-color: var(--primary, #1a8c4e);
}
