/* ================================================================
   Global Listings - Premium CSS Design System
   Font: Outfit (Google Fonts)
   ================================================================ */

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

/* ── CSS Variables ────────────────────────────────────────────── */
:root {
    --primary:        #7c3aed; /* Violet */
    --primary-dark:   #6d28d9;
    --primary-light:  #a78bfa;
    --gold:           #ff2e93; /* Neon Pink */
    --gold-dark:      #db2777;
    --gold-light:     #f472b6;
    --featured:       #ec4899; /* Pink Featured tag */
    --featured-dark:  #be185d;
    --success:        #22c55e;
    --danger:         #ef4444;
    --warning:        #f59e0b;

    --bg:             #ffffff;
    --bg-white:       #ffffff;
    --card-bg:        #ffffff;
    --nav-bg:         #0f172a;
    --footer-bg:      #0f172a;
    --footer-text:    #94a3b8;

    --text:           #1e293b;
    --text-muted:     #64748b;
    --text-light:     #94a3b8;
    --border:         #e2e8f0;

    --radius:         12px;
    --radius-sm:      8px;
    --radius-lg:      20px;
    --shadow-sm:      0 2px 8px rgba(0,0,0,0.08);
    --shadow:         0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg:      0 8px 40px rgba(0,0,0,0.18);
    --shadow-card:    0 4px 16px rgba(124,58,237,0.12);

    --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container:      1240px;
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior:smooth; font-size:16px; }

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

main { flex: 1; }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

input, textarea, select, button { font-family: inherit; }

/* ── Scrollbar ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Container ────────────────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Flash Messages ───────────────────────────────────────────── */
.flash-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transition: opacity .4s, transform .4s;
    min-width: 300px;
    max-width: 520px;
}
.flash-success { background: #dcfce7; border: 1px solid #86efac; color: #166534; }
.flash-error   { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.flash-info    { background: #dbeafe; border: 1px solid #93c5fd; color: #1e40af; }
.flash-close   { background:none; border:none; font-size:1.2rem; cursor:pointer; margin-left:auto; color:inherit; opacity:.7; }
.flash-close:hover { opacity: 1; }

/* ================================================================
   NAVBAR (PILL STYLE)
   ================================================================ */
.site-header-pill {
    position: sticky;
    top: 15px;
    z-index: 1000;
    background: transparent;
    box-shadow: none;
    padding: 0 15px;
}
.navbar { width: 100%; }
.nav-container-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(240, 245, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 8px 12px 8px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.6);
    max-width: 700px;
    margin: 0 auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

/* Center Search */
.nav-search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
    display: flex;
    align-items: center;
    background: #0f0f0f;
    border-radius: 50px;
    padding: 6px 12px 6px 16px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}
.search-icon { color: #0568f1; font-size: 0.9rem; }
.search-input {
    border: none;
    outline: none;
    background: transparent;
    padding: 0 12px;
    width: 100%;
    font-size: 0.9rem;
    color: var(--text);
}
.search-shortcut {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
}

/* Right Side Elements */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.nav-btn-location {
    background: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.nav-btn-location i { color: #8b5cf6; }

.nav-btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.btn-post-ad {
    background: #8b5cf6;
    color: #0a0000;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform 0.2s, background 0.2s;
}
.btn-post-ad:hover { background: #7c3aed; transform: translateY(-1px); }

.btn-sign-in {
    background: #ffffff;
    border: none;
    color: #1e293b;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: background 0.2s;
}
.btn-sign-in:hover { background: #f8fafc; }

/* Auth Buttons */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.btn-outline {
    padding: 8px 20px;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-primary {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(26,111,196,.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,111,196,.5); }

.btn-admin {
    padding: 7px 16px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    border-radius: 50px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex; align-items: center; gap: 6px;
    transition: var(--transition);
}
.btn-admin:hover { opacity: .9; transform: translateY(-1px); }

/* User Menu Dropdown */
.user-menu { position: relative; }
.user-toggle {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 6px 14px 6px 6px;
    cursor: pointer;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}
.user-toggle:hover { background: rgba(255,255,255,0.14); }
.user-toggle .fa-chevron-down { font-size: .75rem; opacity:.7; }
.user-avatar-small {
    width: 30px; height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    overflow: hidden;
    display: none;
    border: 1px solid var(--border);
}
.dropdown-menu.open { display: block; animation: fadeDown .2s ease; }
.dropdown-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 18px;
    color: var(--text);
    font-size: 0.9rem;
    transition: background .2s;
}
.dropdown-menu a i { width: 16px; color: var(--primary); }
.dropdown-menu a:hover { background: #f8fafc; }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.dropdown-logout { color: var(--danger) !important; }
.dropdown-logout i { color: var(--danger) !important; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.hamburger span { display:block; width:24px; height:2px; background:#fff; border-radius:2px; transition:.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

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

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content:'';
    position:absolute; inset:0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
    position: relative; z-index:1;
    text-align: center;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 16px;
}
.hero h1 .highlight { color: var(--gold); }
.hero p {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 36px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}
.hero-search {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 6px;
    backdrop-filter: blur(10px);
}
.hero-search input {
    flex:1;
    background: none;
    border: none;
    outline: none;
    padding: 10px 18px;
    color: #fff;
    font-size: 1rem;
}
.hero-search input::placeholder { color: #64748b; }
.hero-search button {
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex; align-items: center; gap:8px;
}
.hero-search button:hover { opacity:.9; }
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 800; color: var(--gold); }
.hero-stat .label { font-size: .85rem; color: #64748b; }

/* ================================================================
   SECTION HEADER
   ================================================================ */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}
.section-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}
.section-title h2 .accent { color: var(--primary); }
.section-title p {
    color: var(--text-muted);
    font-size: .9rem;
    margin-top: 4px;
}
.btn-view-all {
    display: inline-flex; align-items: center; gap:8px;
    padding: 9px 22px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(26,111,196,.3);
}
.btn-view-all:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ================================================================
   LISTING CARDS
   ================================================================ */
.listings-section { padding: 60px 0; }

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.listing-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
    min-height: 360px;
}
.listing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px) scale(1.01);
}

/* Card Image */
.card-img-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}
.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.listing-card:hover .card-img-wrap img { transform: scale(1.05); }

/* Gradient Overlay */
.card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

/* Card Content */
.card-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 14px;
    color: #fff;
}
.card-name {
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
    width: 100%;
}
.card-name-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    flex: 1;
}
.card-name .online-dot {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px #22c55e;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity:1; }
    50% { opacity:.5; }
}
.card-location {
    font-size: .78rem;
    color: rgba(255,255,255,0.7);
    margin-top: 3px;
    display: flex; align-items: center; gap:4px;
}
.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

/* Badges */
.badge-featured {
    position: absolute;
    top: 10px; left: 10px;
    background: linear-gradient(135deg, var(--featured), var(--featured-dark));
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
    box-shadow: 0 2px 8px rgba(229,57,53,.4);
}
.badge-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
    box-shadow: 0 2px 8px rgba(240,165,0,.4);
}
.badge-silver {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.badge-bronze {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Card views */
.card-views { font-size:.75rem; color:rgba(255,255,255,.6); display:flex; align-items:center; gap:4px; }

/* ================================================================
   CATEGORIES STRIP
   ================================================================ */
.categories-section { padding: 40px 0; background: var(--bg-white); }
.categories-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}
.category-chip {
    display: flex; flex-direction:column; align-items:center; gap:8px;
    padding: 16px 24px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    min-width: 100px;
    text-decoration: none;
    color: var(--text);
}
.category-chip:hover, .category-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26,111,196,.3);
}
.category-chip i { font-size: 1.3rem; }
.category-chip span { font-size: .85rem; font-weight: 600; }

/* ================================================================
   EMPTY STATE
   ================================================================ */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.empty-state i { font-size: 3rem; opacity: .3; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.2rem; color: var(--text); margin-bottom: 8px; }

/* ================================================================
   SEARCH PAGE
   ================================================================ */
.search-section { padding: 40px 0; }
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}
.search-bar input {
    flex: 1;
    padding: 14px 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    outline: none;
    transition: border-color .2s;
    background: #fff;
}
.search-bar input:focus { border-color: var(--primary); }
.search-bar select {
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    outline: none;
    background: #fff;
    cursor: pointer;
}
.search-bar button {
    padding: 14px 28px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex; align-items: center; gap: 8px;
}
.search-bar button:hover { background: var(--primary-dark); }
.search-results-info {
    font-size: .9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ================================================================
   AUTH PAGES (Login / Register)
   ================================================================ */
.auth-section {
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}
.auth-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.auth-header { text-align:center; margin-bottom:32px; }
.auth-header .auth-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    display: inline-flex; align-items:center; justify-content:center;
    font-size: 1.5rem; color: #fff;
    margin-bottom: 16px;
}
.auth-header h1 { font-size: 1.6rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.auth-header p { color: var(--text-muted); font-size: .9rem; }

/* Form Styles */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background: var(--bg);
    color: var(--text);
}
.form-control:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,111,196,.12);
}
textarea.form-control { resize: vertical; min-height: 120px; }

.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

.input-group { position: relative; }
.input-group .form-control { padding-left: 44px; }
.input-group .input-icon {
    position: absolute; left:14px; top:50%; transform:translateY(-50%);
    color: var(--text-muted); font-size:.9rem;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: .3px;
}
.btn-submit:hover { opacity:.92; transform:translateY(-1px); box-shadow:0 4px 16px rgba(26,111,196,.4); }
.btn-submit:active { transform:translateY(0); }

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: .9rem;
}
.auth-footer a { color: var(--primary); font-weight: 600; }

.alert-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: .9rem;
}
.alert-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: .9rem;
}

/* ================================================================
   SINGLE POST PAGE
   ================================================================ */
.post-section { padding: 48px 0; }
.post-container { display:grid; grid-template-columns:1fr 360px; gap:32px; }
.post-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: 600px;
    background: #000;
}
.post-image-wrap img { width:100%; height:100%; object-fit:cover; }
.post-details { background:#fff; border-radius:var(--radius-lg); padding:32px; box-shadow:var(--shadow-sm); }
.post-title { font-size:1.8rem; font-weight:800; margin-bottom:8px; }
.post-meta { display:flex; flex-wrap:wrap; gap:16px; color:var(--text-muted); font-size:.9rem; margin-bottom:24px; }
.post-meta span { display:flex; align-items:center; gap:6px; }
.post-meta i { color:var(--primary); }
.post-desc { color:var(--text); line-height:1.8; margin-bottom:24px; }
.post-contact { background:var(--bg); border-radius:var(--radius); padding:20px; margin-bottom:20px; }
.post-contact h4 { font-size:.9rem; color:var(--text-muted); margin-bottom:8px; }
.post-contact .phone { font-size:1.3rem; font-weight:700; color:var(--primary); }
.btn-contact {
    display:block; width:100%;
    padding:14px;
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    color:#fff; border:none; border-radius:var(--radius-sm);
    font-size:1rem; font-weight:700; cursor:pointer;
    text-align:center; transition:var(--transition);
}
.btn-contact:hover { opacity:.9; }

/* ================================================================
   PROFILE PAGE
   ================================================================ */
.profile-section { padding: 48px 0; }
.profile-header {
    background:linear-gradient(135deg,#0f172a,#1e3a5f);
    padding:48px 0; margin-bottom:32px;
}
.profile-info { display:flex; align-items:center; gap:24px; color:#fff; }
.profile-avatar {
    width:100px; height:100px; border-radius:50%;
    object-fit:cover;
    border:3px solid rgba(255,255,255,.3);
    box-shadow:0 4px 20px rgba(0,0,0,.4);
}
.profile-name { font-size:1.6rem; font-weight:700; }
.profile-role {
    display:inline-block; margin-top:4px;
    padding:3px 12px; border-radius:50px;
    font-size:.8rem; font-weight:600;
    background:rgba(255,255,255,.15);
}
.profile-stats { display:flex; gap:32px; margin-top:12px; }
.profile-stat .num { font-size:1.4rem; font-weight:700; }
.profile-stat .label { font-size:.8rem; opacity:.7; }
.profile-content { display:grid; grid-template-columns:280px 1fr; gap:24px; }
.profile-card { background:#fff; border-radius:var(--radius); padding:24px; box-shadow:var(--shadow-sm); }

/* ================================================================
   CREATE/EDIT POST FORM
   ================================================================ */
.post-form-section { padding: 48px 0; }
.post-form-card {
    background:#fff; border-radius:var(--radius-lg);
    padding:40px; max-width:760px; margin:0 auto;
    box-shadow:var(--shadow-sm);
}
.post-form-card h1 { font-size:1.6rem; font-weight:800; margin-bottom:8px; }
.post-form-card .form-subtitle { color:var(--text-muted); margin-bottom:32px; }

.image-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg);
    position: relative;
    overflow: hidden;
}
.image-upload-area:hover { border-color: var(--primary); background:#eff6ff; }
.image-upload-area input[type=file] {
    position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%;
}
.image-upload-area i { font-size:2.5rem; color:var(--text-muted); margin-bottom:12px; }
.image-upload-area p { color:var(--text-muted); }
.upload-preview { max-width:200px; max-height:250px; object-fit:cover; border-radius:var(--radius-sm); margin:12px auto 0; display:none; }

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 40px 0;
}
.page-btn {
    width: 40px; height: 40px;
    display: flex; align-items:center; justify-content:center;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .9rem;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
}
.page-btn:hover { background: var(--primary); color: #fff; border-color:var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color:var(--primary); }
.page-btn.disabled { opacity:.4; pointer-events:none; }

/* ================================================================
   ADMIN PANEL
   ================================================================ */
.admin-wrapper { display:flex; min-height:calc(100vh - 68px); }

.admin-sidebar {
    width: 260px;
    background: var(--nav-bg);
    flex-shrink: 0;
    padding: 24px 0;
    transition: var(--transition);
}
.admin-content {
    flex:1;
    padding: 32px;
    background: var(--bg);
    overflow-x: hidden;
}

.admin-nav-section { margin-bottom: 8px; }
.admin-nav-title {
    font-size: .72rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 12px 24px 6px;
}
.admin-nav-link {
    display: flex; align-items: center; gap:12px;
    padding: 11px 24px;
    color: #94a3b8;
    font-size: .9rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.admin-nav-link:hover { color:#fff; background:rgba(255,255,255,.05); }
.admin-nav-link.active { color:#fff; background:rgba(37,99,235,.15); border-left-color:var(--primary); }
.admin-nav-link i { width:18px; font-size:.9rem; }

.admin-page-header {
    display:flex; align-items:center; justify-content:space-between;
    margin-bottom: 28px;
}
.admin-page-header h1 { font-size:1.5rem; font-weight:700; }
.admin-page-header p { color:var(--text-muted); font-size:.9rem; }

/* Stat Cards */
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-bottom:32px; }
.stat-card {
    background:#fff; border-radius:var(--radius);
    padding:24px; box-shadow:var(--shadow-sm);
    display:flex; align-items:center; gap:16px;
    transition:var(--transition);
}
.stat-card:hover { box-shadow:var(--shadow); transform:translateY(-2px); }
.stat-icon {
    width:52px; height:52px; border-radius:var(--radius-sm);
    display:flex; align-items:center; justify-content:center;
    font-size:1.3rem; color:#fff; flex-shrink:0;
}
.stat-icon.blue   { background:linear-gradient(135deg,#2563eb,#1d4ed8); }
.stat-icon.green  { background:linear-gradient(135deg,#22c55e,#16a34a); }
.stat-icon.orange { background:linear-gradient(135deg,#f59e0b,#d97706); }
.stat-icon.purple { background:linear-gradient(135deg,#8b5cf6,#7c3aed); }
.stat-num { font-size:1.8rem; font-weight:800; line-height:1; }
.stat-label { font-size:.85rem; color:var(--text-muted); margin-top:4px; }

/* Admin Table */
.admin-card { background:#fff; border-radius:var(--radius); box-shadow:var(--shadow-sm); overflow:hidden; }
.admin-card-header {
    padding:20px 24px;
    border-bottom:1px solid var(--border);
    display:flex; align-items:center; justify-content:space-between;
}
.admin-card-header h3 { font-size:1rem; font-weight:700; }
.data-table { width:100%; border-collapse:collapse; }
.data-table th {
    padding:12px 16px; text-align:left;
    font-size:.8rem; font-weight:700; color:var(--text-muted);
    text-transform:uppercase; letter-spacing:.8px;
    background:#f8fafc; border-bottom:1px solid var(--border);
}
.data-table td {
    padding:14px 16px;
    border-bottom:1px solid var(--border);
    font-size:.9rem; color:var(--text);
    vertical-align:middle;
}
.data-table tr:last-child td { border-bottom:none; }
.data-table tr:hover td { background:#fafafa; }

/* Status badges */
.status-badge {
    display:inline-block; padding:3px 10px; border-radius:50px;
    font-size:.75rem; font-weight:700; text-transform:uppercase;
}
.status-approved  { background:#dcfce7; color:#166534; }
.status-pending   { background:#fef3c7; color:#92400e; }
.status-rejected  { background:#fee2e2; color:#991b1b; }
.status-active    { background:#dcfce7; color:#166534; }
.status-inactive  { background:#f1f5f9; color:#64748b; }
.status-banned    { background:#fee2e2; color:#991b1b; }
.status-admin     { background:#ede9fe; color:#6d28d9; }
.status-user      { background:#dbeafe; color:#1e40af; }

/* Action Buttons */
.action-btns { display:flex; gap:6px; flex-wrap:wrap; }
.btn-sm {
    padding:5px 12px; border-radius:6px; font-size:.8rem;
    font-weight:600; cursor:pointer; border:none; display:inline-flex;
    align-items:center; gap:5px; transition:var(--transition); text-decoration:none;
}
.btn-sm-primary  { background:#dbeafe; color:#1e40af; }
.btn-sm-primary:hover  { background:#bfdbfe; }
.btn-sm-success  { background:#dcfce7; color:#166534; }
.btn-sm-success:hover  { background:#bbf7d0; }
.btn-sm-danger   { background:#fee2e2; color:#991b1b; }
.btn-sm-danger:hover   { background:#fecaca; }
.btn-sm-warning  { background:#fef3c7; color:#92400e; }
.btn-sm-warning:hover  { background:#fde68a; }

/* Post thumbnail in table */
.post-thumb { width:48px; height:60px; object-fit:cover; border-radius:6px; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background:var(--footer-bg); margin-top:auto; }
.footer-top { padding:64px 0 40px; }
.footer-grid {
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1.6fr;
    gap:40px;
}
.footer-logo .logo-text strong,
.footer-logo .logo-globe { }
.footer-desc { color:var(--footer-text); font-size:.9rem; margin-top:16px; max-width:280px; line-height:1.7; }

.footer-col h4 {
    color:#f1f5f9; font-size:.95rem; font-weight:700;
    margin-bottom:16px;
    position:relative; padding-bottom:10px;
}
.footer-col h4::after {
    content:''; position:absolute; bottom:0; left:0;
    width:30px; height:2px; background:var(--primary);
}
.footer-col ul { display:flex; flex-direction:column; gap:8px; }
.footer-col ul a {
    color:var(--footer-text); font-size:.9rem;
    transition:color .2s; display:flex; align-items:center; gap:6px;
}
.footer-col ul a:hover { color:var(--gold); padding-left:4px; }
.footer-note { color:var(--footer-text); font-size:.85rem; margin-bottom:12px; }

.social-links { display:flex; gap:10px; margin-top:20px; }
.social-link {
    width:36px; height:36px; border-radius:8px;
    background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.1);
    display:flex; align-items:center; justify-content:center;
    color:var(--footer-text); font-size:.85rem; transition:var(--transition);
    text-decoration:none;
}
.social-link:hover { background:var(--primary); color:#fff; border-color:var(--primary); transform:translateY(-2px); }

.newsletter-form { display:flex; gap:0; }
.newsletter-form input {
    flex:1; padding:11px 14px;
    background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.15);
    border-right:none; border-radius:var(--radius-sm) 0 0 var(--radius-sm);
    color:#fff; font-size:.9rem; outline:none;
}
.newsletter-form input::placeholder { color:#475569; }
.newsletter-form button {
    padding:11px 16px;
    background:var(--primary); border:none;
    border-radius:0 var(--radius-sm) var(--radius-sm) 0;
    color:#fff; cursor:pointer; transition:var(--transition);
}
.newsletter-form button:hover { background:var(--primary-dark); }

.footer-bottom {
    border-top:1px solid rgba(255,255,255,.06);
    padding:20px 0;
}
.footer-bottom-inner {
    display:flex; align-items:center; justify-content:space-between;
}
.footer-bottom p { color:var(--footer-text); font-size:.85rem; }
.footer-social-mini { display:flex; gap:12px; }
.footer-social-mini a { color:var(--footer-text); font-size:.85rem; transition:color .2s; }
.footer-social-mini a:hover { color:var(--gold); }

/* ================================================================
   UTILITIES
   ================================================================ */
.text-center { text-align:center; }
.mt-8  { margin-top:8px; }
.mt-16 { margin-top:16px; }
.mt-24 { margin-top:24px; }
.mb-0  { margin-bottom:0; }
.d-flex { display:flex; }
.align-center { align-items:center; }
.gap-8  { gap:8px; }
.gap-12 { gap:12px; }

/* Post status label */
.my-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
    gap: 20px;
}
.my-post-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 360px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.my-post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.my-post-card img {
    width: 100%;
    height: 200px;
    display: block;
    object-fit: cover;
    object-position: center top;
    background: #f8fafc;
}
.my-post-card-body { padding:16px; flex:1; }
.my-post-card-body h3 { font-size:1rem; font-weight:700; margin-bottom:6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.my-post-card-body p { font-size:.85rem; color:var(--text-muted); }
.my-post-card-actions {
    display:flex; gap:8px; padding:12px 16px;
    border-top:1px solid var(--border);
    flex-wrap: wrap;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
    .listings-grid { grid-template-columns:repeat(4,1fr); }
    .stats-grid { grid-template-columns:repeat(2,1fr); }
    .footer-grid { grid-template-columns:1fr 1fr; gap:32px; }
}

@media (max-width: 900px) {
    .listings-grid { grid-template-columns:repeat(3,1fr); }
    .post-container { grid-template-columns:1fr; }
    .profile-content { grid-template-columns:1fr; }
    .admin-sidebar { width:220px; }
}

@media (max-width: 768px) {
    .nav-links {
        position:fixed; top:68px; left:0; right:0;
        background:var(--nav-bg); flex-direction:column;
        padding:16px; gap:4px; display:none;
        box-shadow:var(--shadow-lg); z-index:999;
    }
    .nav-links.open { display:flex; }
    .hamburger { display:flex; }
    .btn-outline { display:none; }

    .listings-grid { grid-template-columns:repeat(2,1fr); }
    .hero-stats { gap:24px; }
    .footer-grid { grid-template-columns:1fr; }
    .section-header { flex-direction:column; align-items:flex-start; }
    .form-row { grid-template-columns:1fr; }
    .admin-wrapper { flex-direction:column; }
    .admin-sidebar { width:100%; }
    .my-posts-grid { grid-template-columns:repeat(2,1fr); }
    .stats-grid { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 500px) {
    .listings-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
    .auth-card { padding:32px 20px; }
    .hero { padding:48px 0; }
    .hero-stats { flex-direction:column; gap:16px; }
    .search-bar { flex-direction:column; }
    .post-form-card { padding:24px; }
    .stats-grid { grid-template-columns:1fr 1fr; }
    .my-posts-grid { grid-template-columns:1fr; }
}

/* ================================================================
   ADMIN PANEL STYLES
   ================================================================ */
.admin-body { background: #f8fafc; }
.admin-wrapper {
    display: flex;
    min-height: calc(100vh - 68px);
}
.admin-sidebar {
    width: 260px;
    background: #0f172a;
    color: #fff;
    flex-shrink: 0;
    padding: 24px 0;
    position: sticky;
    top: 68px;
    height: calc(100vh - 68px);
    overflow-y: auto;
}
.sidebar-header {
    padding: 0 24px 24px;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 24px;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
}
.nav-label {
    padding: 0 24px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    margin: 16px 0 8px;
    letter-spacing: 0.5px;
}
.sidebar-link {
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}
.sidebar-link i { width: 20px; text-align: center; font-size: 1.1rem; }
.sidebar-link:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
.sidebar-link.active {
    background: var(--primary);
    color: #fff;
    border-right: 4px solid var(--gold);
}

.admin-main {
    flex: 1;
    padding: 32px;
    background: #f1f5f9;
    min-width: 0;
}
.admin-content { max-width: 1200px; margin: 0 auto; }
.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.admin-page-header h1 { font-size: 1.8rem; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.admin-page-header p { color: #64748b; font-size: 0.95rem; }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}
.stat-icon.blue { background: rgba(139, 0, 0, 0.05); color: var(--primary); }
.stat-icon.green { background: #f0fdf4; color: #22c55e; }
.stat-icon.orange { background: #fff7ed; color: #f97316; }
.stat-icon.purple { background: #fef2f2; color: var(--primary-light); }
.stat-num { font-size: 1.8rem; font-weight: 800; color: #0f172a; line-height: 1; margin-bottom: 4px; }
.stat-label { color: #64748b; font-size: 0.9rem; font-weight: 500; }

/* Admin Card */
.admin-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
    margin-bottom: 24px;
}
.admin-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-card-header h3 { font-size: 1.1rem; font-weight: 700; color: #1e293b; }

/* Data Table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    background: #f8fafc;
    padding: 14px 24px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
}
.data-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.data-table tbody tr:hover { background: #f8fafc; }
.post-thumb { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; }

/* Buttons */
.action-btns { display: flex; gap: 6px; }
.btn-sm {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.btn-sm:hover { transform: translateY(-1px); }
.btn-sm-primary { background: #eff6ff; color: #3b82f6; }
.btn-sm-primary:hover { background: #dbeafe; }
.btn-sm-success { background: #f0fdf4; color: #22c55e; }
.btn-sm-success:hover { background: #dcfce7; }
.btn-sm-warning { background: #fffbeb; color: #d97706; }
.btn-sm-warning:hover { background: #fef3c7; }
.btn-sm-danger { background: #fef2f2; color: #ef4444; }
.btn-sm-danger:hover { background: #fee2e2; }

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.status-approved, .status-active { background: #dcfce7; color: #166534; }
.status-pending { background: #fef9c3; color: #854d0e; }
.status-approved, .status-active { background: #dcfce7; color: #166534; }
.status-pending { background: #fef9c3; color: #854d0e; }
.status-rejected, .status-banned { background: #fee2e2; color: #991b1b; }

/* ================================================================
   ADMIN — PAYMENTS PAGE FIXES
   ================================================================ */

/* Page sub-header flex layout */
.admin-header-flex {
    margin-bottom: 28px;
}
.admin-header-flex h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-header-flex p { color: #64748b; font-size: .92rem; }

/* Text-muted utility */
.text-muted { color: #64748b !important; font-size: .88rem; }

/* admin-card inner padding when no admin-card-header */
.admin-card > h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    padding: 20px 24px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.admin-card > p.text-muted {
    padding: 0 24px;
    margin-bottom: 0;
}
.admin-card .form-group {
    padding: 0 24px;
    margin-bottom: 20px;
}
.admin-card .form-group:last-of-type { padding-bottom: 24px; }
.admin-card .form-group label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
}
.admin-card .form-group small.text-muted {
    display: block;
    margin-top: 5px;
    font-size: .8rem;
    line-height: 1.5;
    color: #6b7280;
}
.admin-card .form-group small.text-muted a {
    color: #3b82f6;
}
.admin-card .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: .92rem;
    outline: none;
    background: #f8fafc;
    color: #1e293b;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.admin-card .form-control:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── Toggle Switch ─────────────────────────────────── */
.switch-wrap { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.switch-wrap span { font-size: .92rem; font-weight: 500; color: #374151; }

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    border-radius: 34px;
    transition: .3s;
}
.slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .3s;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.switch input:checked + .slider { background: #3b82f6; }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:focus + .slider { box-shadow: 0 0 0 3px rgba(59,130,246,.2); }

/* Promo pricing save button */
.admin-card .btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}
.admin-card .btn-submit:hover { opacity: .92; transform: translateY(-1px); }

/* ================================================================
   ADMIN — TOPUPS PAGE FIXES
   ================================================================ */

/* Generic btn base (used in topups filter tabs) */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: all .2s;
    line-height: 1;
}
.btn.btn-primary {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}
.btn.btn-primary:hover { background: #2563eb; border-color: #2563eb; }
.btn.btn-outline {
    background: transparent;
    color: #64748b;
    border-color: #e2e8f0;
}
.btn.btn-outline:hover { background: #f1f5f9; color: #1e293b; border-color: #cbd5e1; }

/* card-header (used inside admin-card in topups) */
.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Table responsive wrapper */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* admin-table (alias of data-table with extra padding) */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table thead tr {
    background: #f8fafc;
}
.admin-table th {
    padding: 13px 20px;
    text-align: left;
    font-size: .78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}
.admin-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    font-size: .9rem;
    color: #1e293b;
    vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: #f8fafc; }

/* Badge base + variants */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    line-height: 1;
    white-space: nowrap;
}
.badge-success  { background: #dcfce7; color: #166534; }
.badge-warning  { background: #fef3c7; color: #92400e; }
.badge-danger   { background: #fee2e2; color: #991b1b; }
.badge-info     { background: #dbeafe; color: #1e40af; }
.badge-muted    { background: #f1f5f9; color: #64748b; }

/* ================================================================
   ADMIN — LOCATIONS PAGE (dark-theme variable fixes)
   ================================================================ */

/* Override dark-theme vars with light admin values for .loc-* */
.loc-add-card {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px;
    padding: 24px;
}
.loc-add-card h3 { color: #1e293b !important; }
.loc-form-row input,
.loc-form-row select,
.loc-form-row textarea {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}
.loc-form-row input:focus,
.loc-form-row select:focus,
.loc-form-row textarea:focus { border-color: #3b82f6 !important; }
.loc-list-card {
    background: #fff !important;
    border-color: #e2e8f0 !important;
}
.loc-list-header { border-color: #e2e8f0 !important; }
.loc-list-header h3 { color: #1e293b !important; }
.loc-list-header h3 i { color: #3b82f6 !important; }
.loc-count-badge { background: #dbeafe !important; color: #1d4ed8 !important; }
.loc-search-input {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}
.loc-search-input:focus { border-color: #3b82f6 !important; }
.loc-table th {
    background: #f8fafc !important;
    color: #64748b !important;
    border-color: #e2e8f0 !important;
}
.loc-table td { border-color: #f1f5f9 !important; color: #1e293b !important; }
.loc-table tr:hover td { background: #f8fafc !important; }
.loc-divider { color: #94a3b8; }
.loc-divider::before,
.loc-divider::after { border-color: #e2e8f0; }
.city-state-badge { background: #dbeafe !important; color: #1d4ed8 !important; }
.empty-row td { color: #94a3b8 !important; }
.loc-form-row .btn-primary-sm {
    background: #3b82f6 !important;
}
.loc-form-row .btn-primary-sm:hover { background: #2563eb !important; }

/* ================================================================
   ADMIN — SETTINGS PAGE
   ================================================================ */
.settings-section { padding: 0 24px 24px; }

/* ================================================================
   MOSAIC CARD (Home Page)
   ================================================================ */
.mosaic-card {
    display: flex;
    flex-direction: column;
    background: #27272a;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.mosaic-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}
.mosaic-grid {
    display: flex;
    height: 280px; 
}
.mosaic-main {
    flex: 2;
    height: 100%;
    position: relative;
}
.mosaic-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mosaic-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.mosaic-side img {
    width: 100%;
    flex: 1;
    object-fit: cover;
    min-height: 0; 
    border-left: 2px solid #27272a;
    border-bottom: 2px solid #27272a;
}
.mosaic-side img:last-child {
    border-bottom: none;
}
.mosaic-info {
    padding: 14px 16px;
    background: #27272a;
}
.mosaic-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    color: #fff;
}
.mosaic-desc {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.4;
    margin-bottom: 12px;
}
.mosaic-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #3f3f46;
    padding-top: 12px;
}
.mf-center {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}
.mf-loc {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
}


/* ================================================================
   Site Footer
   ================================================================ */

/* ── Footer Top ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: auto;
}

.footer-top {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 40px;
    align-items: start;
}

/* ── Footer Brand ────────────────────────────────────────────────── */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--footer-text);
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text);
    font-size: 0.85rem;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ── Footer Columns ──────────────────────────────────────────────── */
.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    font-size: 0.9rem;
    color: var(--footer-text);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li a::before {
    content: '›';
    font-size: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.footer-col ul li a:hover {
    color: #fff;
    transform: translateX(4px);
}

/* ── Newsletter ──────────────────────────────────────────────────── */
.footer-note {
    font-size: 0.875rem;
    color: var(--footer-text);
    line-height: 1.6;
    margin-bottom: 14px;
}

.newsletter-form {
    display: flex;
    gap: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255,255,255,0.06);
    border: none;
    color: #fff;
    font-size: 0.875rem;
    outline: none;
    min-width: 0;
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--footer-text);
}

.newsletter-form button {
    padding: 12px 16px;
    background: var(--primary);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

/* ── Footer Bottom ───────────────────────────────────────────────── */
.footer-bottom {
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--footer-text);
}

.footer-social-mini {
    display: flex;
    gap: 14px;
}

.footer-social-mini a {
    font-size: 0.9rem;
    color: var(--footer-text);
    transition: var(--transition);
}

.footer-social-mini a:hover {
    color: #fff;
}

/* ── Footer Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-desc {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .footer-top {
        padding: 40px 0 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-desc {
        max-width: 100%;
    }

    .newsletter-form {
        flex-direction: row;
    }

    .newsletter-form input[type="email"] {
        padding: 11px 12px;
        font-size: 0.82rem;
    }

    .newsletter-form button {
        padding: 11px 14px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }

    .footer-col h4 {
        margin-bottom: 14px;
    }
}

@media (max-width: 480px) {
    .footer-top {
        padding: 32px 0 24px;
    }

    .footer-grid {
        gap: 24px;
    }

    .social-links {
        gap: 8px;
    }

    .social-link {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .footer-social-mini {
        gap: 12px;
    }
}

/* ================================================================
   DARK MODE
   ================================================================ */
body.dark-theme {
    --bg:             #07050f; /* Space dark violet */
    --bg-white:       #120e24; /* Dark violet-gray surface */
    --card-bg:        #120e24;
    --text:           #f8fafc;
    --text-muted:     #94a3b8;
    --border:         #1c1735;
    --shadow-sm:      0 2px 8px rgba(0,0,0,0.4);
    --shadow:         0 4px 20px rgba(0,0,0,0.5);
    --shadow-card:    0 4px 16px rgba(255,46,147,0.15); /* Pink shadow accent */
}

body.dark-theme .nav-container-pill {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255,255,255,0.1);
}

body.dark-theme .nav-btn-icon,
body.dark-theme .btn-sign-in {
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid rgba(255,255,255,0.1);
}

body.dark-theme .user-toggle {
    background: #1e293b;
    color: #f8fafc;
    border-color: rgba(255,255,255,0.1);
}

body.dark-theme .dropdown-menu {
    background: #1e293b;
    border-color: rgba(255,255,255,0.1);
}

body.dark-theme .dropdown-menu a {
    color: #f8fafc;
}

body.dark-theme .dropdown-menu a:hover {
    background: rgba(255,255,255,0.05);
}

body.dark-theme .dropdown-divider {
    background: rgba(255,255,255,0.1);
}
