/* ============================================
   RENTASITE — Design System
   ============================================ */

/* === VARIABLES === */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-tertiary: #1a1f35;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-1: #6366f1;
    --accent-2: #8b5cf6;
    --accent-3: #a78bfa;
    --gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
    --gradient-btn: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow: 0 4px 24px rgba(0,0,0,0.25);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === LIGHT THEME (warm orangish) === */
[data-theme="light"] {
    --bg-primary: #FDF6EE;
    --bg-secondary: #F5E8D8;
    --bg-tertiary: #EEDCC8;
    --bg-card: rgba(160, 100, 40, 0.05);
    --bg-card-hover: rgba(160, 100, 40, 0.09);
    --border: rgba(140, 90, 30, 0.12);
    --border-hover: rgba(140, 90, 30, 0.22);
    --text-primary: #2C1A0E;
    --text-secondary: #6B4F3E;
    --text-muted: #9C8070;
    --accent-3: #6d28d9;
    --shadow: 0 4px 24px rgba(120, 80, 40, 0.1);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.08);
}
[data-theme="light"] .gradient-text {
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #6d28d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
[data-theme="light"] .hero-orb { opacity: 0.15; }
[data-theme="light"] .nav.scrolled {
    background: rgba(253, 246, 238, 0.9);
}
[data-theme="light"] .nav-links a:hover {
    background: rgba(0,0,0,0.04);
}
[data-theme="light"] .currency-select {
    background: rgba(0,0,0,0.04);
}
[data-theme="light"] .pricing-features li {
    border-bottom-color: rgba(0,0,0,0.04);
}
[data-theme="light"] .summary-item {
    border-bottom-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .popular-badge,
[data-theme="light"] .step-number {
    color: #fff;
}
[data-theme="light"] .btn-primary { color: #fff; }
[data-theme="light"] .sidebar-avatar,
[data-theme="light"] .customer-avatar { color: #fff; }
[data-theme="light"] .cta-inner { color: #fff; }
[data-theme="light"] .cta-inner .btn { color: var(--accent-1); }

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }

/* === UTILITIES === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section { padding: 100px 0; }
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-3);
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
}
.text-center { text-align: center; }

/* === REVEAL ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--gradient-btn);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}
.btn-outline {
    border: 1.5px solid var(--border-hover);
    color: var(--text-primary);
    background: transparent;
}
.btn-outline:hover {
    border-color: var(--accent-1);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-ghost { color: var(--text-secondary); }
.btn-ghost:hover { color: var(--accent-3); }

/* === NAVIGATION === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    padding: 16px 0;
    transition: var(--transition);
}
.nav.scrolled {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 0;
    padding: 10px 0;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-logo i {
    font-size: 1.2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-links a {
    padding: 8px 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
}
.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.currency-select {
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}
.currency-select:hover { border-color: var(--accent-1); }
.currency-select option { background: var(--bg-secondary); color: var(--text-primary); }
.theme-toggle {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 0.95rem;
    flex-shrink: 0;
}
.theme-toggle:hover {
    border-color: var(--accent-1);
    color: var(--accent-3);
    background: rgba(99, 102, 241, 0.08);
}
.account-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: var(--transition);
}
.account-pill:hover {
    border-color: var(--accent-1);
    background: rgba(99, 102, 241, 0.08);
}
.account-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}
.account-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.86rem;
    font-weight: 600;
}
.hamburger {
    display: none;
    cursor: pointer;
    padding: 4px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    flex-shrink: 0;
    position: relative;
}
.hamburger span {
    position: absolute;
    left: 50%;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
    transform: translateX(-50%);
}
.hamburger span:nth-child(1) { top: 13px; }
.hamburger span:nth-child(2) { top: 18px; }
.hamburger span:nth-child(3) { top: 23px; }
.hamburger.active span:nth-child(1) { top: 18px; transform: translateX(-50%) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-50%) scaleX(0); }
.hamburger.active span:nth-child(3) { top: 18px; transform: translateX(-50%) rotate(-45deg); }

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}
.hero-orb-1 {
    width: 500px; height: 500px;
    background: var(--accent-1);
    top: -10%; right: -5%;
    animation: orbFloat1 15s ease-in-out infinite;
}
.hero-orb-2 {
    width: 400px; height: 400px;
    background: var(--accent-2);
    bottom: -10%; left: -5%;
    animation: orbFloat2 18s ease-in-out infinite;
}
.hero-orb-3 {
    width: 300px; height: 300px;
    background: #ec4899;
    top: 40%; left: 40%;
    animation: orbFloat3 12s ease-in-out infinite;
}
@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.1); }
    66% { transform: translate(20px, -20px) scale(0.95); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.15); }
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 280px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%);
    z-index: 1;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-3);
    margin-bottom: 28px;
    animation: fadeInDown 0.8s ease;
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.6s both;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    animation: fadeInUp 0.8s ease 0.8s both;
}
.hero-stats .stat { text-align: center; }
.hero-stats .stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-stats .stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === HOW IT WORKS === */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}
.steps-grid::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-1), var(--accent-2), transparent);
    opacity: 0.3;
}
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}
.step-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}
.step-number {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
}
.step-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.step-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.step-icon {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--accent-3);
}

/* === PRICING === */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}
.pricing-toggle span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.pricing-toggle span.active { color: var(--text-primary); }
.toggle-switch {
    width: 52px;
    height: 28px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}
.toggle-switch.active { background: var(--accent-1); border-color: var(--accent-1); }
.toggle-switch::after {
    content: '';
    position: absolute;
    width: 22px; height: 22px;
    background: #fff;
    border-radius: 50%;
    top: 2px; left: 2px;
    transition: var(--transition);
}
.toggle-switch.active::after { left: 26px; }
.save-badge {
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}
.pricing-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}
.pricing-card.featured {
    background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
                var(--gradient) border-box;
    border: 2px solid transparent;
    box-shadow: var(--shadow-glow);
    transform: scale(1.03);
}
.pricing-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--gradient);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}
.pricing-header { margin-bottom: 28px; }
.pricing-tier {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-3);
    margin-bottom: 12px;
}
.pricing-amount {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.pricing-amount .currency { font-size: 1.4rem; font-weight: 600; }
.pricing-amount .period {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}
.pricing-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 8px;
}
.pricing-features {
    flex: 1;
    margin-bottom: 32px;
}
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i {
    color: var(--success);
    font-size: 0.8rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.pricing-features li i.fa-xmark { color: var(--text-muted); }
.pricing-card .btn { margin-top: auto; }

/* === CUSTOM BUILDER === */
.builder-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}
.builder-categories { display: flex; flex-direction: column; gap: 32px; }
.builder-category h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}
.builder-category h3 i { color: var(--accent-3); font-size: 0.9rem; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.feature-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}
.feature-card.selected {
    border-color: var(--accent-1);
    background: rgba(99, 102, 241, 0.08);
}
.feature-checkbox {
    width: 20px; height: 20px;
    border: 2px solid var(--border-hover);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: var(--transition);
}
.feature-card.selected .feature-checkbox {
    background: var(--gradient);
    border-color: transparent;
}
.feature-checkbox i { font-size: 0.65rem; opacity: 0; transition: var(--transition); }
.feature-card.selected .feature-checkbox i { opacity: 1; }
.feature-info { flex: 1; }
.feature-name {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.feature-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.feature-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-3);
    white-space: nowrap;
    margin-top: 2px;
}
.builder-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    position: sticky;
    top: 100px;
}
.builder-summary h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.builder-summary h3 i { color: var(--accent-3); }
.summary-items { margin-bottom: 24px; }
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.summary-item .name { color: var(--text-secondary); }
.summary-item .price { font-weight: 600; color: var(--text-primary); }
.summary-empty {
    text-align: center;
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.summary-empty i { font-size: 2rem; margin-bottom: 12px; display: block; opacity: 0.3; }
.summary-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0 16px;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.summary-total .label { font-weight: 600; font-size: 0.95rem; }
.summary-total .total-price {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === WHY RENTASITE === */
.why-section {
    background:
        linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.04) 48%, transparent 100%);
}
.why-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
    gap: 56px;
    align-items: end;
    margin-bottom: 40px;
}
.why-intro .section-title { margin-bottom: 0; }
.why-intro p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}
.why-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
    gap: 24px;
    align-items: stretch;
}
.why-panel,
.why-card,
.why-note {
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.why-panel:hover,
.why-card:hover,
.why-note:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}
.why-panel {
    border-radius: var(--radius-lg);
    padding: 32px;
}
.why-panel-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}
.why-panel-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.why-panel h3,
.why-card h3 {
    font-size: 1rem;
    font-weight: 750;
    margin-bottom: 6px;
}
.why-panel-header p,
.why-card p,
.why-note p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}
.why-checklist {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.why-checklist li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}
.why-checklist i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.14);
    color: var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    margin-top: 2px;
}
.why-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.why-card {
    border-radius: var(--radius-lg);
    padding: 28px;
}
.why-card > i {
    color: var(--accent-3);
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.why-note {
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 24px;
}
.why-note i {
    color: var(--warning);
    margin-top: 4px;
    flex-shrink: 0;
}

/* === FAQ === */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-item.active { border-color: rgba(99, 102, 241, 0.3); }
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    gap: 16px;
}
.faq-question i {
    color: var(--accent-3);
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.faq-item.active .faq-question i { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer p {
    padding: 0 24px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === CTA BANNER === */
.cta-banner {
    padding: 80px 0;
}
.cta-inner {
    background: var(--gradient);
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-inner h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}
.cta-inner p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto 32px;
    position: relative;
}
.cta-inner .btn {
    background: #fff;
    color: var(--accent-1);
    font-weight: 700;
    position: relative;
}
.cta-inner .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* === FOOTER === */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.6;
}
.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.footer-socials a {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 0.9rem;
}
.footer-socials a:hover {
    border-color: var(--accent-1);
    color: var(--accent-3);
    background: rgba(99, 102, 241, 0.1);
}
.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.footer-column a {
    display: block;
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 6px 0;
    transition: var(--transition);
}
.footer-column a:hover { color: var(--accent-3); transform: translateX(4px); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--text-muted); transition: var(--transition); }
.footer-legal a:hover { color: var(--accent-3); }

/* === LOGIN PAGE === */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 80px 24px;
}
.auth-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow);
}
.auth-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}
.auth-card .subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 32px;
}
.auth-tabs {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 28px;
}
.auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}
.auth-tab.active {
    background: var(--accent-1);
    color: #fff;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.92rem;
    transition: var(--transition);
}
.form-input:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-input::placeholder { color: var(--text-muted); }
.form-message {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 0.88rem;
    border: 1px solid var(--border);
}
.form-message.success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.25);
}
.form-message.error {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.25);
}
.form-message.info {
    background: rgba(59, 130, 246, 0.12);
    color: var(--info);
    border-color: rgba(59, 130, 246, 0.25);
}
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.82rem;
}
.form-footer a { color: var(--accent-3); }
.form-footer a:hover { text-decoration: underline; }
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
}
.form-check input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--accent-1);
    cursor: pointer;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.social-btns {
    display: flex;
    gap: 12px;
}
.social-btn {
    flex: 1;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}
.social-btn:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.auth-link {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.auth-link a { color: var(--accent-3); font-weight: 600; }

/* === DASHBOARD & ADMIN LAYOUT === */
.app-layout {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}
.sidebar-logo {
    padding: 0 24px 24px;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.sidebar-logo i {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sidebar-nav { flex: 1; padding: 0 12px; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    margin-bottom: 2px;
}
.sidebar-nav a:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
}
.sidebar-nav a.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}
.sidebar-nav a.active i { color: var(--accent-3); }
.sidebar-nav a i { width: 20px; text-align: center; font-size: 0.9rem; }
.sidebar-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 16px 16px 8px;
}
.sidebar-footer {
    padding: 16px 16px;
    border-top: 1px solid var(--border);
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
}
.sidebar-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}
.sidebar-user-info .name { font-size: 0.85rem; font-weight: 600; }
.sidebar-user-info .role { font-size: 0.72rem; color: var(--text-muted); }

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 0;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar h1 {
    font-size: 1.3rem;
    font-weight: 700;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.topbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 240px;
}
.topbar-search i { color: var(--text-muted); font-size: 0.85rem; }
.topbar-search input {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.88rem;
    width: 100%;
}
.topbar-search input::placeholder { color: var(--text-muted); }
.notification-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}
.notification-btn:hover { border-color: var(--accent-1); color: var(--accent-3); }
.notification-dot {
    position: absolute;
    top: 8px; right: 8px;
    width: 8px; height: 8px;
    background: var(--danger);
    border-radius: 50%;
}
.page-content { padding: 32px; }

/* === STATS CARDS === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}
.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.stat-card-header span {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}
.stat-card-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.stat-card-icon.blue { background: rgba(99, 102, 241, 0.15); color: var(--accent-1); }
.stat-card-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.stat-card-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-2); }
.stat-card-icon.amber { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.stat-card .value {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.stat-card .change {
    font-size: 0.78rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}
.stat-card .change.up { color: var(--success); }
.stat-card .change.down { color: var(--danger); }

/* === DATA TABLE === */
.data-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.data-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.data-card-header h3 { font-size: 1rem; font-weight: 700; }
.data-card-actions { display: flex; gap: 10px; }
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    padding: 14px 24px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 16px 24px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.data-table tr:last-child td { border-bottom: none; }

/* Status badges */
.badge {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-active { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-inactive { background: rgba(100, 116, 139, 0.15); color: var(--text-muted); }
.badge-pending { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-completed { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-in-progress { background: rgba(59, 130, 246, 0.15); color: var(--info); }
.badge-queued { background: rgba(139, 92, 246, 0.15); color: var(--accent-2); }

/* Customer name with avatar */
.customer-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}
.customer-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.72rem;
    color: #fff;
    flex-shrink: 0;
}
.customer-cell .name { font-weight: 600; color: var(--text-primary); }

/* Action buttons in table */
.table-actions {
    display: flex;
    gap: 6px;
}
.table-action-btn {
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
    font-size: 0.82rem;
    background: transparent;
}
.table-action-btn:hover {
    border-color: var(--accent-1);
    color: var(--accent-3);
    background: rgba(99, 102, 241, 0.08);
}

/* === DASHBOARD SPECIFIC === */
.plan-overview {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}
.plan-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.plan-overview-header h3 { font-size: 1rem; font-weight: 700; }
.plan-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.12);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-3);
}
.plan-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.plan-detail {
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-sm);
    padding: 16px;
}
.plan-detail .label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }
.plan-detail .value { font-size: 1.1rem; font-weight: 700; }

.maintenance-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}
.maintenance-form-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.maintenance-form-card h3 i { color: var(--accent-3); }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.92rem;
    transition: var(--transition);
    cursor: pointer;
    appearance: none;
}
.form-group select:focus { border-color: var(--accent-1); }
.form-group select option { background: var(--bg-secondary); }
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.92rem;
    transition: var(--transition);
    resize: vertical;
    min-height: 120px;
}
.form-group textarea:focus { border-color: var(--accent-1); }
.form-group textarea::placeholder { color: var(--text-muted); }

.file-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}
.file-upload input[type="file"] {
    display: block;
    max-width: 100%;
    margin: 14px auto 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.file-upload:hover {
    border-color: var(--accent-1);
    background: rgba(99, 102, 241, 0.04);
}
.file-upload i {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}
.file-upload p { font-size: 0.85rem; color: var(--text-muted); }
.file-upload span { color: var(--accent-3); font-weight: 600; }
.attachment-link {
    display: block;
    color: var(--accent-3);
    font-size: 0.78rem;
    margin-bottom: 4px;
}
.attachment-link:hover { text-decoration: underline; }
.text-muted { color: var(--text-muted); }

/* === SUPPORT TICKETS === */
.support-workspace {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.35fr);
    gap: 24px;
    margin-bottom: 32px;
    align-items: start;
}
.support-list,
.support-detail {
    min-width: 0;
}
.ticket-list {
    display: flex;
    flex-direction: column;
}
.ticket-list-item {
    display: block;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.ticket-list-item:last-child { border-bottom: 0; }
.ticket-list-item:hover,
.ticket-list-item.active {
    background: rgba(99, 102, 241, 0.08);
}
.ticket-list-top,
.ticket-list-meta,
.support-detail-header,
.message-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ticket-list-top strong {
    color: var(--text-primary);
    font-size: 0.92rem;
    line-height: 1.35;
}
.ticket-list-meta {
    margin: 10px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.ticket-list-item p {
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.55;
}
.ticket-unread {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    padding: 0 7px;
    background: var(--danger);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}
.ticket-unread.inline {
    margin-left: 8px;
    vertical-align: middle;
}
.support-detail {
    padding: 28px;
}
.support-detail-header {
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.support-detail-header .section-label {
    margin-bottom: 8px;
}
.support-detail-header h3 {
    font-size: 1.25rem;
    line-height: 1.35;
    margin-bottom: 6px;
}
.support-detail-header p {
    color: var(--text-muted);
    font-size: 0.88rem;
}
.support-status-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.ticket-description {
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 20px;
}
.ticket-description h4 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.ticket-description p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.92rem;
}
.ticket-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
.ticket-attachments .attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}
.message-thread {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}
.message-bubble {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    max-width: 82%;
}
.message-bubble.customer {
    background: rgba(255,255,255,0.035);
    align-self: flex-start;
}
.message-bubble.admin {
    background: rgba(99, 102, 241, 0.11);
    border-color: rgba(99, 102, 241, 0.24);
    align-self: flex-end;
}
.message-meta {
    margin-bottom: 8px;
    font-size: 0.78rem;
}
.message-meta strong { color: var(--text-primary); }
.message-meta span { color: var(--text-muted); }
.message-bubble p {
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.92rem;
}
.reply-form {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}
.closed-ticket-note,
.empty-state {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}
.closed-ticket-note {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.025);
}
.closed-ticket-note i { color: var(--warning); }
.empty-state {
    padding: 24px;
    text-align: center;
}
.ticket-detail-card {
    margin-top: 24px;
}

/* === LEGAL PAGES === */
.legal-page {
    min-height: 100vh;
    padding: 64px 0;
    background: var(--bg-primary);
}
.legal-container {
    max-width: 860px;
}
.legal-container .nav-logo {
    margin-bottom: 40px;
}
.legal-container h1 {
    font-size: 2.4rem;
    line-height: 1.1;
    margin-bottom: 10px;
}
.legal-updated {
    color: var(--text-muted);
    margin-bottom: 34px;
}
.legal-container section {
    border-top: 1px solid var(--border);
    padding: 24px 0;
}
.legal-container h2 {
    font-size: 1rem;
    margin-bottom: 10px;
}
.legal-container p {
    color: var(--text-secondary);
}
.legal-disclaimer {
    padding: 16px;
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-sm);
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning) !important;
}

/* === COOKIE CONSENT === */
.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 10001;
    display: none;
    pointer-events: none;
}
.cookie-banner.active {
    display: block;
}
.cookie-inner {
    max-width: 920px;
    margin: 0 auto;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    pointer-events: auto;
}
.cookie-inner p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}
.cookie-inner a {
    color: var(--accent-3);
    font-weight: 600;
}
.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* === TOAST === */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    min-width: 300px;
    animation: toastIn 0.4s ease;
    font-size: 0.88rem;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--info); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast i { font-size: 1.1rem; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.info i { color: var(--info); }
.toast.warning i { color: var(--warning); }
.toast-close {
    margin-left: auto;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    transition: var(--transition);
}
.toast-close:hover { color: var(--text-primary); }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
.toast.hiding {
    animation: toastOut 0.3s ease forwards;
}
@keyframes toastOut {
    to { opacity: 0; transform: translateX(40px); }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .topbar-search { display: none; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-4px); }
    .builder-layout { grid-template-columns: 1fr; }
    .builder-summary { position: static; }
    .why-intro,
    .why-layout { grid-template-columns: 1fr; }
    .why-intro { gap: 20px; }
    .support-workspace { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .plan-details { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    body { font-size: 15px; }
    .section { padding: 60px 0; }
    .nav { padding: 10px 0; }
    .nav.scrolled { padding: 10px 0; }
    .nav-inner {
        gap: 12px;
        position: relative;
    }
    .nav-logo {
        font-size: 1.15rem;
        min-width: 0;
        flex-shrink: 0;
    }
    .nav-right {
        gap: 8px;
        min-width: 0;
    }
    .nav-links {
        display: flex;
        position: fixed;
        top: 64px;
        left: 12px;
        right: 12px;
        bottom: auto;
        padding: 12px;
        background: rgba(17, 24, 39, 0.96);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        box-shadow: 0 24px 70px rgba(0,0,0,0.42);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 4px;
        z-index: 2001;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        max-height: calc(100svh - 84px);
        overflow-y: auto;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }
    [data-theme="light"] .nav-links {
        background: rgba(253, 246, 238, 0.96);
    }
    .nav-links.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
    .nav-links a {
        font-size: 1rem;
        padding: 13px 14px;
        border-radius: var(--radius-sm);
        color: var(--text-primary);
    }
    .hamburger {
        display: flex;
        z-index: 2002;
    }
    .hero h1 { font-size: 2.2rem; }
    .hero-stats { gap: 24px; }
    .steps-grid { grid-template-columns: 1fr; }
    .steps-grid::before { display: none; }
    .feature-grid { grid-template-columns: 1fr; }
    .why-cards { grid-template-columns: 1fr; }
    .why-panel,
    .why-card { padding: 24px; }
    .why-note { flex-direction: column; }
    .support-detail-header { flex-direction: column; }
    .support-status-stack { justify-content: flex-start; }
    .message-bubble { max-width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .footer-legal {
        flex-wrap: wrap;
        gap: 10px 16px;
    }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .sidebar {
        width: min(86vw, 320px);
        transform: translateX(-100%);
        transition: var(--transition);
        box-shadow: 24px 0 60px rgba(0,0,0,0.35);
    }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .topbar {
        padding: 12px 16px;
        gap: 12px;
    }
    .topbar h1 {
        font-size: 1.05rem;
        max-width: 48vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .topbar-right { gap: 8px; }
    .notification-btn,
    .topbar .theme-toggle,
    .sidebar-toggle {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }
    .page-content { padding: 16px; }
    .stat-card,
    .plan-overview,
    .maintenance-form-card,
    .support-detail {
        border-radius: var(--radius-md);
        padding: 18px;
    }
    .stat-card .value { font-size: 1.35rem; }
    .plan-overview-header,
    .data-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .plan-name { max-width: 100%; }
    .data-card-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }
    .data-card-actions .btn { width: 100%; }
    .data-table,
    .data-table thead,
    .data-table tbody,
    .data-table th,
    .data-table td,
    .data-table tr {
        display: block;
    }
    .data-table thead { display: none; }
    .data-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }
    .data-table tr {
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: rgba(255,255,255,0.025);
        overflow: hidden;
    }
    .data-table td {
        display: grid;
        grid-template-columns: minmax(96px, 0.42fr) minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        padding: 12px;
        border-bottom: 1px solid rgba(255,255,255,0.04);
        word-break: break-word;
    }
    .data-table td:last-child { border-bottom: 0; }
    .data-table td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .data-table td[colspan] {
        display: block;
        text-align: center;
    }
    .data-table td[colspan]::before { content: none; }
    .table-actions { justify-content: flex-start; }
    .table-action-btn {
        width: 38px;
        height: 38px;
    }
    .support-workspace {
        gap: 16px;
        margin-bottom: 20px;
    }
    .support-detail-header { flex-direction: column; }
    .support-status-stack { justify-content: flex-start; }
    .message-thread { gap: 10px; }
    .message-bubble {
        max-width: 100%;
        padding: 14px;
    }
    .message-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .ticket-list-item { padding: 16px; }
    .ticket-list-top,
    .ticket-list-meta {
        align-items: flex-start;
    }
    .ticket-description { padding: 14px; }
    .file-upload {
        padding: 18px;
        text-align: left;
    }
    .auth-page {
        min-height: 100svh;
        padding: 24px 16px;
        align-items: flex-start;
    }
    .auth-card {
        padding: 28px 20px;
        border-radius: var(--radius-lg);
        margin-top: 20px;
    }
    .auth-card h2 { font-size: 1.35rem; }
    .legal-page { padding: 28px 0; }
    .legal-container h1 { font-size: 1.8rem; }
    .legal-container .nav-logo { margin-bottom: 28px; }
    .legal-container section { padding: 18px 0; }
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
    }
    .cookie-inner {
        max-width: none;
        padding: 16px;
        border-radius: var(--radius-lg);
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        box-shadow: 0 18px 50px rgba(0,0,0,0.35);
    }
    .cookie-inner p {
        font-size: 0.84rem;
        line-height: 1.55;
    }
    .cookie-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .cookie-actions .btn {
        width: 100%;
        min-height: 44px;
        padding: 12px 14px;
    }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .nav-inner { gap: 10px; }
    .nav-logo span { max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .nav-right { gap: 6px; }
    .nav-right .theme-toggle { display: none; }
    .currency-select { max-width: 74px; padding: 8px; }
    .account-name { display: none; }
    .account-pill { padding: 5px; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .pricing-card { padding: 28px 20px; }
    .pricing-amount { font-size: 2.5rem; }
    .auth-card { padding: 26px 18px; }
    .social-btns { flex-direction: column; }
    .topbar h1 { max-width: 42vw; }
    .page-content { padding: 12px; }
    .data-card-header { padding: 16px; }
    .data-table tbody { padding: 10px; }
    .data-table td {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .customer-cell {
        align-items: flex-start;
    }
    .support-detail-header h3 { font-size: 1.08rem; }
    .reply-form .btn,
    .maintenance-form-card .btn {
        width: 100%;
    }
    .toast-container {
        left: 10px;
        right: 10px;
        top: 10px;
    }
    .toast { min-width: 0; width: 100%; }
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
    }
    .cookie-inner {
        padding: 14px;
        gap: 12px;
    }
    .cookie-actions {
        grid-template-columns: 1fr;
    }
}

/* === MOBILE SIDEBAR TOGGLE === */
.sidebar-toggle {
    display: none;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
}
@media (max-width: 768px) {
    .sidebar-toggle { display: flex; }
}
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}
.sidebar-overlay.active { display: block; }
