/*
Theme Name: Minimal Secure Directory
Author: Frinley Paul
Description: A minimalist, high-security directory with Google Sign-in, multi-step submission, and Razorpay.
Version: 2.0.1
*/

/* =========================================================
   01. VARIABLES & THEMING
========================================================= */
:root {
    --bg-color: #f3f4f6;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --border-focus: #9ca3af;
    --primary: #000000;
    --primary-hover: #374151;
    --success: #16a34a;
    --error: #dc2626;
    --info: #2563eb;
    --footer-bg: #ffffff;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* =========================================================
   02. RESET & BASE STYLES
========================================================= */
*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}
body { 
    font-family: var(--font-family); 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased; 
}
img, svg { 
    display: block; 
    max-width: 100%; 
    height: auto; 
}
a { 
    color: inherit; 
    text-decoration: none; 
    transition: opacity 0.2s ease, color 0.2s ease; 
}
a:hover { 
    opacity: 0.7; 
}
button, input, select, textarea { 
    font-family: inherit; 
    font-size: 100%; 
    box-sizing: border-box; 
}

/* Utilities */
.container { width: 100%; max-width: 100%; margin: 0 auto; padding: 0 5%; }
.w-full { width: 100%; }
.mt-4 { margin-top: 1rem; }
.hidden { display: none !important; }

/* Status Messages */
.status-msg { margin-top: 1rem; font-size: 0.875rem; font-weight: 500; padding: 0.75rem 1rem; border-radius: 6px; text-align: center; }
.text-red { color: var(--error); background-color: #fef2f2; border: 1px solid #fecaca; }
.text-blue { color: var(--info); background-color: #eff6ff; border: 1px solid #bfdbfe; }
.text-green { color: var(--success); background-color: #f0fdf4; border: 1px solid #bbf7d0; }

/* =========================================================
   03. HEADER & NAVIGATION
========================================================= */
/* Scrolling Top Banner */
.top-banner {
    background: linear-gradient(to right, #5649de, #9929a7);
    color: #ffffff;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.scrolling-text {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-marquee 15s linear infinite;
}
.country-code {
    font-size: 10px;
    font-weight: 700;
    margin-right: 4px;
    position: relative;
    top: -1px;
}
@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Main Header */
.site-header { 
    border-bottom: 1px solid var(--border-color); 
    padding: 1.25rem 0; 
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem); 
    background: #ffffff; 
    position: sticky; 
    top: 0; 
    z-index: 50; 
}
.header-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 1rem; 
}
.site-title { 
    font-size: clamp(1.25rem, 4vw, 1.5rem); 
    font-weight: 700; 
    letter-spacing: -0.025em; 
    z-index: 51;
}

.site-nav { 
    display: flex; 
    align-items: center; 
    gap: 1.25rem; 
    flex-wrap: wrap; 
    justify-content: center; 
}
.nav-link { font-size: 0.875rem; font-weight: 600; }
.nav-link:hover { color: var(--text-muted); text-decoration: underline; text-underline-offset: 4px; }

/* Header Auth & CTA */
.btn-header-cta { 
    background-color: var(--primary); 
    color: #ffffff !important; 
    padding: 0.5rem 1.25rem; 
    border-radius: 6px; 
    font-size: 0.875rem; 
    font-weight: 600; 
    transition: background-color 0.2s ease; 
    opacity: 1 !important; 
    margin-left: 0.5rem; 
}
.btn-header-cta:hover { background-color: var(--primary-hover); }

/* =========================================================
   03.1 MOBILE MENU (BURGER NAVIGATION)
========================================================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 51;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    transform-origin: left center;
}

/* Mobile Overrides */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Show burger icon */
    }

    .site-nav {
        /* Hide menu initially and position it absolute */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 0;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        
        /* Animation settings */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }

    /* Active state for navigation container */
    .site-nav.active {
        padding: 20px;
        max-height: 500px; /* Arbitrary large number to allow content height */
        opacity: 1;
        visibility: visible;
    }

    .site-nav .nav-link, 
    .site-nav .btn-header-cta,
    .site-nav .auth-nav {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }

    /* Hamburger to X Animation */
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; width: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg); }
}

/* =========================================================
   PREMIUM GOOGLE SIGN-IN WRAPPER
========================================================= */
.google-signin-wrapper {
    display: inline-flex;
    justify-content: center;
    margin-top: 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #1a73e8;
}

.google-signin-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.google-signin-wrapper:active {
    transform: translateY(0);
}
.auth-nav { display: flex; align-items: center; gap: 1rem; background: #f9fafb; padding: 0.35rem 1rem; border-radius: 50px; border: 1px solid var(--border-color); }
.logout-link { color: var(--error); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }

/* =========================================================
   04. HERO BANNER
========================================================= */
.hero-banner { 
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 6rem) 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 650px;
    background-color: #f9fafb;
    background-image: url('bg.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--border-color); 
    margin-top: -clamp(1.5rem, 4vw, 2.5rem); 
    margin-bottom: 1rem;
}
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 250, 252, 0.88); 
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}
.hero-banner h1 { 
    font-size: clamp(2rem, 5vw, 3.5rem); 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 1rem; 
    letter-spacing: -0.025em; 
    background: linear-gradient(to right, #5a4fcf, #c92bb7); 
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; 
    display: inline-block; 
}
.hero-banner h2 { 
    font-size: clamp(1.25rem, 3vw, 1.5rem); 
    color: var(--primary); 
    font-weight: 700; 
    margin-bottom: 1rem;    
    margin-top: -6rem; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
}
.hero-banner p { 
    font-size: clamp(1rem, 2vw, 1.25rem); 
    color: var(--text-muted); 
    max-width: 600px; 
    margin: 0 auto 1rem auto; 
}
.hero-price { 
    display: inline-block; 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: #fff; 
    background: var(--primary); 
    padding: 0.5rem 1.5rem; 
    border-radius: 50px; 
    margin-bottom: -0.9rem; 
}

/* =========================================================
   SUBSCRIBER DASHBOARD
========================================================= */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 32px;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* =========================================================
   SUBSCRIBER DASHBOARD METRICS (Upgraded)
========================================================= */
.metric-card {
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
}

.metric-card:nth-child(1) { background: linear-gradient(135deg, #fdf4ff 0%, #f3e8ff 100%); border: 1px solid #e9d5ff; }
.metric-card:nth-child(1) .metric-title { color: #7e22ce; }
.metric-card:nth-child(1) .metric-value { color: #581c87; }

.metric-card:nth-child(2) { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); border: 1px solid #bae6fd; }
.metric-card:nth-child(2) .metric-title { color: #0369a1; }
.metric-card:nth-child(2) .metric-value { color: #075985; }

.metric-card:nth-child(3) { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border: 1px solid #bbf7d0; }
.metric-card:nth-child(3) .metric-title { color: #15803d; }
.metric-card:nth-child(3) .metric-value { color: #166534; }

.metric-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    opacity: 0.9;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}
.metric-card:nth-child(3) .metric-value {
    font-size: 1.75rem;
    margin-top: 8px;
}

.dashboard-listing-list { list-style: none; margin: 0; padding: 0; }
.dashboard-listing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}
.dashboard-listing-item:last-child { border-bottom: none; }
.dashboard-listing-item:hover { background: #f8fafc; }

.listing-item-info { display: flex; flex-direction: column; gap: 4px; }
.listing-item-title { font-size: 1.1rem; font-weight: 700; color: #1e293b; margin: 0; }
.listing-item-meta { font-size: 0.85rem; color: #94a3b8; }
.listing-item-stats { display: flex; align-items: center; gap: 20px; }

.stat-badge {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    color: #475569;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-view-listing {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6366f1;
    border: 1px solid #c7d2fe;
    padding: 8px 16px;
    border-radius: 6px;
    background: #ffffff;
    transition: all 0.2s ease;
}
.btn-view-listing:hover { background: #e0e7ff; border-color: #a5b4fc; color: #4f46e5; }

@media (max-width: 640px) {
    .dashboard-listing-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .listing-item-stats {
        width: 100%;
        justify-content: space-between;
    }
}

/* =========================================================
   05. MULTI-STEP SUBMISSION FORM
========================================================= */
.submission-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    max-width: 100%;
    margin: 40px auto 60px auto; 
    position: relative;
    z-index: 10;
}
.submission-box h2 { text-align: center; font-size: 1.75rem; color: #0f172a; margin-bottom: 30px; font-weight: 500; }

/* Step Indicators */
.step-indicator-container { display: flex; justify-content: space-between; position: relative; margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.step-indicator-container::before { content: ''; position: absolute; top: 16px; left: 10%; right: 10%; height: 2px; background: var(--border-color); z-index: 1; }
.step-wrapper { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 2; flex: 1; }
.step-indicator { width: 32px; height: 32px; border-radius: 50%; background: #ffffff; border: 2px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); transition: all 0.3s ease; }
.step-label { font-size: clamp(0.7rem, 2vw, 0.8rem); font-weight: 600; color: var(--text-muted); text-align: center; line-height: 1.2; transition: color 0.3s ease; }
.step-indicator.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.step-indicator.active + .step-label { color: var(--primary); }
.step-indicator.completed { border-color: var(--success); background: var(--success); color: #fff; }
.step-indicator.completed + .step-label { color: var(--success); }
.form-step { display: none; animation: fadeIn 0.4s ease-in-out; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Form Grid & Inputs */
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; }
.form-label { font-size: 0.9rem; font-weight: 600; color: #334155; margin-bottom: 8px; }

.form-input {
    width: 100%;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 1rem;
    color: #1e293b;
    transition: all 0.2s ease;
    outline: none;
}
.form-input::placeholder { color: #94a3b8; }
.form-input:hover { border-color: #94a3b8; background-color: #ffffff; }
.form-input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); background-color: #ffffff; }

select.form-input {
    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: 16px;
    padding-right: 44px;
    cursor: pointer;
}
textarea.form-input { min-height: 180px; resize: vertical; line-height: 1.6; }

/* File Upload */
.logo-upload-wrapper { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.logo-preview-img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border-color); display: none; background: #f9fafb; }
.form-file { padding: 0.5rem; font-size: 0.875rem; color: var(--text-muted); }
.form-file::file-selector-button { margin-right: 1rem; padding: 0.5rem 1rem; border: 1px solid var(--border-color); border-radius: 4px; background: #f9fafb; color: var(--text-main); font-weight: 500; cursor: pointer; }
.word-count-display { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.375rem; display: block; }
.word-count-display.invalid { color: var(--error); }

/* Buttons & Actions */
.form-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; border-top: 1px solid var(--border-color); padding-top: 1.5rem; }
.btn-primary { display: inline-block; background-color: var(--primary); color: #ffffff; border: none; padding: 0.75rem 1.75rem; border-radius: 6px; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: background-color 0.2s ease; text-align: center; }
.btn-primary:hover:not(:disabled) { background-color: var(--primary-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary { display: inline-block; background-color: #f9fafb; color: var(--text-main); border: 1px solid var(--border-color); padding: 0.75rem 1.5rem; border-radius: 6px; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: background-color 0.2s ease; }
.btn-secondary:hover { background-color: #e5e7eb; }
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }

/* Premium Alert */
.premium-alert {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #e7f9ff; 
    border: 1px solid #b1e8fa; 
    color: #92400e; 
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.premium-alert .premium-star { width: 22px; height: 22px; color: #d97706; margin-right: 12px; flex-shrink: 0; }
.premium-alert strong { color: #7739c3; font-weight: 700; font-size: 20px; }

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

/* =========================================================
   06. DIRECTORY LISTINGS & FILTER BAR
========================================================= */
.filter-section { max-width: 100%; margin: 0 auto 40px auto; padding: 0; }
.filter-form {
    display: flex;
    gap: 12px;
    background: #ffffff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    align-items: center;
}
.filter-select {
    flex: 1;
    appearance: none; 
    -webkit-appearance: none;
    background-color: #f8fafc;
    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: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 14px 44px 14px 16px; 
    font-size: 1rem;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}
.filter-select:hover { border-color: #94a3b8; background-color: #ffffff; }
.filter-select:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); background-color: #ffffff; }

.btn-filter {
    background-color: #0f172a; 
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-filter:hover { background-color: #6366f1; transform: translateY(-1px); box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2); }
.btn-filter:active { transform: translateY(0); }

@media (max-width: 768px) {
    .filter-form { flex-direction: column; padding: 16px; }
    .filter-select, .btn-filter { width: 100%; }
}

/* Directory Grid */
.directory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(280px, 30vw, 320px), 1fr)); gap: clamp(1rem, 3vw, 1.5rem); }
.brand-card { border: 1px solid var(--border-color); border-radius: 12px; padding: clamp(1rem, 3vw, 1.5rem); display: flex; flex-direction: column; background: #ffffff; transition: border-color 0.2s ease, box-shadow 0.2s ease; box-shadow: var(--shadow-sm); }
.brand-card:hover { border-color: var(--border-focus); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.brand-card-header { display: flex; align-items: flex-start; margin-bottom: 0.5rem; }
.brand-logo-thumb { width: 64px; height: 64px; border-radius: 8px; border: 1px solid var(--border-color); object-fit: contain; margin-right: 1rem; flex-shrink: 0; background: #fff; }
.brand-card-title { font-size: 1.125rem; font-weight: 700; line-height: 1.3; margin-bottom: 6px;}
.brand-cat-tag { display: inline-block; font-size: 0.7rem; text-transform: uppercase; background: #f3f4f6; padding: 4px 8px; border-radius: 4px; margin-bottom: 0.75rem; color: var(--text-muted); font-weight: 600; }
.brand-card-excerpt { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.5rem; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.brand-card-link { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--primary); margin-top: auto; }

/* =========================================================
   07. CATEGORY ARCHIVES & EXPLORE SECTIONS
========================================================= */
.category-fold {
    padding: 60px 0;
    background-color: #f8fafc; 
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 48px;
}
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.category-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}
.category-card:hover { transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); border-color: #cbd5e1; }
.category-card .cat-title { margin: 0 0 6px 0; font-size: 1.1rem; color: #1e293b; font-weight: 600; transition: color 0.2s ease; }
.category-card:hover .cat-title { color: #6366f1; }
.category-card .cat-count { font-size: 0.85rem; color: #64748b; background: #f1f5f9; padding: 4px 10px; border-radius: 20px; font-weight: 500; display: inline-block; }
.category-card .cat-card-arrow { color: #94a3b8; font-size: 1.2rem; font-weight: bold; transition: transform 0.2s ease, color 0.2s ease; }
.category-card:hover .cat-card-arrow { transform: translateX(4px); color: #6366f1; }

.archive-pagination { margin-top: 48px; text-align: center; }
.archive-pagination .nav-links { display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #ffffff;
    color: #475569;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.archive-pagination .page-numbers:hover { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; }
.archive-pagination .page-numbers.current { background: #6366f1; color: #ffffff; border-color: #6366f1; }
.archive-pagination .screen-reader-text { display: none; }

/* =========================================================
   08. SINGLE PROFILE PAGE
========================================================= */
.single-layout-wrapper { display: flex; flex-direction: column; gap: 24px; margin-bottom: 60px; }
@media (min-width: 992px) { .single-layout-wrapper { flex-direction: row; } }

.single-main-content { flex: 1; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.single-sidebar { width: 100%; max-width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; }

.breadcrumb-nav { margin-bottom: 16px; font-size: 0.85rem; color: #64748b; width: 100%; }
.breadcrumbs { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs a { display: inline-flex; align-items: center; color: #6366f1; font-weight: 500; }
.breadcrumbs a:hover { color: #4f46e5; text-decoration: underline; }
.breadcrumbs .sep { color: #cbd5e1; font-size: 0.8rem; margin-top: 1px; }
.breadcrumbs .current {
    color: #334155 !important;
    font-weight: 500 !important;
    white-space: normal !important;      
    overflow: visible !important;        
    text-overflow: clip !important;      
    max-width: none !important;          
    word-break: break-word !important;   
}

.content-card { background: #ffffff; border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; box-shadow: var(--shadow-sm); }
.card-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 16px; color: var(--text-main); }

.header-card { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 640px) { .header-card { flex-direction: row; align-items: center; } }
.header-logo { width: 120px; height: 120px; border: 1px solid var(--border-color); border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #ffffff; overflow: hidden; padding: 8px; }
.header-info { flex: 1; }
.brand-h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 12px; line-height: 1.2; letter-spacing: -0.02em; }
.brand-badges { margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.badge-verified { background: #dcfce7; color: #166534; }
.badge-featured { background: #f3e8ff; color: #7e22ce; }
.brand-categories { margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.cat-pill { background: #e0e7ff; color: #3730a3; padding: 4px 12px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.brand-address { display: flex; align-items: flex-start; gap: 8px; font-size: 0.875rem; color: var(--text-muted); line-height: 1.4; }

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-box { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 8px; border: 1px solid var(--border-color); transition: all 0.2s ease; }
.contact-box:hover { opacity: 0.8; }
.box-call { background: #f0fdf4; border-color: #bbf7d0; } 
.box-email { background: #eff6ff; border-color: #bfdbfe; } 
.box-website { background: #f9fafb; border-color: #e5e7eb; } 
.contact-details { display: flex; flex-direction: column; }
.contact-label { font-size: 0.75rem; font-weight: 600; margin-bottom: 2px; }
.contact-value { font-size: 0.95rem; font-weight: 700; color: var(--text-main); word-break: break-all; }

.single-content { font-size: 1rem; color: #374151; line-height: 1.8; }
.single-content p { margin-bottom: 1.5rem; }
.single-content h1, .single-content h2, .single-content h3 { color: var(--primary); margin-top: 1.5rem; margin-bottom: 1rem; font-weight: 700; }

/* =========================================================
   09. SIDEBAR WIDGETS & ADVERTISEMENTS
========================================================= */
.sidebar-promo-box, .ad-widget {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 274px;
}
.sticky-tall-ad {
    position: sticky;
    top: 100px;
    min-height: 624px;
}
.ad-slide {
    display: none;
    width: 100%;
    animation: fadeAdIn 0.8s ease;
}
.ad-slide.active { display: block; }
.ad-img { width: 100%; height: auto; border-radius: 8px; object-fit: contain; }
@keyframes fadeAdIn { from { opacity: 0; } to { opacity: 1; } }

.promo-slot, .ad-placeholder {
    width: 100%;
    min-height: 250px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d1d5db;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.875rem;
}
.promo-slot.tall, .ad-placeholder.tall, .sticky-tall-ad .promo-slot {
    min-height: 600px;
}

.sidebar-widget { background: #ffffff; border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); margin-bottom: 0px; }
.share-widget .widget-title { font-size: 1.15rem; font-weight: 700; color: #0f172a; margin-top: 0; margin-bottom: 8px; }
.share-widget .widget-desc { font-size: 0.95rem; color: #64748b; margin-top: 0; margin-bottom: 18px; line-height: 1.5; }
.share-widget .btn-share { display: flex; align-items: center; justify-content: center; width: 100%; gap: 8px; background: #6366f1; color: #ffffff; border: none; padding: 12px 16px; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.2s ease, transform 0.1s ease; }
.share-widget .btn-share:hover { background: #4f46e5; }
.share-widget .btn-share:active { transform: scale(0.98); }
.share-widget .btn-share svg { flex-shrink: 0; }

/* =========================================================
   10. FOOTER
========================================================= */
.site-footer {
    background-color: #ffffff;
    color: #0f172a;
    padding-top: 5rem;
    margin-top: 5rem;
    position: relative;
    border-top: 1px solid #6366f1;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(99,102,241,0.05), transparent 50%);
    pointer-events: none;
}
.footer-container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 2rem;
    }
}
.footer-brand .site-title { color: #0f172a; font-size: 1.5rem; margin-bottom: 1rem; display: inline-block; }
.footer-desc { font-size: 0.95rem; color: #475569; line-height: 1.7; margin-bottom: 1.5rem; max-width: 340px; }
.footer-heading { font-size: 1.05rem; font-weight: 700; margin-bottom: 1.5rem; color: #0f172a; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-nav-list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.footer-link { font-weight: 500; color: #475569; font-size: 0.95rem; transition: color 0.2s ease, transform 0.2s ease; display: inline-block; }
.footer-link:hover { color: #6366f1; transform: translateX(4px); }
.address-details { font-size: 0.95rem; color: #475569; line-height: 1.7; border-left: 2px solid #e2e8f0; padding-left: 1rem; margin-bottom: 1.5rem; }
.footer-input-group { display: flex; gap: 8px; margin-top: 1rem; }
.footer-input { flex: 1; background: #f8fafc; border: 1px solid #cbd5e1; color: #1e293b; font-size: 0.9rem; padding: 10px 16px; border-radius: 6px; outline: none; transition: border-color 0.2s ease; }
.footer-input:focus { border-color: #6366f1; }
.footer-btn { background: #6366f1; color: #fff; border: none; padding: 10px 20px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: background 0.2s ease; }
.footer-btn:hover { background: #4f46e5; }
.footer-bottom { border-top: 1px solid #e2e8f0; padding: 2rem 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; color: #64748b; font-size: 0.875rem; }
@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: #475569; transition: color 0.2s ease; }
.footer-bottom-links a:hover { color: #6366f1; }

/* =========================================================
   11. ADMIN BACKEND TWEAKS
========================================================= */
.brand-admin-field { margin-bottom: 15px; }
.brand-admin-field label { display: block; font-weight: bold; margin-bottom: 5px; }
.brand-admin-field input, .brand-admin-field select { width: 100%; max-width: 400px; padding: 6px; }

/* =========================================================
   12. PAGE TEMPLATES (FAQ & ABOUT)
========================================================= */
.faq-section { padding: 5rem 20px; background: #f8fafc; }
.faq-header { text-align: center; max-width: 600px; margin: 0 auto 3rem auto; }
.faq-header h2 { font-size: 2.25rem; color: #0f172a; font-weight: 800; margin-bottom: 0.75rem; }
.faq-header p { color: #64748b; font-size: 1.1rem; }
.faq-accordion { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; transition: box-shadow 0.3s ease, border-color 0.3s ease; }
.faq-item:hover { border-color: #cbd5e1; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.faq-question { padding: 20px 24px; font-size: 1.15rem; font-weight: 600; color: #1e293b; cursor: pointer; position: relative; list-style: none; display: flex; align-items: center; justify-content: space-between; transition: color 0.2s ease; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: #3b82f6; }
.faq-question::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: #94a3b8; transition: transform 0.3s ease, color 0.3s ease; line-height: 1; }
.faq-item[open] .faq-question { color: #0f172a; border-bottom: 1px solid #f1f5f9; }
.faq-item[open] .faq-question::after { content: '−'; transform: rotate(180deg); color: #0f172a; }
.faq-answer { padding: 20px 24px 24px 24px; color: #475569; font-size: 1.05rem; line-height: 1.7; background: #ffffff; }

.about-hero { background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); padding: 6rem 20px; border-bottom: 1px solid #e2e8f0; }
.premium-badge { display: inline-block; background: #fef3c7; color: #b45309; padding: 6px 16px; border-radius: 30px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.5rem; }
.about-title { font-size: 3rem; color: #0f172a; font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; }
.about-subtitle { font-size: 1.25rem; color: #64748b; max-width: 650px; margin: 0 auto; line-height: 1.6; }
.about-mission { padding: 5rem 20px; background: #ffffff; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; max-width: 1200px; margin: 0 auto; }
.mission-content h2 { font-size: 2.25rem; color: #0f172a; margin-bottom: 1.5rem; }
.mission-content p { font-size: 1.1rem; color: #475569; line-height: 1.7; margin-bottom: 1.25rem; }
.mission-image .image-placeholder { background: #f1f5f9; border-radius: 20px; height: 400px; display: flex; align-items: center; justify-content: center; color: #cbd5e1; border: 1px solid #e2e8f0; }
.mission-image .image-placeholder svg { width: 80px; height: 80px; }
.about-pillars { padding: 0 20px 5rem 20px; background: #ffffff; }
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.pillar-card { background: #f8fafc; border: 1px solid #e2e8f0; padding: 2.5rem; border-radius: 16px; text-align: center; transition: transform 0.3s ease; }
.pillar-card:hover { transform: translateY(-5px); }
.pillar-icon { width: 56px; height: 56px; margin: 0 auto 1.5rem auto; }
.pillar-card h3 { color: #0f172a; font-size: 1.35rem; margin-bottom: 1rem; font-weight: 700; }
.pillar-card p { color: #64748b; font-size: 1rem; line-height: 1.6; margin: 0; }
@media (max-width: 768px) {
    .mission-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-title { font-size: 2.25rem; }
}

/* =========================================================
   13. CATEGORIES PAGE (ALL CATEGORIES)
========================================================= */
.category-grid-full { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto; }
.cat-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 32px 24px; text-align: center; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: all 0.3s ease; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02); }
.cat-card:hover { transform: translateY(-5px); border-color: #6366f1; box-shadow: 0 12px 20px -5px rgba(99, 102, 241, 0.15); }
.cat-card-title { color: #0f172a; font-size: 1.15rem; font-weight: 700; margin: 0 0 12px 0; transition: color 0.2s ease; }
.cat-card:hover .cat-card-title { color: #6366f1; }
.cat-card-count { color: #64748b; font-size: 0.85rem; font-weight: 600; background: #f1f5f9; padding: 6px 14px; border-radius: 20px; }