/*
Theme Name: Key4d Theme
Theme URI: https://key4d.games
Description: Tema situs portal informasi Key4d — mengikuti struktur & konvensi markup tema WordPress (site-header, main-navigation, entry-content, widget, site-footer). Prerendered static HTML.
Author: Key4d
Version: 1.0.0
Text Domain: key4d
*/

:root {
  --k-bg: #0d0f14;
  --k-surface: #151823;
  --k-surface-2: #1c2030;
  --k-surface-3: #242940;
  --k-line: rgba(255, 255, 255, 0.09);
  --k-red: #e0293c;
  --k-red-dark: #b01c2e;
  --k-gold: #f2c14e;
  --k-gold-2: #e8a020;
  --k-green: #2fbf71;
  --k-blue: #4a8cff;
  --k-text: #f4f6fb;
  --k-muted: #a3adc2;
  --k-white: #ffffff;
  --k-radius: 14px;
  --k-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --k-font: "Poppins", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --k-body-font: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--k-body-font);
  background: var(--k-bg);
  color: var(--k-text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a { color: var(--k-blue); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--k-gold); }

ul, ol { list-style-position: inside; }

h1, h2, h3, h4, h5 { font-family: var(--k-font); line-height: 1.3; font-weight: 700; }

.k-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* =Topbar =*/
.topbar {
  background: linear-gradient(90deg, var(--k-red-dark), var(--k-red));
  font-size: 13px;
  text-align: center;
  padding: 6px 14px;
  color: var(--k-white);
  letter-spacing: 0.02em;
}
.topbar strong { color: var(--k-gold); }

/* =Header (site-header ala WordPress) =*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(13, 15, 20, 0.96);
  border-bottom: 1px solid var(--k-line);
  backdrop-filter: blur(8px);
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}
.site-branding { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-branding .logo-badge {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--k-gold), var(--k-gold-2));
  color: #241a02;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--k-font); font-weight: 800; font-size: 15px;
  box-shadow: 0 4px 14px rgba(242, 193, 78, 0.35);
}
.site-branding .site-title {
  font-family: var(--k-font);
  font-size: 22px;
  font-weight: 800;
  color: var(--k-white);
  letter-spacing: 0.02em;
}
.site-branding .site-title span { color: var(--k-gold); }
.site-branding .site-description { font-size: 11px; color: var(--k-muted); display: block; margin-top: -4px; }

/* Nav */
.main-navigation { margin-left: auto; }
.main-navigation ul { list-style: none; display: flex; gap: 4px; align-items: center; }
.main-navigation a {
  color: var(--k-muted);
  font-family: var(--k-font);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  display: block;
  white-space: nowrap;
}
.main-navigation a:hover,
.main-navigation .current-menu-item a { color: var(--k-white); background: var(--k-surface-2); }

.header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--k-surface-2); border: 1px solid var(--k-line);
  font-size: 15px; text-decoration: none; flex-shrink: 0;
  transition: border-color 0.2s, transform 0.15s;
}
.icon-btn:hover { border-color: var(--k-gold); transform: translateY(-1px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--k-font); font-weight: 700; font-size: 14px;
  padding: 10px 20px; border-radius: 10px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  line-height: 1.2; text-align: center;
}
.btn-gold {
  background: linear-gradient(180deg, #ffd873, var(--k-gold-2));
  color: #2b1e02;
  box-shadow: 0 5px 18px rgba(232, 160, 32, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); color: #2b1e02; box-shadow: 0 8px 22px rgba(232, 160, 32, 0.5); }
.btn-red {
  background: linear-gradient(180deg, #f04358, var(--k-red-dark));
  color: var(--k-white);
  box-shadow: 0 5px 18px rgba(224, 41, 60, 0.35);
}
.btn-red:hover { transform: translateY(-2px); color: var(--k-white); }
.btn-outline { background: transparent; border-color: var(--k-line); color: var(--k-text); }
.btn-outline:hover { border-color: var(--k-gold); color: var(--k-gold); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--k-line);
  border-radius: 8px; padding: 8px 11px;
  cursor: pointer; flex-direction: column; gap: 4px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--k-text); transition: 0.2s; }

/* =Hero =*/
.hero {
  position: relative;
  background:
    linear-gradient(rgba(13, 15, 20, 0.82), rgba(13, 15, 20, 0.94)),
    url("../img/hero-home.jpg") center / cover no-repeat;
  padding: 72px 0 64px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% 20%, rgba(242, 193, 78, 0.16), transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(242, 193, 78, 0.12);
  border: 1px solid rgba(242, 193, 78, 0.4);
  color: var(--k-gold);
  font-family: var(--k-font); font-size: 12.5px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { font-size: 42px; color: var(--k-white); margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--k-gold); }
.hero p { color: var(--k-muted); font-size: 17px; max-width: 620px; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { display: flex; gap: 10px; flex-wrap: wrap; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--k-surface);
  border: 1px solid var(--k-line);
  color: var(--k-muted);
  font-size: 12.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px;
}
.trust-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--k-green); }
.trust-chip.age { border-color: rgba(224, 41, 60, 0.55); color: #ff8d9b; }

/* =Page hero (inner pages) =*/
.page-hero {
  background:
    linear-gradient(rgba(13, 15, 20, 0.86), rgba(13, 15, 20, 0.97)),
    var(--k-hero-img, none) center 30% / cover no-repeat,
    linear-gradient(120deg, #171a26, #0d0f14);
  padding: 44px 0 38px;
  border-bottom: 1px solid var(--k-line);
}
.page-hero .kicker {
  color: var(--k-gold); font-family: var(--k-font);
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 8px;
}
.page-hero h1 { font-size: 32px; color: var(--k-white); margin-bottom: 10px; }
.page-hero .lead { color: var(--k-muted); max-width: 760px; font-size: 15.5px; }
.meta-line {
  display: flex; flex-wrap: wrap; gap: 16px;
  color: var(--k-muted); font-size: 13px; margin-top: 14px;
}
.meta-line time { color: var(--k-gold); }

/* =Breadcrumb =*/
.breadcrumbs { font-size: 13px; color: var(--k-muted); padding: 16px 0 4px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--k-muted); }
.breadcrumbs a { color: var(--k-muted); }
.breadcrumbs a:hover { color: var(--k-gold); }
.breadcrumbs .current { color: var(--k-text); }

/* =Sections =*/
.k-section { padding: 56px 0; }
.k-section.alt { background: var(--k-surface); border-top: 1px solid var(--k-line); border-bottom: 1px solid var(--k-line); }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker {
  color: var(--k-gold); font-family: var(--k-font);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 8px;
}
.section-head h2 { font-size: 28px; color: var(--k-white); margin-bottom: 10px; }
.section-head p { color: var(--k-muted); font-size: 15.5px; }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.k-card {
  background: var(--k-surface-2);
  border: 1px solid var(--k-line);
  border-radius: var(--k-radius);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.k-card:hover { transform: translateY(-4px); border-color: rgba(242, 193, 78, 0.45); }
.k-card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
  background: rgba(242, 193, 78, 0.12);
  border: 1px solid rgba(242, 193, 78, 0.3);
}
.k-card h3 { font-size: 17px; color: var(--k-white); margin-bottom: 8px; }
.k-card p { color: var(--k-muted); font-size: 14.5px; }

.step-num {
  font-family: var(--k-font); font-weight: 800; font-size: 30px;
  background: linear-gradient(180deg, var(--k-gold), var(--k-gold-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 6px;
}

/* Feature split */
.feature-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.feature-split .img-wrap { border-radius: var(--k-radius); overflow: hidden; border: 1px solid var(--k-line); box-shadow: var(--k-shadow); }
.feature-split h2 { font-size: 26px; color: var(--k-white); margin-bottom: 12px; }
.feature-split p { color: var(--k-muted); margin-bottom: 14px; font-size: 15px; }
.check-list { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--k-text); font-size: 15px; }
.check-list .tick {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(47, 191, 113, 0.15); color: var(--k-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; margin-top: 2px;
}

/* Testimonials */
.t-card {
  background: var(--k-surface-2);
  border: 1px solid var(--k-line);
  border-radius: var(--k-radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.t-card .stars { color: var(--k-gold); letter-spacing: 2px; font-size: 14px; }
.t-card blockquote { color: var(--k-text); font-size: 14.5px; font-style: italic; border: none; }
.t-card .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.t-card .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--k-font); font-weight: 700; font-size: 14px; color: #241a02;
  background: linear-gradient(135deg, var(--k-gold), var(--k-gold-2));
}
.t-card .who b { color: var(--k-white); font-size: 14px; display: block; }
.t-card .who small { color: var(--k-muted); font-size: 12px; }
.t-note { text-align: center; color: var(--k-muted); font-size: 12.5px; margin-top: 18px; }

/* Score bars */
.score-row { margin-bottom: 18px; }
.score-row .score-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 7px; }
.score-row .score-top b { color: var(--k-white); font-family: var(--k-font); }
.score-row .score-top span { color: var(--k-gold); font-family: var(--k-font); font-weight: 700; }
.score-bar { height: 10px; border-radius: 999px; background: var(--k-surface-3); overflow: hidden; }
.score-bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--k-green), var(--k-gold));
  border-radius: 999px;
}

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag-cloud a {
  background: var(--k-surface-2);
  border: 1px solid var(--k-line);
  color: var(--k-muted);
  font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px;
  transition: 0.18s;
}
.tag-cloud a:hover { border-color: var(--k-gold); color: var(--k-gold); transform: translateY(-2px); }
.tag-cloud a.hot { border-color: rgba(224, 41, 60, 0.5); color: #ff8d9b; }

/* Search */
.search-box { display: flex; gap: 10px; max-width: 640px; margin: 0 auto; }
.search-box input {
  flex: 1; min-width: 0;
  background: var(--k-surface-2);
  border: 1px solid var(--k-line);
  border-radius: 10px;
  color: var(--k-text);
  font-size: 15px; font-family: var(--k-body-font);
  padding: 13px 18px;
  outline: none;
}
.search-box input:focus { border-color: var(--k-gold); }
.search-box .btn { flex-shrink: 0; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--k-surface-2); border: 1px solid var(--k-line); border-radius: 12px; overflow: hidden; }
.faq-item .faq-q {
  width: 100%; text-align: left; cursor: pointer;
  background: none; border: none;
  color: var(--k-white); font-family: var(--k-font); font-weight: 600; font-size: 15px;
  padding: 17px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-item .faq-q .arrow { color: var(--k-gold); transition: transform 0.2s; flex-shrink: 0; font-size: 13px; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-item .faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item .faq-a .inner { padding: 0 20px 18px; color: var(--k-muted); font-size: 14.5px; }

/* =Article / entry-content =*/
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; padding: 36px 0 60px; }
.entry-content {
  background: var(--k-surface);
  border: 1px solid var(--k-line);
  border-radius: var(--k-radius);
  padding: 30px 32px;
  min-width: 0;
}
.entry-content .featured-img { border-radius: 10px; overflow: hidden; margin-bottom: 22px; }
.entry-content h2 { font-size: 23px; color: var(--k-white); margin: 28px 0 12px; padding-left: 14px; border-left: 4px solid var(--k-gold); }
.entry-content h3 { font-size: 18px; color: var(--k-gold); margin: 22px 0 10px; }
.entry-content p { color: #c9d1e3; margin-bottom: 14px; font-size: 15.5px; }
.entry-content ul, .entry-content ol { margin: 0 0 16px 4px; color: #c9d1e3; font-size: 15.5px; display: grid; gap: 8px; }
.entry-content ul li { padding-left: 6px; }
.entry-content blockquote {
  border-left: 4px solid var(--k-green);
  background: rgba(47, 191, 113, 0.07);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  color: var(--k-text);
  font-style: italic;
  margin: 18px 0;
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.entry-content th, .entry-content td { border: 1px solid var(--k-line); padding: 11px 13px; text-align: left; color: #c9d1e3; vertical-align: top; }
.entry-content th { background: var(--k-surface-3); color: var(--k-white); font-family: var(--k-font); font-size: 13.5px; }
.entry-content .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; }
.entry-content .table-scroll table { margin: 0; min-width: 560px; }
.article-footer-note {
  margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--k-line);
  color: var(--k-muted); font-size: 13px;
}
.warn-box {
  border: 1px solid rgba(224, 41, 60, 0.45);
  background: rgba(224, 41, 60, 0.07);
  border-radius: 10px;
  padding: 14px 18px;
  color: #f3c6cd;
  font-size: 14px;
  margin: 18px 0;
}
.safe-box {
  border: 1px solid rgba(47, 191, 113, 0.45);
  background: rgba(47, 191, 113, 0.07);
  border-radius: 10px;
  padding: 14px 18px;
  color: #bfe9d3;
  font-size: 14px;
  margin: 18px 0;
}

/* Sidebar / widgets (widget-area ala WordPress) */
.widget-area { display: grid; gap: 22px; align-content: start; }
.widget {
  background: var(--k-surface);
  border: 1px solid var(--k-line);
  border-radius: var(--k-radius);
  padding: 22px;
}
.widget .widget-title { font-size: 16px; color: var(--k-white); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--k-gold); display: inline-block; }
.widget ul { list-style: none; display: grid; gap: 10px; }
.widget ul a { color: var(--k-muted); font-size: 14px; }
.widget ul a:hover { color: var(--k-gold); }
.widget .k-btn { width: 100%; }

/* Category card list */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cat-card { background: var(--k-surface-2); border: 1px solid var(--k-line); border-radius: var(--k-radius); overflow: hidden; transition: transform 0.2s, border-color 0.2s; }
.cat-card:hover { transform: translateY(-4px); border-color: rgba(242, 193, 78, 0.5); }
.cat-card .thumb { height: 190px; overflow: hidden; }
.cat-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .body { padding: 20px 22px; }
.cat-card h3 { font-size: 17px; margin-bottom: 8px; }
.cat-card h3 a { color: var(--k-white); }
.cat-card h3 a:hover { color: var(--k-gold); }
.cat-card p { color: var(--k-muted); font-size: 14px; margin-bottom: 12px; }
.read-more { font-family: var(--k-font); font-size: 13.5px; font-weight: 700; color: var(--k-gold); }
.read-more::after { content: " →"; }

/* Promo cards */
.promo-card { display: grid; grid-template-columns: 220px 1fr; background: var(--k-surface-2); border: 1px solid var(--k-line); border-radius: var(--k-radius); overflow: hidden; transition: border-color 0.2s, transform 0.2s; }
.promo-card:hover { border-color: rgba(242, 193, 78, 0.5); transform: translateY(-3px); }
.promo-card .thumb { position: relative; min-height: 170px; }
.promo-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.promo-card .badge {
  position: absolute; top: 12px; left: 12px;
  background: linear-gradient(180deg, #f04358, var(--k-red-dark));
  color: var(--k-white); font-family: var(--k-font); font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; letter-spacing: 0.04em;
}
.promo-card .body { padding: 20px 22px; }
.promo-card h3 { font-size: 17px; margin-bottom: 6px; }
.promo-card h3 a { color: var(--k-white); }
.promo-card h3 a:hover { color: var(--k-gold); }
.promo-card p { color: var(--k-muted); font-size: 14px; margin-bottom: 10px; }
.promo-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.promo-meta span {
  font-size: 12px; font-weight: 600; color: var(--k-muted);
  background: var(--k-surface); border: 1px solid var(--k-line);
  padding: 4px 10px; border-radius: 999px;
}

/* CTA banner */
.cta-banner {
  background:
    linear-gradient(100deg, rgba(176, 28, 46, 0.92), rgba(224, 41, 60, 0.78)),
    url("../img/promo-main.jpg") center / cover no-repeat;
  border-radius: var(--k-radius);
  padding: 38px 34px;
  text-align: center;
}
.cta-banner h2 { font-size: 26px; color: var(--k-white); margin-bottom: 10px; }
.cta-banner p { color: rgba(255, 255, 255, 0.88); max-width: 560px; margin: 0 auto 22px; font-size: 15px; }
.cta-banner .btn-gold { margin: 0 auto; }

/* Forms */
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; padding: 44px 0 64px; align-items: start; }
.auth-card {
  background: var(--k-surface);
  border: 1px solid var(--k-line);
  border-radius: var(--k-radius);
  padding: 34px;
}
.auth-card h1 { font-size: 26px; color: var(--k-white); margin-bottom: 6px; }
.auth-card .sub { color: var(--k-muted); font-size: 14.5px; margin-bottom: 24px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-family: var(--k-font); font-size: 13.5px; font-weight: 600; color: var(--k-text); margin-bottom: 7px; }
.form-row label .req { color: var(--k-red); }
.form-row input[type="text"], .form-row input[type="email"], .form-row input[type="password"], .form-row input[type="tel"] {
  width: 100%;
  background: var(--k-surface-2);
  border: 1px solid var(--k-line);
  border-radius: 10px;
  color: var(--k-text);
  font-size: 15px; font-family: var(--k-body-font);
  padding: 12px 15px; outline: none; transition: border-color 0.15s;
}
.form-row input:focus { border-color: var(--k-gold); }
.form-row .hint { color: var(--k-muted); font-size: 12.5px; margin-top: 6px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--k-muted); margin-bottom: 18px; }
.form-check input { margin-top: 3px; accent-color: var(--k-gold); }
.form-check a { color: var(--k-blue); }
.auth-card .btn { width: 100%; }
.auth-alt { text-align: center; margin-top: 18px; color: var(--k-muted); font-size: 14px; }
.auth-alt a { color: var(--k-gold); font-weight: 600; }
.auth-side .k-card { margin-bottom: 20px; }
.form-msg { display: none; margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.form-msg.err { display: block; background: rgba(224, 41, 60, 0.12); border: 1px solid rgba(224, 41, 60, 0.45); color: #ff9aa6; }

/* Search results */
.result-list { display: grid; gap: 16px; }
.result-item { background: var(--k-surface-2); border: 1px solid var(--k-line); border-radius: 12px; padding: 20px 22px; }
.result-item h3 { font-size: 16px; margin-bottom: 6px; }
.result-item h3 a { color: var(--k-white); }
.result-item h3 a:hover { color: var(--k-gold); }
.result-item .url { color: var(--k-green); font-size: 12.5px; font-family: monospace; margin-bottom: 6px; word-break: break-all; }
.result-item p { color: var(--k-muted); font-size: 14px; }
.no-result { text-align: center; color: var(--k-muted); padding: 40px 0; }

/* =Footer (site-footer ala WordPress) =*/
.site-footer { background: #090a0e; border-top: 1px solid var(--k-line); margin-top: 0; }
.footer-widgets { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 34px; padding: 48px 0 34px; }
.footer-widgets .widget { background: none; border: none; padding: 0; }
.footer-brand .site-title { font-family: var(--k-font); font-size: 20px; color: var(--k-white); margin-bottom: 10px; }
.footer-brand .site-title span { color: var(--k-gold); }
.footer-brand p { color: var(--k-muted); font-size: 13.5px; margin-bottom: 14px; }
.footer-widgets .widget-title { font-size: 14px; color: var(--k-gold); font-family: var(--k-font); margin-bottom: 16px; letter-spacing: 0.05em; text-transform: uppercase; border: none; padding: 0; display: block; }
.footer-widgets ul { gap: 9px; }
.footer-widgets ul a { font-size: 13.5px; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.footer-badges span {
  font-size: 11.5px; font-weight: 700; font-family: var(--k-font);
  border: 1px solid var(--k-line); border-radius: 8px;
  padding: 5px 10px; color: var(--k-muted);
}
.footer-badges .b18 { border-color: rgba(224, 41, 60, 0.6); color: #ff8d9b; }
.footer-legal { border-top: 1px solid var(--k-line); padding: 20px 0 24px; text-align: center; }
.footer-legal p { color: var(--k-muted); font-size: 12.5px; max-width: 900px; margin: 0 auto 8px; }
.footer-legal .copy { color: #6f7890; font-size: 12px; }
.footer-legal .rg-line { color: var(--k-gold); font-size: 13px; font-weight: 600; }

/* =Floating slot CTA =*/
.float-cta {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 9900;
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #2b1607, #171009);
  border: 2px solid var(--k-gold);
  border-radius: 16px;
  padding: 8px 16px 8px 10px;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.6), 0 0 22px rgba(242, 193, 78, 0.3);
  text-decoration: none;
  overflow: hidden;
  animation: cta-pulse 2.4s ease-in-out infinite;
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 6px 26px rgba(0, 0, 0, 0.6), 0 0 14px rgba(242, 193, 78, 0.25); }
  50% { box-shadow: 0 6px 26px rgba(0, 0, 0, 0.6), 0 0 30px rgba(242, 193, 78, 0.55); }
}
.float-cta .reels { display: flex; gap: 4px; background: #0c0906; border-radius: 10px; padding: 5px 7px; border: 1px solid #3a2c12; }
.float-cta .reel {
  width: 22px; height: 26px; overflow: hidden; position: relative;
  border-radius: 5px; background: #17110a;
}
.float-cta .reel .strip {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  animation: reel-spin 1.2s linear infinite;
  font-size: 15px; line-height: 26px;
}
.float-cta .reel:nth-child(2) .strip { animation-duration: 1.5s; }
.float-cta .reel:nth-child(3) .strip { animation-duration: 0.9s; }
@keyframes reel-spin {
  0% { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-50%) translateY(-52px); }
}
.float-cta .cta-text { display: flex; flex-direction: column; line-height: 1.15; }
.float-cta .cta-text b {
  font-family: var(--k-font); font-weight: 800; font-size: 15px;
  background: linear-gradient(180deg, #ffe29a, #f2c14e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: 0.04em;
}
.float-cta .cta-text small { color: #d9c08a; font-size: 10px; font-weight: 700; letter-spacing: 0.18em; }
.float-cta .coin {
  position: absolute; font-size: 13px; opacity: 0;
  animation: coin-up 2.2s ease-in infinite;
  pointer-events: none;
}
.float-cta .coin.c1 { left: 16%; animation-delay: 0s; }
.float-cta .coin.c2 { left: 48%; animation-delay: 0.7s; }
.float-cta .coin.c3 { left: 78%; animation-delay: 1.4s; }
@keyframes coin-up {
  0% { bottom: 6px; opacity: 0; transform: translateY(0) rotate(0deg); }
  15% { opacity: 1; }
  80% { opacity: 0.9; }
  100% { bottom: 64px; opacity: 0; transform: translateY(-10px) rotate(180deg); }
}

/* =Responsive =*/
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; }
  .widget-area { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .main-navigation a { padding: 8px 9px; font-size: 13px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-navigation {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--k-bg);
    border-bottom: 1px solid var(--k-line);
    padding: 12px 20px 18px;
  }
  .main-navigation.open { display: block; }
  .main-navigation ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-navigation a { padding: 12px 10px; font-size: 15px; }
  .header-actions .btn-outline { display: none; }
  .hero h1 { font-size: 32px; }
  .hero { padding: 52px 0 48px; }
  .feature-split { grid-template-columns: 1fr; gap: 26px; }
  .auth-layout { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .promo-card { grid-template-columns: 1fr; }
  .promo-card .thumb { min-height: 170px; }
}
@media (max-width: 560px) {
  .k-container { padding: 0 16px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .page-hero h1 { font-size: 24px; }
  .section-head h2 { font-size: 22px; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .widget-area { grid-template-columns: 1fr; }
  .entry-content { padding: 22px 18px; }
  .entry-content h2 { font-size: 20px; }
  .footer-widgets { grid-template-columns: 1fr; gap: 26px; }
  .site-branding .site-description { display: none; }
  .header-actions .btn { padding: 9px 14px; font-size: 12.5px; }
  .btn-lg { padding: 12px 22px; font-size: 15px; width: 100%; }
  .hero-cta { gap: 10px; }
  .float-cta { padding: 7px 12px 7px 8px; gap: 9px; border-radius: 14px; }
  .float-cta .cta-text b { font-size: 13.5px; }
  .float-cta .cta-text small { font-size: 9px; letter-spacing: 0.12em; }
  .float-cta .reel { width: 18px; height: 22px; }
  .float-cta .reel .strip { font-size: 12px; line-height: 22px; }
  .search-box { flex-direction: column; }
  .cta-banner { padding: 28px 20px; }
  .cta-banner h2 { font-size: 21px; }
}

/* Utility */
.text-center { text-align: center; }
.mt-3 { margin-top: 24px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
}
