/* ==========================================================================
   VP UNLOCKER FILE HUB - MASTER STYLESHEET (ULTRA-PREMIUM GLASSMORPHISM)
   ========================================================================== */

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

:root {
    /* Color Palette */
    --primary: #d62828;
    --primary-glow: rgba(214, 40, 40, 0.08);
    
    --secondary: #9d4ede;
    --secondary-glow: rgba(157, 78, 221, 0.08);
    
    --accent: #00b4d8;
    
    --search-banner: #005f73;
    --menu-color: #1a1a1a;
    
    /* Backgrounds */
    --bg-dark: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --border-light: #e2e8f0;
    --border-glow: var(--primary-glow);

    /* Text Colors */
    --text-pure: #0f172a;
    --text-main: #334155;
    --text-muted: #64748b;
    --text-dark: #0f172a;

    /* Transitions & Shadows */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s ease;
    --glow-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Background Glowing Blobs */
body::before, .bg-glow-1 {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    top: -150px;
    right: -100px;
    filter: blur(150px);
    opacity: 0.04;
    z-index: -2;
    pointer-events: none;
}

body::after, .bg-glow-2 {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent), var(--secondary));
    bottom: -150px;
    left: -150px;
    filter: blur(160px);
    opacity: 0.03;
    z-index: -2;
    pointer-events: none;
}

a {
    color: var(--text-pure);
    text-decoration: none;
    transition: var(--transition-quick);
}

/* ==========================================================================
   SCROLLBAR STYLES
   ========================================================================== */

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================================
   GLASS LAYOUT & CONTAINER
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */

.main-header {
    background: rgba(8, 12, 24, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.logo-fallback {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(255, 46, 99, 0.4);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-pure) 40%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 12px;
    transition: var(--transition-quick);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-pure);
    background: rgba(0, 0, 0, 0.05);
}

.nav-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(255, 46, 99, 0.3);
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(255, 46, 99, 0.5);
    color: #fff;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO / SEARCH SECTION
   ========================================================================== */

.hero-section {
    text-align: center;
    padding: 80px 0 60px 0;
    position: relative;
}

.hero-badge {
    background: rgba(255, 46, 99, 0.1);
    border: 1px solid rgba(255, 46, 99, 0.2);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary), var(--secondary) 60%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-weight: 400;
}

/* Glowing Search Box */
.search-wrapper {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.search-form {
    display: flex;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    backdrop-filter: blur(15px);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-form:focus-within {
    border-color: rgba(255, 46, 99, 0.6);
    box-shadow: 0 15px 35px rgba(255, 46, 99, 0.08), 0 0 15px rgba(255, 46, 99, 0.05);
    transform: translateY(-2px);
}

.search-input {
    background: none;
    border: none;
    flex-grow: 1;
    color: var(--text-pure);
    font-family: inherit;
    font-size: 1.05rem;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.search-btn:hover {
    box-shadow: 0 5px 15px rgba(255, 46, 99, 0.4);
}

/* ==========================================================================
   CATEGORY CHIPS
   ========================================================================== */

.category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.category-chip {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-chip:hover, .category-chip.active {
    background: linear-gradient(135deg, rgba(255, 46, 99, 0.08), rgba(157, 78, 221, 0.08));
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 46, 99, 0.08);
}

/* ==========================================================================
   GRID & CARDS
   ========================================================================== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 2px;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* File Card */
.file-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.file-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.file-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.file-card:hover .file-card-image {
    transform: scale(1.08);
}

.file-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(8, 12, 24, 0.75);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-light);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.file-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.file-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--text-pure);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 50px;
    transition: var(--transition-quick);
}

.file-card:hover .file-card-title {
    color: var(--primary);
}

.file-card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

.file-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.file-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.file-stat svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-muted);
}

.file-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.file-card:hover .file-action-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    transform: rotate(-45deg);
    box-shadow: 0 5px 15px var(--primary-glow);
}

/* ==========================================================================
   DETAIL PAGE (FILE.PHP)
   ========================================================================== */

.detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

.detail-img-card {
    position: sticky;
    top: 110px;
}

.detail-img-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-light);
}

.detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-pure);
}

.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.detail-desc-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 24px;
    border-radius: 14px;
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.7;
    white-space: pre-line;
}

.download-action-panel {
    background: linear-gradient(135deg, rgba(255, 46, 99, 0.06), rgba(157, 78, 221, 0.06));
    border: 1px dashed var(--primary);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}

.download-main-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 16px 45px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 46, 99, 0.4);
    transition: var(--transition-smooth);
}

.download-main-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 46, 99, 0.6);
}

.seo-tags-box {
    margin-top: 30px;
}

.seo-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* ==========================================================================
   DOWNLOAD LOADING OVERLAY
   ========================================================================== */

.download-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 12, 24, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.download-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.overlay-content {
    text-align: center;
    max-width: 450px;
    padding: 40px;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 46, 99, 0.1);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 30px auto;
    animation: spin 1s cubic-bezier(0.55, 0.055, 0.675, 0.19) infinite;
    box-shadow: 0 0 15px var(--primary-glow);
}

.countdown-timer {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   ADMIN LOGIN CARD
   ========================================================================== */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    padding: 40px 0;
}

.login-card {
    max-width: 440px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-pure);
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-pure);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-quick);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    background: #ffffff;
}

select.form-input {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
}

.alert-message {
    background: rgba(255, 75, 75, 0.1);
    border: 1px solid rgba(255, 75, 75, 0.2);
    color: #ff4b4b;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-success {
    background: rgba(75, 255, 75, 0.1);
    border: 1px solid rgba(75, 255, 75, 0.2);
    color: #4bff4b;
}

/* ==========================================================================
   ADMIN DASHBOARD LAYOUT
   ========================================================================== */

.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 14px;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition-quick);
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(255, 46, 99, 0.1), rgba(157, 78, 221, 0.1));
    border-left: 4px solid var(--primary);
    color: #fff;
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.stat-icon.primary { background: rgba(255, 46, 99, 0.1); border: 1px solid rgba(255, 46, 99, 0.2); }
.stat-icon.secondary { background: rgba(157, 78, 221, 0.1); border: 1px solid rgba(157, 78, 221, 0.2); }
.stat-icon.accent { background: rgba(0, 180, 216, 0.1); border: 1px solid rgba(0, 180, 216, 0.2); }

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-pure);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

/* Data Table Styles */
.table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--border-light);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 16px 20px;
}

.data-table th {
    background: rgba(0, 0, 0, 0.01);
    border-bottom: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.data-table td {
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
    font-size: 0.95rem;
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.action-row-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    transition: var(--transition-quick);
}

.action-row-btn:hover {
    color: #fff;
    transform: translateY(-2px);
}

.action-row-btn.edit:hover {
    background: rgba(0, 180, 216, 0.2);
    border-color: #00b4d8;
}

.action-row-btn.delete:hover {
    background: rgba(255, 75, 75, 0.2);
    border-color: #ff4b4b;
}

/* Category Checkbox Grid / Tags Input */
.payments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-light);
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-quick);
}

.checkbox-label:hover {
    border-color: var(--primary);
    background: rgba(255,46,99,0.05);
}

.checkbox-label input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

/* File Upload Display */
.file-upload-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.logo-preview-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    border: 1px solid var(--border-light);
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
    padding: 4px;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */

.main-footer {
    background: rgba(5, 8, 16, 0.9);
    border-top: 1px solid var(--border-light);
    padding: 50px 0 30px 0;
    margin-top: auto;
    text-align: center;
}

.footer-payments {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.payment-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-tag.bkash { border-color: rgba(226, 19, 110, 0.3); color: #e2136e; background: rgba(226, 19, 110, 0.05); }
.payment-tag.nagad { border-color: rgba(244, 118, 33, 0.3); color: #f47621; background: rgba(244, 118, 33, 0.05); }
.payment-tag.rocket { border-color: rgba(140, 48, 140, 0.3); color: #8c308c; background: rgba(140, 48, 140, 0.05); }
.payment-tag.visa { border-color: rgba(26, 31, 113, 0.3); color: #1a1f71; background: rgba(26, 31, 113, 0.05); }
.payment-tag.mastercard { border-color: rgba(235, 0, 27, 0.3); color: #eb001b; background: rgba(235, 0, 27, 0.05); }

.footer-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.03); opacity: 1; box-shadow: 0 0 15px rgba(255, 46, 99, 0.2); }
    100% { transform: scale(1); opacity: 0.9; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   NEW GRAPHICAL CATEGORIES GRID (PREMIUM SQUARE TILES - 4 COLUMNS FIXED)
   ========================================================================== */
.categories-grid-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important; /* Force 4 columns absolutely */
    gap: 12px;
    margin-top: 15px;
    width: 100%;
    max-width: 600px; /* Constrains total width to keep cards beautifully small and centered */
}

.category-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1 !important; /* Maintain perfect square shape */
    width: 100%;
    box-sizing: border-box;
}

.category-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 8px 20px var(--primary-glow);
    background: var(--bg-card-hover);
}

.category-card.active {
    background: linear-gradient(135deg, rgba(255, 46, 99, 0.15), rgba(157, 78, 221, 0.15));
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.category-card-icon-wrapper {
    width: 45px; /* Extremely cute, small and elegant */
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    transition: var(--transition-quick);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.category-card:hover .category-card-icon-wrapper {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 0 8px var(--primary-glow);
}

.category-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.category-card-fallback svg {
    width: 20px !important;
    height: 20px !important;
}

.category-card-name {
    font-size: 0.8rem; /* Perfectly fitting typography */
    font-weight: 700;
    color: var(--text-pure);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
    letter-spacing: -0.1px;
}

/* ==========================================================================
   FREE / PAID BADGES (ABSOLUTE CORNER TEMPLATES)
   ========================================================================== */
.price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.price-badge.free {
    background: rgba(46, 204, 113, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #2ecc71;
    color: #2ecc71;
    text-shadow: 0 0 5px rgba(46, 204, 113, 0.5);
}

.price-badge.paid {
    background: rgba(0, 180, 216, 0.2); /* Premium Cyan Blue */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #00b4d8;
    color: #00b4d8;
    text-shadow: 0 0 5px rgba(0, 180, 216, 0.5);
}

.file-badge-inline {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.premium-price-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.premium-price-tag.paid-tag {
    background: rgba(0, 180, 216, 0.15);
    border: 1px solid #00b4d8;
    color: #00b4d8;
    text-shadow: 0 0 5px rgba(0, 180, 216, 0.4);
}

.premium-price-tag.free-tag {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid #2ecc71;
    color: #2ecc71;
    text-shadow: 0 0 5px rgba(46, 204, 113, 0.4);
}

/* ==========================================================================
   MOBILE HAMBURGER & NAVIGATION DRAWER
   ========================================================================== */
.mobile-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 105;
    padding: 0;
}

.mobile-hamburger .bar {
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: var(--transition-quick);
}

/* Hamburger active animations */
.mobile-hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (UPGRADED)
   ========================================================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Mobile Drawer Menu */
    .mobile-hamburger {
        display: flex;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(8, 12, 24, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-left: 1px solid var(--border-light);
        z-index: 100;
        padding: 100px 30px 40px 30px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: block !important;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-wrapper.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .nav-link {
        display: block;
        padding: 14px 20px;
        font-size: 1.05rem;
        background: rgba(255,255,255,0.02);
        border: 1px solid var(--border-light);
        text-align: center;
    }

    .nav-btn {
        display: block;
        text-align: center;
        padding: 14px;
        font-size: 1.05rem;
    }

    /* Body scroll lock */
    body.menu-open {
        overflow: hidden;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 12px;
    }
    
    .category-card {
        padding: 14px 8px;
    }
    
    .category-card-icon-wrapper {
        width: 50px;
        height: 50px;
    }
}

/* ==========================================================================
   REDESIGNED HELLOFIRMWARE COMPONENTS
   ========================================================================== */

/* 1. Top Bar Styling */
.top-social-bar {
    background-color: #111111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 0;
    font-size: 0.82rem;
    z-index: 101;
    position: relative;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-social-left {
    display: flex;
    gap: 16px;
    align-items: center;
}

.top-social-icon {
    color: #999999;
    transition: var(--transition-quick);
    display: inline-flex;
    align-items: center;
}

.top-social-icon:hover {
    color: #ffffff;
}

.top-auth-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-auth-link {
    color: #999999;
    font-weight: 500;
    transition: var(--transition-quick);
    display: inline-flex;
    align-items: center;
}

.top-auth-link:hover {
    color: #ffffff;
}

.language-selector {
    display: inline-block;
}

.lang-select {
    background: #222222;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cccccc;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    outline: none;
    font-family: inherit;
    cursor: pointer;
}

/* 2. Main White Branding Header Styling */
.branding-header {
    background-color: #ffffff;
    padding: 18px 0;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.branding-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Text Logo fallback representation */
.fallback-brand-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-logo-main {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.fallback-brand-logo .hello-text {
    background: linear-gradient(135deg, var(--secondary, #9d4ede), var(--accent, #00b4d8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fallback-brand-logo .firmware-text {
    background: linear-gradient(135deg, var(--primary, #d62828), var(--primary-glow, rgba(214, 40, 40, 0.4)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-tagline {
    font-size: 0.6rem;
    font-weight: 800;
    color: #666666;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

/* Header Search Form */
.header-search-box {
    flex-grow: 1;
    max-width: 550px;
}

.header-search-form {
    display: flex;
    background: #f8f9fa;
    border: 1.5px solid #dedede;
    border-radius: 6px;
    padding: 2px;
    align-items: center;
    transition: var(--transition-quick);
}

.header-search-form:focus-within {
    border-color: var(--primary, #d62828);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--primary-glow, rgba(214, 40, 40, 0.15));
}

.header-search-input {
    background: none;
    border: none;
    padding: 10px 16px;
    color: #333333;
    font-size: 0.92rem;
    outline: none;
    flex-grow: 1;
    width: 100%;
}

.header-search-select-wrapper {
    position: relative;
    border-left: 1px solid #e0e0e0;
    padding: 0 10px;
}

.header-search-select {
    border: none;
    background: transparent;
    color: #555555;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    cursor: pointer;
    padding-right: 18px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23555555'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 12px;
}

.header-search-btn {
    background: var(--primary, #d62828);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-quick);
}

.header-search-btn:hover {
    filter: brightness(0.9);
}

/* Header Cart component */
.header-cart-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 8px 16px;
    border-radius: 50px;
    flex-shrink: 0;
}

.header-cart-icon-container {
    position: relative;
    display: inline-flex;
}

.header-cart-icon {
    color: #999999;
}

.header-cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #d62828;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-cart-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.cart-label {
    font-size: 0.75rem;
    color: #888888;
    font-weight: 600;
}

.cart-amount {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary, #d62828);
}

/* 3. Dark Menu Bar Navigation */
.nav-menu-bar {
    background-color: var(--menu-color, #1a1a1a);
    border-bottom: 2px solid var(--primary, #d62828);
    z-index: 99;
    position: relative;
}

.menu-bar-container {
    display: flex;
    align-items: center;
}

.nav-menu-bar .nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu-bar .nav-link {
    color: #dddddd;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 16px 20px;
    display: block;
    border-radius: 0;
    transition: var(--transition-quick);
}

.nav-menu-bar .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-menu-bar .nav-link.admin-link-indicator {
    color: #00b4d8;
}

.nav-btn-logout {
    color: #ff4b4b;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 16px 20px;
    display: block;
    transition: var(--transition-quick);
}

.nav-btn-logout:hover {
    background: rgba(255, 75, 75, 0.1);
}

/* 4. Announcement / Featured Section styling */
.announcement-section {
    margin-top: 25px;
}

.announcements-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spacing between the two marquee lines */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.announcement-row {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    min-height: auto;
}

.announcement-label {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 50px;
    width: 140px;
    text-align: center;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.announcement-label.recent {
    background: var(--primary, #d62828);
    border: none;
}

.announcement-label.top {
    background: var(--secondary, #9d4ede);
    border: none;
}

.announcement-content {
    flex-grow: 1;
    padding-left: 20px;
    overflow: hidden;
    position: relative;
}

.announcement-marquee {
    display: flex;
    align-items: center;
    gap: 30px;
    white-space: nowrap;
    animation: marquee-scroll 25s linear infinite;
    width: max-content;
}

.announcement-marquee:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% { transform: translateX(10%); }
    100% { transform: translateX(-100%); }
}

.announcement-pill-wrapper {
    display: inline-flex;
    align-items: center;
    background: transparent; /* transparent to sit on white background container */
    padding: 2px 8px;
    gap: 8px;
}

.announcement-link {
    color: #1a202c;
    font-weight: 700;
    font-size: 0.85rem;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.announcement-link:hover {
    color: var(--primary, #d62828);
}

.announcement-tag.featured {
    background: var(--primary, #d62828);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.announcement-meta {
    color: #4a5568;
    font-size: 0.78rem;
    font-weight: 600;
}

.announcement-empty {
    color: #718096;
    font-size: 0.85rem;
}

/* 5. Teal Search Section Styling */
.teal-search-section {
    background: linear-gradient(135deg, var(--search-banner, #005f73), rgba(0, 0, 0, 0.15));
    padding: 24px 0;
    margin-top: 25px;
}

.teal-search-box-wrapper {
    max-width: 100%;
}

.teal-search-form {
    display: flex;
    background: #ffffff;
    border-radius: 4px;
    padding: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.teal-search-input {
    flex-grow: 1;
    border: none;
    background: none;
    padding: 12px 20px;
    color: #333333;
    font-size: 1rem;
    outline: none;
}

.teal-search-input::placeholder {
    color: #999999;
}

.teal-search-select-wrapper {
    border-left: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.teal-search-select {
    border: none;
    background: transparent;
    color: #444444;
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    appearance: none;
    padding-right: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23444444'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 12px;
}

.teal-search-btn {
    background: #111111;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 0 25px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition-quick);
}

.teal-search-btn:hover {
    background: #000000;
}

/* 6. Mockup Categories Grid */
.categories-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .categories-list-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .categories-list-grid {
        grid-template-columns: 1fr;
    }
}

.category-grid-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.category-grid-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #cccccc;
}

.category-grid-item.active {
    border-color: var(--primary, #d62828);
    background: rgba(214, 40, 40, 0.02);
    box-shadow: 0 0 10px var(--primary-glow);
}

.category-grid-left {
    flex-shrink: 0;
}

/* Custom Folder icon with embedded brand logo inside */
.category-folder-container {
    width: 72px; /* Increased size for visual prominence */
    height: 72px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.folder-svg-icon {
    width: 100%;
    height: 100%;
    color: #2d3748; /* Dark folder color matching mockup */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.folder-logo-overlay {
    position: absolute;
    bottom: 14px; /* Adjusted bottom alignment */
    width: 52px;  /* Widened to fit VPUNLOCKER overlay */
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a202c; /* Inner overlay matching mockup brand folder */
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.folder-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.folder-logo-text-fallback {
    color: #00b4d8;
    font-size: 0.42rem; /* Clean typography fitting the logo box */
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-grid-right {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.category-grid-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
}

.category-grid-desc {
    font-size: 0.76rem;
    color: #718096;
    font-weight: 500;
    margin-top: 4px;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* 7. Premium Footer Redesign */
.main-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border-light);
    padding: 60px 0 30px 0;
    text-align: left;
    margin-top: auto;
}

.footer-wrapper {
    display: flex;
    flex-direction: column;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.8fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-brand-logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 15px;
    line-height: 1;
}

.footer-brand-logo .hello-text {
    color: #00b4d8;
}

.footer-brand-logo .firmware-text {
    color: #d62828;
}

.footer-brand-desc {
    color: #718096;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 420px;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid var(--border-light);
    color: #64748b;
    transition: var(--transition-quick);
}

.footer-social-icon:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(214, 40, 40, 0.15);
}

.footer-col-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-pure);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary, #d62828);
    border-radius: 2px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition-quick);
}

.footer-links-list a:hover {
    color: var(--text-pure);
    padding-left: 5px;
}

.footer-payment-desc {
    color: #718096;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.footer-payments-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-payments-list .payment-tag {
    background: #1a202c;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-divider-line {
    height: 1px;
    background: var(--border-light);
    margin: 40px 0 20px 0;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom .footer-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Mobile responsive menu button alignment */
@media (max-width: 768px) {
    .branding-container {
        position: relative;
    }
    
    .mobile-hamburger {
        display: flex;
        background: #ffffff;
        border: 1px solid #cbd5e1;
        border-radius: 4px;
        padding: 10px;
        height: auto;
        width: auto;
        color: #333333;
    }
    
    .mobile-hamburger .bar {
        background-color: #333333;
    }
    
    .header-search-box {
        display: none; /* Hide top search bar on mobile, banner search is visible */
    }
    
    .header-cart-wrapper {
        margin-right: 50px;
    }
}

/* ==========================================================================
   GLOBAL LIGHT / WHITE THEME OVERRIDES
   ========================================================================== */

body {
    background-color: #ffffff !important;
}

/* Top Social & Auth Bar (Light Red Background) */
.top-social-bar {
    background-color: #ffe8e8 !important;
    border-bottom: 1px solid rgba(214, 40, 40, 0.15) !important;
}

.top-social-icon, .top-auth-link {
    color: #8b2525 !important;
}

.top-social-icon:hover, .top-auth-link:hover {
    color: #d62828 !important;
}

.lang-select {
    background: #ffffff !important;
    border: 1px solid rgba(214, 40, 40, 0.2) !important;
    color: #8b2525 !important;
}

/* Branding Header (Decreased white background, off-white/light gray) */
.branding-header {
    background-color: #f1f5f9 !important;
    border-bottom: 1px solid #cbd5e1 !important;
}

/* Navigation Menu Bar (Red Background) */
.nav-menu-bar {
    background-color: var(--primary, #d62828) !important;
    border-top: none !important;
    border-bottom: none !important;
}

.nav-menu-bar .nav-link {
    color: #ffffff !important;
}

.nav-menu-bar .nav-link:hover {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.12) !important;
}

.nav-menu-bar .nav-link.admin-link-indicator {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3) !important;
}

/* Teal Search Banner */
.teal-search-section {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 30px 0 !important;
}

.teal-search-form {
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
}

/* Admin Sidebar */
.sidebar-link {
    color: #475569 !important;
}

.sidebar-link:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    color: var(--primary) !important;
}

.sidebar-link.active {
    background: rgba(0, 0, 0, 0.03) !important;
    color: var(--primary) !important;
    border-left: 4px solid var(--primary) !important;
}

/* Footer Section */
.main-footer {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 40px 0 20px 0 !important;
}

.footer-text {
    color: #64748b !important;
}

.payment-tag {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

.header-cart-icon {
    color: var(--primary) !important;
}

.header-cart-wrapper {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
}

@media (min-width: 769px) {
    .branding-container {
        display: grid !important;
        grid-template-columns: 1fr 2fr 1fr !important;
        align-items: center !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 40px !important;
    }
    
    .logo-link {
        justify-self: start !important;
    }
    
    .header-search-box {
        justify-self: center !important;
        width: 100% !important;
        max-width: 550px !important;
        margin-top: 6px !important;
    }
    
    .header-search-form {
        width: 100% !important;
    }
    
    .header-cart-wrapper {
        justify-self: end !important;
    }
}
