/* ==========================================================================
   REGISTERKARO — ULTRA MODERN FUTURISTIC UI SYSTEM v2.0
   Color: Space Purple × Cyan × Orange | Bootstrap 5 Enhanced
   ========================================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* Bootstrap 5 utility compatibility (Local asset) */
@import url('bootstrap.min.css');

/* --- CSS VARIABLES & THEMES --- */
:root {
    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    /* NEW Vibrant Palette */
    --primary: #8B5CF6;          /* Violet */
    --primary-rgb: 139, 92, 246;
    --secondary: #06D6A0;        /* Emerald Cyan */
    --secondary-rgb: 6, 214, 160;
    --accent: #F97316;           /* Vivid Orange */
    --accent-rgb: 249, 115, 22;
    --pink: #EC4899;
    --pink-rgb: 236, 72, 153;

    /* Light Mode — Lavender White */
    --bg-base: #F5F3FF;
    --bg-surface: rgba(255, 255, 255, 0.80);
    --bg-sidebar: rgba(255, 255, 255, 0.92);
    --bg-card: rgba(255,255,255,0.65);
    --text-primary: #1E1033;
    --text-secondary: #5B4F7A;
    --text-muted: #9F8FC0;
    --border-color: rgba(139, 92, 246, 0.12);
    --border-glow: rgba(139, 92, 246, 0.25);
    --shadow-soft: 0 8px 32px -8px rgba(139,92,246,0.15), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 30px rgba(139,92,246,0.18);

    /* Transitions & Corners */
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 9px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    /* Dark Mode — Space Purple (NOT black!) */
    --bg-base: #0D0820;          /* Deep space purple */
    --bg-surface: rgba(22, 14, 50, 0.72);
    --bg-sidebar: rgba(18, 10, 42, 0.90);
    --bg-card: rgba(28, 18, 60, 0.70);
    --text-primary: #F0EBFF;
    --text-secondary: #B39DDB;
    --text-muted: #7B68A8;
    --border-color: rgba(139, 92, 246, 0.14);
    --border-glow: rgba(139, 92, 246, 0.32);
    --shadow-soft: 0 20px 50px -12px rgba(0, 0, 0, 0.6), 0 0 1px rgba(139,92,246,0.2);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
}

/* --- BASE STYLES --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--pink));
    border-radius: 4px;
}

/* --- DYNAMIC MATRIX BACKDROP --- */
#particle-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.7;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

p { line-height: 1.65; color: var(--text-secondary); }

.gradient-text {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 40%, #F97316 80%, #06D6A0 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    0%   { background-position: 0% center; }
    100% { background-position: 300% center; }
}


/* --- GLASSMORPHISM COMPONENTS --- */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
}

/* --- HEADER / NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
}

[data-theme="dark"] header {
    background: rgba(22, 14, 50, 0.72);
}

[data-theme="dark"] header.scrolled {
    background: rgba(13, 8, 32, 0.98);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo svg {
    stroke: var(--primary);
    fill: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 57px;
    z-index: 101;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-fast);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle */
.theme-btn {
    background: none;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.theme-btn:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary);
}

.theme-btn svg {
    width: 20px;
    height: 20px;
}

.theme-btn .sun-icon { display: none; }
[data-theme="dark"] .theme-btn .sun-icon { display: block; }
[data-theme="dark"] .theme-btn .moon-icon { display: none; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--pink) 60%, var(--accent) 100%);
    background-size: 200% auto;
    color: white;
    box-shadow: 0 4px 20px rgba(139,92,246,0.35);
    border: none;
    font-family: var(--font-display);
    font-weight: 700;
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(139,92,246,0.5), 0 0 16px rgba(249,115,22,0.25);
    color: white;
}

.btn-secondary {
    background: rgba(139,92,246,0.06);
    color: var(--primary);
    border: 1.5px solid rgba(139,92,246,0.25);
    backdrop-filter: blur(8px);
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(139,92,246,0.12);
    border-color: var(--primary);
    transform: translateY(-1px);
    color: var(--primary);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    padding: 140px 24px 80px;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-badge {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(236,72,153,0.06));
    border: 1px solid rgba(139,92,246,0.25);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 0 14px rgba(139,92,246,0.1);
    font-family: var(--font-display);
}

.hero-badge span {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.4); }
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.04em;
    font-family: var(--font-display);
}

.hero p {
    font-size: 1.15rem;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Hero Live Stats Strip */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 20px 28px;
    background: var(--bg-surface);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: fit-content;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 24px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    font-family: var(--font-display);
}

.stat-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border-color);
    flex-shrink: 0;
}

/* WhatsApp Quick Reply Chips */
.wa-quick-replies {
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid var(--border-color);
}

.wa-chip {
    background: rgba(37, 211, 102, 0.06);
    border: 1px solid rgba(37, 211, 102, 0.25);
    color: #128C7E;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

[data-theme="dark"] .wa-chip {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border-color: rgba(37, 211, 102, 0.3);
}

.wa-chip:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
    transform: translateY(-1px);
}



/* Floating widgets or illustration */
.hero-visual {
    position: relative;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-sphere {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(var(--primary-rgb),0.4) 0%, rgba(var(--secondary-rgb),0.1) 70%, transparent 100%);
    filter: blur(40px);
    border-radius: 50%;
    animation: floatSphere 10s ease-in-out infinite alternate;
}

.floating-card {
    position: absolute;
    padding: 20px;
    width: 250px;
    animation: floatCard 6s ease-in-out infinite alternate;
}

.fc-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.fc-2 {
    bottom: 15%;
    right: 10%;
    animation-delay: 2s;
}

.fc-3 {
    top: 50%;
    right: 5%;
    width: 200px;
    animation-delay: 4s;
}

@keyframes floatSphere {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(20px, -20px); }
}

@keyframes floatCard {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-15px) rotate(1deg); }
}

/* --- MAIN LAYOUT SECTIONS --- */
section {
    padding: 90px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-header p {
    font-size: 1rem;
}

/* --- SERVICES GRID --- */
.services-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.service-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-card a {
    margin-top: auto;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-card a svg {
    transition: transform var(--transition-fast);
}

.service-card a:hover svg {
    transform: translateX(4px);
}

/* --- WHY CHOOSE US & TIMELINE --- */
.features-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 18px;
}

.feature-icon-wrapper {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(var(--secondary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary);
}

/* Timeline Layout */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 6px;
    width: 2px;
    height: calc(100% - 20px);
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.timeline-step {
    position: relative;
    margin-bottom: 32px;
}

.timeline-node {
    position: absolute;
    left: -30px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg-base);
    box-shadow: 0 0 10px var(--primary);
}

/* --- PRICING PACKAGES --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.pricing-card {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.pricing-card.premium-package {
    border-color: var(--secondary);
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(var(--secondary-rgb), 0.03) 100%);
}

.pricing-card.premium-package::after {
    content: 'RECOMMENDED';
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 1px;
}

.price-box {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
}

.price-period {
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.pricing-features svg {
    color: #10b981;
}

/* --- REVIEWS SLIDER --- */
.reviews-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    height: 250px;
}

.review-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 0 40px;
}

.review-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.review-text {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.5;
}

.reviewer-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 50px;
}

/* --- FAQ ACCORDION --- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-question {
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    user-select: none;
}

.faq-answer {
    padding: 0 22px;
    max-height: 0;
    overflow: hidden;
    color: var(--text-secondary);
    transition: max-height var(--transition-fast) ease-out, padding var(--transition-fast);
}

.faq-item.open .faq-answer {
    padding-bottom: 22px;
}

.faq-icon {
    transition: transform var(--transition-fast);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

/* --- CONTACT & NEWSLETTER --- */
.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-card-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-form-card {
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.15);
}

textarea.form-control {
    resize: none;
    min-height: 120px;
}

/* Newsletter Block */
.newsletter-section {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--secondary-rgb), 0.05));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 900px;
    margin: 50px auto 0;
}

.newsletter-form {
    display: flex;
    width: 100%;
    max-width: 500px;
    gap: 10px;
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--border-color);
    background: rgba(var(--primary-rgb), 0.02);
    padding: 60px 24px 24px;
    margin-top: 60px;
}

[data-theme="dark"] footer {
    background: rgba(22, 14, 50, 0.4);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1280px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- AUTHENTICATION INTERFACE (auth.php) --- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 24px;
}

.auth-container {
    width: 100%;
    max-width: 460px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
}

.auth-tab.active {
    color: var(--primary);
    border-color: var(--primary);
}

.auth-section {
    display: none;
}

.auth-section.active {
    display: block;
    animation: tabFade 0.3s ease-in-out;
}

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

.social-login {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.btn-social {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    background: transparent;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.btn-social:hover {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: var(--primary);
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-color);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-footer-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* --- UNIFIED PORTAL DASHBOARD (dashboard.php) --- */
.dashboard-wrapper {
    min-height: 100vh;
    display: flex;
}

/* Role switch bar */
.role-switcher-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(90deg, #1a0535 0%, #2D1060 50%, #0D2D4A 100%);
    border-bottom: 1px solid rgba(139,92,246,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 24px;
    justify-content: space-between;
}

.role-title {
    color: white;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-title span {
    background: linear-gradient(135deg, var(--accent), var(--pink));
    color: white;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
}

.role-buttons {
    display: flex;
    gap: 8px;
}

.role-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
}

.role-btn:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

.role-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
}

/* Sidebar */
.db-sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    padding: 24px 16px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 90;
    transition: transform var(--transition-smooth);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}
.db-sidebar::-webkit-scrollbar { width: 4px; }
.db-sidebar::-webkit-scrollbar-track { background: transparent; }
.db-sidebar::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--pink));
    color: white;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-display);
    font-size: 0.9rem;
    box-shadow: 0 4px 14px rgba(139,92,246,0.35);
}

.sidebar-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.sidebar-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 550;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.sidebar-menu a:hover,
.sidebar-menu li.active a {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(236,72,153,0.04));
    border-left: 3px solid var(--primary);
    padding-left: 13px;
}

/* Main Panel Area */
.db-content {
    flex: 1;
    padding: 0;
    background: radial-gradient(ellipse at 0% 0%, rgba(139,92,246,0.06) 0%, transparent 55%),
                radial-gradient(ellipse at 100% 100%, rgba(249,115,22,0.04) 0%, transparent 55%);
}

.db-page-header {
    margin-bottom: 24px;
}
.db-page-header h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}
.db-page-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.db-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

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

.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary), var(--pink)) 1;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--pink), var(--accent));
    border-radius: 3px 3px 0 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 1.9rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    font-family: var(--font-display);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(236,72,153,0.06));
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Charts Grid */
.db-charts-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    margin-bottom: 32px;
}

.chart-card {
    padding: 24px;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.chart-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.chart-container {
    flex: 1;
    position: relative;
}

canvas.dashboard-chart {
    width: 100% !important;
    height: 100% !important;
}

/* Data Table list */
.data-table-card {
    padding: 24px;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 16px;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

table.data-table th {
    padding: 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
}

table.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

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

.badge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

.badge-success { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.badge-pending { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

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

.modal-card {
    width: 100%;
    max-width: 500px;
    padding: 32px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-close {
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-muted);
}

/* --- CHAT BOT WIDGET --- */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.chat-trigger {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.35);
    border: none;
    transition: all var(--transition-fast);
}

.chat-trigger:hover {
    transform: scale(1.1) rotate(10deg);
}

.chat-box {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 480px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-soft), 0 10px 40px rgba(0,0,0,0.15);
}

.chat-box.open {
    display: flex;
    animation: chatOpen 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.chat-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-msg.bot {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-msg.user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.chat-input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-fast);
}

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

/* --- WHATSAPP SUPPORT WIDGET --- */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 100px;
    z-index: 100;
}

.whatsapp-trigger {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35);
    border: none;
    transition: all var(--transition-fast);
}

.whatsapp-trigger:hover {
    transform: scale(1.1) rotate(10deg);
}

.whatsapp-box {
    position: absolute;
    bottom: 70px;
    right: -70px;
    width: 350px;
    height: 420px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-soft), 0 10px 40px rgba(0,0,0,0.15);
}

.whatsapp-box.open {
    display: flex;
    animation: chatOpen 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.whatsapp-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #128C7E;
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
}

.whatsapp-input-area {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.whatsapp-input {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.whatsapp-input:focus {
    outline: none;
    border-color: #25D366;
}

.whatsapp-send-btn {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
    text-align: center;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.whatsapp-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* ============================================================
   RESPONSIVE / MOBILE STYLES
   ============================================================ */

/* --- Mobile Hamburger Button (hidden on desktop) --- */
.hamburger-btn {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 10px;
    color: var(--text-primary);
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}
.hamburger-btn span {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}
.hamburger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Nav links action buttons (inside mobile drawer) */
.nav-links-actions {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.nav-links-actions .btn {
    text-decoration: none;
    text-align: center;
}

/* Mobile sidebar overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}
.sidebar-overlay.active { display: block; }

/* Dashboard sidebar - ensure above overlay */
.db-sidebar { z-index: 1000; }

/* --- TABLET (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr !important;
        text-align: center;
        padding-top: 100px;
    }
    .hero-content { order: 2; }
    .hero-visual { order: 1; margin-bottom: 40px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; flex-wrap: wrap; }

    .features-layout {
        grid-template-columns: 1fr !important;
    }

    .contact-layout {
        grid-template-columns: 1fr !important;
    }

    .pricing-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* --- TABLET/MOBILE NAV (max-width: 900px) --- */
@media (max-width: 900px) {
    .hamburger-btn { display: flex !important; }
    .nav-actions .nav-signin { display: none !important; }
    .nav-actions .nav-getstarted { display: none !important; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        transform: none;
        height: 100vh;
        width: 280px;
        max-width: 85vw;
        background: var(--bg-surface);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column !important;
        padding: 70px 20px 24px;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 999;
        border-left: 1px solid var(--border-color);
        box-shadow: -4px 0 30px rgba(0,0,0,0.2);
        display: flex !important;
        overflow-y: auto;
        align-items: flex-start;
    }
    .nav-links.open { right: 0; }
    .nav-links li { width: 100%; }
    .nav-links li a {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links-actions { display: flex !important; }
    .nav-links-actions li { border-bottom: none; }
}

/* --- MOBILE (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Header / Navigation */
    .nav-container { padding: 10px 16px; }
    .logo { font-size: 1.15rem; }
    .logo svg { width: 22px; height: 22px; }

    .nav-actions { gap: 8px; }
    .nav-actions .theme-btn { width: 36px; height: 36px; min-width: 36px; }
    .nav-actions .theme-btn svg { width: 16px; height: 16px; }

    /* Dashboard sidebar trigger - ensure visible on mobile */
    #mobile-sidebar-trigger {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Dashboard sidebar */
    .db-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 4px 0 30px rgba(0,0,0,0.2);
    }
    .db-sidebar.open { transform: translateX(0); }
    .dashboard-main, .admin-main, .db-main {
        margin-left: 0 !important;
        padding: 16px !important;
        width: 100% !important;
    }
    .dashboard-layout, .admin-layout, .db-layout {
        display: block !important;
    }

    /* Hero */
    .hero { padding: 90px 16px 60px; min-height: auto; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .hero-stats { gap: 8px; padding: 14px 10px; width: 100%; flex-wrap: wrap; justify-content: center; }
    .hero-stat-item { padding: 0 8px; }
    .hero-stat-item .stat-number { font-size: 1.2rem; }
    .hero-stat-item .stat-desc { font-size: 0.65rem; }
    .hero-stat-divider { display: none; }
    .hero-visual { display: none; }
    .floating-card { display: none; }
    .hero-actions { flex-wrap: wrap; }
    .hero-actions .btn { padding: 8px 16px; font-size: 0.85rem; }

    /* Sections */
    section { padding: 50px 16px; }
    .section-header { margin-bottom: 30px; }
    .section-header h2 { font-size: 1.5rem; }
    .section-header p { font-size: 0.9rem; }

    /* Services Grid */
    .services-grid { grid-template-columns: 1fr !important; }
    .service-card { padding: 20px; }
    .services-tabs { flex-wrap: wrap; gap: 8px; }
    .tab-btn { padding: 8px 14px; font-size: 0.8rem; }

    /* Pricing */
    .pricing-grid { grid-template-columns: 1fr !important; }
    .pricing-card { padding: 24px; }
    .price-amount { font-size: 2.2rem; }

    /* Features */
    .feature-item { flex-direction: column; gap: 12px; }

    /* Timeline */
    .timeline { padding-left: 20px; }

    /* Reviews */
    .review-text { font-size: 0.9rem; }
    .reviews-slider { height: auto; min-height: 200px; padding: 10px 0; }
    .review-slide { padding: 0 10px; }

    /* FAQ */
    .faq-question { font-size: 0.9rem; padding: 16px; }
    .faq-answer { padding: 0 16px; }

    /* Contact */
    .contact-card-box { flex-direction: column; gap: 8px; }
    .contact-form-card { padding: 20px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-section { padding: 30px 16px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr !important; gap: 30px; }
    footer { padding: 50px 16px 20px; margin-top: 40px; }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 20px 16px;
    }
    .footer-bottom p { font-size: 0.75rem; text-align: center; }
    .footer-column h4 { font-size: 0.9rem; }
    .footer-column a { font-size: 0.85rem; }
    .footer-column p { font-size: 0.85rem; }

    /* Auth */
    .auth-container { padding: 24px 20px !important; max-width: 100% !important; }
    .auth-tabs { font-size: 0.85rem; }
    .auth-section { padding: 16px 0; }
    .form-group label { font-size: 0.8rem; }
    .form-control { padding: 10px 12px; font-size: 0.9rem; }

    /* Dashboard Layouts */
    .dashboard-layout, .db-layout, .admin-layout { display: block; }

    /* Dashboard Tables */
    .data-table { font-size: 0.78rem; }
    .data-table th { padding: 8px 6px; font-size: 0.72rem; }
    .data-table td { padding: 8px 6px; }
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table-responsive table { min-width: 500px; }

    /* Dashboard Cards */
    .glass-card { padding: 16px !important; border-radius: 14px !important; }

    /* Dashboard Navbar */
    .dashboard-main nav, .admin-main nav, .db-main nav {
        padding: 10px 14px !important;
        flex-wrap: wrap;
        gap: 8px;
    }
    .dashboard-main nav h4, .admin-main nav h4, .db-main nav h4 { font-size: 1rem !important; }
    .admin-layout > .db-sidebar, .db-layout > .db-sidebar { position: fixed !important; }
    .db-main { width: 100%; }

    /* Dashboard navbar logout link compact on mobile */
    .admin-main nav a[href*="logout"], .dashboard-main nav a[href*="logout"], .db-main nav a[href*="logout"] {
        padding: 6px 10px !important;
        font-size: 0.78rem !important;
    }
    .admin-main nav a[href*="logout"] svg, .dashboard-main nav a[href*="logout"] svg, .db-main nav a[href*="logout"] svg {
        width: 14px; height: 14px;
    }

    /* Stat Cards */
    .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; }
    .db-grid-stats { grid-template-columns: 1fr 1fr !important; gap: 12px; }
    .stat-card { padding: 14px; }
    .stat-value { font-size: 1.4rem; }
    .stat-icon { width: 40px; height: 40px; }
    .stat-icon svg { width: 20px; height: 20px; }

    /* Dashboard Charts */
    .db-charts-grid { grid-template-columns: 1fr !important; }
    .chart-card { min-height: 250px; padding: 16px; }

    /* Bootstrap row/col fixes for mobile */
    .db-main .row, .dashboard-main .row, .admin-main .row { margin: 0; }
    .db-main .col-lg-4, .db-main .col-lg-3, .db-main .col-lg-6, .db-main .col-lg-8,
    .dashboard-main .col-lg-4, .dashboard-main .col-lg-3, .dashboard-main .col-lg-6, .dashboard-main .col-lg-8,
    .admin-main .col-lg-4, .admin-main .col-lg-3, .admin-main .col-lg-6, .admin-main .col-lg-8,
    .db-main .col-md-4, .db-main .col-md-3, .db-main .col-md-6, .db-main .col-md-8,
    .dashboard-main .col-md-4, .dashboard-main .col-md-3, .dashboard-main .col-md-6, .dashboard-main .col-md-8,
    .admin-main .col-md-4, .admin-main .col-md-3, .admin-main .col-md-6, .admin-main .col-md-8 {
        width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important;
    }

    /* Modals */
    .modal-card, .glass-card[style*="max-width"] {
        max-width: 92% !important;
        padding: 20px !important;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Chat & WhatsApp widgets */
    .chat-widget, .whatsapp-widget { bottom: 15px !important; }
    .chat-widget { right: 15px !important; }
    .whatsapp-widget { right: 80px !important; }
    .chat-box, .whatsapp-box {
        width: calc(100vw - 30px) !important;
        max-width: 320px !important;
    }

    /* Packages checkout modal */
    #checkout-modal .glass-card,
    #upi-modal .glass-card,
    #sim-pay-modal .glass-card {
        max-width: 95% !important;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Announcement bar */
    .announcement-bar { font-size: 0.7rem; padding: 6px 12px; }

    /* Role switcher bar */
    .role-switcher-bar { font-size: 0.7rem; }
}

/* --- SMALL MOBILE (max-width: 480px) --- */
@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }
    .hero p { font-size: 0.9rem; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    .stats-grid, .db-grid-stats { grid-template-columns: 1fr !important; }

    .auth-tabs { font-size: 0.78rem; }

    .section-header h2 { font-size: 1.3rem; }

    .nav-actions .btn { padding: 5px 10px; font-size: 0.75rem; }

    .data-table { font-size: 0.72rem; }
    .data-table th, .data-table td { padding: 6px 4px; }

    .glass-card { padding: 14px !important; border-radius: 12px; }

    .dashboard-main nav, .admin-main nav, .db-main nav { padding: 8px 12px !important; }
    .dashboard-main nav h4, .admin-main nav h4, .db-main nav h4 { font-size: 0.9rem !important; }

    .chat-widget, .whatsapp-widget {
        bottom: 10px !important;
    }
    .chat-widget { right: 10px !important; }
    .whatsapp-widget { right: 70px !important; }

    .db-page-header h2 { font-size: 1.1rem; }
    .db-page-header p { font-size: 0.75rem; }
}