/* ==========================================================================
   CA LINGESHWAR KAPARTHI & ASSOCIATES - ROYAL EMERALD & GOLD LUXURY EDITION
   ========================================================================== */

:root {
    /* Brand Color System: Royal Amethyst Violet (#6141A6 - RGB 97, 65, 166) */
    --emerald-primary: #6141a6;       /* Royal Amethyst Violet */
    --emerald-hover: #4b2f8a;         /* Deep Amethyst Hover */
    --emerald-light: rgba(97, 65, 166, 0.08);
    --emerald-glow: rgba(97, 65, 166, 0.35);
    
    --gold-accent: #8365c3;          /* Medium Amethyst Accent */
    --gold-bright: #c8b8ee;          /* Soft Lavender Platinum */
    --gold-light: rgba(200, 184, 238, 0.15);
    
    --purple-accent: #6141a6;
    --cyan-accent: #8365c3;
    
    --bg-dark: #000000;               /* Monochromatic Pure Black */
    --bg-light: #ffffff;              /* Pure Crisp Luxury White */
    
    --card-bg-light: rgba(255, 255, 255, 0.96);
    --card-border-light: rgba(226, 232, 240, 0.95);
    --text-light-main: #0f172a;
    --text-light-muted: #1e293b;
    --text-light-sub: #475569;
    
    --card-bg-dark: rgba(18, 18, 18, 0.96);
    --card-border-dark: rgba(255, 255, 255, 0.16);
    --text-dark-main: #ffffff;
    --text-dark-muted: #e2e8f0;
    --text-dark-sub: #a1a1aa;
    
    --glass-blur: blur(24px);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-md: 0 12px 36px rgba(97, 65, 166, 0.08);
    --shadow-lg: 0 24px 48px rgba(97, 65, 166, 0.16);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-theme {
    --bg: var(--bg-light);
    --card-bg: var(--card-bg-light);
    --card-border: var(--card-border-light);
    --text-main: #0f172a;
    --text-muted: #334155;
    --text-sub: #64748b;
}

body.dark-theme {
    --bg: #000000;
    --card-bg: rgba(18, 18, 18, 0.96);
    --card-border: rgba(255, 255, 255, 0.16);
    --text-main: #ffffff;
    --text-muted: #e2e8f0;
    --text-sub: #a1a1aa;
    --emerald-primary: #ffffff;
    --emerald-hover: #e2e8f0;
    --emerald-light: rgba(255, 255, 255, 0.08);
    --emerald-glow: rgba(255, 255, 255, 0.2);
    --gold-bright: #ffffff;
    --gold-accent: #ffffff;
    --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.95);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.98);
}

/* --- Pure Black & White Dark Mode Overrides --- */
body.dark-theme .gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

body.dark-theme .btn-primary {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ffffff !important;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25) !important;
}

body.dark-theme .btn-primary:hover {
    background: #e2e8f0 !important;
    color: #000000 !important;
    box-shadow: 0 10px 28px rgba(255, 255, 255, 0.4) !important;
}

body.dark-theme .btn-glass,
body.dark-theme .btn-secondary {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

body.dark-theme .btn-glass:hover,
body.dark-theme .btn-secondary:hover {
    border-color: #ffffff !important;
    color: #ffffff !important;
}

body.dark-theme .hero-badge-pill,
body.dark-theme .section-badge,
body.dark-theme .live-status-pill,
body.dark-theme .tab-link.active,
body.dark-theme .pill-btn.active,
body.dark-theme .badge-verif,
body.dark-theme .status-dot {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

body.dark-theme .pill-dot {
    background: #000000 !important;
}

body.dark-theme .site-footer {
    background: #050505 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

body.dark-theme .site-footer h3,
body.dark-theme .site-footer p,
body.dark-theme .site-footer a,
body.dark-theme .site-footer strong,
body.dark-theme .footer-bottom,
body.dark-theme .footer-credentials {
    color: #ffffff !important;
}

body.dark-theme .footer-links a:hover {
    color: #a1a1aa !important;
}

body.dark-theme .footer-brand-box .logo-mark {
    background: #ffffff !important;
    color: #000000 !important;
}

body.dark-theme .footer-disclaimer {
    background: #121212 !important;
    border-left: 4px solid #ffffff !important;
    color: #e2e8f0 !important;
}

body.dark-theme .glow-orb {
    opacity: 0.05 !important;
    background: #ffffff !important;
}

body.dark-theme .pillar-num,
body.dark-theme .metric-val,
body.dark-theme .tax-price,
body.dark-theme .quote-icon,
body.dark-theme .section-tag,
body.dark-theme .leader-caption p,
body.dark-theme .company-sub {
    color: #ffffff !important;
}

body.dark-theme .quote-card,
body.dark-theme .regime-card.active-regime,
body.dark-theme .tax-savings-banner {
    background: #121212 !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', -apple-system, sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg); color: var(--text-main); line-height: 1.6; transition: background-color 0.3s ease, color 0.3s ease; }
h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; color: var(--text-main); font-weight: 700; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; background: none; font-family: inherit; }

/* --- Glass Card Utility --- */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(97, 65, 166, 0.4);
    box-shadow: var(--shadow-lg);
}

/* --- Announcement Ticker Bar --- */
.announcement-bar {
    background: linear-gradient(90deg, #1b0d36, #6141a6, #39216d);
    color: #ffffff;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(97, 65, 166, 0.3);
}

.announcement-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.announcement-badge {
    background: linear-gradient(135deg, var(--gold-bright), #6141a6);
    color: #ffffff;
    font-weight: 800;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.announcement-actions a {
    color: #c8b8ee;
    font-weight: 700;
}

/* --- Header Navbar --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--card-border);
    height: 76px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo { display: flex; align-items: center; gap: 12px; }
.brand-avatar-img {
    width: 44px; height: 44px;
    border-radius: 50%; object-fit: cover;
    border: 2px solid var(--emerald-primary);
    box-shadow: 0 4px 14px var(--emerald-glow);
}
.logo-mark {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--emerald-primary), #1e40af);
    color: #ffffff;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 14px var(--emerald-glow);
}

.company-name { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 17px; letter-spacing: -0.2px; line-height: 1.1; }
.company-sub { font-size: 9.5px; font-weight: 800; letter-spacing: 1.2px; color: var(--emerald-primary); display: block; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 16px; font-weight: 800; color: var(--text-main); letter-spacing: 0.2px; transition: var(--transition); }
.nav-links a:hover { color: var(--emerald-primary); transform: translateY(-1px); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg); border: 1px solid var(--card-border);
    color: var(--text-main); display: flex; align-items: center; justify-content: center; font-size: 16px;
}

.mobile-menu-btn { display: none; font-size: 20px; color: var(--text-main); }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; font-weight: 700; padding: 12px 24px; border-radius: var(--radius-md);
    transition: var(--transition); text-align: center; white-space: nowrap;
}

.btn-hero { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-full); }
.btn-primary {
    background: linear-gradient(135deg, #6141a6 0%, #4b2f8a 100%);
    color: #ffffff; 
    border: 1px solid rgba(97, 65, 166, 0.4);
    box-shadow: 0 6px 20px rgba(97, 65, 166, 0.4);
}
.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 10px 28px rgba(97, 65, 166, 0.6); 
    background: linear-gradient(135deg, #4b2f8a 0%, #351c6b 100%);
}

.btn-glass { background: var(--card-bg); color: var(--text-main); border: 1px solid var(--card-border); }
.btn-glass:hover { border-color: var(--emerald-primary); color: var(--emerald-primary); transform: translateY(-2px); }

.btn-secondary { background: var(--bg); color: var(--text-main); border: 1px solid var(--card-border); font-size: 13px; }
.btn-secondary:hover { border-color: var(--emerald-primary); color: var(--emerald-primary); }

.full-width { width: 100%; }

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 100px 24px 80px 24px;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.hero-background-effects {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none; overflow: hidden; z-index: 0;
}

.glow-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.22; }
.orb-primary { top: -100px; left: 50%; transform: translateX(-50%); width: 600px; height: 400px; background: var(--emerald-primary); }
.orb-secondary { bottom: 0; right: 10%; width: 400px; height: 300px; background: var(--gold-bright); }

.hero-content-wrapper { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }

.hero-badge-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; background: rgba(97, 65, 166, 0.08); border: 1px solid rgba(97, 65, 166, 0.25);
    border-radius: var(--radius-full); font-size: 13px; font-weight: 700; color: #6141a6;
    margin-bottom: 24px;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #6141a6; }

.hero-main-title {
    font-size: 56px; line-height: 1.1; letter-spacing: -1.8px; margin-bottom: 24px; font-weight: 900;
}

.gradient-text {
    background: linear-gradient(135deg, #6141a6 0%, #8365c3 50%, #4b2f8a 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px; color: var(--text-muted); max-width: 780px; margin: 0 auto 36px auto; line-height: 1.6;
}

.hero-cta-bar { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }

.hero-metrics-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center;
}

.metric-card { padding: 24px 16px; }
.metric-val { font-size: 28px; font-weight: 900; color: var(--emerald-primary); line-height: 1.1; margin-bottom: 4px; }
.metric-desc { font-size: 12px; font-weight: 700; color: var(--text-sub); text-transform: uppercase; letter-spacing: 0.5px; }

/* --- Sections --- */
.section-wrapper { padding: 90px 24px; }
.bg-alt { background: rgba(5, 150, 105, 0.04); }
.section-container { max-width: 1280px; margin: 0 auto; }
.section-header.center { text-align: center; margin-bottom: 54px; }

.section-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
    background: rgba(5, 150, 105, 0.08); color: var(--emerald-primary); font-size: 11px;
    font-weight: 800; border-radius: var(--radius-full); margin-bottom: 12px; letter-spacing: 1px;
}

.section-heading { font-size: 36px; letter-spacing: -1px; margin-bottom: 10px; }
.section-subheading { font-size: 16px; color: var(--text-muted); }

/* --- Executive Spotlight --- */
.leadership-bento-grid {
    display: grid; grid-template-columns: 360px 1fr; gap: 32px; align-items: stretch;
}

.leadership-image-box { padding: 32px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }

.leader-photo-frame { 
    position: relative; 
    width: 250px; 
    height: 250px; 
    margin-bottom: 24px; 
}
.leader-photo {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 20%;
    border: 4px solid var(--emerald-primary); box-shadow: 0 16px 36px var(--emerald-glow);
    transition: var(--transition);
}
.leader-photo:hover {
    transform: scale(1.03);
}

.badge-verif {
    position: absolute; bottom: 12px; right: 12px; width: 36px; height: 36px;
    background: var(--emerald-primary); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
    border: 3px solid var(--card-bg); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.leader-caption h3 { font-size: 22px; margin-bottom: 2px; }
.leader-caption p { font-size: 13px; color: var(--emerald-primary); font-weight: 700; margin-bottom: 18px; }

.quick-contact-pills { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.quick-pill {
    padding: 10px; border-radius: var(--radius-md); background: var(--bg);
    border: 1px solid var(--card-border); font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.wa-pill { background: #25d366; color: #fff; border: none; }
.li-pill { background: #0a66c2; color: #fff; border: none; }

.leadership-info-box { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.section-tag { font-size: 11px; font-weight: 800; color: var(--emerald-primary); letter-spacing: 1px; margin-bottom: 10px; }
.leadership-info-box h2 { font-size: 28px; margin-bottom: 16px; }
.leader-bio { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }

.quote-card {
    background: rgba(5, 150, 105, 0.06); border-left: 4px solid var(--emerald-primary);
    padding: 20px 24px; border-radius: 0 var(--radius-md) var(--radius-md) 0; margin-bottom: 28px;
}
.quote-icon { color: var(--emerald-primary); font-size: 20px; margin-bottom: 8px; }
.quote-text { font-size: 15px; font-style: italic; font-weight: 600; color: var(--text-main); }

.leader-actions-bar { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Bento Grid Services --- */
.bento-services-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}

.bento-card { padding: 36px; display: flex; gap: 24px; align-items: flex-start; }
.bento-icon {
    width: 60px; height: 60px; min-width: 60px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center; font-size: 26px;
}

.icon-blue { background: rgba(97, 65, 166, 0.12); color: var(--emerald-primary); }
.icon-gold { background: rgba(200, 184, 238, 0.15); color: var(--gold-bright); }
.icon-green { background: rgba(97, 65, 166, 0.12); color: #6141a6; }
.icon-purple { background: rgba(97, 65, 166, 0.12); color: var(--purple-accent); }

.bento-body h3 { font-size: 22px; margin-bottom: 10px; }
.bento-body p { font-size: 14.5px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.6; }

.bento-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.bento-tags span {
    font-size: 12px; font-weight: 700; color: var(--text-sub);
    background: var(--bg); border: 1px solid var(--card-border); padding: 4px 12px; border-radius: var(--radius-full);
}
.bento-tags span i { color: #6141a6; margin-right: 4px; }

/* --- Pillars --- */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar-card { padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; border-radius: var(--radius-lg); transition: var(--transition); }
.pillar-card:hover { transform: translateY(-5px); border-color: var(--emerald-primary); box-shadow: var(--shadow-lg); }
.pillar-num { font-size: 32px; font-weight: 900; color: var(--emerald-primary); margin-bottom: 4px; line-height: 1; }
.pillar-card h3 { font-size: 19px; margin-bottom: 4px; font-weight: 800; line-height: 1.35; color: var(--text-main); }
.pillar-card p { font-size: 14px; color: var(--text-muted); font-weight: 500; line-height: 1.6; }

/* --- Calculators --- */
.calc-suite-container { padding: 40px; }
.calc-nav-tabs { display: flex; gap: 14px; margin-bottom: 32px; border-bottom: 1px solid var(--card-border); padding-bottom: 16px; }
.tab-link { padding: 12px 24px; font-weight: 700; font-size: 15px; color: var(--text-muted); border-radius: var(--radius-md); }
.tab-link.active { background: rgba(5, 150, 105, 0.12); color: var(--emerald-primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.calc-flex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 14px 16px; border-radius: var(--radius-md);
    border: 1px solid var(--card-border); background: var(--bg); color: var(--text-main); font-size: 15px; outline: none;
}
.form-group input:focus, .form-group select:focus { border-color: var(--emerald-primary); }

.btn-group-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-btn { padding: 10px 18px; font-size: 13px; font-weight: 700; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--card-border); color: var(--text-muted); }
.pill-btn.active { background: var(--emerald-primary); color: #fff; border-color: var(--emerald-primary); }

.calc-output-box { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.calc-output-box h3 { font-size: 18px; margin-bottom: 20px; border-bottom: 1px dashed var(--card-border); padding-bottom: 10px; }
.out-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 12px; color: var(--text-muted); }
.out-row.highlight { color: var(--emerald-primary); font-size: 15px; border-top: 1px solid var(--card-border); padding-top: 12px; }
.out-row.total-row { font-size: 18px; color: var(--text-main); border-top: 2px solid var(--card-border); padding-top: 12px; }

.regime-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.regime-card { padding: 18px; border-radius: var(--radius-md); border: 1px solid var(--card-border); background: var(--bg); text-align: center; position: relative; }
.regime-card.active-regime { border-color: var(--emerald-primary); background: rgba(5, 150, 105, 0.06); }
.regime-tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--emerald-primary); color: #fff; font-size: 9px; font-weight: 800; padding: 2px 8px; border-radius: var(--radius-full); }
.tax-price { font-size: 22px; font-weight: 900; color: var(--emerald-primary); }

.tax-savings-banner { background: rgba(5, 150, 105, 0.1); color: #047857; padding: 14px; border-radius: var(--radius-md); text-align: center; font-size: 14px; }

/* --- Business Hours --- */
.hours-wrapper { padding: 40px; }
.hours-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--card-border); }
.live-status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: var(--radius-full); background: rgba(5, 150, 105, 0.12); color: #047857; font-weight: 800; font-size: 13px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #059669; }

.hours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.hour-row { padding: 14px; border-radius: var(--radius-md); background: var(--bg); border: 1px solid var(--card-border); text-align: center; }
.hour-row.active-day { border-color: var(--emerald-primary); background: rgba(5, 150, 105, 0.08); font-weight: 800; }
.hour-row .day { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.hour-row .time { font-size: 13px; color: var(--text-muted); }

.nav-links a.active-nav {
    color: var(--emerald-primary);
    font-weight: 800;
    position: relative;
}
.nav-links a.active-nav::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0; right: 0;
    height: 2px;
    background: var(--emerald-primary);
    border-radius: var(--radius-full);
}

.btn-sm { padding: 8px 16px; font-size: 12.5px; border-radius: var(--radius-sm); }
.margin-top-12 { margin-top: 12px; }
.margin-bottom-32 { margin-bottom: 32px !important; }
.margin-bottom-48 { margin-bottom: 48px !important; }
.margin-bottom-54 { margin-bottom: 54px !important; }
.margin-bottom-80 { margin-bottom: 80px !important; }

.btn-link-action {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--emerald-primary); font-size: 13.5px; font-weight: 800;
    transition: var(--transition); background: none; border: none; cursor: pointer;
}
.bento-card:hover .btn-link-action { transform: translateX(4px); }

/* --- Reviews / Feedback Grid --- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { padding: 32px; display: flex; flex-direction: column; justify-content: space-between; }
.review-stars { color: #f59e0b; font-size: 16px; margin-bottom: 16px; }
.review-text { font-size: 15px; color: var(--text-muted); line-height: 1.6; font-style: italic; margin-bottom: 20px; }
.reviewer-meta strong { display: block; font-size: 15px; color: var(--text-main); }
.reviewer-meta span { font-size: 12px; color: var(--emerald-primary); font-weight: 700; }

/* --- Floating Quick Actions --- */
.floating-quick-actions {
    position: fixed; bottom: 28px; right: 28px; z-index: 1500;
    display: flex; flex-direction: column; gap: 12px; align-items: center;
}

.float-btn {
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    transition: var(--transition); cursor: pointer; border: none; outline: none;
}
.float-wa { background: #25d366 !important; color: #ffffff !important; text-decoration: none; }
.float-wa:hover { transform: scale(1.1); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4); }

.float-li { 
    background: #0a66c2 !important; 
    color: #ffffff !important; 
    text-decoration: none; 
    font-size: 24px !important; 
    box-shadow: 0 8px 24px rgba(10, 102, 194, 0.4) !important;
}
.float-li:hover { 
    transform: scale(1.1) !important; 
    box-shadow: 0 12px 30px rgba(10, 102, 194, 0.6) !important; 
}

.float-top {
    background: var(--emerald-primary); color: #fff;
    opacity: 0; pointer-events: none; transform: translateY(20px);
}
.float-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.float-top:hover { transform: translateY(-3px); box-shadow: 0 12px 30px var(--emerald-glow); }

/* --- Location --- */
.location-bento { padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.loc-address { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; }
.rating-box { font-size: 14px; margin-bottom: 24px; color: var(--gold-bright); }
.firm-credentials-box {
    display: inline-block;
    padding: 10px 18px;
    background: rgba(97, 65, 166, 0.08);
    border: 1px dashed rgba(97, 65, 166, 0.35);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    color: var(--emerald-primary);
    margin-bottom: 28px !important;
}
.loc-buttons { display: flex; gap: 16px; margin-top: 24px !important; flex-wrap: wrap; }
.map-container { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--card-border); }

/* --- Footer: Executive Dark Slate (#0f172a) --- */
.site-footer { 
    background: linear-gradient(135deg, #1b0d36 0%, #0f172a 100%) !important; 
    border-top: 3px solid #6141a6; 
    padding: 60px 24px 30px; 
    margin-top: 80px; 
    color: #ffffff !important;
}
.footer-container { max-width: 1280px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 20px; }
.footer-brand-box { display: flex; align-items: center; gap: 14px; }
.footer-brand-box h3 { color: #ffffff !important; font-size: 18px; font-weight: 800; letter-spacing: 0.5px; }
.footer-brand-box p { color: #94a3b8 !important; font-size: 13.5px; margin-top: 2px; }
.footer-brand-box .logo-mark { 
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(97, 65, 166, 0.25) !important; 
    color: #ffffff !important; 
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.footer-links { display: flex; gap: 24px; font-size: 14.5px; flex-wrap: wrap; }
.footer-links a { color: #cbd5e1 !important; text-decoration: none; font-weight: 600; transition: color 0.2s ease; }
.footer-links a:hover { color: #c8b8ee !important; }

.footer-bottom { 
    text-align: center; 
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important; 
    padding-top: 24px; 
    margin-top: 30px;
    font-size: 13.5px; 
    color: #64748b !important; 
}
.footer-bottom strong {
    color: #f8fafc !important;
}

/* --- Modals --- */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
/* --- Redesigned Luxury Bento Commitment Grid --- */
.commitment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.commitment-bento-card {
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.commitment-bento-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--emerald-primary), var(--gold-bright));
    opacity: 0;
    transition: var(--transition);
}

.commitment-bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(5, 150, 105, 0.35);
}

.commitment-bento-card:hover::after {
    opacity: 1;
}

.commit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.commit-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.commit-index {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--gold-bright);
    background: rgba(245, 158, 11, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.commit-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.35;
}

.commit-body p {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.6;
}

/* --- Executive Practice Matrix (Redesigned & High-End) --- */
.executive-practice-matrix {
    padding: 24px;
    margin-top: 24px;
    margin-bottom: 32px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.matrix-card {
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--bg);
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: var(--transition);
}

.matrix-card:hover {
    transform: translateY(-3px);
    border-color: var(--emerald-primary);
    box-shadow: 0 10px 24px rgba(5, 150, 105, 0.12);
}

.matrix-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.matrix-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.icon-emerald { background: rgba(5, 150, 105, 0.12); color: #059669; }
.icon-gold { background: rgba(217, 119, 6, 0.12); color: #d97706; }
.icon-blue { background: rgba(5, 150, 105, 0.12); color: #059669; }
.icon-purple { background: rgba(245, 158, 11, 0.12); color: #d97706; }

.matrix-card-info {
    display: flex;
    flex-direction: column;
}

.matrix-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-sub);
}

.matrix-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.matrix-card-bottom {
    padding-top: 12px;
    border-top: 1px dashed var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.matrix-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.pill-emerald { background: rgba(5, 150, 105, 0.12); color: #047857; border: 1px solid rgba(5, 150, 105, 0.25); }
.pill-gold { background: rgba(217, 119, 6, 0.12); color: #b45309; border: 1px solid rgba(217, 119, 6, 0.25); }
.pill-blue { background: rgba(5, 150, 105, 0.12); color: #047857; border: 1px solid rgba(5, 150, 105, 0.25); }
.pill-purple { background: rgba(217, 119, 6, 0.12); color: #b45309; border: 1px solid rgba(217, 119, 6, 0.25); }

body.dark-theme .pill-emerald { color: #34d399; }
body.dark-theme .pill-gold { color: #fbbf24; }
body.dark-theme .pill-blue { color: #34d399; }
body.dark-theme .pill-purple { color: #fbbf24; }

/* --- Credentials & Disclaimer --- */
.firm-credentials-box {
    margin-top: 16px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    background: var(--emerald-light);
    border: 1px dashed var(--emerald-primary);
    font-size: 13.5px;
    color: var(--emerald-primary);
    font-weight: 600;
    display: inline-block;
}

.footer-credentials {
    font-size: 14px;
    font-weight: 700;
    color: #34d399 !important;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: 0.3px;
}

.footer-disclaimer {
    max-width: 960px;
    margin: 24px auto 0;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.03) !important;
    border-left: 4px solid #6141a6 !important;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #94a3b8 !important;
    line-height: 1.6;
    text-align: left;
}

.footer-disclaimer strong {
    color: #ffffff !important;
}

.modal-card { max-width: 460px; width: 100%; padding: 36px; position: relative; text-align: center; }

.modal-close { position: absolute; top: 16px; right: 16px; font-size: 20px; color: var(--text-muted); }
.qr-wrapper { display: flex; justify-content: center; padding: 16px; background: #fff; border-radius: var(--radius-md); margin: 20px auto; width: fit-content; }
.share-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.share-btn { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: var(--radius-md); background: var(--bg); border: 1px solid var(--card-border); color: var(--text-main); font-weight: 700; }

.toast-notification { position: fixed; bottom: 30px; left: 30px; z-index: 3000; background: var(--emerald-primary); color: #ffffff; padding: 14px 24px; border-radius: var(--radius-full); display: flex; align-items: center; gap: 10px; font-weight: 700; opacity: 0; transform: translateY(50px); transition: var(--transition); box-shadow: 0 10px 30px var(--emerald-glow); }
/* --- Interactive 3D/Isometric Tax Showcase Stage --- */
.hero-3d-stage-wrapper {
    margin: 40px auto 48px auto;
    padding: 24px;
    max-width: 1000px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--card-bg-light);
    border: 1px solid rgba(97, 65, 166, 0.25);
    box-shadow: 0 20px 50px rgba(97, 65, 166, 0.15);
    transition: var(--transition);
}

body.dark-theme .hero-3d-stage-wrapper {
    background: rgba(18, 18, 18, 0.95);
    border-color: rgba(255, 255, 255, 0.18);
}

.stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 12px;
}

.stage-pill {
    font-size: 11.5px;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--emerald-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.stage-status {
    font-size: 11px;
    font-weight: 800;
    color: #25d366;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 211, 102, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 0 8px #25d366;
    animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.4; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.2); }
}

.tax-hero-canvas-container {
    width: 100%;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.isometric-svg-stage {
    width: 100%;
    height: 100%;
    max-height: 400px;
}

.float-item {
    animation: floatUpDown 3s ease-in-out infinite alternate;
}
.icon-1 { animation-delay: 0s; }
.icon-2 { animation-delay: 0.8s; }
.icon-3 { animation-delay: 1.5s; }

@keyframes floatUpDown {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-12px); }
}

/* ==========================================================================
   RESPONSIVE DESIGN & CROSS-DEVICE COMPATIBILITY OVERHAUL
   ========================================================================== */

/* Default desktop hide for mobile drawer consultation button */
.mobile-nav-book-btn { display: none; }

/* Large Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
    .nav-container { padding: 0 20px; }
    .hero-main-title { font-size: 44px; }
    .hero-subtitle { font-size: 16px; }
    .leadership-bento-grid, 
    .bento-services-grid, 
    .calc-flex-grid, 
    .location-bento, 
    .reviews-grid { 
        grid-template-columns: 1fr; 
    }
    .hero-metrics-grid, 
    .pillars-grid { 
        grid-template-columns: 1fr 1fr; 
    }
}

/* Medium Tablets & Mobile Devices (<= 768px) */
@media (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .navbar { height: 68px; }
    .nav-container { padding: 0 14px; height: 68px; gap: 8px; }

    /* Hide bulky desktop Book button in header on mobile to prevent navbar overflow */
    .nav-actions .nav-book-btn { display: none !important; }

    /* Mobile menu drawer styling */
    .nav-links {
        display: none;
        position: absolute; 
        top: 68px; 
        left: 0; 
        right: 0;
        background: var(--card-bg); 
        backdrop-filter: var(--glass-blur);
        border-bottom: 1px solid var(--card-border);
        flex-direction: column; 
        padding: 24px 20px; 
        gap: 16px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        z-index: 1100;
    }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }

    /* Show Book Consultation button inside mobile drawer menu */
    .mobile-nav-book-btn { 
        display: inline-flex !important; 
        align-items: center; 
        justify-content: center; 
        gap: 8px;
        margin-top: 8px; 
        width: 100%; 
        background: linear-gradient(135deg, #6141a6, #4b2f8a); 
        color: #ffffff !important; 
        padding: 14px; 
        border-radius: var(--radius-md); 
        font-weight: 800; 
        text-align: center;
        box-shadow: 0 4px 14px rgba(97, 65, 166, 0.4);
    }

    .brand-logo { gap: 8px; min-width: 0; flex-shrink: 1; }
    .brand-avatar-img { width: 38px; height: 38px; flex-shrink: 0; }
    .company-name { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .company-sub { font-size: 8px; letter-spacing: 0.8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    .hero-section { padding: 48px 16px 40px 16px; max-width: 100vw; }
    .hero-main-title { font-size: 32px; line-height: 1.2; letter-spacing: -0.8px; margin-bottom: 16px; }
    .hero-subtitle { font-size: 15px; margin-bottom: 24px; padding: 0 4px; }
    .hero-cta-bar { margin-bottom: 36px; }
    .btn-hero { width: 100%; font-size: 15px; padding: 14px 20px; justify-content: center; box-sizing: border-box; }
    
    .hero-metrics-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .metric-card { padding: 16px 12px; }
    .metric-val { font-size: 22px; }
    .metric-desc { font-size: 11px; }

    .section-wrapper { padding: 50px 16px; }
    .section-heading { font-size: 28px; }
    .section-subheading { font-size: 14px; }

    .leadership-image-box { padding: 20px 16px; }
    .leader-photo-frame { width: 180px; height: 180px; margin-bottom: 16px; }

    .calc-suite-container { padding: 16px 12px; }
    .calc-nav-tabs { flex-wrap: wrap; gap: 6px; }
    .tab-link { font-size: 12px; padding: 10px 12px; flex: 1 1 calc(50% - 6px); text-align: center; justify-content: center; }

    .regime-grid { grid-template-columns: 1fr; gap: 12px; }

    .hours-wrapper { padding: 20px 16px; }
    .hours-header { flex-direction: column; align-items: flex-start; gap: 12px; }

    .location-bento { padding: 20px 16px; }
    .loc-buttons { flex-direction: column; width: 100%; }
    .loc-buttons .btn { width: 100%; justify-content: center; }

    .floating-quick-actions { right: 14px; bottom: 14px; gap: 10px; }
    .float-btn { width: 44px; height: 44px; font-size: 18px; }
}

/* Small Mobile Screens (Phones <= 576px) */
@media (max-width: 576px) {
    .pillars-grid { grid-template-columns: 1fr; gap: 12px; }
    .hero-metrics-grid { grid-template-columns: 1fr; gap: 10px; }
    .hero-main-title { font-size: 26px; line-height: 1.25; }
    .hero-subtitle { font-size: 14px; }
    .company-sub { display: none; } /* Hide long subtitle on small phones for ultra-clean header */
    .company-name { font-size: 14px; }
    
    .tab-link { flex: 1 1 100%; } /* Stack tabs vertically on tiny phones */
    
    .modal-card { max-width: 94vw; padding: 20px 14px; }
}

/* Extra Small Phones (<= 380px) */
@media (max-width: 380px) {
    .nav-container { padding: 0 10px; }
    .brand-avatar-img { width: 34px; height: 34px; }
    .company-name { font-size: 13px; }
    .hero-main-title { font-size: 23px; }
    .section-wrapper { padding: 40px 12px; }
}

/* ==========================================================================
   CA CHATBOT - EXECUTIVE VIRTUAL ASSISTANT STYLES
   ========================================================================== */

.ca-chatbot-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Floating Toggle Button */
.ca-chatbot-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #6141a6, #4b2f8a);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(97, 65, 166, 0.45);
    transition: var(--transition);
    position: relative;
}

.ca-chatbot-toggle:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 40px rgba(97, 65, 166, 0.6);
    background: linear-gradient(135deg, #6d4ab8, #55359a);
}

.ca-chatbot-toggle .ca-chatbot-icon-closed,
.ca-chatbot-toggle .ca-chatbot-icon-open {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ca-chatbot-toggle .ca-chatbot-icon-open {
    display: none;
}

.ca-chatbot-toggle.active .ca-chatbot-icon-closed {
    display: none;
}

.ca-chatbot-toggle.active .ca-chatbot-icon-open {
    display: flex;
}

.ca-chatbot-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Chatbot Dialog Window */
.ca-chatbot-window {
    position: fixed;
    bottom: 86px;
    right: 24px;
    width: 390px;
    max-width: calc(100vw - 32px);
    height: 570px;
    max-height: calc(100vh - 120px);
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
}

.ca-chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header */
.ca-chatbot-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #6141a6, #3b226e);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ca-chatbot-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ca-chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: relative;
}

.ca-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid #6141a6;
    border-radius: 50%;
}

.ca-chatbot-title-box h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    line-height: 1.2;
}

.ca-chatbot-status-text {
    font-size: 11px;
    opacity: 0.85;
    display: block;
}

.ca-chatbot-actions {
    display: flex;
    gap: 8px;
}

.ca-chatbot-btn-icon {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.ca-chatbot-btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Messages container */
.ca-chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: transparent;
}

.ca-chatbot-date-divider {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-sub);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 4px 0 8px 0;
    opacity: 0.7;
}

/* Chat Rows & Bubbles */
.ca-chat-bubble-row {
    display: flex;
    gap: 10px;
    max-width: 88%;
}

.ca-chat-bubble-row.user-row {
    margin-left: auto;
    justify-content: flex-end;
}

.ca-chat-bubble-row.bot-row {
    margin-right: auto;
}

.ca-chat-avatar {
    width: 30px;
    height: 30px;
    background: rgba(97, 65, 166, 0.15);
    color: var(--emerald-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ca-chat-bubble {
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.5;
    position: relative;
}

.user-row .ca-chat-bubble {
    background: linear-gradient(135deg, #6141a6, #4b2f8a);
    color: #ffffff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 14px rgba(97, 65, 166, 0.25);
}

.bot-row .ca-chat-bubble {
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--card-border);
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ca-chat-time {
    display: block;
    font-size: 9.5px;
    opacity: 0.65;
    margin-top: 6px;
    text-align: right;
}

/* Action Buttons & Chips */
.ca-chatbot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.ca-chatbot-chip {
    background: rgba(97, 65, 166, 0.1);
    color: var(--emerald-primary);
    border: 1px solid rgba(97, 65, 166, 0.25);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

body.dark-theme .ca-chatbot-chip {
    background: rgba(131, 101, 195, 0.18);
    color: #c8b8ee;
    border-color: rgba(200, 184, 238, 0.3);
}

.ca-chatbot-chip:hover {
    background: var(--emerald-primary);
    color: #ffffff;
    border-color: var(--emerald-primary);
    transform: translateY(-1px);
}

.ca-chatbot-actions-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.ca-chatbot-action-btn {
    background: linear-gradient(135deg, #6141a6, #4b2f8a);
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(97, 65, 166, 0.2);
}

.ca-chatbot-action-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* Typing Indicator */
.ca-chatbot-typing {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    font-size: 11.5px;
    color: var(--text-sub);
}

.ca-typing-dot {
    width: 6px;
    height: 6px;
    background: var(--emerald-primary);
    border-radius: 50%;
    animation: caTypingBounce 1.2s infinite ease-in-out;
}

.ca-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ca-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes caTypingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1.1); opacity: 1; }
}

/* Input Form */
.ca-chatbot-input-form {
    padding: 12px 16px;
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
    display: flex;
    gap: 8px;
    align-items: center;
}

.ca-chatbot-input-form input {
    flex: 1;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 13.5px;
    outline: none;
    transition: var(--transition);
}

body.dark-theme .ca-chatbot-input-form input {
    background: rgba(255, 255, 255, 0.06);
}

.ca-chatbot-input-form input:focus {
    border-color: var(--emerald-primary);
    box-shadow: 0 0 0 3px rgba(97, 65, 166, 0.15);
}

.ca-chatbot-input-form button {
    background: var(--emerald-primary);
    color: #ffffff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.ca-chatbot-input-form button:hover {
    background: var(--emerald-hover);
    transform: scale(1.05);
}

.ca-chatbot-footer-credit {
    padding: 6px;
    text-align: center;
    font-size: 10px;
    color: var(--text-sub);
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid var(--card-border);
}

/* Mobile Responsiveness Adjustment for Chatbot */
@media (max-width: 768px) {
    .ca-chatbot-wrapper {
        right: 14px;
        bottom: 14px;
    }
    
    .ca-chatbot-toggle-text {
        display: none;
    }
    
    .ca-chatbot-toggle {
        padding: 12px;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        justify-content: center;
    }

    .ca-chatbot-window {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 74px;
        height: calc(100vh - 100px);
        max-height: 520px;
    }
    
    /* Shift floating quick actions so they don't overlap chatbot */
    .floating-quick-actions {
        bottom: 74px !important;
        right: 14px !important;
    }
}




