/* ============================================================
   Firma Rehberi — Modern Tasarım Sistemi
   ============================================================ */

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --surface: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow: 0 4px 16px rgba(15, 23, 42, .06);
    --shadow-md: 0 8px 30px rgba(15, 23, 42, .08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, .12);

    --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --transition: .25s cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.65;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 440px; }

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, .8);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: .625rem;
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--text);
    letter-spacing: -.02em;
}

.logo img { height: 38px; }

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 10px;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: -.03em;
}

.logo-text { color: var(--text); }

.main-nav {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.main-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: .9375rem;
    padding: .5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.main-nav a:not(.btn):hover {
    color: var(--text);
    background: var(--bg-alt);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .6875rem 1.375rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .9375rem;
    font-family: inherit;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, .35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, .4);
    color: #fff;
}

.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }

.btn-outline {
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff;
}

.btn-light {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    box-shadow: var(--shadow);
}

.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--primary-dark); }

.btn-sm { padding: .5rem 1rem; font-size: .8125rem; }
.btn-block { display: flex; width: 100%; }

.btn-search {
    width: 100%;
    height: 46px;
    padding: 0 1.25rem;
}

/* ── Hero ── */
.hero {
    position: relative;
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(79, 70, 229, .35) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(6, 182, 212, .2) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 60% 80%, rgba(139, 92, 246, .15) 0%, transparent 50%);
}

.hero-bg::after {
    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='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.hero-badge {
    display: inline-block;
    padding: .375rem 1rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 100px;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, #a5b4fc, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, .75);
    max-width: 520px;
    margin: 0 auto 2.5rem;
}

.hero-search {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    text-align: left;
    max-width: 960px;
    margin: 0 auto 2.5rem;
}

.search-form-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--text);
    font-weight: 700;
    font-size: .9375rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.search-form-header svg { color: var(--primary); }

.hero-search label { color: var(--text-secondary); }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.hero-stat span {
    font-size: .8125rem;
    color: rgba(255, 255, 255, .55);
    font-weight: 500;
}

/* ── Search Form ── */
.search-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: end;
}

.form-group { margin-bottom: 0; }
.form-group label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .5rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: .6875rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .9375rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    transition: all var(--transition);
    height: 46px;
}

textarea.form-control { height: auto; }

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .1);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* ── Sections ── */
.section { padding: 5rem 0; }
.section-alt { background: var(--surface); }

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--primary);
    margin-bottom: .75rem;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .5rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto;
}

.section-cta { text-align: center; margin-top: 2.5rem; }

.page-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 1.5rem;
}

/* ── Category Grid ── */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 1rem;
}

.category-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all var(--transition);
    color: var(--text);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--transition);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.category-card:hover::before { opacity: 1; }

.cat-icon-wrap {
    width: 52px;
    height: 52px;
    margin: 0 auto .875rem;
    background: linear-gradient(135deg, #eef2ff, #e0f2fe);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.category-card h3 {
    font-size: .875rem;
    font-weight: 700;
    margin-bottom: .25rem;
    letter-spacing: -.01em;
}

.cat-count {
    font-size: .75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Company Cards ── */
.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.company-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.company-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(79, 70, 229, .15);
}

.card-link { color: inherit; display: block; }

.card-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, var(--bg-alt), #e2e8f0);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.company-card:hover .card-image img { transform: scale(1.05); }

.featured-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: .6875rem;
    padding: .3rem .625rem;
    border-radius: 100px;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 2px 8px rgba(245, 158, 11, .4);
}

.card-body { padding: 1.25rem; }

.card-category {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: .375rem;
}

.cat-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.card-body h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: .5rem;
    letter-spacing: -.01em;
    line-height: 1.35;
}

.card-location, .card-phone {
    display: flex;
    align-items: center;
    gap: .375rem;
    font-size: .8125rem;
    color: var(--text-muted);
}

.card-phone {
    color: var(--primary);
    font-weight: 600;
    margin-top: .375rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .875rem 1.25rem;
    border-top: 1px solid var(--border-light);
    font-size: .8125rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg);
    transition: background var(--transition);
}

.company-card:hover .card-footer { background: #eef2ff; }

/* ── CTA Banner ── */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 50%, var(--accent) 100%);
    padding: 4rem 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    color: #fff;
}

.cta-inner h2 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .375rem;
}

.cta-inner p {
    opacity: .85;
    font-size: 1rem;
}

/* ── Company Detail ── */
.company-detail { background: var(--surface); }

.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; }

.detail-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.detail-logo {
    width: 88px;
    height: 88px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.detail-category {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--primary);
}

.detail-header h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: .25rem 0;
}

.detail-location { color: var(--text-muted); font-size: .9375rem; }
.rating { color: var(--warning); font-weight: 700; }

.action-buttons { display: flex; flex-wrap: wrap; gap: .625rem; margin-bottom: 2rem; }

.detail-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.detail-section h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -.01em;
}

.detail-info-grid {
    display: grid;
    gap: .75rem;
    font-size: .9375rem;
}

.detail-info-grid div {
    padding: .75rem 1rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .75rem;
}

.gallery-grid img {
    border-radius: var(--radius-sm);
    height: 120px;
    object-fit: cover;
    width: 100%;
    transition: transform var(--transition);
}

.gallery-grid img:hover { transform: scale(1.03); }

.map-container iframe {
    width: 100%;
    height: 320px;
    border: 0;
    border-radius: var(--radius-sm);
}

.detail-sidebar .sidebar-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.detail-sidebar .sidebar-box h3 {
    font-size: .9375rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.similar-item {
    display: block;
    padding: .75rem 0;
    border-bottom: 1px solid var(--border-light);
    color: inherit;
    transition: color var(--transition);
}

.similar-item:hover { color: var(--primary); }
.similar-item:last-child { border-bottom: none; }
.similar-item small { color: var(--text-muted); display: block; margin-top: .125rem; }

/* ── Reviews ── */
.review-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-light);
}

.review-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* ── Auth ── */
.auth-section {
    padding: 4rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.75rem;
    text-align: center;
    letter-spacing: -.02em;
}

.auth-links { text-align: center; margin-top: 1.25rem; font-size: .875rem; color: var(--text-muted); }

/* ── User Panel ── */
.user-panel {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 72px);
    background: var(--surface);
}

.user-sidebar {
    background: var(--bg);
    border-right: 1px solid var(--border);
    padding: 1.5rem;
}

.user-sidebar nav { display: flex; flex-direction: column; gap: .25rem; }

.user-sidebar a {
    padding: .75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: .9375rem;
    transition: all var(--transition);
}

.user-sidebar a:hover { background: var(--surface); color: var(--text); }

.user-sidebar a.active {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, .3);
}

.user-content { padding: 2rem 2.5rem; }

/* ── Stats ── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition);
}

.stat-card:hover { box-shadow: var(--shadow); }

.stat-number {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -.02em;
}

.stat-label { font-size: .8125rem; color: var(--text-muted); font-weight: 600; }

/* ── Tables ── */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
    font-size: .875rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.data-table th, .data-table td {
    padding: .875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    background: var(--bg);
    font-weight: 700;
    font-size: .75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table .actions { white-space: nowrap; }

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: .25rem .625rem;
    border-radius: 100px;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-secondary { background: var(--bg-alt); color: var(--text-secondary); }

/* ── Alerts ── */
.flash-messages { padding: 1rem 0 0; }

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: .5rem;
    font-size: .9375rem;
    font-weight: 500;
}

.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Pagination ── */
.pagination-nav { margin-top: 2.5rem; }

.pagination {
    display: flex;
    gap: .375rem;
    list-style: none;
    justify-content: center;
}

.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 .75rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: .875rem;
    transition: all var(--transition);
}

.pagination li a:hover { border-color: var(--primary); color: var(--primary); }

.pagination li.active a {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ── Tags ── */
.filter-tags, .tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }

.tag {
    display: inline-block;
    padding: .5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.result-count {
    color: var(--text-muted);
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
}

.empty-state h1 { font-size: 4rem; color: var(--border); font-weight: 800; margin-bottom: .5rem; }

.preview-img { max-width: 120px; margin-top: .75rem; border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* ── Footer ── */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 4rem 0 2rem;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: .625rem;
    font-weight: 800;
    font-size: 1.125rem;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-brand p { font-size: .9375rem; line-height: 1.7; max-width: 320px; }

.footer-grid h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: .875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: .5rem; }

.footer-grid a {
    color: #94a3b8;
    font-size: .9375rem;
    transition: color var(--transition);
}

.footer-grid a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    text-align: center;
    font-size: .8125rem;
}

/* ── Search Page ── */
.page-search { background: var(--surface); }

.page-header-box {
    text-align: center;
    margin-bottom: 2rem;
}

.search-page-form {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.search-page-form .search-grid {
    grid-template-columns: repeat(4, 1fr) auto;
}

.search-page-form .form-group label {
    color: var(--text-secondary);
    text-transform: none;
    font-size: .8125rem;
    letter-spacing: 0;
}

/* ── Ad Banner ── */
.ad-banner { margin: 1rem 0; text-align: center; }
.ad-banner img { max-width: 100%; border-radius: var(--radius); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .search-grid { grid-template-columns: 1fr 1fr; }
    .search-grid .form-action { grid-column: 1 / -1; }
    .detail-grid { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; text-align: center; }
    .hero-stats { gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, .97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        gap: .25rem;
    }

    .main-nav.open { display: flex; }
    .main-nav a { width: 100%; text-align: center; padding: .75rem; }
    .main-nav .btn { width: 100%; margin-top: .5rem; }

    .site-header .container { position: relative; }

    .search-grid { grid-template-columns: 1fr; }
    .hero { padding: 3.5rem 0 3rem; }
    .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
    .section { padding: 3.5rem 0; }
    .user-panel { grid-template-columns: 1fr; }
    .user-sidebar nav { flex-direction: row; flex-wrap: wrap; }
    .user-content { padding: 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .company-grid { grid-template-columns: 1fr; }
}
