:root {
    --bg-dark: #08090e;
    --card-bg: rgba(18, 22, 34, 0.75);
    --card-border: rgba(255, 255, 255, 0.1);
    --primary: #00f2fe;
    --accent: #fe0979;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Ambient glow effects */
.ambient-glow {
    position: fixed;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    top: -100px;
    left: 10%;
    background: radial-gradient(circle, #6366f1, #3b82f6);
}

.glow-2 {
    bottom: -100px;
    right: 15%;
    background: radial-gradient(circle, #ec4899, #f43f5e);
}

.app-layout {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--card-border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
}

.site-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: .2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #fff;
    border-color: rgba(0, 242, 254, .28);
    background: rgba(0, 242, 254, .09);
}

@media (max-width: 760px) {
    .navbar { justify-content: center; }
    .brand { width: 100%; justify-content: center; }
    .site-nav { order: 3; width: 100%; flex-wrap: wrap; }
    .status-pill { position: absolute; top: 26px; right: 20px; }
}

@media (max-width: 520px) {
    .brand-sub { display: none; }
    .status-pill { position: static; }
    .site-nav a { font-size: 12px; padding: 8px 9px; }
}

.brand-icon {
    font-size: 28px;
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 40%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin: 50px 0 32px;
}

.hero-section h2 {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.hero-section p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search Form */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    border-radius: 50px;
    padding: 8px 10px 8px 24px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
    max-width: 650px;
    margin: 0 auto;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.35);
    transform: translateY(-2px);
}

.search-at {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-right: 4px;
    user-select: none;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

.search-btn {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #0b1120;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 18px rgba(0, 242, 254, 0.45);
}

.search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.loader {
    width: 16px;
    height: 16px;
    border: 2px solid #0b1120;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 0.8s linear infinite;
}

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

.hidden {
    display: none !important;
}

/* Suggestions / Live Pool */
.suggestions-wrapper {
    max-width: 650px;
    margin: 20px auto 0;
    text-align: center;
}

.suggestions-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 8px;
}

.suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.chip:hover {
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.chip-skeleton {
    font-size: 12px;
    color: var(--text-muted);
}

/* Result Card */
.result-container {
    max-width: 680px;
    margin: 40px auto 0;
    animation: slideUp 0.35s ease;
}

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

.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1.5px solid var(--card-border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.card.status-bagli {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.2);
}

.card.status-bagimsiz {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.2);
}

.card.status-premium {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.2);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.creator-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.35);
}

.creator-names h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
}

.creator-handle {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.creator-handle:hover {
    text-decoration: underline;
}

/* Agency Status Badge */
.agency-badge {
    padding: 8px 16px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.badge-bagli {
    background: rgba(239, 68, 68, 0.16);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-bagimsiz {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-premium {
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-other {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--card-border);
}

.stat-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 12px 14px;
    border-radius: 14px;
}

.stat-box .label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: block;
}

.stat-box .value {
    font-size: 16px;
    font-weight: 800;
    font-family: var(--font-heading);
}

.badge-league {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #0b0f19;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 900;
    font-size: 13px;
}

/* Notice / Advice Box */
.advice-box {
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    display: flex;
    gap: 10px;
}

.advice-bagli {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.advice-bagimsiz {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #86efac;
}

/* History */
.history-wrapper {
    max-width: 680px;
    margin: 40px auto 0;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 12px;
}

.clear-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
}

.clear-btn:hover {
    color: #fff;
}

.history-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Footer */
.footer {
    margin-top: auto;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    padding-top: 40px;
}
