:root {
    --bg: #f7f8fb;
    --card: #ffffff;
    --text: #101828;
    --muted: #667085;
    --border: #e6e8ef;
    --black: #050505;
    --blue: #2563eb;
    --green: #039855;
    --yellow: #fdb022;
    --shadow: 0 14px 35px rgba(16, 24, 40, .08);
    --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 16px clamp(18px, 5vw, 70px);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -.05em;
}
.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--black);
    font-size: 22px;
    line-height: 1;
}
.nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
}
.nav a:hover, .nav a.active { background: #111827; color: #fff; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.hero {
    padding: clamp(52px, 8vw, 95px) 0 36px;
    background:
      radial-gradient(circle at 18% 20%, rgba(37, 99, 235, .14), transparent 32%),
      radial-gradient(circle at 90% 0%, rgba(253, 176, 34, .20), transparent 34%),
      linear-gradient(180deg, #fff 0%, #f7f8fb 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 34px;
    align-items: center;
}
.badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: #344054;
    font-weight: 800;
    font-size: 13px;
}
h1 {
    font-size: clamp(42px, 7vw, 74px);
    line-height: .95;
    letter-spacing: -.065em;
    margin: 18px 0;
}
.hero p { font-size: 18px; color: var(--muted); line-height: 1.65; max-width: 670px; }
.search-box {
    display: flex;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 8px;
    max-width: 650px;
    box-shadow: var(--shadow);
    margin: 24px 0;
}
.search-box input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 14px 16px;
    font-size: 16px;
    min-width: 0;
}
.btn, .search-box button, .use-link, .copy-btn, .admin-btn {
    border: 0;
    background: var(--black);
    color: #fff;
    padding: 13px 18px;
    border-radius: 13px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn.secondary { background: #fff; color: var(--black); border: 1px solid var(--border); }
.hero-card {
    background: #111827;
    color: white;
    border-radius: 28px;
    padding: 26px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    min-height: 360px;
}
.hero-card::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(37,99,235,.9), rgba(37,99,235,.08));
    right: -80px;
    top: -80px;
    border-radius: 50%;
}
.random-card { position: relative; z-index: 2; }
.random-card h2 { margin: 0 0 12px; font-size: 29px; letter-spacing: -.03em; }
.random-card .code-card { color: var(--text); margin-top: 16px; }
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 28px;
}
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: 0 10px 25px rgba(16,24,40,.04); }
.stat strong { display: block; font-size: 27px; letter-spacing: -.04em; }
.stat span { color: var(--muted); font-weight: 700; font-size: 13px; }
.section { padding: 44px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.045em; }
.section-head p { color: var(--muted); margin: 8px 0 0; }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.category-card, .store-card, .code-card, .form-card, .seo-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 24px rgba(16,24,40,.04);
}
.category-card { padding: 22px; display: flex; gap: 14px; align-items: center; font-weight: 900; }
.category-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #f2f4f7; font-size: 22px; }
.store-card { padding: 18px; transition: .2s ease; }
.store-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.store-row { display: flex; gap: 13px; align-items: center; }
.store-mark { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #f2f4f7; font-weight: 900; color: #111827; overflow: hidden; flex: 0 0 auto; }
.store-mark img { width: 100%; height: 100%; object-fit: cover; }
.store-card h3, .store-name { margin: 0; font-size: 18px; font-weight: 900; }
.store-card p { margin: 12px 0 0; color: var(--muted); line-height: 1.55; }
.code-card { padding: 18px; }
.code-card-large { padding: 22px; }
.code-top { display: flex; gap: 13px; align-items: center; }
.code-top p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.code-desc { color: var(--muted); line-height: 1.55; }
.code-box { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; border: 1px dashed #98a2b3; border-radius: 14px; padding: 10px; background: #fcfcfd; gap: 12px; }
.code-box strong { font-size: 18px; letter-spacing: .05em; overflow-wrap: anywhere; }
.copy-btn { padding: 10px 14px; background: var(--blue); }
.use-link { margin-top: 12px; width: 100%; background: var(--green); }
.code-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); font-weight: 700; font-size: 12px; }
.vote-form { display: flex; gap: 8px; margin-top: 12px; }
.vote-form button { flex: 1; border: 1px solid var(--border); background: #fff; padding: 10px; border-radius: 12px; cursor: pointer; font-weight: 800; }
.form-card { padding: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-weight: 900; }
.field input, .field textarea, .field select {
    border: 1px solid var(--border);
    background: #fff;
    padding: 13px 14px;
    border-radius: 13px;
    font-size: 15px;
    outline: 0;
}
.field textarea { min-height: 120px; resize: vertical; }
.notice { padding: 14px 16px; border-radius: 14px; margin: 14px 0; font-weight: 800; }
.notice.success { background: #ecfdf3; color: #027a48; border: 1px solid #abefc6; }
.notice.error { background: #fff1f3; color: #c01048; border: 1px solid #fecdd6; }
.store-hero { padding: 42px 0; background: #fff; border-bottom: 1px solid var(--border); }
.breadcrumb { color: var(--muted); font-weight: 800; font-size: 14px; }
.store-title { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.store-title h1 { margin: 0; font-size: clamp(36px, 5vw, 64px); }
.seo-card { padding: 24px; line-height: 1.7; color: #344054; }
.site-footer { margin-top: 54px; padding: 34px clamp(18px, 5vw, 70px); background: #050505; color: white; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.site-footer p { color: #d0d5dd; margin: 8px 0 0; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; color: #d0d5dd; font-weight: 700; }
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar { background: #050505; color: #fff; padding: 24px; }
.admin-sidebar a { display: block; padding: 10px 0; color: #d0d5dd; font-weight: 800; }
.admin-main { padding: 28px; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table th { background: #f2f4f7; font-size: 13px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-actions button, .admin-actions a { border: 1px solid var(--border); background: #fff; padding: 7px 10px; border-radius: 10px; font-weight: 800; cursor: pointer; }
@media (max-width: 900px) {
    .hero-grid, .grid-3, .grid-4, .form-grid, .stats { grid-template-columns: 1fr; }
    .hero-card { min-height: auto; }
    .site-header { align-items: flex-start; flex-direction: column; }
    .nav { width: 100%; }
    .nav a { padding: 9px 10px; }
    .section-head { align-items: flex-start; flex-direction: column; }
    .admin-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .search-box { flex-direction: column; }
    .search-box button { width: 100%; }
    .store-title { align-items: flex-start; flex-direction: column; }
}
