/*
Theme Name: Nowe Kasyno Bonus
Theme URI: https://nowekasynobonus.local/
Author: Redakcja
Description: Minimalna, jednostronicowa (landing page) tema WordPress prezentująca ranking nowych kasyn z bonusem bez depozytu.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nowekasynobonus
*/

:root {
  --bg: #0e1120;
  --bg-alt: #171b30;
  --card: #1c2140;
  --card-border: #2c3260;
  --gold: #eab308;
  --gold-light: #fbd34d;
  --text: #e9ebf5;
  --text-muted: #a3a9c9;
  --green: #35c66b;
  --red: #ef4444;
  --radius: 14px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  padding-bottom: 112px;
}

@media (max-width: 560px) {
  body {
    padding-bottom: 92px;
  }
}

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

a {
  color: var(--gold-light);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Compact site header (logo + title) ---------- */

.site-topbar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--card-border);
  padding: 8px 0;
}

.site-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.site-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.site-topbar-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.site-topbar-logo img {
  height: 32px;
  width: auto;
  max-height: 32px;
}

.site-topbar-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 560px) {
  .site-topbar {
    padding: 6px 0;
  }
  .site-topbar-logo img {
    height: 26px;
    max-height: 26px;
  }
  .site-topbar-title {
    font-size: 0.85rem;
  }
}

/* ---------- Header / Hero ---------- */

.site-hero {
  background: radial-gradient(ellipse at top, #232a52 0%, var(--bg) 70%);
  padding: 22px 0;
  border-bottom: 1px solid var(--card-border);
}

.site-hero h1 {
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  margin: 0;
  color: #fff;
}

.site-breadcrumb {
  margin-bottom: 10px;
}

.site-breadcrumb #breadcrumbs {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-breadcrumb #breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-breadcrumb #breadcrumbs a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.badge-18 {
  display: inline-block;
  flex-shrink: 0;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

/* ---------- Article content (Classic Editor) ---------- */

.entry-content {
  padding: 8px 0 36px;
}

.entry-content > p {
  color: var(--text-muted);
}

.entry-content > h2 {
  margin-top: 44px;
  margin-bottom: 22px;
  padding-top: 36px;
  border-top: 1px solid var(--card-border);
}

@media (max-width: 560px) {
  .entry-content > h2 {
    margin-bottom: 40px;
  }
}

.entry-content > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: #fff;
  scroll-margin-top: 16px;
}

h3 {
  color: var(--gold-light);
  font-size: 1.15rem;
}

/* Generic dark-theme list styling for plain ul/ol typed directly in
   Classic Editor. Lists that already have their own custom marker/layout
   (.styled-list, .steps-list, .zalety-list) are excluded so this doesn't
   double up with their existing bullets/counters/grid layout. */
.entry-content ul:not(.styled-list):not(.zalety-list),
.entry-content ol:not(.steps-list) {
  color: var(--text-muted);
  margin: 0 0 20px;
}

.entry-content ul:not(.styled-list):not(.zalety-list) li,
.entry-content ol:not(.steps-list) li {
  margin-bottom: 8px;
}

.entry-content ul:not(.styled-list):not(.zalety-list) {
  list-style: none;
  padding-left: 4px;
}

.entry-content ul:not(.styled-list):not(.zalety-list) > li {
  position: relative;
  padding-left: 22px;
}

.entry-content ul:not(.styled-list):not(.zalety-list) > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.entry-content ol:not(.steps-list) {
  list-style: none;
  padding-left: 4px;
  counter-reset: nkb-ol;
}

.entry-content ol:not(.steps-list) > li {
  counter-increment: nkb-ol;
  position: relative;
  padding-left: 28px;
}

.entry-content ol:not(.steps-list) > li::before {
  content: counter(nkb-ol) ".";
  position: absolute;
  left: 0;
  color: var(--gold-light);
  font-weight: 700;
}

.entry-content blockquote {
  margin: 24px 0;
  padding: 4px 20px;
  border-left: 3px solid var(--gold);
  color: var(--text-muted);
  font-style: italic;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.note-box {
  background: var(--bg-alt);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Author box ([nkb_author_box], E-E-A-T) ---------- */

.author-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
}

.author-box-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.author-box-body {
  min-width: 0;
}

.author-box-name {
  margin: 0 0 4px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.author-box-bio {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .author-box {
    padding: 14px 16px;
    gap: 12px;
  }
  .author-box-avatar {
    width: 48px;
    height: 48px;
  }
}

/* ---------- Mobile-first TOP PICK teaser ([nkb_top_preview]) ---------- */

.top-preview-card {
  position: relative;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.14), var(--card) 60%);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 18px 18px;
  margin: 18px 0 8px;
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.25), 0 12px 28px rgba(234, 179, 8, 0.18);
}

@media (min-width: 641px) {
  .top-preview-card {
    padding: 24px 30px;
  }
}

.top-preview-badge {
  position: absolute;
  top: -14px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1400;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.3px;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.45);
}

.top-preview-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

@media (min-width: 641px) {
  .top-preview-main {
    flex-wrap: nowrap;
    gap: 22px;
  }
}

.top-preview-logo {
  flex-shrink: 0;
  display: block;
}

.top-preview-logo img {
  width: 68px;
  height: 68px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.top-preview-body {
  min-width: 0;
  flex: 1 1 auto;
}

.top-preview-name {
  margin: 0 0 6px;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}

.top-preview-zalety {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.top-preview-zalety li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.top-preview-zalety .check {
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}

.top-preview-cta {
  display: block;
  width: 100%;
  flex: 1 1 100%;
  text-align: center;
  margin-top: 4px;
}

@media (min-width: 641px) {
  .top-preview-cta {
    width: auto;
    flex: 0 0 auto;
    margin-top: 0;
  }
}

/* ---------- Easy Table of Contents (dark theme override) ---------- */

div#ez-toc-container {
  background: var(--card) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: var(--radius) !important;
  padding: 20px 24px !important;
  margin: 28px 0 !important;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

div#ez-toc-container .ez-toc-title {
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 1.2rem !important;
  letter-spacing: 0.2px;
  margin-bottom: 6px !important;
}

div#ez-toc-container .ez-toc-toggle,
div#ez-toc-container a.ez-toc-toggle {
  color: var(--text-muted) !important;
}

div#ez-toc-container nav {
  background: transparent !important;
}

div#ez-toc-container ul.ez-toc-list {
  columns: 2;
  column-gap: 32px;
}

@media (max-width: 640px) {
  div#ez-toc-container ul.ez-toc-list {
    columns: 1;
  }
}

div#ez-toc-container ul.ez-toc-list li {
  break-inside: avoid;
  list-style: none !important;
}

/* The generic dark-theme bullet-dot rule for plain <ul> in .entry-content
   (further down this file) also matches the ToC's own <ul> since the
   plugin injects it inside .entry-content — cancel that dot here so only
   the number badge (a::before below) shows, not both. */
div#ez-toc-container ul.ez-toc-list > li::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

div#ez-toc-container ul.ez-toc-list a,
div#ez-toc-container ul.ez-toc-list a:visited {
  color: var(--gold-light) !important;
  text-decoration: none !important;
}

div#ez-toc-container ul.ez-toc-list a::before {
  content: counter(item, decimal) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  float: left;
  width: 22px;
  height: 22px;
  margin-right: 8px !important;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 0.7rem !important;
  line-height: 1;
}

div#ez-toc-container ul.ez-toc-list a:hover {
  text-decoration: underline !important;
}

/* ---------- Ranking cards ([nkb_ranking]) ---------- */

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 18px 0 26px;
}

.ranking-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-card-badge {
  position: absolute;
  top: -20px;
  left: 20px;
  z-index: 1;
}

.badge-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1400;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  padding: 8px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.45);
}

.badge-num {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  color: var(--gold-light);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 8px 18px;
  border-radius: 999px;
}

.ranking-card-main {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
}

.ranking-card-logo {
  flex-shrink: 0;
  display: block;
}

.ranking-card-logo img {
  width: 96px;
  height: 96px;
  max-width: 24vw;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.2s ease;
}

.ranking-card-logo:hover img {
  transform: scale(1.03);
}

.ranking-card-body {
  flex-grow: 1;
  min-width: 0;
}

.ranking-card-headline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 8px;
}

.ranking-card-name {
  margin: 0;
}

.star-rating {
  display: inline-flex;
  gap: 1px;
}

.star {
  font-size: 0.95rem;
  line-height: 1;
}

.star-full {
  color: var(--gold);
}

.star-empty {
  color: var(--card-border);
}

.ranking-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ranking-card-cta {
  flex-shrink: 0;
}

.stat-pill {
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.stat-pill strong {
  color: var(--text);
}

/* Zalety + Podstawowe cechy */

.ranking-card-zalety,
.ranking-card-cechy {
  border-top: 1px solid var(--card-border);
  padding-top: 14px;
}

.ranking-card-zalety h4,
.ranking-card-cechy h4 {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.ranking-card-zalety ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 16px;
}

.ranking-card-zalety li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.3;
}

.ranking-card-zalety .check {
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .ranking-card-zalety ul {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Own interactive per-casino vote widget — the single rating element in
   the card (replaces what used to be a static Ocena readout plus a
   separate plugin-driven voting block). */

.vote-widget {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.vote-stars {
  display: inline-flex;
  gap: 2px;
}

.vote-star {
  background: transparent;
  border: none;
  padding: 5px;
  margin: -5px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--card-border);
  transition: transform 0.15s ease, color 0.15s ease;
}

.vote-star.is-filled {
  color: var(--gold);
}

.vote-star:hover {
  transform: scale(1.25);
  color: var(--gold-light);
}

.vote-star:active {
  transform: scale(0.92);
}

.vote-widget.has-voted .vote-star {
  cursor: default;
}

.vote-widget.has-voted .vote-star:hover {
  transform: none;
}

.vote-summary {
  display: inline-flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.vote-message {
  flex: 0 0 100%;
  font-size: 0.78rem;
  color: var(--gold);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.25s ease, max-height 0.25s ease;
}

.vote-message.is-visible {
  max-height: 2em;
  opacity: 1;
}

.cechy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 14px;
}

.cechy-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 8px 12px;
}

.cechy-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cechy-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 900px) {
  .cechy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Top-3 highlighting */

.ranking-card.rank-1 {
  padding: 32px 30px;
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.14), var(--card) 60%);
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.25), 0 14px 34px rgba(234, 179, 8, 0.2);
}

.ranking-card.rank-1 .ranking-card-logo img {
  width: 116px;
  height: 116px;
}

.ranking-card.rank-1 .ranking-card-name {
  font-size: 1.35rem;
}

.ranking-card.rank-2 {
  border: 1.5px solid rgba(234, 179, 8, 0.55);
}

.ranking-card.rank-3 {
  border: 1.5px solid rgba(234, 179, 8, 0.3);
}

@media (max-width: 720px) {
  .ranking-card-main {
    flex-wrap: wrap;
  }
  .ranking-card-logo img,
  .ranking-card.rank-1 .ranking-card-logo img {
    width: 76px;
    height: 76px;
    max-width: 26vw;
  }
  .ranking-card-cta {
    width: 100%;
    text-align: center;
  }
  .cechy-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Casino review blocks ([nkb_casino]) ---------- */

.casino-review {
  display: flex;
  align-items: center;
  gap: 30px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 20px;
}

.casino-review.is-reverse {
  flex-direction: row-reverse;
}

.casino-review-media {
  flex-shrink: 0;
  display: block;
}

.casino-review-media img {
  width: 130px;
  height: 130px;
  max-width: 28vw;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.2s ease;
}

.casino-review-media:hover img {
  transform: scale(1.03);
}

.casino-review-text {
  flex: 1;
  min-width: 0;
}

.casino-review-text h3 {
  margin-top: 0;
}

.casino-review-text p {
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .casino-review,
  .casino-review.is-reverse {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 24px;
  }
  .casino-review-media img {
    width: 110px;
    height: 110px;
    max-width: 40vw;
    margin: 0 auto;
  }
}

/* ---------- Buttons / CTA (hover everywhere) ---------- */

.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1400;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-size: 0.92rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-cta:hover {
  transform: scale(1.045);
  box-shadow: 0 8px 20px rgba(234, 179, 8, 0.4);
  filter: brightness(1.08);
}

.btn-cta:active {
  transform: scale(0.99);
}

.btn-cta.small {
  padding: 7px 14px;
  font-size: 0.85rem;
}

/* ---------- Generic lists ---------- */

.styled-list {
  padding-left: 20px;
}

.styled-list li {
  margin-bottom: 10px;
  color: var(--text-muted);
}

.styled-list li strong {
  color: var(--text);
}

.steps-list {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps-list li {
  position: relative;
  padding-left: 44px;
  margin-bottom: 18px;
  color: var(--text-muted);
}

.steps-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1a1a;
  font-weight: 800;
  text-align: center;
  line-height: 30px;
}

.steps-list li strong {
  color: var(--text);
  display: block;
  margin-bottom: 3px;
}

/* ---------- Pros / cons ---------- */

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 640px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }
}

.pros,
.cons {
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid var(--card-border);
  transition: background-color 0.2s ease;
}

.pros {
  background: rgba(53, 198, 107, 0.08);
}

.pros:hover {
  background-color: rgba(53, 198, 107, 0.16);
}

.cons {
  background: rgba(239, 68, 68, 0.08);
}

.cons:hover {
  background-color: rgba(239, 68, 68, 0.15);
}

.pros h3 {
  color: var(--green);
}

.cons h3 {
  color: #f28b8b;
}

/* ---------- FAQ ---------- */

.entry-content h3 {
  margin-top: 0;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
  padding: 16px 20px;
  color: #fff;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.faq-question:hover,
.faq-question:focus-visible {
  background-color: var(--bg-alt);
  color: var(--gold-light);
}

.faq-icon {
  flex-shrink: 0;
  font-size: 1.3rem;
  color: var(--gold);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item.is-open .faq-icon {
  transform: rotate(135deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-inner p {
  color: var(--text-muted);
  margin: 0;
  padding: 0 20px 18px;
}

/* ---------- Disclaimer ---------- */

.disclaimer {
  background: var(--bg-alt);
  border-top: 1px solid var(--card-border);
  padding: 28px 0;
}

.disclaimer .container {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.disclaimer strong {
  color: var(--gold-light);
}

.disclaimer p:last-child {
  margin-bottom: 0;
}

/* ---------- Apply-to-be-ranked: compact banner + modal (Contact Form 7) ---------- */

.apply-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.22), var(--card));
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 26px;
  margin: 34px 0;
  box-shadow: 0 10px 30px rgba(234, 179, 8, 0.16);
}

.apply-banner-text {
  margin: 0;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

@media (max-width: 560px) {
  .apply-banner {
    padding: 16px 18px;
  }
  .apply-banner-text {
    font-size: 0.98rem;
  }
}

.apply-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6, 8, 18, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.apply-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.apply-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(234, 179, 8, 0.14), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(234, 179, 8, 0.06), transparent 50%),
    var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s ease;
}

.apply-modal-overlay.is-open .apply-modal {
  transform: scale(1) translateY(0);
}

.apply-modal::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.16), transparent 70%);
  pointer-events: none;
}

.apply-modal .wpcf7-form,
.apply-modal .apply-form-title,
.apply-modal-form > p {
  position: relative;
  z-index: 1;
}

.apply-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.apply-modal-close:hover {
  color: #fff;
  background: var(--card-border);
}

.apply-modal-success {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px 0 4px;
}

.apply-success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(53, 198, 107, 0.16);
  border: 2px solid var(--green);
  color: var(--green);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apply-success-title {
  margin: 0 0 6px;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
}

.apply-success-text {
  margin: 0 0 22px;
  color: var(--text-muted);
}

.apply-form-title {
  margin: 0 0 6px;
  padding-right: 40px;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-weight: 800;
  color: #fff;
}

.apply-modal-form > p:not(.apply-form-title) {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.apply-modal .wpcf7-form {
  max-width: 640px;
}

.apply-modal .wpcf7-form p {
  margin: 0 0 8px;
}

.apply-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
  margin: 0 0 2px;
}

.apply-form-row p {
  margin: 0;
}

.apply-modal .wpcf7-form .apply-form-row label {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .apply-modal {
    padding: 20px 18px;
  }
  .apply-form-row {
    grid-template-columns: 1fr;
  }
}

.apply-modal .wpcf7-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.apply-modal .wpcf7-form-control {
  display: block;
  width: 100%;
  margin-top: 5px;
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.18s ease;
}

.apply-modal .wpcf7-form-control::placeholder {
  color: var(--text-muted);
}

.apply-modal .wpcf7-form-control:focus {
  outline: none;
  border-color: var(--gold);
}

.apply-modal textarea.wpcf7-form-control {
  display: block;
  width: 100%;
  min-height: 52px;
  max-height: 180px;
  resize: none;
  overflow-y: auto;
}

.apply-modal .wpcf7-submit {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1400;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.apply-modal .wpcf7-submit:hover {
  transform: scale(1.045);
  box-shadow: 0 8px 20px rgba(234, 179, 8, 0.4);
  filter: brightness(1.08);
}

.apply-modal .wpcf7-not-valid-tip {
  color: #f28b8b;
  font-size: 0.82rem;
  margin-top: 4px;
}

.apply-modal .wpcf7-response-output {
  border-radius: 8px;
  border-color: var(--card-border) !important;
  color: var(--text-muted);
}

/* ---------- Sticky bottom bar ---------- */

.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #171b30, #1c2140);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(120%);
  transition: transform 0.3s ease;
}

.sticky-bar.is-visible {
  transform: translateY(0);
}

.sticky-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
}

.sticky-bar-logo {
  flex-shrink: 0;
  display: block;
}

.sticky-bar-logo img {
  width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.sticky-bar-text {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sticky-bar-stars .star {
  font-size: 0.9rem;
}

.sticky-bar-text .bonus {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 560px) {
  .sticky-bar-inner {
    padding: 10px 12px;
    gap: 10px;
    min-height: 68px;
  }
  .sticky-bar-logo img {
    width: 52px;
    height: 52px;
  }
  .sticky-bar-stars .star {
    font-size: 0.75rem;
  }
  .sticky-bar-text .bonus {
    font-size: 0.85rem;
  }
}

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 999;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1a1a;
  border: none;
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(234, 179, 8, 0.4);
}

.back-to-top.above-bar {
  bottom: 130px;
}

@media (max-width: 560px) {
  .back-to-top {
    width: 42px;
    height: 42px;
    right: 14px;
    bottom: 14px;
  }
  .back-to-top.above-bar {
    bottom: 100px;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 18px 0 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---------- Honeypot anti-spam field (nkb-hp) ---------- */

.nkb-hp-wrap {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
