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

:root {
    /* Color Palette */
    --primary: #1d4ed8;       /* Royal Blue */
    --primary-dark: #1e40af;  /* Deep Blue */
    --secondary: #f97316;     /* Call-to-Action Orange */
    --dark-bg: #0f172a;       /* Navy Dark */
    --light-bg: #f8fafc;      /* Page Background */
    --white: #ffffff;
    --text-main: #1e293b;     /* Dark Slate */
    --text-light: #64748b;    /* Muted Text */
    --border: #e2e8f0;
    --success: #10b981;       /* Green */
    --danger: #ef4444;        /* Red */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ================= GLOBAL RESET ================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Hind Siliguri', sans-serif; }
body { background-color: var(--light-bg); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none !important; color: inherit; transition: 0.3s ease; }
ul { list-style: none !important; padding: 0; margin: 0; }
button { font-family: 'Hind Siliguri', sans-serif; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }

/* ================= TOAST NOTIFICATION ================= */
#toast-container {
    position: fixed; top: 20px; right: 20px; z-index: 9999;
    display: flex; flex-direction: column; gap: 12px;
}
.toast-box {
    min-width: 320px; background: var(--white); padding: 16px 20px;
    border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    display: flex; align-items: center; gap: 15px;
    border-left: 5px solid; font-size: 14px; font-weight: 600;
    animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast-success { border-color: var(--success); color: #065f46; }
.toast-success .toast-icon { color: var(--success); font-size: 18px; }
.toast-error { border-color: var(--danger); color: #991b1b; }
.toast-error .toast-icon { color: var(--danger); font-size: 18px; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ================= NAVBAR ================= */
.navbar { 
    background: rgba(255, 255, 255, 0.95); height: 75px; 
    border-bottom: 1px solid var(--border); position: sticky; 
    top: 0; z-index: 1000; display: flex; align-items: center; 
    backdrop-filter: blur(10px); box-shadow: var(--shadow-sm);
}
.nav-container { 
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; 
    display: flex; justify-content: space-between; align-items: center; 
}
.brand-logo {
    font-family: 'Montserrat', sans-serif; font-size: 26px; font-weight: 800;
    color: var(--text-main); letter-spacing: -0.5px; display: flex; align-items: center;
}
.brand-logo .highlight { color: var(--secondary); }
.nav-btns { display: flex; gap: 12px; align-items: center; }

/* Desktop Menu (NEW) */
.desktop-menu { display: flex; gap: 30px; }
.desktop-menu a { font-weight: 600; font-size: 15px; color: var(--text-main); position: relative; }
.desktop-menu a:hover { color: var(--primary); }
.desktop-menu a::after {
    content: ''; display: block; width: 0; height: 2px; background: var(--primary);
    transition: 0.3s; position: absolute; bottom: -5px; left: 0;
}
.desktop-menu a:hover::after { width: 100%; }

/* ================= HERO SECTION ================= */
.hero-section {
    background: var(--dark-bg); padding: 80px 0; position: relative; overflow: hidden;
}
.hero-section::before {
    content: ''; position: absolute; top: -50%; left: -20%; width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.2) 0%, rgba(0,0,0,0) 70%);
    z-index: 0; pointer-events: none;
}
.hero-grid {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; 
    max-width: 1200px; margin: 0 auto; padding: 0 20px; align-items: center; position: relative; z-index: 1;
}
.hero-content h1 {
    font-size: 42px; color: var(--white); line-height: 1.3; margin-bottom: 20px; font-weight: 700;
}
.hero-content p { color: #cbd5e1; font-size: 18px; margin-bottom: 35px; max-width: 550px; }

/* Hero Buttons Container */
.hero-buttons {
    display: flex; gap: 15px; flex-wrap: wrap;
}

/* Glass Button */
.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 14px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    backdrop-filter: blur(5px);
    transition: 0.3s;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.btn-glass:hover {
    background: var(--white);
    color: var(--primary) !important;
    text-shadow: none;
    border-color: var(--white);
}

/* Profile Card */
.lawyer-card {
    background: var(--white); padding: 30px; border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); text-align: center;
    position: relative; border: 1px solid rgba(255,255,255,0.1);
    max-width: 380px; margin: 0 auto; transform: rotate(-1deg); transition: 0.3s;
}
.lawyer-card:hover { transform: rotate(0deg) translateY(-5px); }

.online-badge {
    position: absolute; top: 20px; right: 20px; 
    background: #dcfce7; color: #166534; padding: 4px 12px; 
    border-radius: 20px; font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 6px;
}
.dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; animation: blink 1.5s infinite; }
@keyframes blink { 50% { opacity: 0.4; } }

.lawyer-img {
    width: 130px; height: 130px; border-radius: 50%; object-fit: cover;
    border: 4px solid var(--light-bg); margin-bottom: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.lawyer-name { font-size: 22px; font-weight: 700; color: var(--text-main); margin-bottom: 5px; }
.lawyer-designation { color: var(--primary); font-weight: 600; font-size: 13px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

.rating-box { 
    display: inline-flex; align-items: center; gap: 5px; background: #fffbeb; 
    color: #b45309; padding: 5px 12px; border-radius: 8px; font-weight: 700; font-size: 13px; margin-bottom: 20px;
}
.rating-box i { color: #f59e0b; }

.tags-container { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 25px; }
.tag { background: #f1f5f9; color: var(--text-light); padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 500; }

.price-info { 
    font-size: 20px; font-weight: 800; color: var(--text-main); 
    border-top: 1px solid var(--border); padding-top: 15px; margin-top: 15px;
}

/* ================= SERVICES/PRACTICE AREAS (UPDATED) ================= */
.section-title { 
    text-align: center; font-size: 32px; font-weight: 700; margin-bottom: 10px; 
    color: var(--text-main); position: relative;
}
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 50px; font-size: 16px; }

.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    background: var(--white); padding: 35px 30px; border-radius: 16px;
    border: 1px solid var(--border); transition: 0.3s ease;
    cursor: pointer; position: relative; overflow: hidden;
}
.service-card:hover {
    transform: translateY(-10px); border-color: var(--primary);
    box-shadow: var(--shadow-card);
}
.service-icon {
    width: 60px; height: 60px; background: #eff6ff; color: var(--primary);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 20px; transition: 0.3s;
}
.service-card:hover .service-icon { background: var(--primary); color: white; }
.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 15px; color: var(--text-main); }
.service-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 20px; }
.learn-more { font-size: 13px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 5px; }

/* ================= WHY CHOOSE US (NEW) ================= */
.why-us-section { background: #f1f5f9; padding: 80px 0; }
.why-us-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.why-content h2 { font-size: 32px; font-weight: 700; margin-bottom: 20px; color: var(--text-main); }
.why-content p { font-size: 16px; color: var(--text-light); margin-bottom: 30px; }

.features-list { display: flex; flex-direction: column; gap: 25px; }
.features-list li { display: flex; gap: 15px; align-items: flex-start; }
.features-list li i { 
    font-size: 20px; color: var(--success); background: white; 
    width: 40px; height: 40px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); flex-shrink: 0;
}
.features-list li strong { display: block; font-size: 16px; margin-bottom: 5px; color: var(--text-main); }
.features-list li span { font-size: 14px; color: var(--text-light); }

.why-image .image-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; border-radius: 20px; padding: 60px 40px; text-align: center;
    box-shadow: var(--shadow-hover); position: relative;
}
.why-image .image-box i { font-size: 80px; opacity: 0.3; margin-bottom: 20px; }
.why-image .image-box h3 { font-size: 30px; font-weight: 800; line-height: 1.4; }

/* ================= COURTS SECTION (UPDATED) ================= */
.courts-section { background: var(--white); padding: 80px 0; border-top: 1px solid var(--border); }
.courts-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px; text-align: center; 
}
.court-item {
    background: var(--light-bg); padding: 30px 20px; border-radius: 12px;
    border: 1px solid var(--border); transition: 0.3s;
}
.court-item:hover { background: #eff6ff; border-color: var(--primary); transform: translateY(-5px); }
.court-item i { font-size: 35px; color: var(--text-light); margin-bottom: 15px; transition: 0.3s; }
.court-item:hover i { color: var(--primary); }
.court-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 5px; color: var(--text-main); }
.court-item p { font-size: 12px; color: var(--text-light); }

/* ================= FOOTER ================= */
footer { background: var(--dark-bg); color: #94a3b8; padding: 60px 0 0; margin-top: 0; }
.footer-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 20px 50px; border-bottom: 1px solid #334155; 
}
.footer-col h4 { color: var(--white); margin-bottom: 20px; font-size: 18px; font-weight: 600; }
.footer-col ul li { margin-bottom: 12px; font-size: 14px; }
.footer-col ul li i { margin-right: 10px; width: 15px; }
.footer-col ul li a:hover { color: var(--secondary); margin-left: 5px; }
.social-icon { 
    width: 35px; height: 35px; background: rgba(255,255,255,0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: white; transition: 0.3s;
}
.social-icon:hover { background: var(--primary); }
.footer-bottom { text-align: center; padding: 25px; font-size: 14px; background: #020617; }

/* ================= LOGIN & AUTH ================= */
.login-wrapper {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 20px; background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}
.login-card {
    background: var(--white); width: 100%; max-width: 950px; min-height: 600px;
    border-radius: 24px; box-shadow: var(--shadow-hover); overflow: hidden;
    display: flex; border: 1px solid var(--white);
}
.login-banner {
    flex: 1; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 60px; display: flex; flex-direction: column; justify-content: center;
    color: var(--white); position: relative; overflow: hidden;
}
.login-banner h2 { font-size: 36px; font-weight: 800; margin-bottom: 20px; line-height: 1.2; z-index: 2; }
.circle-bg {
    position: absolute; width: 400px; height: 400px; background: rgba(255,255,255,0.08);
    border-radius: 50%; bottom: -100px; right: -100px; z-index: 1;
}
.login-form-container { flex: 1; padding: 60px; display: flex; flex-direction: column; justify-content: center; }

/* Inputs & Tabs */
.auth-tabs { display: flex; background: #f1f5f9; padding: 5px; border-radius: 12px; margin-bottom: 30px; }
.tab-btn {
    flex: 1; padding: 12px; border: none; background: transparent; border-radius: 8px;
    font-weight: 600; color: var(--text-muted); cursor: pointer; transition: 0.3s;
}
.tab-btn.active { background: var(--white); color: var(--primary); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text-main); }
.input-field {
    width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px;
    font-size: 15px; outline: none; background: #f8fafc; transition: 0.2s;
}
.input-field:focus { border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }

/* Fix for Input Spacing */
.input-group-gap {
    margin-bottom: 15px;
}
.payment-btn-link {
    display: block;
    background: #10b981; /* Green color for payment */
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0 20px 0;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}
.payment-btn-link:hover {
    background: #059669;
    color: white;
}
/* ================= DASHBOARD LAYOUT ================= */
.dashboard { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 75px); }
.sidebar { background: var(--white); border-right: 1px solid var(--border); padding: 25px 0; height: 100%; }
.content { background: var(--light-bg); padding: 30px; overflow-y: auto; }

.sidebar-menu li { padding: 0 20px; margin-bottom: 8px; }
.sidebar-menu a {
    display: flex; align-items: center; gap: 12px; padding: 14px 18px;
    border-radius: 10px; color: var(--text-muted); font-weight: 500; transition: 0.2s;
}
.sidebar-menu a:hover, .sidebar-menu a.active { background: #eff6ff; color: var(--primary); }

.appt-item {
    background: var(--white); border: 1px solid var(--border); border-radius: 16px;
    padding: 20px; margin-bottom: 15px; transition: 0.2s; display: flex; flex-direction: column; gap: 10px;
}
.appt-item:hover { border-color: var(--primary); box-shadow: var(--shadow-card); }
.appt-header { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; color: var(--text-main); }
.appt-details { display: flex; gap: 20px; font-size: 13px; color: var(--text-muted); align-items: center; background: #f8fafc; padding: 8px 12px; border-radius: 8px; width: fit-content; }

.admin-only { display: none; }

/* ================= BUTTONS ================= */
.nav-btn { padding: 10px 24px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; transition: 0.2s; }
.btn-primary { 
    background: var(--primary); color: var(--white); border: none; padding: 12px 30px; 
    border-radius: 10px; font-weight: 600; cursor: pointer; display: inline-block; transition: 0.2s;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(29, 78, 216, 0.3); }

.btn-outline { 
    background: var(--white); border: 1px solid var(--border); color: var(--text-main); 
    padding: 10px 25px; border-radius: 8px; font-weight: 600; cursor: pointer; display: inline-block; 
}
.btn-outline:hover { border-color: var(--text-main); background: #f8fafc; }

.btn-full { width: 100%; padding: 14px; background: var(--primary); color: var(--white); border: none; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 10px; transition: 0.3s; }
.btn-full:hover { background: var(--primary-dark); }

.pulse-btn {
    background: var(--secondary); color: var(--white); padding: 14px 30px; 
    border-radius: 50px; font-weight: 700; font-size: 15px; border: none; cursor: pointer;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4); animation: pulse 2s infinite; display: inline-flex; align-items: center; gap: 8px;
    transition: 0.3s;
}
.pulse-btn:hover { background: #ea580c; transform: translateY(-2px); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(249, 115, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 6px; border: none; cursor: pointer; color: white; margin-left: 5px; }
.btn-success { background: var(--success); } .btn-danger { background: var(--danger); } .btn-info { background: #0ea5e9; }

/* ================= MODAL & RESPONSIVE ================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7); display: none; justify-content: center; align-items: center; z-index: 2000;
    backdrop-filter: blur(5px);
}
.modal-box {
    background: var(--white); 
    padding: 30px; /* প্যাডিং ৪০ থেকে কমিয়ে ৩০ করা হয়েছে যাতে জায়গা বাড়ে */
    border-radius: 20px; 
    width: 90%; 
    max-width: 450px;
    position: relative; 
    animation: slideUp 0.3s; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* এই দুটি লাইন আপনার সমস্যার সমাধান করবে */
    max-height: 85vh; /* স্ক্রিনের ৮৫% এর বেশি বড় হবে না */
    overflow-y: auto; /* কন্টেন্ট বড় হলে স্ক্রল করা যাবে */
}
.close-modal {
    position: absolute; right: 20px; top: 15px; font-size: 28px; cursor: pointer; color: #94a3b8; transition: 0.2s; line-height: 1;
}
.close-modal:hover { color: var(--danger); }

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

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed; top: 75px; left: -100%; width: 280px; height: calc(100% - 75px);
    background: var(--white); border-right: 1px solid var(--border); transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000; padding: 25px 0; box-shadow: 10px 0 25px rgba(0,0,0,0.1);
}
.mobile-sidebar.active { left: 0; }
.menu-toggle { display: none; font-size: 24px; cursor: pointer; color: var(--text-main); }

/* --- How It Works Steps (Graphical) --- */
.step-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px;
}
.step-item {
    background: #f8fafc; padding: 15px; border-radius: 12px; text-align: center; border: 1px solid var(--border);
}
.step-icon {
    width: 35px; height: 35px; background: var(--primary); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: bold; margin: 0 auto 10px; font-size: 14px;
}
.step-item h4 { font-size: 14px; margin-bottom: 5px; color: var(--text-main); }
.step-item p { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

@media (max-width: 768px) {
    /* Navbar */
    .desktop-menu { display: none; }
    .nav-btns { display: none; }
    .menu-toggle { display: block; margin-right: 15px; }
    
    /* Hero */
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-content h1 { font-size: 34px; }
    .hero-content p { margin: 0 auto 30px; }
    .hero-buttons { justify-content: center; } /* Added for mobile button centering */
    .lawyer-card { transform: none; margin-top: 20px; }
    .why-us-grid { grid-template-columns: 1fr; text-align: center; }
    .why-image { display: none; } /* Hide image on mobile for better flow */
    
    /* Login Page */
    .login-card { flex-direction: column; max-width: 100%; border-radius: 0; min-height: 100vh; border: none; }
    .login-banner { display: none; }
    .login-form-container { padding: 40px 20px; }
    
    /* Dashboard */
    .dashboard { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .content { padding: 20px; }
    
    /* Grid */
    .services-grid, .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ================= PROFILE MODAL STYLES ================= */
/* প্রোফাইল মডালটি একটু চওড়া হবে যাতে তথ্য সুন্দরভাবে দেখা যায় */
.profile-modal-box {
    max-width: 600px !important; 
    width: 95% !important;
    padding: 0 !important; /* প্যাডিং রিসেট */
    overflow: hidden;
}

/* প্রোফাইল হেডার (নীল অংশ) */
.profile-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 30px 20px;
    text-align: center;
    color: white;
    position: relative;
}
.profile-header-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    object-fit: cover;
    margin-bottom: 10px;
}
.profile-header h3 { font-size: 22px; margin-bottom: 5px; }
.profile-header p { font-size: 13px; opacity: 0.9; }

/* প্রোফাইল বডি */
.profile-body {
    padding: 25px;
    text-align: left;
    max-height: 60vh; /* স্ক্রল করার জন্য */
    overflow-y: auto;
}

.about-text {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: justify;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

/* ইনফো গ্রিড (শিক্ষা ও অভিজ্ঞতা) */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}
.info-item h5 {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 700;
}
.info-item p {
    font-size: 13px;
    color: var(--text-main);
}

/* স্কিল ট্যাগস */
.skill-badge {
    display: inline-block;
    background: #eff6ff;
    color: var(--primary-dark);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 5px;
    margin-bottom: 5px;
    border: 1px solid #dbeafe;
}

@media (max-width: 600px) {
    .info-grid { grid-template-columns: 1fr; }
}


/* Refund Button Professional Style */
.btn-refund {
    background: transparent;
    border: 1px solid #cbd5e1; /* হালকা বর্ডার */
    color: #64748b; /* মিউটেড কালার */
    padding: 6px 15px;
    border-radius: 50px; /* রাউন্ড শেপ */
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-refund:hover {
    border-color: #ef4444; /* হোভার করলে লাল বর্ডার */
    color: #ef4444;       /* হোভার করলে লাল লেখা */
    background: #fef2f2;  /* হালকা লাল ব্যাকগ্রাউন্ড */
    transform: translateY(-2px);
}

/* ================= LIVE CHAT WIDGET (IMPROVED) ================= */
.chat-launcher {
    position: fixed; bottom: 30px; right: 30px;
    width: 60px; height: 60px; background: var(--primary);
    color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; cursor: pointer; box-shadow: 0 10px 25px rgba(29, 78, 216, 0.4);
    z-index: 9990; transition: transform 0.3s;
}
.chat-launcher:hover { transform: scale(1.1); }
.chat-badge {
    position: absolute; top: 0; right: 0; background: var(--danger);
    width: 15px; height: 15px; border-radius: 50%; border: 2px solid white;
    display: none;
}

.chat-window {
    position: fixed; bottom: 100px; right: 30px;
    width: 380px; /* একটু চওড়া করা হয়েছে */
    height: 550px; background: white;
    border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    display: none; flex-direction: column; overflow: hidden;
    z-index: 9999; border: 1px solid var(--border);
    animation: slideUpChat 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUpChat { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.chat-header {
    background: var(--primary); color: white; padding: 15px 20px;
    display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0;
}
.chat-title h4 { font-size: 16px; margin-bottom: 2px; }
.chat-title span { font-size: 11px; opacity: 0.8; display: flex; align-items: center; gap: 5px; }
.status-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; }

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

/* Guest Form inside Chat */
.chat-guest-form { padding: 20px; text-align: center; }
.chat-guest-form input {
    width: 100%; padding: 12px; margin-bottom: 12px;
    border: 1px solid var(--border); border-radius: 8px; font-size: 14px;
}

/* Messages - Visibility Fixes */
.msg { 
    max-width: 80%; padding: 12px 16px; border-radius: 12px; 
    font-size: 14px; position: relative; word-wrap: break-word; 
    line-height: 1.5;
}

/* User Message (Blue Bubble - White Text) */
.msg-user { 
    align-self: flex-end; 
    background: var(--primary); 
    color: #ffffff !important; /* Force white text */
    border-bottom-right-radius: 2px; 
}
.msg-user a { color: #e2e8f0 !important; text-decoration: underline; }

/* Admin/Other Message (White Bubble - Dark Text) */
.msg-admin { 
    align-self: flex-start; 
    background: white; 
    color: var(--text-main) !important; /* Force dark text */
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 2px; 
}

.msg-meta { 
    font-size: 10px; margin-top: 5px; opacity: 0.8; text-align: right; 
    display: block;
}

/* Typing Indicator */
.typing { align-self: flex-start; background: #e2e8f0; padding: 8px 12px; border-radius: 20px; display: none; gap: 4px; }
.typing span { width: 6px; height: 6px; background: #64748b; border-radius: 50%; animation: typeBounce 1s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typeBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.chat-footer {
    padding: 15px; border-top: 1px solid var(--border); background: white;
    display: flex; gap: 10px; align-items: center; flex-shrink: 0;
}
.chat-input {
    flex: 1; border: 1px solid var(--border); border-radius: 50px; 
    padding: 10px 15px; outline: none; font-size: 14px; background: #f8fafc;
}
.chat-action-btn {
    background: none; border: none; color: var(--text-light);
    cursor: pointer; font-size: 20px; padding: 5px; transition: 0.2s;
}
.chat-action-btn:hover { color: var(--primary); }
.chat-branding {
    text-align: center; font-size: 10px; color: #94a3b8; padding: 5px; background: #f8fafc;
}
.chat-attachment-preview { max-width: 150px; border-radius: 8px; margin-top: 5px; display: block; }

/* Text Link for Forget Password */
.text-link { color: var(--primary); font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.text-link:hover { text-decoration: underline; }

/* Responsive Chat - Force Full Screen on Mobile */
@media (max-width: 480px) {
    .chat-window { 
        width: 100% !important; 
        height: 100% !important; 
        bottom: 0 !important; 
        right: 0 !important; 
        left: 0 !important; 
        border-radius: 0 !important; 
        top: 0 !important; 
        z-index: 10000 !important; 
    }
    .chat-launcher { bottom: 20px; right: 20px; }
    .chat-header { padding-top: 15px; } 
    .chat-body { padding-bottom: 20px; }
}

/* ================= NEW MESSAGE POPUP NOTIFICATION ================= */
.msg-popup {
    position: fixed; top: 90px; right: 20px; z-index: 10000;
    background: var(--white); border-left: 5px solid var(--primary);
    padding: 15px 20px; border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex; align-items: center; gap: 15px;
    transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 300px;
}
.msg-popup.show { transform: translateX(0); }

.popup-icon {
    width: 40px; height: 40px; background: #eff6ff; color: var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.popup-content h4 { font-size: 14px; margin: 0; color: var(--text-main); font-weight: 700; }
.popup-content p { font-size: 12px; margin: 2px 0 0; color: var(--text-light); }
