@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* =========================================
   CSS CUSTOM PROPERTIES – LA Vibes Dark Theme
   ========================================= */
:root {
    --primary:        #FF6B35;   /* Sunset Orange */
    --primary-glow:   rgba(255, 107, 53, 0.35);
    --secondary:      #A855F7;   /* LA Purple */
    --secondary-glow: rgba(168, 85, 247, 0.3);
    --accent:         #F59E0B;   /* Gold Star */
    --grad-hero:      linear-gradient(135deg, rgba(10,5,30,0.88) 0%, rgba(30,10,60,0.82) 50%, rgba(60,20,10,0.80) 100%);
    --grad-card:      linear-gradient(145deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
    --grad-badge:     linear-gradient(135deg, rgba(255,107,53,0.2), rgba(168,85,247,0.2));
    --grad-btn:       linear-gradient(135deg, #FF6B35, #D946EF);
    --grad-title:     linear-gradient(135deg, #FF6B35 0%, #D946EF 50%, #A855F7 100%);

    --bg-color:       #0A0A12;
    --bg-surface:     #13131F;
    --bg-card:        #181827;
    --bg-glass:       rgba(24, 24, 39, 0.6);

    --text-main:      #F0EFFF;
    --text-muted:     #8B8BAA;
    --text-subtle:    #555572;

    --border-color:   rgba(255,255,255,0.08);
    --border-glow:    rgba(255,107,53,0.4);

    --shadow-card:    0 8px 32px rgba(0,0,0,0.45);
    --shadow-hover:   0 20px 60px rgba(0,0,0,0.6), 0 0 40px var(--primary-glow);
    --shadow-btn:     0 8px 30px rgba(255,107,53,0.4);
    --shadow-glass:   0 4px 30px rgba(0,0,0,0.3);

    --radius:         14px;
    --radius-sm:      8px;
    --radius-pill:    999px;
    --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow:all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ambient background orbs (Hi-Def vector optimized - borderless) */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}
body::before {
    width: 1000px;
    height: 1000px;
    background: radial-gradient(
        circle at center,
        rgba(168, 85, 247, 0.22) 0%,
        rgba(168, 85, 247, 0.16) 15%,
        rgba(168, 85, 247, 0.09) 30%,
        rgba(168, 85, 247, 0.04) 45%,
        rgba(168, 85, 247, 0.01) 55%,
        rgba(168, 85, 247, 0) 65%,
        transparent 100%
    );
    top: -400px;
    right: -400px;
    animation: morphPurple 25s ease-in-out infinite alternate;
}
body::after {
    width: 900px;
    height: 900px;
    background: radial-gradient(
        circle at center,
        rgba(255, 107, 53, 0.22) 0%,
        rgba(255, 107, 53, 0.16) 15%,
        rgba(255, 107, 53, 0.09) 30%,
        rgba(255, 107, 53, 0.04) 45%,
        rgba(255, 107, 53, 0.01) 55%,
        rgba(255, 107, 53, 0) 65%,
        transparent 100%
    );
    bottom: -300px;
    left: -350px;
    animation: morphOrange 30s ease-in-out infinite alternate;
}

@keyframes morphPurple {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-60px, 40px, 0) scale(1.08) rotate(15deg);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes morphOrange {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(50px, -50px, 0) scale(0.92) rotate(-15deg);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; }

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

img { max-width: 100%; }

/* =========================================
   LAYOUT
   ========================================= */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* =========================================
   HEADER / NAV – Glassmorphism
   ========================================= */
header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(10, 10, 18, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
}

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

.logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--grad-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo span {
    font-weight: 500;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.01em;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.06);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 11px 26px;
    border-radius: var(--radius-sm);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.2s;
}
.btn:hover::after {
    background: rgba(255,255,255,0.08);
}

.btn-primary {
    background: var(--grad-btn);
    color: white !important;
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(255,107,53,0.55);
}

.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: var(--text-main) !important;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    padding: 140px 0 120px;
    text-align: center;
    background-image: var(--grad-hero), url('/static/img/hero.png');
    background-size: cover;
    background-position: center 40%;
    overflow: hidden;
    z-index: 1;
}

/* Animated shimmer overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(168,85,247,0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: heroGlow 6s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0%   { opacity: 0.4; transform: scale(1); }
    100% { opacity: 1;   transform: scale(1.05); }
}

.hero h1 {
    max-width: 820px;
    margin: 0 auto 20px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 40px rgba(0,0,0,0.5);
    animation: fadeUp 0.8s ease both;
}

.hero h1 span {
    background: var(--grad-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(240,239,255,0.75);
    max-width: 560px;
    margin: 0 auto 48px;
    animation: fadeUp 0.8s 0.1s ease both;
}

/* Location pill above title */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-pill);
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeUp 0.8s ease both;
}

.hero-eyebrow span {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 6px var(--primary); }
    50%       { box-shadow: 0 0 20px var(--primary); }
}

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

/* Stats row */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 64px;
    animation: fadeUp 0.8s 0.3s ease both;
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--grad-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

/* =========================================
   SEARCH BAR
   ========================================= */
.search-form {
    display: flex;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 5px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,107,53,0.1);
    animation: fadeUp 0.8s 0.2s ease both;
    transition: box-shadow 0.3s;
    overflow: visible;
    position: relative;
    z-index: 100;
}

.search-form:focus-within {
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 2px var(--primary-glow);
}

.search-input, .search-select {
    flex: 1;
    min-width: 0;           /* allows flex children to shrink below content size */
    border: none;
    background: transparent;
    padding: 12px 14px;
    font-size: 0.9rem;
    outline: none;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
}

.search-input::placeholder,
.search-select::placeholder {
    color: var(--text-subtle);
}

.search-select {
    border-left: 1px solid rgba(255,255,255,0.1);
}

.search-btn {
    flex-shrink: 0;         /* never compress the button */
    min-width: 90px;
    background: var(--grad-btn);
    color: white !important;
    border-radius: calc(var(--radius) - 3px);
    padding: 12px 22px;
    font-weight: 600;
    font-size: 0.88rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-shadow: 0 4px 16px rgba(255,107,53,0.35);
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.search-btn:hover {
    box-shadow: 0 8px 30px rgba(255,107,53,0.5);
    transform: translateY(-1px);
}

/* =========================================
   SECTION TITLES
   ========================================= */
.section-title {
    text-align: left;
    margin: 72px 0 32px;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.4em;
    background: var(--grad-btn);
    border-radius: 4px;
    flex-shrink: 0;
}

/* =========================================
   GRID
   ========================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* =========================================
   CARDS – Glassmorphism
   ========================================= */
.card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Top shimmer on card */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: opacity 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255,107,53,0.3);
}

.card:hover::before {
    background: linear-gradient(90deg, transparent, rgba(255,107,53,0.4), transparent);
}

/* NICHE CARD */
.niche-card {
    min-height: 200px;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.niche-card h3 {
    font-size: 1.1rem;
    color: white;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
}

.niche-count {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
    position: relative;
    z-index: 1;
    letter-spacing: 0.02em;
}

.niche-card:hover .niche-card-overlay {
    opacity: 1;
}

/* Gradient sweep on hover */
.niche-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255,107,53,0.25) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.niche-card:hover::after {
    opacity: 1;
}

/* PARTNER CARD */
.partner-card {
    gap: 0;
}

.partner-card .card-header {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    gap: 14px;
}

.partner-logo {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

/* Small initials fallback for directory cards */
.partner-initials-sm {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,107,53,0.2), rgba(168,85,247,0.2));
    border: 1px solid rgba(255,107,53,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    flex-shrink: 0;
    letter-spacing: -0.04em;
}


.partner-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
}

.rating {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.reviews {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 400;
}

.partner-meta {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.7;
}

.partner-meta strong {
    color: var(--text-main);
    font-weight: 600;
}

/* =========================================
   BADGES
   ========================================= */
.badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--grad-badge);
    border: 1px solid rgba(168,85,247,0.25);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    color: #D8B4FE;
    margin-right: 6px;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.badge:hover {
    border-color: rgba(168,85,247,0.5);
    background: rgba(168,85,247,0.25);
}

/* =========================================
   DIRECTORY HERO BANNER
   ========================================= */
.directory-hero {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.directory-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 80%, rgba(255,107,53,0.18), transparent 60%),
                radial-gradient(ellipse at 70% 20%, rgba(168,85,247,0.15), transparent 60%);
    pointer-events: none;
}

/* =========================================
   PARTNER PROFILE PAGE
   ========================================= */
.profile-header {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 44px;
    margin-top: 40px;
    display: flex;
    gap: 32px;
    align-items: center;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-btn);
}

.profile-img-wrap {
    flex-shrink: 0;
    position: relative;
}

/* Initials fallback avatar */
.profile-initials {
    width: 128px;
    height: 128px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255,107,53,0.25), rgba(168,85,247,0.25));
    border: 2px solid rgba(255,107,53,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.04em;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.profile-img {
    width: 128px;
    height: 128px;
    border-radius: var(--radius);
    object-fit: cover;
    /* Don't upscale small thumbnails beyond their natural size */
    max-width: 128px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    border: 2px solid rgba(255,107,53,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.05);
    flex-shrink: 0;
    background: var(--bg-surface);
}

.profile-info h1 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--grad-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-info .rating {
    font-size: 1.1rem;
    margin-bottom: 18px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 80px;
}

.details-section {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.details-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
    margin-bottom: 22px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.details-section p {
    color: var(--text-muted);
    font-size: 0.93rem;
    margin-bottom: 10px;
    line-height: 1.8;
}

.details-section p strong {
    color: var(--text-main);
    font-weight: 600;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.hours-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

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

.hours-table td:first-child {
    font-weight: 600;
    color: var(--text-main);
}

.hours-table td:last-child {
    text-align: right;
    font-weight: 500;
    color: var(--text-main);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 48px 0;
    color: var(--text-subtle);
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    font-size: 0.87rem;
    position: relative;
    z-index: 1;
}

footer::before {
    content: '';
    display: block;
    width: 200px;
    height: 1px;
    background: var(--grad-btn);
    margin: 0 auto 24px;
    opacity: 0.5;
}

/* =========================================
   RESULTS COUNT BAR
   ========================================= */
.results-bar {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-bar strong {
    color: var(--primary);
    font-weight: 700;
}

/* =========================================
   EMPTY STATE
   ========================================= */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 32px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* =========================================
   MAP EMBED
   ========================================= */
.map-wrapper {
    margin-top: 22px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

/* =========================================
   SCROLL REVEAL ANIMATION
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   SCROLLBAR STYLING
   ========================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb {
    background: rgba(255,107,53,0.4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255,107,53,0.7);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        border-radius: var(--radius);
    }
    .search-select {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .search-btn {
        border-radius: 0 0 var(--radius) var(--radius);
        padding: 16px;
        width: 100%;
    }
    .profile-header {
        flex-direction: column;
        padding: 28px;
    }
    .profile-img, .profile-initials {
        width: 110px;
        height: 110px;
        max-width: 110px;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        gap: 28px;
        flex-wrap: wrap;
    }
    .hero-stat strong { font-size: 1.5rem; }
    .section-title { margin: 48px 0 24px; }
}

@media (max-width: 480px) {
    .nav-links a:not(.btn) { display: none; }
    .grid { grid-template-columns: 1fr; }
}

/* =========================================
   PAGINATION – Sleek Glassmorphism
   ========================================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 50px 0 80px;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

.pagination-item:hover:not(.disabled):not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.pagination-item.active {
    background: var(--grad-btn);
    color: white;
    border: none;
    box-shadow: 0 0 15px var(--primary-glow);
}

.pagination-item.disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pagination-ellipsis {
    color: var(--text-subtle);
    padding: 0 8px;
    font-weight: 500;
}

/* =========================================
   AUTOCOMPLETE SEARCH SUGGESTIONS
   ========================================= */
.autocomplete-container {
    position: relative;
    flex: 1;
    display: flex;
}
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 8px;
}
.autocomplete-suggestion {
    padding: 10px 16px;
    cursor: pointer;
    color: var(--text-main);
    font-size: 0.9rem;
    transition: var(--transition);
    text-align: left;
}
.autocomplete-suggestion:hover,
.autocomplete-suggestion.active {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary);
}

/* =========================================
   BACKLINK BADGE WIDGET
   ========================================= */
.badge-widget-box {
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1px solid rgba(255, 107, 53, 0.15);
    border-radius: var(--radius);
    text-align: center;
}

.badge-widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.badge-widget-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.45;
}

.badge-preview-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.badge-code-textarea {
    width: 100%;
    height: 64px;
    background: #0d0d16;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: monospace;
    font-size: 0.75rem;
    padding: 8px;
    resize: none;
    outline: none;
    margin-bottom: 12px;
}

.badge-copy-btn {
    width: 100%;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.badge-copy-btn:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.badge-copy-btn.copied {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
    color: #4ade80;
}

