/* ============================================================
   PREMIUM DESIGN SYSTEM — Citizen Login Page
   ============================================================
   Curated palette · Glassmorphism · Micro-animations
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

/* ─── Design Tokens ──────────────────────────────────────── */
:root {
    /* Core Palette */
    --navy-900: #0a1628;
    --navy-800: #0f2035;
    --navy-700: #152d4a;
    --sapphire: #1e3a5f;
    --royal: #2563eb;
    --teal-500: #00b4d8;
    --teal-400: #22d3ee;
    --gold-500: #f4a825;
    --gold-400: #fbbf24;

    /* Surfaces */
    --surface-bg: #f0f4f8;
    --surface-card: rgba(255, 255, 255, 0.92);
    --surface-glass: rgba(255, 255, 255, 0.15);
    --surface-modal: #ffffff;

    /* Text */
    --text-primary: #1a2332;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-on-dark: #e8edf3;
    --text-white: #ffffff;

    /* Accents */
    --accent-success: #10b981;
    --accent-danger: #ef4444;
    --accent-warning: #f59e0b;
    --accent-info: #3b82f6;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(10, 22, 40, 0.04);
    --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
    --shadow-md: 0 4px 16px rgba(10, 22, 40, 0.08);
    --shadow-lg: 0 12px 40px rgba(10, 22, 40, 0.1);
    --shadow-xl: 0 20px 60px rgba(10, 22, 40, 0.12);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.15);
    --shadow-card-hover: 0 16px 48px rgba(10, 22, 40, 0.14);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 50px;

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: all 0.15s cubic-bezier(0.22, 1, 0.36, 1);

    /* Chatbot tokens (preserved for chatbot compat) */
    --primary-theme: linear-gradient(135deg, var(--navy-900), var(--sapphire), #2c5364) !important;
    --primary: #2563eb !important;
    --primary-light: #3b82f6 !important;
    --primary-lighter: rgba(37, 99, 235, 0.1) !important;
    --secondary: #1e3a5f !important;
    --dark: #1a2332 !important;
    --light: #f0f4f8 !important;
    --gray: #718096 !important;
    --success: #10b981 !important;
    --user-bubble: linear-gradient(135deg, #2563eb, #1e3a5f) !important;
    --bot-bubble: #f0f4f8 !important;
    --btn-send: linear-gradient(135deg, #10b981, #059669) !important;
    --btn-attach: linear-gradient(135deg, #3b82f6, #1e3a5f) !important;
    --shadow-sm-chat: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
    --shadow-md-chat: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    --shadow-lg-chat: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}


/* ─── Base & Reset ───────────────────────────────────────── */
body {
    background-color: var(--surface-bg);
    font-family: 'Inter', 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#ui-id-2 {
    max-height: 250px;
    overflow: hidden auto;
}

*, *::before, *::after {
    box-sizing: border-box;
}


/* ─── Hero Section ───────────────────────────────────────── */
.hero {
    background: url('/images/WEBP-images/Panvel-cover.webp') no-repeat center center/cover;
    background-size: cover;
    position: relative;
    padding: 24px 70px 75px 60px;
    text-align: center;
    overflow: visible !important;
    z-index: 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.hero > *:not(.overlay) {
    position: relative;
    z-index: 2;
}


/* ─── OTP Input Boxes ────────────────────────────────────── */
.otp-bx input {
    width: 46px;
    height: 46px;
    margin: 6px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    background: var(--surface-bg);
    color: var(--text-primary);
    transition: var(--transition);
}

.otp-bx input:focus {
    border-color: var(--royal);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
    background: #fff;
}

.otp-bx1 input {
    width: 46px;
    height: 46px;
    margin: 6px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    background: var(--surface-bg);
    color: var(--text-primary);
    transition: var(--transition);
}

.otp-bx1 input:focus {
    border-color: var(--royal);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
    background: #fff;
}


/* ─── Council Heading ────────────────────────────────────── */
.shadow-heading {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    width: 33%;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    color: #cbd5e1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    width: 33%;
    border-radius: var(--radius-md);
    background: rgba(10, 22, 40, 0.35) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.button-pair {
    width: 33%;
    border-radius: var(--radius-md);
}


/* ─── Tab Buttons (UPIC/Property/Mobile) ─────────────────── */
.btn-dark-blue {
    background-color: var(--surface-bg) !important;
    color: var(--text-primary) !important;
    position: relative;
    border-radius: var(--radius-pill) !important;
    font-weight: 500;
    font-size: 0.88rem;
    padding: 8px 18px;
    border: 2px solid #e2e8f0 !important;
    transition: var(--transition);
}

.text-dark-blue {
    color: var(--royal) !important;
    cursor: pointer !important;
    font-weight: 600;
}

.bg-dark-blue {
    background: linear-gradient(135deg, var(--sapphire), var(--navy-700)) !important;
    color: #fff !important;
    border: none !important;
}

.btn-dark-blue:hover {
    color: #fff !important;
    background: linear-gradient(135deg, var(--royal), var(--sapphire)) !important;
    border-color: transparent !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-wrapper {
    display: inline-block;
    position: relative;
    margin: 6px;
}

.btn-wrapper.active button {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    z-index: 1;
    position: relative;
    background: linear-gradient(135deg, var(--royal), var(--sapphire)) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.btn-wrapper.active::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--royal) !important;
    z-index: 0;
}


/* ─── Action Buttons ─────────────────────────────────────── */
.btn-primary {
    background: linear-gradient(135deg, var(--royal), #1d4ed8) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600;
    padding: 8px 20px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, var(--navy-700)) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600;
    padding: 8px 20px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400)) !important;
    color: var(--navy-900) !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600;
    padding: 8px 20px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(244, 168, 37, 0.25);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, var(--gold-500)) !important;
    color: var(--navy-900) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 168, 37, 0.35);
}

.btn-white {
    background-color: #fff;
    color: var(--sapphire);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.btn-white:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--sapphire), var(--navy-700));
    border-color: transparent;
}

.bg-light {
    background-color: var(--surface-bg) !important;
}


/* ─── Service Cards ──────────────────────────────────────── */
.card-custom {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.35s var(--ease-out);
    cursor: pointer;
    background: var(--surface-card);
    border: 1px solid rgba(226, 232, 240, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.card-custom:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.15);
}

.announcement i {
    color: var(--gold-500);
}

.services i {
    font-size: 1.5rem;
    color: var(--sapphire);
}

.service-name {
    font-family: 'Inter', 'Poppins', 'Noto Sans Devanagari', 'Mangal', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}


/* ─── Helpline Card ──────────────────────────────────────── */
.helpline {
    background: linear-gradient(145deg, var(--navy-800), var(--sapphire));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.helpline h5 {
    color: #fff !important;
}

.helpline p,
.helpline h7 {
    color: var(--text-on-dark);
}


/* ─── Typography ─────────────────────────────────────────── */
h3 {
    color: var(--sapphire) !important;
    font-family: 'Inter', 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h6 {
    margin-bottom: 0 !important;
    font-family: 'Inter', sans-serif;
}


/* ─── Header Buttons (Track/Lookup) ──────────────────────── */
.btn-lookup,
.btn-track {
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    transition: var(--transition);
    font-weight: 600;
    border-radius: var(--radius-pill) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.9rem;
    padding: 8px 20px;
}

.btn-lookup {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

.btn-lookup:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-track {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}

.btn-track:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-hovered {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
}

.btn-not-hovered {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
}


/* ─── Card Headers ───────────────────────────────────────── */
.card-header {
    color: #fff !important;
    background: linear-gradient(135deg, var(--sapphire), var(--navy-700)) !important;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
    padding: 12px 16px;
    font-weight: 600;
    border-bottom: none !important;
}


/* ─── Form Elements ──────────────────────────────────────── */
label {
    font-size: 0.92rem;
    padding: 0px !important;
    font-weight: 500;
    color: var(--text-secondary);
}

input {
    font-size: 0.9rem !important;
    border-radius: var(--radius-sm) !important;
    border: 2px solid #e2e8f0 !important;
    transition: var(--transition);
    padding: 10px 14px;
    height: 44px;
}

input:focus {
    border-color: var(--royal) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
    outline: none;
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: var(--transition);
    background: #fff;
    height: 44px;
}

.form-control:focus {
    border-color: var(--royal);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-select {
    font-size: 0.9rem !important;
    border-radius: var(--radius-sm) !important;
    border: 2px solid #e2e8f0 !important;
    padding: 10px 14px;
    transition: var(--transition);
    background-color: #fff;
    height: 44px;
}

.form-select:focus {
    border-color: var(--royal) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}


/* ─── Footer ─────────────────────────────────────────────── */
.footer {
    background: linear-gradient(135deg, var(--navy-800), var(--sapphire));
    bottom: 0;
    position: fixed;
    width: 100%;
    z-index: 3;
    color: var(--text-on-dark);
    border-top: 1px solid rgba(37, 99, 235, 0.2);
}

.footer small,
.footer .container {
    color: var(--text-on-dark) !important;
}

.footer strong {
    color: var(--teal-400);
}


/* ─── Video Info Header ──────────────────────────────────── */
#headerSeeMoreInfo {
    font-size: 1rem;
    color: var(--sapphire) !important;
    font-weight: 600;
}


/* ─── Modal Overrides ────────────────────────────────────── */
.modal .btn-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    border-radius: 50%;
    opacity: 0.8;
    transition: var(--transition);
}

.modal .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.modal-content {
    border-radius: var(--radius-lg) !important;
    border: none !important;
    box-shadow: var(--shadow-xl) !important;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--sapphire), var(--navy-700)) !important;
    color: #fff !important;
    border-bottom: none !important;
    padding: 16px 20px;
}

.modal-header .modal-title,
.modal-header h5 {
    color: #fff !important;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.modal-footer {
    border-top: 1px solid #f0f4f8 !important;
    padding: 16px 20px;
}


/* ─── Service Icon Images ────────────────────────────────── */
.pay-water-img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
}

.mutation-img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
}

.pmc-android-img {
    width: 73px;
    height: 70px;
    margin: 15px;
    border-radius: var(--radius-sm);
}

.pmc-ios-img {
    width: 55px;
    height: 70px;
    margin: 15px;
    border-radius: var(--radius-sm);
}

select option {
    background: #fff !important;
    color: #000;
}


/* ─── Property Tables ────────────────────────────────────── */
#PropertyDetailsTable thead tr th {
    background: linear-gradient(135deg, var(--royal), var(--sapphire));
    color: #fff;
    font-weight: 600;
    padding: 12px 16px;
}

#PropertyDetailsTable2 thead tr th {
    background: linear-gradient(135deg, var(--royal), var(--sapphire));
    color: #fff;
    font-weight: 600;
    padding: 12px 16px;
}


/* ─── Logo ───────────────────────────────────────────────── */
.img-fluid {
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: var(--radius-md);
    padding: 6px;
    max-height: 80px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* ─── Dropdowns ──────────────────────────────────────────── */
.dropdown-menu {
    z-index: 9999;
    border-radius: var(--radius-md) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 8px !important;
    background: #fff !important;
    backdrop-filter: blur(12px);
    animation: dropdownFade 0.2s var(--ease-out);
}

.dropdown-menu .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.dropdown-menu .dropdown-item:hover {
    background: var(--surface-bg);
    color: var(--royal);
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ─── Admin Login Icon ───────────────────────────────────── */
.admin-login-icon {
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 9999;
    background-color: white;
    padding: 8px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.admin-login-icon:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.admin-login-icon img {
    mix-blend-mode: normal;
}


/* ============================================================
   CHATBOT STYLES (preserved for functional compatibility)
   ============================================================ */

.chat-container {
    font-family: 'Inter', 'Poppins', sans-serif;
    position: fixed;
    bottom: 130px;
    right: 110px;
    width: calc(100% - 40px);
    max-width: 540px;
    height: 70vh;
    max-height: 700px;
    min-height: 400px;
    background: white;
    border-radius: var(--radius-xl) var(--radius-xl) 5px var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    opacity: 0;
    display: none;
    animation: containerAppear 0.6s var(--ease-out) forwards;
    z-index: 5;
}

@keyframes containerAppear {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.chat-header {
    background: var(--primary-theme);
    color: white;
    padding: 18px 20px;
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 2;
}

.chat-header::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), transparent);
}

.chat-header i {
    font-weight: lighter;
    font-size: 1rem;
    animation: pulse 2s infinite;
}

.expand-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.expand-btn:hover {
    transform: scale(1.1);
}

.chat-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 0;
    box-shadow: none;
}

.chat-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    scroll-behavior: smooth;
    background-color: #fafcff;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.chat-area::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,...");
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.chat-message {
    font-size: 14px;
    max-width: 80%;
    opacity: 0;
    transform: translateY(10px);
    animation: messageAppear 0.4s var(--ease-spring) forwards;
    position: relative;
    z-index: 1;
}

@keyframes messageAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    align-self: flex-end;
    animation-delay: 0.1s;
}

.bot-message {
    align-self: flex-start;
}

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.user-message .message-content {
    background: var(--user-bubble);
    color: white;
    border-bottom-right-radius: 4px;
}

.bot-message .message-content {
    overflow: auto;
    background: var(--bot-bubble);
    color: var(--dark);
    border-bottom-left-radius: 4px;
}

.message-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 10px;
    height: 10px;
    background-repeat: no-repeat;
    background-size: contain;
}


/* ─── Chat Input Area ────────────────────────────────────── */
.input-area {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background-color: white;
    position: relative;
    z-index: 2;
    width: 100%;
}

.input-area:focus-within {
    box-shadow: 0 -5px 15px rgba(37, 99, 235, 0.1);
}

.user-input {
    width: 100%;
    resize: none;
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 0.95rem;
    transition: var(--transition);
    min-height: 20px;
    max-height: 120px;
    overflow-y: auto;
    background-color: var(--surface-bg);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', sans-serif;
}

.user-input:focus {
    background-color: white;
    box-shadow: 0 0 0 2px var(--primary-lighter), inset 0 1px 3px rgba(0, 0, 0, 0.05);
}


/* ─── Send / Voice Buttons ───────────────────────────────── */
.btn-send {
    background: var(--btn-send);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn-send::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 50%;
}

.btn-send:hover, .btn-voice:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-send:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-sm);
}

.btn-send i {
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.btn-voice {
    position: relative;
    background: var(--royal);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-voice::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 50%;
}

.btn-voice.listening {
    background: #ef4444;
    transform: scale(1.1);
}

.btn-voice:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--royal);
    border-radius: 50%;
    opacity: 0;
    animation: none;
}

.btn-voice.listening .pulse-ring {
    animation: chatPulse 1.5s infinite;
    border-color: #ef4444;
}

@keyframes chatPulse {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.voice-status {
    position: absolute;
    bottom: -25px;
    left: 50px;
    font-size: 12px;
    color: #718096;
    transition: all 0.3s ease;
}

.voice-status.active {
    color: var(--royal);
    font-weight: bold;
}

.voice-status.error {
    color: #ef4444;
}

#attachBtn {
    background: var(--btn-attach);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    color: var(--light);
}

#attachBtn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#attachBtn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

#attachBtn i {
    font-size: 1rem;
}


/* ─── Typing Indicator ───────────────────────────────────── */
.typing-indicator {
    display: inline-flex;
    padding: 12px 16px;
    background-color: var(--bot-bubble);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--gray);
    border-radius: 50%;
    margin: 0 3px;
    opacity: 0.4;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingAnimation {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}


/* ─── File Attachment ────────────────────────────────────── */
.file-attachment {
    display: flex;
    align-items: center;
    padding: 8px;
    background-color: var(--light);
    border-radius: var(--radius-md);
    margin-top: 8px;
    animation: fadeIn 0.3s ease;
}

.file-attachment i {
    margin-right: 8px;
    color: var(--primary);
}

.file-name {
    font-size: 0.85rem;
    color: var(--dark);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* ─── Scrollbars ─────────────────────────────────────────── */
.chat-area::-webkit-scrollbar {
    width: 6px;
}

.chat-area::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.chat-area::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    border-radius: 3px;
    border: 1px solid transparent;
    background-clip: padding-box;
}

.chat-area::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.user-input::-webkit-scrollbar {
    width: 5px;
}

.user-input::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.user-input::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.3);
    border-radius: 3px;
}

.user-input::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.5);
}


/* ─── Scroll-to-Bottom FAB ───────────────────────────────── */
.fab {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex !important;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    opacity: 0;
}

.fab.visible {
    opacity: 1;
}

.fab:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: var(--shadow-lg);
}


/* ─── Welcome Message ────────────────────────────────────── */
.welcome-message {
    background: var(--primary-theme);
    color: white;
    padding: 18px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
    animation: messageAppear 0.5s var(--ease-spring);
}

.welcome-message h3 {
    color: #fff !important;
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.welcome-message h3 i {
    font-weight: lighter;
    margin-right: 8px;
}

.welcome-message p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.6;
}


/* ─── Quick Replies ──────────────────────────────────────── */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-reply {
    background: rgba(255, 255, 255, 0.18);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(4px);
}

.quick-reply:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}


/* ─── Chat FAB Container ────────────────────────────────── */
.fab-container {
    position: fixed;
    bottom: 60px;
    right: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
}

.fab-chat-toggle {
    position: relative;
    width: 110px;
    height: 110px;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.4s var(--ease-spring);
    transform: scale(1);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    animation: fabPulse 1.5s infinite;
}

.fab-chat-toggle.small {
    width: 48px;
    height: 48px;
}

.fab-chat-toggle.small .fab-background {
    width: 48px;
    height: 48px;
}

.fab-chat-toggle.small .close-icon {
    width: 48px;
    height: 48px;
    background: rgb(204 58 63 / 97%);
}

.fab-chat-toggle.small .close-x {
    font-size: 22px;
}

.fab-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--royal), var(--teal-500));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease, width 0.4s, height 0.4s;
}

.fab-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.close-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3;
    cursor: pointer;
    background: rgba(239, 68, 68, 0.96);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
    transition: width 0.4s, height 0.4s, background 0.4s;
}

.close-x {
    color: white;
    font-size: 20px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
    position: relative;
    transition: transform 0.2s ease, font-size 0.4s;
    user-select: none;
}

.close-x::before {
    display: none;
}

.close-icon:hover .close-x {
    transform: rotate(90deg);
}


/* ─── FAB Tooltips ───────────────────────────────────────── */
.fab-tooltip,
.close-tooltip {
    position: absolute;
    right: 90px;
    background: rgba(10, 22, 40, 0.9);
    color: white;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    box-shadow: var(--shadow-md);
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    transition: all 0.4s var(--ease-spring);
}

.fab-tooltip::after,
.close-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid rgba(10, 22, 40, 0.9);
}

@keyframes fabPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
    }
    70% {
        box-shadow: 0 0 0 50px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.fab-container:hover .fab-chat-toggle {
    animation: none;
    transform: translateY(-3px);
}

.fab-chat-toggle:active {
    transform: scale(0.92);
}

.fab-chat-toggle:hover .fab-icon {
    transform: scale(0.9);
    filter: brightness(1.1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.fab-container:hover .fab-tooltip:not(.hide) {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.fab-chat-toggle.is-open:hover ~ .close-tooltip:not(.hide) {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.fab-chat-toggle.is-open:hover ~ .fab-tooltip {
    opacity: 0 !important;
}


/* ─── Chat Dropdown ──────────────────────────────────────── */
.dropdown {
    font-family: 'Inter', 'Poppins', sans-serif;
    background: var(--sapphire);
    color: white;
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-top: 4px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

select option {
    background: rgba(255, 255, 255, 0.06);
    background-color: var(--sapphire);
    color: #fff;
    backdrop-filter: blur(10px);
    font-size: 12px;
}


/* ─── Video Wrapper ──────────────────────────────────────── */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 640px;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 4px 10px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition-fast);
    backdrop-filter: blur(4px);
}

.play-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hide-video-btn {
    margin-top: 10px;
    background: #ef4444;
    color: white;
    padding: 4px 10px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-block;
    font-weight: 500;
}

#videoIframe {
    display: none;
    border-radius: var(--radius-sm);
    width: 100%;
    height: 225px;
}


/* ─── Chatbot Beat Animation ─────────────────────────────── */
.chatbot-beat {
    animation: beat 1.5s infinite;
}

@keyframes beat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}


/* ─── CTA Button ─────────────────────────────────────────── */
.cta {
    display: flex;
    padding: 6px 0px 4px 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    color: white;
    background: linear-gradient(135deg, var(--sapphire), var(--navy-700));
    transition: all 0.4s var(--ease-out);
    box-shadow: 6px 6px 0 white;
    transform: skewX(-15deg);
    border-radius: 4px;
}

.cta:focus {
    outline: none;
}

.cta:hover {
    transition: 0.5s;
    box-shadow: 10px 10px 0 var(--gold-400);
}

.cta span:nth-child(2) {
    transition: 0.5s;
    margin-left: 10px;
    font-size: 17px;
    position: relative;
    top: 5%;
}


/* ─── User Icon ──────────────────────────────────────────── */
.user-icon {
    color: white;
    transition: color 0.3s ease;
    font-size: 18px;
}

.cta:hover .user-icon {
    animation: shake 0.1s !important;
}


/* ─── Admin Login Button ─────────────────────────────────── */
#buttonAdminLogin {
    width: 11%;
}


/* ─── Utility Classes ────────────────────────────────────── */
.hidden {
    display: none;
}


/* ─── News Scrolling ─────────────────────────────────────── */
@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

.auto-scroll-on-hover {
    height: 179px;
    overflow-y: hidden;
    overflow-x: hidden;
    position: relative;
}

.auto-scroll-on-hover:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scroll-up {
    0% { transform: translateY(0%); }
    100% { transform: translateY(-100%); }
}

.auto-scroll-on-hover::-webkit-scrollbar {
    width: 5px;
}

.auto-scroll-on-hover::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
}

.auto-scroll-on-hover::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

select option {
    background: #f0f4f8;
    color: var(--text-primary);
}


/* ─── Highlight Link ─────────────────────────────────────── */
.highlight-link {
    animation: highlightPulse 2s infinite;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.highlight-link:hover {
    color: var(--royal) !important;
}

.no-underline {
    text-decoration: none !important;
}

@keyframes highlightPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.85;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* ─── Glass Button (Admin Login) ─────────────────────────── */
.glass-button {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s var(--ease-out);
    overflow: hidden;
}

.glass-button .icon-left {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    padding: 10px;
    margin-right: 12px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-900);
}

.glass-button .icon-right {
    margin-left: 12px;
    font-size: 18px;
}

.glass-button .adminLabel {
    letter-spacing: 1.5px;
    font-size: 12px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.glass-button:hover {
    box-shadow: 0 6px 28px rgba(244, 168, 37, 0.35);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}


/* ─── Ad Close Button ────────────────────────────────────── */
#BtnAdClose {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600;
}

#BtnAdClose:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

#BtnAdClose i {
    color: #fff !important;
    transition: color 0.3s ease !important;
}

#BtnAdClose:hover i {
    color: #fff !important;
}


/* ─── Bot Message Enhancements ───────────────────────────── */
.bot-message .message-content {
    line-height: 1.6;
}

#chatbotImg {
    margin-right: 15px;
}

.bot-message h3 {
    font-size: 1.1rem;
    color: var(--sapphire) !important;
    margin: 10px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bot-message h4 {
    font-size: 1rem;
    margin: 16px 0 8px;
    color: var(--sapphire) !important;
    font-weight: 600;
}

.styled-list {
    padding-left: 1.5rem;
    margin: 12px 0;
}

.styled-list li {
    margin-bottom: 6px;
    padding-left: 0.5rem;
}


/* ─── Tables (Chat) ──────────────────────────────────────── */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 12px 0;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    white-space: nowrap;
}

.table-container th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.table-container th {
    background-color: rgba(30, 58, 95, 0.85);
    font-weight: 600;
    color: #fff;
}

.emoji {
    font-style: normal;
}


/* ─── Glossy Shine Badge ─────────────────────────────────── */
.glossy-shine {
    position: relative;
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--royal), var(--teal-500));
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-weight: 700;
    text-align: center;
    color: #fff;
    transition: background 0.3s ease;
}

.glossy-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(25deg);
    animation: shine 2.5s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(25deg); }
    100% { transform: translateX(100%) rotate(25deg); }
}


/* ─── Blur Background ────────────────────────────────────── */
body.blur-bg::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(10, 22, 40, 0.25);
    z-index: 4;
}


/* ============================================================
   RESPONSIVE BREAKPOINTS (all preserved)
   ============================================================ */

@media (max-width: 1680px) {
    #buttonAdminLogin {
        width: 13% !important;
    }
    .main-row {
        padding-bottom: 165px !important;
    }
}

@media (max-width: 1480px) {
    .shadow-heading {
        font-size: 2.2rem;
        width: 35%;
    }
    .hero-subtitle {
        font-size: 1.1rem;
        width: 35%;
    }
    .button-pair {
        width: 36%;
    }
    #buttonAdminLogin {
        width: 13% !important;
    }
    .pay-water-img {
        width: 80px;
        height: 80px;
    }
    .mutation-img {
        width: 80px;
        height: 80px;
    }
    .pmc-android-img {
        width: 63px;
        height: 60px;
        margin: 12px;
    }
    .pmc-ios-img {
        width: 45px;
        height: 60px;
        margin: 12px;
    }
    .main-row {
        padding-bottom: 165px !important;
    }
}

@media (max-width: 1200px) {
    .shadow-heading {
        font-size: 2.4rem;
        width: 55%;
    }
    .hero-subtitle {
        font-size: 1.15rem;
        width: 55%;
    }
    .button-pair {
        width: 59%;
    }
    #buttonAdminLogin {
        width: 21% !important;
    }
    .pay-water-img {
        width: 60px;
        height: 60px;
    }
    .mutation-img {
        width: 60px;
        height: 59px;
    }
    .pmc-android-img {
        width: 40px;
        height: 48px;
        margin: 6px;
    }
    .pmc-ios-img {
        height: 60px;
        width: 45px;
        margin: 0px;
    }
    #chatbotImg {
        margin-right: 5px !important;
    }
    #chatbotText p {
        font-size: 0.78rem !important;
    }
}

@media (max-width: 1000px) {
    .shadow-heading {
        font-size: 2.4rem;
        width: 85%;
    }
    .hero-subtitle {
        font-size: 1.15rem;
        width: 85%;
    }
    .button-pair {
        width: 53%;
    }
    #buttonAdminLogin {
        width: 22% !important;
    }
    #chatbotImg {
        margin-right: 15px !important;
    }
    #chatbotText p {
        font-size: 1rem !important;
    }
}

@media (max-width: 920px) {
    .shadow-heading {
        font-size: 2.2rem;
        width: 85%;
    }
    .hero-subtitle {
        font-size: 1.1rem;
        width: 85%;
    }
    .button-pair {
        width: 54%;
    }
    #buttonAdminLogin {
        width: 26% !important;
    }
    .pmc-android-img {
        width: 45px;
        height: 46px;
        margin: 6px;
    }
    .pmc-ios-img {
        width: 40px;
        height: 56px;
        margin: 0px;
    }
    .main-row {
        padding-bottom: 165px !important;
    }
}

@media (max-width: 767.98px) {
    .shadow-heading {
        font-size: 2.2rem !important;
        width: 100%;
    }
    .hero-subtitle {
        font-size: 1.1rem !important;
        width: 100%;
    }
    .button-pair {
        width: 100%;
    }
    .main-row {
        padding-bottom: 165px !important;
    }
    #buttonAdminLogin {
        width: 40% !important;
    }

    /* Chat mobile */
    .chat-container {
        right: auto;
        transform: translateX(-50%) translateY(20px);
        bottom: 20px;
        width: 95%;
        height: 75vh;
        min-height: 50vh;
        bottom: 120px;
        border-radius: var(--radius-md);
    }
}

@media (max-width: 520px) {
    .shadow-heading {
        font-size: 1.9rem !important;
        width: 100%;
    }
    .hero-subtitle {
        font-size: 1rem !important;
        width: 100%;
    }
    .button-pair {
        width: 100%;
    }
    .hero {
        padding: 25px 20px 65px;
    }
    #buttonAdminLogin {
        width: 50% !important;
        margin-left: 250px !important;
    }
    .mutation-img {
        width: 55px;
        height: 60px;
    }
    .pay-water-img {
        width: 57px;
        height: 60px;
    }
    .pmc-android-img {
        width: 32px;
        height: 32px;
        margin: 4px;
    }
    .pmc-ios-img {
        width: 30px;
        height: 40px;
        margin: 0px;
    }
    .glass-button {
        height: 25px;
    }
    .glass-button .icon-left {
        height: 25px;
    }
}

@media (max-width: 491px) {
    #buttonAdminLogin {
        width: 50% !important;
        margin-left: 200px !important;
    }
}

@media (max-width: 480px) {
    .bot-message .message-content {
        padding: 14px 16px;
    }
    th, td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    #buttonAdminLogin {
        width: 50% !important;
        margin-left: 170px !important;
    }
    .pay-water-img {
        width: 56px;
        height: 60px;
    }
    .mutation-img {
        width: 55px;
        height: 60px;
    }
    .shadow-heading {
        font-size: 1.7rem !important;
        width: 100%;
    }
    .hero-subtitle {
        font-size: 0.9rem !important;
        width: 100%;
    }
}


/* ============================================================
   PREMIUM PAGE ENHANCEMENTS
   ============================================================ */

/* ─── Card Elevation (Quick Search, News) ────────────────── */
.bg-white.rounded.shadow {
    background: var(--surface-card) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid rgba(226, 232, 240, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    z-index: 2 !important;
}

/* ─── Blink Soft (NEW badge) ─────────────────────────────── */
.blink-soft {
    animation: blinkSoft 1.5s ease-in-out infinite;
}

@keyframes blinkSoft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ─── Collapse container for chatbot ─────────────────────── */
.collapse-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ─── Smooth page transitions ────────────────────────────── */
.col-md-5,
.col-md-7 {
    animation: fadeInUp 0.6s var(--ease-out) both;
}

.col-md-7 {
    animation-delay: 0.15s;
}

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

/* ─── Property Search Card refinement ────────────────────── */
#PropertySearchBtnContainer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

/* ─── Form Input subtle improvements ─────────────────────── */
.form-control::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

/* ─── News card refinement ───────────────────────────────── */
#newsCard {
    border-left: 4px solid var(--royal);
}

/* ─── Video/Map area ─────────────────────────────────────── */
.ratio {
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

#map-image {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

#map-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* ─── HR Divider in helpline ─────────────────────────────── */
.helpline hr {
    border-top-color: rgba(255, 255, 255, 0.15) !important;
    margin: 16px 0;
}

/* ─── Badge in officer address section ───────────────────── */
.badge.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ─── Body scrollbar ─────────────────────────────────────── */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: var(--surface-bg);
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}
