/* ==================================================
   TIRANGA PAY - USER FRONTEND DESIGN SYSTEM
   Exact Reproduction of Screenshot Aesthetics & Layout
   ================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #FF6600;
    --primary-dark: #E65C00;
    --primary-light: #FFF0E6;
    --primary-border: #FFD0B3;
    --primary-gradient: linear-gradient(135deg, #FF6600 0%, #FF8533 100%);
    --primary-shadow: 0 8px 24px rgba(255, 102, 0, 0.25);
    
    --bg: #F4F6F9;
    --card: #FFFFFF;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    
    --text: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    
    --success: #16A34A;
    --success-bg: #DCFCE7;
    --danger: #EF4444;
    --danger-bg: #FEE2E2;
    --info: #0284C7;
    --info-bg: #E0F2FE;
    
    --navy-card: #1E293B;
    --navy-card-border: #334155;
    --blue-gradient: linear-gradient(135deg, #FF6600 0%, #FF8533 100%);
    
    --bottom-nav-height: 72px;
    --header-height: 60px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #E2E8F0;
    color: var(--text);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Mobile App Viewport Container */
.app-viewport {
    width: 100%;
    max-width: 440px;
    background: linear-gradient(180deg, #EBF3FC 0%, #F4F6F9 100%);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--bottom-nav-height) + 10px);
}

/* Header Component */
.app-header {
    height: 58px;
    background: rgba(232, 238, 246, 0.9);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 20px rgba(60, 80, 120, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(6px + env(safe-area-inset-top, 0px)) 20px 6px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-header.with-bg {
    background: rgba(232, 238, 246, 0.9);
}

.back-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #fff;
    box-shadow: 0 6px 14px rgba(60, 80, 120, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5A6B85;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    flex: none;
    transition: transform 0.15s;
}

.back-btn:active {
    transform: scale(0.92);
}

.header-title {
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #1B2430;
    margin: 0;
}

.header-action {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #fff;
    box-shadow: 0 6px 14px rgba(60, 80, 120, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5A6B85;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: transform 0.15s;
}

.header-action:active {
    transform: scale(0.92);
}

.notif-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #EF4444;
    border-radius: 50%;
}

/* Main Content Area */
.app-content {
    flex: 1;
    padding: 16px 20px;
}

/* Hero Banners */
.hero-card {
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: 24px 20px 48px 20px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    margin-bottom: -32px;
}

.hero-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

.hero-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 13px;
    opacity: 0.92;
    margin-bottom: 16px;
}

.hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-tag {
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Floating White Overlay Form Card */
.form-card {
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: 24px 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    position: relative;
    z-index: 10;
    margin-bottom: 20px;
}

/* Segmented Tab Controls */
.tab-group {
    display: flex;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    padding: 4px;
    gap: 4px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: var(--card);
    color: var(--primary);
    border: 1.5px solid var(--primary-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Form Inputs */
.input-group {
    margin-bottom: 16px;
    position: relative;
}

.input-field {
    width: 100%;
    height: 54px;
    background: var(--primary-light);
    border: 1.5px solid transparent;
    border-radius: var(--radius-md);
    padding: 0 16px 0 64px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    outline: none;
    transition: all 0.2s ease;
}

.input-field:focus {
    border-color: var(--primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(255, 138, 0, 0.12);
}

.input-icon-pill {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 38px;
    background: var(--primary);
    color: #FFFFFF;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(255, 138, 0, 0.3);
}

.input-toggle-pwd {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 20px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

/* Buttons */
.btn-primary {
    width: 100%;
    height: 52px;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-full);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--primary-shadow);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.2);
}

.btn-outline {
    width: 100%;
    height: 50px;
    background: var(--primary-light);
    border: 1.5px solid var(--primary-border);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline:active {
    background: #FFE8D1;
}

/* Divider OR */
.divider-or {
    text-align: center;
    position: relative;
    margin: 16px 0;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
}

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

/* Dashboard Wallet Card */
.wallet-card {
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: 20px;
    color: #FFFFFF;
    box-shadow: var(--primary-shadow);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.wallet-card::before {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.wallet-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.88;
    text-transform: uppercase;
}

.wallet-amount {
    font-size: 32px;
    font-weight: 800;
    margin: 4px 0 16px 0;
}

.wallet-stats-row {
    display: flex;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 12px;
}

.wallet-substat {
    flex: 1;
}

.wallet-substat-title {
    font-size: 10px;
    opacity: 0.8;
    text-transform: uppercase;
    font-weight: 700;
}

.wallet-substat-value {
    font-size: 15px;
    font-weight: 800;
}

/* Dashboard Quick Action Buttons Row */
.quick-actions-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.action-btn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.action-icon-box {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: transform 0.2s ease;
}

.action-btn-item:active .action-icon-box {
    transform: scale(0.92);
}

.action-icon-box.orange { background: #FFF0DF; color: var(--primary); }
.action-icon-box.green { background: #DCFCE7; color: var(--success); }
.action-icon-box.blue { background: #E0F2FE; color: var(--info); }
.action-icon-box.purple { background: #F3E8FF; color: #9333EA; }

.action-btn-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}

/* Commission Stat Cards Stack */
.stat-card-item {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.stat-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon-circle.green { background: #DCFCE7; color: var(--success); }
.stat-icon-circle.orange { background: #FFF0DF; color: var(--primary); }
.stat-icon-circle.navy { background: #E2E8F0; color: var(--navy-card); }

.stat-content {
    flex: 1;
}

.stat-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

/* Current USDT Rate Navy Card */
.usdt-rate-card {
    background: var(--navy-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(16, 42, 67, 0.2);
    margin-bottom: 16px;
}

.usdt-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.usdt-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #FBBF24;
}

.usdt-title {
    font-size: 15px;
    font-weight: 800;
}

.usdt-sub {
    font-size: 11px;
    opacity: 0.7;
}

.usdt-rate-val {
    font-size: 26px;
    font-weight: 800;
    text-align: right;
    color: #38BDF8;
}

.usdt-unit {
    font-size: 10px;
    opacity: 0.8;
    text-align: right;
}

/* Information Banner Box */
.info-box {
    background: #FFF3E0;
    border: 1px solid #FFE0B2;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.info-icon {
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.info-text {
    font-size: 12px;
    color: #B45309;
    line-height: 1.5;
    font-weight: 500;
}

/* Invite & Earn Gradient Banner */
.invite-banner-card {
    background: var(--blue-gradient);
    border-radius: var(--radius-xl);
    padding: 24px 20px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}

.invite-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 8px;
}

.invite-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
}

.invite-desc {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 16px;
    line-height: 1.4;
}

.btn-invite-share {
    background: #FFFFFF;
    color: #2563EB;
    border: none;
    border-radius: var(--radius-full);
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Package List Items (Deposit Page) */
.package-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    transition: transform 0.2s;
}

.package-card:active {
    transform: scale(0.99);
}

.package-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}

.package-income {
    font-size: 13px;
    font-weight: 700;
    color: var(--success);
    margin: 4px 0 2px 0;
}

.package-quota {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.btn-buy-package {
    background: var(--primary-gradient);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-full);
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--primary-shadow);

}

/* Filter Controls Row (Deposit Page) */
.filter-pills-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-pill {
    padding: 8px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
}

.filter-pill.active {
    background: var(--primary-gradient);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.2);
}

/* Sorting & Range Controls Bar */
.sorting-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.select-custom, .input-mini {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    outline: none;
}

.input-mini {
    width: 70px;
}

/* Fixed Bottom Navigation Bar (Matches Screenshots - Flat Bar) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 440px;
    height: 62px;
    background: #FFFFFF;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    border-top: 1px solid #F1F5F9;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #94A3B8;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 0;
    transition: color 0.2s ease;
}

.nav-item .nav-icon {
    font-size: 20px;
    line-height: 1;
}

.nav-item.active {
    color: #FF6600;
    background: transparent;
}

.nav-item.active .nav-icon {
    color: #FF6600;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast-msg {
    background: var(--text);
    color: #FFFFFF;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

.toast-msg.success { background: #15803D; }
.toast-msg.error { background: #B91C1C; }

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

/* ==================================================
   GUEST LIVE CHAT SUPPORT STYLES
   ================================================== */

/* Floating Live Chat Launcher */
.floating-chat-btn {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 8px 24px rgba(255, 138, 0, 0.45);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-chat-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 138, 0, 0.6);
}

.floating-chat-btn:active {
    transform: scale(0.95);
}

.floating-chat-btn .notif-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #22C55E;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
}

.floating-chat-tooltip {
    position: fixed;
    bottom: 34px;
    right: 86px;
    z-index: 998;
    background: #FFFFFF;
    color: var(--text);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(16, 42, 67, 0.12);
    border: 1px solid var(--border);
    pointer-events: none;
    animation: fadeInTooltip 0.4s ease;
}

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

/* Orange Support Card Header */
.guest-chat-hero {
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: 24px 20px;
    color: #FFFFFF;
    box-shadow: var(--primary-shadow);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
}

.guest-chat-hero-icon {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.guest-chat-hero-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.guest-chat-hero-sub {
    font-size: 13px;
    opacity: 0.92;
    line-height: 1.4;
}

/* Support Hours & Guidelines Box */
.support-info-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}

.support-info-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.support-info-list li {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-info-list li span {
    color: var(--primary);
    font-weight: 800;
}

/* Quick Topic Pills */
.topic-pills-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.topic-pills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.topic-pill-btn {
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.topic-pill-btn:hover, .topic-pill-btn.active {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

/* Security Warning Box */
.security-warning-box {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 600;
    color: #991B1B;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

/* Live Chat Conversation Area */
.chat-conversation-wrapper {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    background: var(--bg);
}

.chat-status-bar {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-status-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.open { background: #E0F2FE; color: #0284C7; }
.status-badge.waiting { background: #FFF0DF; color: #D97706; }
.status-badge.active { background: #DCFCE7; color: #15803D; }
.status-badge.closed { background: #F1F5F9; color: #64748B; }
.status-badge.expired { background: #FEE2E2; color: #DC2626; }

.chat-messages-viewport {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    max-width: 82%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 13.5px;
    line-height: 1.45;
    position: relative;
    word-break: break-word;
    animation: fadeInMsg 0.25s ease;
}

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

/* Guest message bubble (Right aligned, Orange) */
.chat-bubble.guest {
    align-self: flex-end;
    background: var(--primary-gradient);
    color: #FFFFFF;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.2);
}

.chat-bubble.guest .msg-meta {
    font-size: 10px;
    opacity: 0.85;
    text-align: right;
    margin-top: 4px;
}

/* Admin message bubble (Left aligned, White card) */
.chat-bubble.admin {
    align-self: flex-start;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    box-shadow: var(--card-shadow);
}

.chat-bubble.admin .agent-name {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2px;
}

.chat-bubble.admin .msg-meta {
    font-size: 10px;
    color: var(--text-muted);
    text-align: right;
    margin-top: 4px;
}

/* System message bubble (Center aligned, Dark Navy Pill) */
.chat-bubble.system {
    align-self: center;
    max-width: 90%;
    background: var(--navy-card);
    color: #FFFFFF;
    font-size: 11.5px;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-full);
    padding: 8px 18px;
    box-shadow: 0 2px 8px rgba(16, 42, 67, 0.15);
}

/* Bottom Chat Input Bar */
.chat-input-bar {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    bottom: 0;
    z-index: 20;
}

.chat-input-field {
    flex: 1;
    height: 48px;
    background: var(--primary-light);
    border: 1.5px solid transparent;
    border-radius: var(--radius-full);
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    outline: none;
}

.chat-input-field:focus {
    border-color: var(--primary);
    background: #FFFFFF;
}

.btn-chat-send {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--primary-shadow);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.btn-chat-send:active {
    transform: scale(0.9);
}

.btn-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-chat-attach {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card);
    color: var(--text);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.btn-chat-attach:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.chat-attachment-img {
    max-width: 220px;
    max-height: 180px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.15s;
}

.chat-attachment-img:hover {
    transform: scale(1.02);
}

.msg-attachment-box {
    margin-bottom: 6px;
}

.guest-chat-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.guest-chat-modal-card {
    background: #FFF;
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    animation: modalPop 0.2s ease-out;
}

/* Chat Expired / Closed Banner */
.chat-closed-banner {
    background: #FFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    margin: 16px;
    box-shadow: var(--card-shadow);
}

.chat-closed-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.chat-closed-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Previous Sessions List Card */
.session-item-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.session-item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

/* ==================================================
   HERO BANNER CAROUSEL SLIDER STYLES
   ================================================== */
.hero-slider-container {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(16, 42, 67, 0.12);
    aspect-ratio: 16 / 9;
    background: #102A43;
    user-select: none;
    touch-action: pan-y;
}

.hero-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.hero-slide-item {
    min-width: 100%;
    width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.hero-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(16, 42, 67, 0.85) 0%, rgba(16, 42, 67, 0) 100%);
    padding: 24px 16px 12px 16px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    pointer-events: none;
}

.hero-banner-title {
    font-size: 14px;
    font-weight: 800;
    color: #FFFFFF;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    line-height: 1.3;
}

.hero-slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.hero-dot.active {
    width: 22px;
    border-radius: 10px;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(255, 138, 0, 0.8);
}

.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(16, 42, 67, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.hero-slider-nav:hover {
    background: rgba(255, 138, 0, 0.8);
    border-color: var(--primary);
}

.hero-slider-nav.prev {
    left: 8px;
}

.hero-slider-nav.next {
    right: 8px;
}

/* Floating Dragon Pay 3-Item Bottom Navigation Bar (Matches Attached Screenshots) */
.dragon-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 440px;
    height: 64px;
    background: #FFFFFF;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #F1F5F9;
}
.dragon-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #94A3B8;
    background: transparent;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
}
.dragon-nav-btn.active {
    color: #E11D48;
    background: #FFF1F2;
    border-color: #FECDD3;
}
.dragon-nav-btn:active {
    transform: scale(0.92);
}
.dragon-nav-center-coin {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF2A4D 0%, #D50000 100%);
    border: 3px solid #FFFFFF;
    box-shadow: 0 4px 18px rgba(225, 29, 72, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 23px;
    font-weight: 900;
    font-family: 'Sora', sans-serif;
    margin-top: -24px;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.dragon-nav-center-coin::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(251, 191, 36, 0.65);
    pointer-events: none;
}
.dragon-nav-center-coin:active {
    transform: scale(0.92);
}

