:root {
    --primary: #635bff;
    --primary-2: #00d4ff;
    --dark: #0f172a;
    --muted: #64748b;
    --soft: #f8fafc;
    --card: rgba(255, 255, 255, .82);
    --border: rgba(148, 163, 184, .22);
    --shadow: 0 24px 70px rgba(15, 23, 42, .12);
}

* { scroll-behavior: smooth; }
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--dark); background: #fff; }
a { color: var(--primary); }
.btn-primary { --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-bg: #5048e5; --bs-btn-hover-border-color: #5048e5; }
.glass-nav { background: rgba(255,255,255,.76); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.glass-card, .panel-card, .feature-card, .pricing-card, .use-card, .testimonial-card { background: var(--card); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow); backdrop-filter: blur(22px); }
.hero-section { position: relative; overflow: hidden; padding: 150px 0 90px; background: radial-gradient(circle at 10% 20%, rgba(99,91,255,.18), transparent 34%), radial-gradient(circle at 90% 10%, rgba(0,212,255,.2), transparent 28%), linear-gradient(180deg, #fff 0%, #f8fbff 100%); }
.hero-section:after { content: ""; position: absolute; inset: auto -10% -30% -10%; height: 280px; background: linear-gradient(90deg, rgba(99,91,255,.08), rgba(0,212,255,.12)); filter: blur(60px); }
.eyebrow { display: inline-flex; align-items: center; padding: .45rem .9rem; border-radius: 999px; color: var(--primary); background: rgba(99,91,255,.1); font-weight: 700; font-size: .82rem; letter-spacing: .02em; }
.hero-metrics { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-metrics div { min-width: 120px; padding: 1rem; border-radius: 22px; background: #fff; box-shadow: 0 12px 40px rgba(15,23,42,.08); }
.hero-metrics strong { display: block; font-size: 1.4rem; }
.hero-metrics span { color: var(--muted); font-size: .86rem; }
.demo-device { max-width: 390px; margin-inline: auto; overflow: hidden; padding-bottom: 1.5rem; }
.demo-cover { height: 140px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.demo-profile { padding: 0 1.5rem 1.5rem; text-align: center; }
.demo-avatar { width: 96px; height: 96px; margin: -48px auto 1rem; border-radius: 30px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.5rem; background: #111827; border: 6px solid #fff; }
.qr-preview, .qr-large { display: grid; place-items: center; padding: 1rem; background: #fff; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--border); }
.qr-preview { width: 180px; min-height: 180px; }
.qr-large { width: min(100%, 340px); min-height: 340px; }
.section-padding { padding: 92px 0; }
.bg-soft { background: var(--soft); }
.section-heading { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-heading h2 { margin-top: 1rem; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.feature-card, .use-card, .testimonial-card, .pricing-card { height: 100%; padding: 2rem; transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover, .use-card:hover, .testimonial-card:hover, .pricing-card:hover { transform: translateY(-6px); box-shadow: 0 30px 80px rgba(15,23,42,.16); }
.feature-card i { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; color: var(--primary); background: rgba(99,91,255,.1); font-size: 1.3rem; margin-bottom: 1.25rem; }
.feature-card p, .use-card p, .testimonial-card p { color: var(--muted); margin-bottom: 0; }
.pricing-card .price { font-size: 2.6rem; font-weight: 900; margin: 1rem 0; }
.pricing-card .price span { font-size: 1rem; color: var(--muted); }
.pricing-card.featured { background: linear-gradient(180deg, #fff, #eef2ff); border-color: rgba(99,91,255,.35); }
.pricing-card.compact { padding: 1.2rem; box-shadow: none; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.premium-accordion .accordion-item { border: 1px solid var(--border); border-radius: 20px; overflow: hidden; margin-bottom: 1rem; }
.dark-form { padding: 2rem; background: rgba(255,255,255,.08); }
.footer-section { background: #fff; border-top: 1px solid var(--border); }
.flash-stack { position: fixed; top: 86px; right: 18px; z-index: 1100; max-width: 380px; }

.auth-body { min-height: 100vh; background: radial-gradient(circle at 15% 15%, rgba(99,91,255,.20), transparent 30%), #f8fafc; }
.auth-card { width: min(100%, 520px); padding: 2.4rem; }

.admin-body { background: #f5f7fb; min-height: 100vh; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; padding: 1.25rem; background: #0f172a; color: #fff; z-index: 1020; }
.admin-sidebar .brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.2rem; padding: .85rem 1rem 1.5rem; }
.admin-sidebar .nav-link { color: rgba(255,255,255,.72); display: flex; align-items: center; gap: .8rem; border-radius: 16px; padding: .8rem 1rem; margin-bottom: .25rem; }
.admin-sidebar .nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-main { margin-left: 280px; padding: 1.5rem; }
.admin-topbar { padding: 1rem 1.25rem; margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.avatar-sm { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--dark); color: #fff; font-weight: 800; }
.dashboard-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.stat-card { padding: 1.3rem; border-radius: 24px; background: #fff; box-shadow: 0 18px 50px rgba(15,23,42,.08); border: 1px solid var(--border); }
.stat-card i { color: var(--primary); font-size: 1.3rem; }
.stat-card span { display: block; color: var(--muted); margin-top: .8rem; font-size: .9rem; }
.stat-card strong { display: block; font-size: 1.7rem; }
.panel-card { padding: 1.5rem; background: #fff; }
.premium-table thead th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); }
.premium-table td { border-color: var(--border); padding: 1rem .75rem; }
.mini-card { display: flex; justify-content: space-between; gap: 1rem; align-items: center; color: var(--dark); background: #f8fafc; padding: 1rem; border-radius: 18px; }
.mini-card small { color: var(--muted); }
.theme-admin-card { padding: 1.2rem; min-height: 150px; border-radius: 24px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(135deg, #111827, #334155); }
.premium-list .list-group-item { border-color: var(--border); padding: 1rem 0; }

.public-card-body { min-height: 100vh; background: linear-gradient(180deg, #f8fafc, #eef2ff); }
.card-profile { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.profile-shell { width: min(100%, 480px); overflow: hidden; border-radius: 36px; background: rgba(255,255,255,.9); border: 1px solid var(--border); box-shadow: var(--shadow); }
.profile-cover { height: 180px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); background-size: cover; background-position: center; }
.profile-content { padding: 0 1.4rem 1.4rem; text-align: center; }
.profile-avatar { width: 112px; height: 112px; margin: -56px auto 1rem; display: grid; place-items: center; border-radius: 34px; background: #111827; color: #fff; font-size: 2rem; font-weight: 900; border: 6px solid #fff; overflow: hidden; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-logo { max-height: 44px; max-width: 140px; object-fit: contain; margin-bottom: .75rem; }
.profile-title, .profile-bio { color: var(--muted); }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 1.3rem 0; }
.quick-actions a, .sector-actions a { text-decoration: none; color: var(--dark); background: #f8fafc; border: 1px solid var(--border); border-radius: 18px; padding: .85rem .5rem; display: grid; place-items: center; gap: .35rem; font-size: .82rem; font-weight: 700; }
.quick-actions i { color: var(--primary); font-size: 1.1rem; }
.social-row { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.3rem; }
.social-row a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #111827; color: #fff; text-decoration: none; }
.profile-info { display: grid; gap: .65rem; text-align: left; margin-bottom: 1rem; }
.profile-info div { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem; border-radius: 16px; background: #fff; border: 1px solid var(--border); }
.sector-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; }
.theme-premium-gold .profile-cover, .theme-premium-gold.theme-admin-card { background: linear-gradient(135deg, #7c5c12, #f4d06f); }
.theme-dark .profile-shell, .theme-dark.theme-admin-card { background: #101827; color: #fff; }
.theme-neon .profile-cover, .theme-neon.theme-admin-card { background: linear-gradient(135deg, #101827, #00f5d4, #7c3aed); }
.theme-tech .profile-cover, .theme-tech.theme-admin-card { background: linear-gradient(135deg, #0f172a, #2563eb); }
.theme-real-estate .profile-cover, .theme-real-estate.theme-admin-card { background: linear-gradient(135deg, #064e3b, #34d399); }
.theme-insurance .profile-cover, .theme-insurance.theme-admin-card { background: linear-gradient(135deg, #1e3a8a, #93c5fd); }
.theme-auto .profile-cover, .theme-auto.theme-admin-card { background: linear-gradient(135deg, #18181b, #ef4444); }
.theme-law .profile-cover, .theme-law.theme-admin-card { background: linear-gradient(135deg, #312e81, #c4b5fd); }
.theme-medical .profile-cover, .theme-medical.theme-admin-card { background: linear-gradient(135deg, #0e7490, #a5f3fc); }

.print-body { background: #eef2ff; }
.print-card { width: min(100%, 920px); margin: 40px auto; padding: 48px; background: #fff; border-radius: 32px; display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: center; box-shadow: var(--shadow); }
.print-actions { display: grid; gap: .5rem; color: var(--muted); }

[data-bs-theme="dark"] body, body.dark-mode { background: #0b1120; color: #e5e7eb; }
body.dark-mode .glass-nav, body.dark-mode .panel-card, body.dark-mode .feature-card, body.dark-mode .pricing-card, body.dark-mode .use-card, body.dark-mode .testimonial-card, body.dark-mode .profile-shell { background: rgba(15,23,42,.82); color: #e5e7eb; border-color: rgba(255,255,255,.1); }
body.dark-mode .text-muted, body.dark-mode .profile-title, body.dark-mode .profile-bio { color: #94a3b8 !important; }

@media (max-width: 1199px) { .dashboard-grid { grid-template-columns: repeat(3, 1fr); } .testimonial-grid { grid-template-columns: 1fr; } }
@media (max-width: 991px) { .admin-sidebar { position: static; width: auto; } .admin-main { margin-left: 0; } .hero-section { padding-top: 120px; } .print-card { grid-template-columns: 1fr; } }
@media (max-width: 575px) { .dashboard-grid { grid-template-columns: 1fr; } .quick-actions { grid-template-columns: repeat(2, 1fr); } .sector-actions { grid-template-columns: 1fr; } .auth-card { padding: 1.5rem; } }
