@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import 'variables.css';

html, body {
    margin: 0 !important;
    padding: 0 !important;
    border-top: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-hover);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

/* Header — Bikroy-style */
.navbar {
    background-color: var(--bg-white);
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: none !important; 
    border-top: 0 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 64px;
    margin-top: 0 !important;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

.brand span {
    color: var(--primary-color);
}

/* "All Ads" pill next to logo */
.nav-all-ads {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 1.2rem;
    padding: 0.4rem 1rem;
    background: #e1effe;
    border: 1px solid #c3ddfd;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color) !important;
    transition: background 0.2s, border-color 0.2s;
}
.nav-all-ads:hover {
    background: #d1e5fd;
    border-color: var(--primary-color);
}

/* Right-side icon links (Chat, Login) */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #333 !important;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    min-width: 56px;
}
.nav-icon-link i {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2px;
}
.nav-icon-link:hover {
    background: #f0f0f0;
    color: var(--primary-color) !important;
}
.nav-icon-link:hover i {
    color: var(--primary-color);
}

/* "Post Free Ad" CTA button */
.btn-post-ad {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.75rem;
    padding: 0.55rem 1.3rem;
    background: var(--accent-color);
    color: white !important;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-post-ad:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    color: white !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-speed);
    text-align: center;
}

.navbar .btn {
    margin-left: 1.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-accent {
    background-color: var(--accent-color);
    color: white !important;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white !important;
}

/* Auth Cards */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 2rem;
}

.auth-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-hover);
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-card h2 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    text-align: center;
}

.auth-card p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    transition: border-color var(--transition-speed);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-card .btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer Layout */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-light);
    font-size: 0.95rem;
    transition: color var(--transition-speed);
}

.footer-col ul li a:hover {
    color: white;
}

.footer-col .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-col .social-links a {
    color: white;
    background: rgba(255,255,255,0.1);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition-speed), transform var(--transition-speed);
}

.footer-col .social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: left;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}
/* ── Sidebar ──────────────────────────────────────────── */
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-speed);
}
.sidebar-overlay.active { display: block; opacity: 1; }
.main-wrapper {
    transition: margin-left var(--transition-speed);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex: 1;
    overflow-x: hidden;
}
.main-wrapper:not(.no-sidebar) { margin-left: 260px; }
.main-wrapper.sidebar-collapsed { margin-left: 70px !important; }
.main-wrapper.no-sidebar { margin-left: 0 !important; }

.user-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 2px 0 16px rgba(0,0,0,0.07);
    border-right: 1px solid #e8ecf0;
    z-index: 999;
    transition: width var(--transition-speed), left var(--transition-speed);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.user-sidebar.collapsed {
    width: 70px;
}
.user-sidebar.collapsed .nav-text {
    display: none !important;
}
.user-sidebar.collapsed .sidebar-content a i {
    margin: 0;
    font-size: 1.3rem;
}
.sidebar-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e8ecf0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    min-height: 64px;
    flex-shrink: 0;
}
/* Full logo — shown when expanded */
.sidebar-logo-full {
    height: 36px;
    max-width: 140px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}
/* Icon logo — hidden when expanded */
.sidebar-logo-icon {
    height: 32px;
    width: 32px;
    object-fit: contain;
    display: none;
    flex-shrink: 0;
}
/* Hamburger button */
.sidebar-toggle-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem 0.4rem;
    border-radius: 6px;
    flex-shrink: 0;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
}
.sidebar-toggle-btn:hover { color: var(--secondary-color); background: #f1f5f9; }

/* Collapsed state: show icon, hide full logo */
.user-sidebar.collapsed .sidebar-logo-full { display: none; }
.user-sidebar.collapsed .sidebar-logo-icon { display: block; }
.user-sidebar.collapsed .sidebar-header { justify-content: center; padding: 1rem 0.5rem; gap: 0; flex-direction: column; }
.user-sidebar.collapsed .sidebar-toggle-btn { margin-top: 0.5rem; }

.sidebar-section-label {
    padding: 1rem 1.5rem 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #94a3b8;
}
.user-sidebar.collapsed .sidebar-section-label { display: none; }
.sidebar-content {
    padding: 0.5rem 0;
    flex-grow: 1;
    overflow-y: auto;
}
.sidebar-content a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    margin: 0.15rem 0.75rem;
    border-radius: 10px;
    color: #475569;
    font-weight: 500;
    font-size: 0.92rem;
    transition: background var(--transition-speed), color var(--transition-speed);
    white-space: nowrap;
    overflow: hidden;
}
.sidebar-content a i {
    margin-right: 12px;
    color: #94a3b8;
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: color var(--transition-speed);
}
.sidebar-content a:hover {
    background: #f1f5f9;
    color: var(--secondary-color);
}
.sidebar-content a:hover i {
    color: var(--primary-color);
}
.sidebar-content a.active {
    background: var(--primary-color);
    color: white;
}
.sidebar-content a.active i {
    color: white;
}
.sidebar-content .submenu a {
    padding-left: 3.5rem;
    margin: 0.1rem 0.75rem;
    font-size: 0.88rem;
    color: #94a3b8;
}
.sidebar-content .submenu a:hover { color: var(--secondary-color); background: #f1f5f9; }
.user-sidebar.collapsed .sidebar-content a {
    justify-content: center;
    padding: 1rem 0;
    margin: 0.3rem 0.5rem;
}
.user-sidebar.collapsed .sidebar-content .submenu a { padding-left: 0; }
.sidebar-logout {
    flex-shrink: 0;
    background: #ffffff;
    border-top: 1px solid #e8ecf0;
}
.sidebar-logout a:hover {
    background: #fff0f0;
}
.user-sidebar.collapsed .sidebar-logout a {
    justify-content: center;
    padding: 1rem 0;
}
.user-sidebar.collapsed .sidebar-logout a span { display: none; }

.mobile-nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-wrapper input {
    padding-right: 40px;
}
.password-wrapper .toggle-pwd {
    position: absolute;
    right: 10px;
    cursor: pointer;
    color: var(--text-light);
}
.password-wrapper .toggle-pwd:hover {
    color: var(--primary-color);
}

/* Logo Sizing */
.logo-img {
    height: 60px;
    max-width: 100%;
    object-fit: contain;
    transition: height var(--transition-speed);
}
footer .logo-img {
    margin-bottom: 1rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .user-sidebar {
        left: -300px;
        top: 0;
        height: 100vh;
        z-index: 1002;
    }
    .user-sidebar.active {
        left: 0;
        width: 300px;
    }
    .main-wrapper:not(.no-sidebar) {
        margin-left: 0 !important;
    }
    .mobile-nav-toggle {
        display: block !important;
    }
    .navbar {
        padding: 0.5rem 0.5rem;
        height: auto; /* Removed fixed 56px to prevent overlay/overflow */
        min-height: 56px;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
    }
    .nav-all-ads span { display: none; }
    .nav-all-ads { margin-left: 0.5rem; padding: 0.3rem 0.7rem; }
    .nav-icon-link span { display: none; }
    .nav-icon-link { min-width: unset; padding: 0.3rem 0.55rem; }
    .btn-post-ad { margin-left: 0.4rem; padding: 0.45rem 0.8rem; font-size: 0.78rem; white-space: nowrap; }
    .logo-img {
        height: 45px; /* Scale down on mobile to fit nicely */
    }
    .nav-links {
        margin-top: 0;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 0.3rem;
        flex: 1;
    }
    .nav-links a, .nav-links button {
        margin-left: 0.2rem;
        margin-right: 0.2rem;
    }
    .container {
        padding: 1rem;
    }
    .auth-card {
        padding: 1.5rem;
    }
    /* Index page search form responsiveness */
    .hero-search-form {
        flex-direction: column;
    }
    .hero-search-form input, .hero-search-form button {
        width: 100%;
        border-radius: 8px !important;
    }
    
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    tr { border: 1px solid #ccc; margin-bottom: 1rem; }
    td {
        border: none;
        position: relative;
        padding-left: 50% !important;
        text-align: right !important;
    }
    td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }
}

/* Global Responsive Utilities */
.responsive-grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.responsive-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.responsive-grid-sidebar-main {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

@media screen and (max-width: 992px) {
    .responsive-grid-2-1,
    .responsive-grid-sidebar-main {
        grid-template-columns: 1fr;
    }
    
    .responsive-flex-between {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    html, body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
}

/* Fix listing description inner list formatting */
.listing-description ul, .listing-description ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.listing-description li {
    margin-bottom: 0.5rem;
}

/* ── HERO MERGED FROM INDEX.PHP ──────────────────────────────────────────── */
.hero-bikroy {
    background: linear-gradient(135deg, rgba(26,115,232,0.9) 0%, rgba(15,88,184,0.9) 100%);
    padding: 3rem 1rem 4rem;
    text-align: center;
}
.hero-bikroy-inner {
    max-width: 680px;
    margin: 0 auto;
}
.hero-location-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.4rem 1.1rem;
    border-radius: 30px;
    margin-bottom: 1.4rem;
    cursor: pointer;
    transition: background 0.2s;
}
.hero-location-pill:hover { background: rgba(255,255,255,0.28); }
.hero-location-pill i { font-size: 0.85rem; }

.hero-search-row {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}
.hero-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 1.4rem;
}
.hero-search-icon {
    color: #aaa;
    font-size: 1rem;
    margin-right: 0.7rem;
    flex-shrink: 0;
}
.hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 1.1rem 0;
    background: transparent;
    font-family: inherit;
    color: #333;
}
.hero-search-btn {
    background: var(--accent-color);
    border: none;
    color: white;
    font-size: 1.15rem;
    padding: 0 2rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.hero-search-btn:hover { background: var(--accent-hover); }

/* ── HOME CONTAINER ───────────────────────────────── */
.home-container { padding-top: 2.5rem; padding-bottom: 3rem; }

.section-block { margin-bottom: 3rem; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}
.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.25rem;
}
.view-all-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
}
.view-all-link:hover { color: var(--primary-hover); }

/* ── CATEGORY GRID ───────────────────────────────── */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.9rem;
}
.cat-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: white;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    padding: 1rem 1.1rem;
    color: #222;
    text-decoration: none;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.cat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    border-color: var(--primary-color);
    color: #222;
}
.cat-icon-wrap {
    width: 42px;
    height: 42px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cat-icon-wrap i {
    font-size: 1.2rem;
    color: var(--primary-color);
}
.cat-name {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}
.cat-count {
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}

/* ── LISTING CARDS ───────────────────────────────── */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.listing-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    overflow: hidden;
    text-decoration: none;
    color: #334155;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.listing-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* slight shadow only */
    border-color: var(--primary-color);
    color: #0f172a;
}
.listing-img {
    height: 190px;
    background: #f8fafc center/cover no-repeat;
    position: relative;
    overflow: hidden;
}
.listing-card:hover .listing-img {
    transform: scale(1.02);
}
.listing-img { transition: transform 0.5s ease; }

.listing-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.listing-cat {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    opacity: 0.8;
}
.listing-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}
.listing-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    margin-top: auto;
}
.listing-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #64748b;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}
.listing-meta i { margin-right: 4px; color: #94a3b8; }
.listing-date { color: #94a3b8; font-weight: 500; }

.listing-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ── OUTLINE GREEN BUTTON ────────────────────────── */
.btn-outline-green {
    display: inline-block;
    padding: 0.65rem 2.2rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
    .listings-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 1rem; 
    }
}
@media (max-width: 480px) {
    .listings-grid { 
        grid-template-columns: 1fr; 
        gap: 1.25rem; 
    }
    .listing-img { height: 220px; }
    .hero-bikroy { padding: 2.5rem 1rem; }
    .category-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 0.75rem; }
}

@media (max-width: 640px) {
    .container {
        padding: 1rem !important;
    }
    .navbar {
        padding: 0 1rem !important;
    }
}

/* ──────────────────────────────────────────────────────────── */
/* PREMIUN MODAL & ALERT SYSTEM */
/* ──────────────────────────────────────────────────────────── */
.custom-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.custom-modal-overlay.active {
    display: flex;
    opacity: 1;
}
.custom-modal-content {
    background: rgba(255, 255, 255, 0.95);
    width: 100%;
    max-width: 440px;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}
.custom-modal-overlay.active .custom-modal-content {
    transform: scale(1);
}
.modal-icon-wrap {
    width: 72px;
    height: 72px;
    background: #f0fdf4;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    box-shadow: 0 10px 15px -3px rgba(13, 182, 83, 0.2);
}
.modal-icon-wrap.warning { background: #fffbeb; color: #f59e0b; box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.2); }
.modal-icon-wrap.error { background: #fef2f2; color: #ef4444; box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.2); }

.modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}
.modal-text {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
}
.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.modal-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.modal-btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(13, 182, 83, 0.2);
}
.modal-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(13, 182, 83, 0.3);
}
.modal-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}
.modal-btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.toast-msg {
    min-width: 300px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #334155;
    font-weight: 600;
    font-size: 0.9rem;
}
.toast-msg.active { transform: translateX(0); }
.toast-msg.error { border-left-color: #ef4444; }
.toast-msg.warning { border-left-color: #f59e0b; }

/* -----------------------------------------------------------------
   MISSING HOME SECTIONS RECOVERY CSS
   ----------------------------------------------------------------- */
.home-new-section {
    padding: 5rem 1rem;
    position: relative;
    overflow: hidden;
}

/* HOW IT WORKS */
.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}
.how-card {
    text-align: center;
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.how-icon {
    width: 65px;
    height: 65px;
    background: #eff6ff;
    color: var(--primary-color);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1.5rem;
}
.how-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}
.how-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* SELLER BENEFITS */
.benefits-container {
    display: grid;
    gap: 4rem;
    align-items: center;
}
@media (min-width: 992px) {
    .benefits-container { grid-template-columns: 1fr 1fr; }
}
.benefits-img {
    position: relative;
}
.benefit-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.benefit-check {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 3px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.benefit-text h4 { margin-bottom: 0.5rem; color: var(--secondary-color); }
.benefit-text p { color: var(--text-light); line-height: 1.6; }

/* TESTIMONIALS */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.testimonial-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: none;
}
.stars { color: #fbbf24; margin-bottom: 1.5rem; font-size: 1.1rem; }
.testimonial-card p {
    color: var(--text-main);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}
.user-info { display: flex; align-items: center; gap: 1rem; }
.user-avatar {
    width: 50px;
    height: 50px;
    background: var(--bg-hover);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.user-meta h5 { margin-bottom: 0.2rem; color: var(--secondary-color); font-weight: 700; }
.user-meta span { font-size: 0.88rem; color: var(--text-light); }

/* FINAL CTA */
.final-call-to-action-v2 {
    background: var(--primary-color);
    padding: 6rem 1rem;
    text-align: center;
}
.cta-title {
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}
.cta-desc {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}
.btn-cta-premium {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--primary-color) !important;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* FIXES FOR EARLIER OLD SECTIONS SIZING */
.hero-bikroy-inner { max-width: 900px; margin: 0 auto; }
.section-title { font-size: 2rem !important; font-weight: 800 !important; color: var(--secondary-color) !important; margin-bottom: 1.25rem; }
.section-title-v2 { font-size: 2.25rem; font-weight: 800; color: var(--secondary-color); margin-bottom: 1.25rem; text-align: center; }
.section-subtitle { text-align: center; max-width: 600px; margin: 0 auto; color: var(--text-light); }

/* RESPONSIVE PADDING ADJUSTMENT */
@media (max-width: 768px) {
    .home-new-section { padding: 3.5rem 1.25rem; }
}

