/* ══════════════════════════════════════════════════
   Vadiando Na Net — Modern Theme (Zero Dependencies)
   CSS Grid • Dark/Light • No Framework
   ══════════════════════════════════════════════════ */

/* ─── Design Tokens ───────────────────────────── */
:root {
  --bg-base: #0a0a0f;
  --bg-surface: #12121a;
  --bg-card: #1a1a26;
  --bg-elevated: #22222e;
  --bg-hover: #2a2a3a;

  --accent: #e50914;
  --accent-hover: #ff1a25;
  --accent-glow: rgba(229, 9, 20, .35);

  --gold: #f5c518;
  --gold-hover: #ffd633;

  --text-primary: rgba(255, 255, 255, .92);
  --text-secondary: rgba(255, 255, 255, .65);
  --text-muted: rgba(255, 255, 255, .38);

  --border-subtle: rgba(255, 255, 255, .08);
  --border-accent: rgba(229, 9, 20, .4);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-card: 0 2px 8px rgba(0,0,0,.3);
  --shadow-elevated: 0 8px 32px rgba(0,0,0,.4);
  --shadow-glow: 0 0 20px var(--accent-glow);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --transition-fast: .15s ease;
  --transition-normal: .25s ease;
  --transition-slow: .4s cubic-bezier(.25, .46, .45, .94);

  --navbar-height: 64px;
}

/* ─── Light Theme ─────────────────────────────── */
[data-theme="light"] {
  --bg-base: #f5f5f7;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #f0f0f2;
  --bg-hover: #e8e8ea;

  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #9a9a9a;

  --border-subtle: rgba(0, 0, 0, .08);
  --border-accent: rgba(229, 9, 20, .3);

  --shadow-card: 0 1px 3px rgba(0,0,0,.08);
  --shadow-elevated: 0 4px 16px rgba(0,0,0,.1);
  --shadow-glow: 0 0 12px var(--accent-glow);

  --accent-glow: rgba(229, 9, 20, .2);
}

/* ─── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  background-color: var(--bg-base);
  scroll-behavior: smooth;
}
html.admin-bar {
  margin-top: 0 !important;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  padding-top: var(--navbar-height);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Compensar admin bar do WordPress */
body.admin-bar {
  padding-top: calc(var(--navbar-height) + var(--wp-admin--admin-bar--height, 32px)) !important;
}

@media (max-width: 782px) {
  body.admin-bar {
    padding-top: calc(var(--navbar-height) + var(--wp-admin--admin-bar--height, 46px)) !important;
  }
}

a { color: var(--accent); transition: color var(--transition-fast); }
a:hover { color: var(--accent-hover); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

img { max-width: 100%; height: auto; }
::selection { background: var(--accent); color: #fff; }

/* ─── Glass Navbar ──────────────────────────────── */
.navbar-vadiando {
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--border-subtle);
  min-height: var(--navbar-height);
  height: var(--navbar-height);
  box-shadow: 0 1px 0 rgba(255,255,255,.03);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform var(--transition-normal);
}

body.admin-bar .navbar-vadiando {
  top: var(--wp-admin--admin-bar--height, 32px) !important;
}

@media (max-width: 782px) {
  body.admin-bar .navbar-vadiando {
    top: var(--wp-admin--admin-bar--height, 46px) !important;
  }
}

@media (max-width: 600px) {
  body.admin-bar .navbar-vadiando {
    top: 0 !important;
    position: absolute;
  }
}
[data-theme="light"] .navbar-vadiando {
  background: rgba(255,255,255,.9);
}
.navbar-vadiando .navbar-brand {
  color: var(--text-primary) !important;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.5px;
  padding: 20px 15px;
  position: relative;
  display: inline-block;
}
.navbar-vadiando .navbar-brand::after {
  content: '';
  position: absolute; bottom: 12px; left: 15px; right: 15px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 1px;
}
#navbar-nav { list-style: none !important; margin: 0; padding: 0; display: flex; gap: 2px; }
#navbar-nav > li > a {
  color: var(--text-secondary) !important;
  font-size: .88rem;
  font-weight: 600;
  padding: 0 14px;
  height: 100%;
  transition: color var(--transition-fast);
  position: relative;
  display: inline-flex;
  align-items: center;
}
#navbar-nav > li > a::before {
  content: '';
  position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--accent);
  transition: var(--transition-normal);
  border-radius: 1px;
}
#navbar-nav > li > a:hover,
#navbar-nav > li > a:focus {
  color: var(--text-primary) !important;
  background: transparent;
}
#navbar-nav > li > a:hover::before { left: 14px; right: 14px; }
#navbar-nav > .active > a { color: var(--text-primary) !important; }
#navbar-nav > .active > a::before { left: 14px; right: 14px; }

/* Mobile hamburger toggle */
.navbar-toggle {
  display: none;
  border: none;
  padding: 10px 12px;
  margin: 15px 0;
  background: transparent;
  cursor: pointer;
}
.navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition-fast);
}
.navbar-toggle:hover,
.navbar-toggle:focus { background: var(--bg-hover); border-radius: 4px; }

/* ─── Theme Toggle Button ───────────────────────── */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  transition: var(--transition-fast);
  margin-left: 8px;
}
.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--bg-hover);
}
.theme-toggle-btn .icon { width: 18px; height: 18px; }

/* ─── Container ──────────────────────────────────── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* ─── CSS Grid System (replaces Bootstrap .row/.col) ─── */
.grid {
  display: grid;
  gap: 24px;
  margin: 0;
}
.grid-col-1  { grid-column: span 1; }
.grid-col-2  { grid-column: span 2; }
.grid-col-3  { grid-column: span 3; }
.grid-col-4  { grid-column: span 4; }
.grid-col-5  { grid-column: span 5; }
.grid-col-6  { grid-column: span 6; }
.grid-col-7  { grid-column: span 7; }
.grid-col-8  { grid-column: span 8; }
.grid-col-9  { grid-column: span 9; }
.grid-col-10 { grid-column: span 10; }
.grid-col-11 { grid-column: span 11; }
.grid-col-12 { grid-column: span 12; }

@media (min-width: 992px) {
  .grid { grid-template-columns: repeat(12, 1fr); }
  .grid-col-sm-full { grid-column: span 12; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .grid-col-sm-1  { grid-column: span 1; }
  .grid-col-sm-2  { grid-column: span 2; }
  .grid-col-sm-3  { grid-column: span 3; }
  .grid-col-sm-4  { grid-column: span 4; }
  .grid-col-sm-6  { grid-column: span 8; }
  .grid-col-sm-8  { grid-column: span 12; }
}
@media (max-width: 767px) {
  .grid,
  .grid > [class*="grid-col"],
  .grid > [class*="grid-col-sm"] {
    grid-column: span 1 !important;
  }
  .grid { grid-template-columns: 1fr; }
}

/* ─── Utility Classes ───────────────────────────── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.w-100 { width: 100%; }

/* ─── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: .88rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; box-shadow: var(--shadow-glow); }
.btn-success { background: #16a34a; color: #fff; }
.btn-success:hover { background: #15803d; color: #fff; }
.btn-danger { background: #b91c1c; color: #fff; }
.btn-danger:hover { background: #991b1b; color: #fff; }
.btn-sm { padding: 6px 14px; font-size: .8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { display: flex; justify-content: center; width: 100%; }
.btn-outline-light {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.btn-outline-light:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--bg-hover);
}

/* ─── Hero Header ───────────────────────────────── */
#head { width: 100%; }
#header {
  background: var(--bg-surface);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}
#header .logo { max-height: 80px; filter: brightness(1.1); }

/* ─── Toolbar / Filters ──────────────────────────── */
.toolbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
  margin-bottom: 24px;
}
.toolbar .total-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: .85rem;
  font-weight: 600;
}
.toolbar .total-links span {
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}
.toolbar select {
  width: 100%;
  padding: 6px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: .85rem;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  box-sizing: border-box;
  height: 34px;
  line-height: 1.4;
}
.toolbar select:focus { border-color: var(--accent); outline: none; }
.toolbar select option { background: var(--bg-surface); color: var(--text-primary); }

.toolbar .search-form { display: flex; }
.toolbar .search-form input {
  flex: 1;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--text-primary);
  font-size: .85rem;
  transition: border-color var(--transition-fast);
}
.toolbar .search-form input:focus { border-color: var(--accent); outline: none; }
.toolbar .search-form input::placeholder { color: var(--text-muted); }
.toolbar .search-form button {
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  font-size: .9rem;
  transition: background var(--transition-fast);
}
.toolbar .search-form button:hover { background: var(--accent-hover); }

/* ─── Link Card — Signature Glow Card ────────────── */
.link-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-normal);
  margin-bottom: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 0 1px var(--border-accent);
  border-color: var(--accent);
}
.link-card .card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-elevated);
}
.infeed-ad .card-img img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
}
.link-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow), filter var(--transition-normal);
}
.link-card:hover .card-img img {
  transform: scale(1.08);
  filter: brightness(1.1) saturate(1.15);
}
/* Category pill */
.link-card .card-category {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
}
.link-card .card-category a {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(229, 9, 20, .85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 100px;
  transition: var(--transition-fast);
}
.link-card .card-category a:hover { background: var(--accent); color: #fff; }
/* View count */
.link-card .card-views {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  padding: 2px 10px;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  color: var(--text-secondary);
  font-size: .75rem;
  font-weight: 600;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.link-card .card-views .icon { width: .7rem; height: .7rem; }
/* Card body */
.link-card .card-body {
  padding: 14px 14px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.link-card .card-title {
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.link-card .card-title a { color: var(--text-primary); }
.link-card .card-title a:hover { color: var(--accent); }
/* Card footer */
.link-card .card-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.link-card .card-social { display: flex; gap: 6px; }
.link-card .card-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: var(--transition-fast);
  background: var(--bg-elevated);
  text-decoration: none;
}
.link-card .card-social a:hover {
  color: var(--accent);
  background: rgba(229,9,20,.12);
}
.link-card .card-cliques {
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.link-card .card-cliques .icon { width: .8rem; height: .8rem; }

/* ─── Single / Permalink ────────────────────────── */
.single-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}
.single-wrapper .single-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.single-wrapper .single-img img { width: 100%; display: block; }
.single-wrapper .single-category {
  position: absolute;
  bottom: 12px; left: 12px;
  display: inline-block;
  padding: 4px 14px;
  background: rgba(229,9,20,.85);
  backdrop-filter: blur(4px);
  color: #fff;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  z-index: 2;
}
.single-wrapper .single-category a { color: #fff; }
.single-wrapper .single-category a:hover { color: var(--gold); }
.single-wrapper h1.single-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.5px;
  margin: 0 0 12px;
  color: var(--text-primary);
}
.single-wrapper .single-title a { color: inherit; }
.single-wrapper .single-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}
.single-wrapper .single-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: var(--transition-normal);
}
.single-wrapper .single-btn:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}
.single-wrapper .single-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.single-wrapper .single-social { display: flex; gap: 8px; }
.single-wrapper .single-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: .9rem;
  transition: var(--transition-fast);
  text-decoration: none;
}
.single-wrapper .single-social a:hover { background: var(--accent); color: #fff; }
.single-wrapper .single-cliques {
  color: var(--text-muted);
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 4px;
}
.single-wrapper .single-cliques .icon { width: .9rem; height: .9rem; }

/* ─── Page Wrapper ──────────────────────────────── */
.page-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}
.page-wrapper h1.page-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 24px;
  color: var(--text-primary);
  letter-spacing: -.5px;
}

/* ─── Ranking Table ────────────────────────────── */
.ranking .table-modern {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-primary);
}
.ranking thead {
  background: var(--bg-elevated);
  color: var(--text-primary);
}
.ranking thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--border-subtle);
}
.ranking tbody td {
  padding: 12px 16px;
  border-color: var(--border-subtle);
  vertical-align: middle;
}
.ranking tbody tr:hover { background: var(--bg-hover); }
.ranking tbody a { color: var(--accent); font-weight: 600; }
.ranking tbody a:hover { color: var(--accent-hover); }

/* ─── Footer ────────────────────────────────────── */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 0;
  margin-top: 48px;
}
.site-footer h4 {
  color: var(--text-primary);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 16px;
  letter-spacing: .3px;
}
.site-footer a { color: var(--text-secondary); transition: var(--transition-fast); }
.site-footer a:hover { color: var(--accent); }
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 16px 0 8px;
}
.partner-logos a {
  display: block;
  line-height: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition-normal);
  width: 300px;
  height: 50px;
}
.partner-logos a:hover { border-color: var(--accent); }
.partner-logos img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.footer-seals img { border-radius: var(--radius-sm); margin-bottom: 4px; }
.footer-seals textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: .75rem;
  padding: 6px;
  width: 100%;
  border-radius: var(--radius-sm);
  resize: none;
}
.footer-bottom {
  background: var(--bg-base);
  padding: 16px 0;
  margin-top: 32px;
  text-align: center;
  font-size: .82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

/* ─── Pagination ─────────────────────────────────── */
.pagination-wrap { text-align: center; margin: 32px 0; }
.pagination-wrap a,
.pagination-wrap span {
  display: inline-block;
  padding: 10px 16px;
  margin: 0 3px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .85rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  text-decoration: none;
}
.pagination-wrap a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pagination-wrap span.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ─── Forms ───────────────────────────────────── */
.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}
.form-card h3 { font-weight: 700; margin: 0 0 20px; color: var(--text-primary); }
.form-card h4 { font-weight: 700; margin: 0 0 16px; color: var(--text-primary); }
.form-card label { font-weight: 600; font-size: .85rem; color: var(--text-secondary); margin-bottom: 6px; display: block; }
.form-card input,
.form-card select,
.form-card textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  width: 100%;
  transition: border-color var(--transition-fast);
  box-sizing: border-box;
  font-size: .9rem;
}
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-card input::placeholder { color: var(--text-muted); }
.form-card .btn-primary,
.form-card .btn-success {
  padding: 12px 24px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
}
.form-card .btn-primary { background: var(--accent); color: #fff; }
.form-card .btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-glow); }
.form-card .btn-success { background: #16a34a; color: #fff; }
.form-card .btn-success:hover { background: #15803d; }
.form-card select { cursor: pointer; }
.form-card select option { background: var(--bg-surface); color: var(--text-primary); }
.form-card small { color: var(--text-muted); font-size: .8rem; }
.form-card .file-input { cursor: pointer; }

/* ─── Dashboard ──────────────────────────────────── */
.dashboard-header {
  background: linear-gradient(135deg, var(--bg-surface), #1a0a0f);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  text-align: center !important;
}
[data-theme="light"] .dashboard-header {
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
}
.dashboard-header::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 100%;
  background: radial-gradient(circle at 100% 50%, var(--accent-glow), transparent);
  opacity: .3;
}
.dashboard-header h2 { margin: 0; font-weight: 800; font-size: 1.3rem; position: relative; color: var(--text-primary); }
.dashboard-header p { margin: 0 auto 0; color: var(--text-secondary); font-size: .9rem; position: relative; text-align: center; }

/* CSS-only tabs */
.tab-input { display: none; }
.tab-nav {
  list-style: none;
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
}
.tab-nav-item label {
  display: block;
  padding: 12px 18px;
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
  margin: 0;
}
.tab-nav-item label:hover { color: var(--text-primary); }
.tab-nav-item.active label { color: var(--accent); border-bottom-color: var(--accent); }
.tab-pane { display: none; }
.tab-pane.active { display: block !important; animation: fadeIn .2s ease; }
#tab-links:checked   ~ .tab-content #panel-links,
#tab-enviar:checked  ~ .tab-content #panel-enviar,
#tab-sites:checked   ~ .tab-content #panel-sites,
#tab-cadastrar:checked ~ .tab-content #panel-cadastrar,
#tab-feeds:checked   ~ .tab-content #panel-feeds,
#tab-assinatura:checked ~ .tab-content #panel-assinatura,
#tab-ip-blocked:checked ~ .tab-content #panel-ip-blocked,
#tab-ticket:checked ~ .tab-content #panel-ticket {
  display: block;
  animation: fadeIn .2s ease;
}
#tab-links:checked   ~ .tab-nav .tab-nav-item[data-tab="tab-links"] label,
#tab-enviar:checked  ~ .tab-nav .tab-nav-item[data-tab="tab-enviar"] label,
#tab-sites:checked   ~ .tab-nav .tab-nav-item[data-tab="tab-sites"] label,
#tab-cadastrar:checked ~ .tab-nav .tab-nav-item[data-tab="tab-cadastrar"] label,
#tab-feeds:checked   ~ .tab-nav .tab-nav-item[data-tab="tab-feeds"] label,
#tab-assinatura:checked ~ .tab-nav .tab-nav-item[data-tab="tab-assinatura"] label,
#tab-ip-blocked:checked ~ .tab-nav .tab-nav-item[data-tab="tab-ip-blocked"] label,
#tab-ticket:checked ~ .tab-nav .tab-nav-item[data-tab="tab-ticket"] label {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Table inside dashboard */
.table-modern {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-primary);
}
.table-modern thead { background: var(--bg-elevated); }
.table-modern thead th {
  padding: 10px 14px;
  border-bottom: none !important;
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-secondary);
}
.table-modern tbody td {
  padding: 10px 14px;
  border-color: var(--border-subtle) !important;
  vertical-align: middle;
}
.table-modern tbody tr:hover { background: var(--bg-hover); }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.site-delete { display: inline-block; margin: 0; }

/* Painel do usuário: <th> é centralizado pelo navegador, mas <td> nasce à
   esquerda — sem esta regra os dados ficam fora de eixo com os títulos das
   colunas. Centraliza os dois no escopo do dashboard (o ranking fica intacto). */
.dashboard-tabs .table-modern thead th,
.dashboard-tabs .table-modern tbody td {
  text-align: center;
}

/* Labels for status */
.label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.label-success { background: rgba(22,163,74,.15); color: #22c55e; }
.label-warning { background: rgba(245,197,24,.15); color: var(--gold); }
.label-default { background: rgba(255,255,255,.08); color: var(--text-muted); }

/* ─── Alerts ─────────────────────────────────────── */
.alert-msg {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 600;
  font-size: .9rem;
}
.alert-msg.success { background: rgba(22,163,74,.12); color: #22c55e; border: 1px solid rgba(22,163,74,.2); }
.alert-msg.error { background: rgba(229,9,20,.12); color: var(--accent); border: 1px solid rgba(229,9,20,.2); }

/* ─── Section Header ──────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-header h2 {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-primary);
  letter-spacing: -.3px;
  margin: 0;
}
.section-header a {
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.section-header a:hover { color: var(--accent); }

/* ─── Related Links heading ──────────────────────── */
.link-relacionado {
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─── Top Ads ────────────────────────────────────── */
.topads { text-align: center; margin: 12px 0; overflow: hidden; }
.topads:empty { display: none; }
.topads span { color: var(--text-muted); font-size: .8rem; }
.anunc728 { display: block; margin: 0 auto 10px; width: 728px; max-width: 100%; height: 90px; overflow: hidden; }
.anunc728 img, .anunc728 iframe { width: 100%; height: 100%; object-fit: cover; display: block; }
.topads:has(.anunc728:empty) { display: none; }
.anunc242 { display: block; margin: 0 auto 10px; width: 242px; max-width: 100%; height: 90px; overflow: hidden; }
.anunc242 img, .anunc242 iframe { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-content-slot { margin: 28px 0 8px; text-align: center; }
.ad-content-slot img, .ad-content-slot iframe { max-width: 100%; }
.single-sidebar-ad { width: 300px; max-width: 100%; margin: 16px auto; overflow: hidden; text-align: center; }
.single-sidebar-ad img, .single-sidebar-ad iframe { max-width: 100%; height: auto; }

/* ─── Banner "Anuncie aqui" (espaços publicitários vazios) ── */
.ad-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  height: 100%;
  min-height: 90px;
  padding: 10px 20px;
  border: 1px solid rgba(229, 9, 20, .30);
  border-radius: var(--radius-md);
  background:
    repeating-linear-gradient(115deg, transparent 0 26px, rgba(255, 255, 255, .022) 26px 27px),
    linear-gradient(110deg, #12121a 0%, #1b1b27 48%, #2a1020 100%);
  text-decoration: none;
  overflow: hidden;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.ad-banner:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(229, 9, 20, .25), 0 8px 28px rgba(0, 0, 0, .45);
  text-decoration: none;
}
.ad-banner .ad-banner__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.ad-banner .ad-banner__tag {
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .85;
  line-height: 1;
}
.ad-banner .ad-banner__title {
  margin-top: 4px;
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #fff;
}
.ad-banner .ad-banner__sub {
  margin-top: 4px;
  font-size: .72rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, .58);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.ad-banner .ad-banner__cta {
  margin-left: auto;
  flex: none;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e50914, #ff5a2b);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(229, 9, 20, .35);
}
.ad-banner:hover .ad-banner__cta { filter: brightness(1.08); }
.ad-banner .ad-banner__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(229, 9, 20, .38);
  background: rgba(229, 9, 20, .12);
  color: #ff6a5e;
  flex: none;
}
.ad-banner .ad-banner__dims {
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .32);
}

/* 242×90 — compacto */
.ad-banner--slim {
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 8px 10px;
  text-align: center;
}
.ad-banner--slim .ad-banner__text { align-items: center; }
.ad-banner--slim .ad-banner__title { margin-top: 2px; font-size: 1rem; }
.ad-banner--slim .ad-banner__sub,
.ad-banner--slim .ad-banner__cta { display: none; }

/* 300×250 — vertical */
.ad-banner--box {
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  min-height: 250px;
  padding: 24px 18px;
  text-align: center;
}
.ad-banner--box .ad-banner__text { align-items: center; }
.ad-banner--box .ad-banner__title { font-size: 1.6rem; }
.ad-banner--box .ad-banner__sub {
  margin-top: 6px;
  font-size: .78rem;
  white-space: normal;
}
.ad-banner--box .ad-banner__cta { margin: 10px auto 0; }

/* In-feed — preenche o card quadrado */
.ad-banner--square {
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 100%;
  padding: 18px 14px;
  border: 0;
  border-radius: 0;
  text-align: center;
}
.ad-banner--square .ad-banner__text { align-items: center; }
.ad-banner--square .ad-banner__title { font-size: 1.25rem; }
.ad-banner--square .ad-banner__sub { white-space: normal; font-size: .7rem; }
.ad-banner--square .ad-banner__cta { display: none; }

/* Faixa larga (conteúdo de posts/páginas) */
.ad-banner--wide { min-height: 108px; }

@media (max-width: 640px) {
  .ad-banner { gap: 12px; padding: 8px 14px; min-height: 75px; }
  .ad-banner__title { font-size: 1.08rem; }
  .ad-banner__sub { display: none; }
  .ad-banner__cta { padding: 8px 13px; font-size: .66rem; }
  .ad-banner--box { min-height: 220px; }
  .ad-banner--box .ad-banner__sub { display: block; }
}

/* ─── Page sub-header ────────────────────────────── */
.page-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ─── Subscription Cards ────────────────────────── */
.subscription-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}
.subscription-card h4 { font-size: 1.1rem; }
.upgrade-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: var(--transition-normal);
}
.plan-card:hover { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.plan-card.featured { border-color: var(--gold); position: relative; }
.plan-card.featured::before {
  content: 'Mais Popular';
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #1a1200;
  font-size: .7rem;
  font-weight: 800;
  padding: 3px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.plan-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.plan-price { font-size: 1.8rem; font-weight: 800; color: var(--gold); margin-bottom: 4px; }
.plan-economy { font-size: .78rem; color: #22c55e; font-weight: 600; margin-bottom: 12px; }
.plan-card ul { list-style: none; padding: 0; text-align: left; }
.plan-card ul li { padding: 6px 0; font-size: .85rem; color: var(--text-secondary); }
.plan-note { font-size: .82rem; color: var(--text-muted); }
.upgrade-inline-form { max-width: 400px; }
.upgrade-inline-form select { margin-bottom: 12px; }

/* ─── Link limit & badge ────────────────────────── */
.badge-premium {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #e6b800);
  color: #1a1200;
  font-size: .72rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 100px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.link-limit { display: inline-block; margin-left: 16px; font-size: .82rem; color: var(--text-muted); }

/* ─── Responsive ────────────────────────────────── */
@media(max-width: 767px) {
  body { padding-top: 56px; --navbar-height: 56px; }
  .navbar-vadiando { min-height: 56px; }
  .navbar-vadiando .navbar-brand { font-size: 1.1rem; padding: 17px 14px; }
  #navbar-nav > li > a { padding: 10px 14px; display: block; }
  #navbar-nav > li > a::before { display: none; }
  .navbar-vadiando .navbar-collapse { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); }
  .navbar-toggle { display: block; }
  .navbar-collapse { display: none !important; }
  .navbar-collapse.show { display: block !important; }
  .navbar-collapse.show #navbar-nav, .navbar-collapse.show .navbar-nav { flex-direction: column; }
  .navbar-collapse.show #navbar-nav > li > a { padding: 10px 20px; text-align: left; }

  #header { padding: 20px 0 16px; }
  #header .logo { max-height: 60px; }
  .toolbar .total-links { margin-bottom: 10px; }
  .toolbar select { margin-bottom: 8px; }
  .single-wrapper { padding: 20px; }
  .single-wrapper h1.single-title { font-size: 1.25rem; }
  .anunc728 { width: 100%; height: 75px; }
  .single-wrapper .single-img { margin-bottom: 16px; }
  .page-wrapper { padding: 20px; }
  .page-wrapper h1.page-title { font-size: 1.3rem; }
  .form-card { padding: 20px; }
  .dashboard-header { padding: 20px; }
}

@media(min-width: 768px) and (max-width: 991px) {
  .toolbar select { margin-bottom: 8px; }
  .link-card .card-title { font-size: .85rem; }
}

@media(max-width: 991px) {
  .single-wrapper .single-img { margin-bottom: 20px; }
}

@media(min-width: 992px) {
  .single-wrapper .single-img { margin-bottom: 0; }
}

/* ─── Reduced Motion ──────────────────────────────── */
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ─── Selos Page (mesma linguagem visual dos ad-banner) ── */
.selos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 8px 0 36px;
}
.selos-empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--text-muted);
}

.seal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(229, 9, 20, .30);
  border-radius: var(--radius-md);
  background:
    repeating-linear-gradient(115deg, transparent 0 26px, rgba(255, 255, 255, .022) 26px 27px),
    linear-gradient(110deg, #12121a 0%, #1b1b27 48%, #2a1020 100%);
  overflow: hidden;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}
.seal-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(229, 9, 20, .25), 0 8px 28px rgba(0, 0, 0, .45);
}
.seal-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.seal-card__tag {
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .85;
  line-height: 1;
}
.seal-card__dims {
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .32);
  white-space: nowrap;
}
.seal-card__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 104px;
  padding: 10px;
  border: 1px dashed rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(0, 0, 0, .30);
}
.seal-card__preview a {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}
.seal-card__preview img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 84px;
  object-fit: contain;
}
.seal-card__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.seal-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seal-card__url {
  margin: 0;
  font-size: .72rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, .5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seal-card__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.seal-card__cta {
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #e50914, #ff5a2b);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(229, 9, 20, .35);
  transition: filter var(--transition-normal), background var(--transition-normal);
}
.seal-card__cta:hover { filter: brightness(1.08); }
.seal-card__cta.is-copied {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 4px 14px rgba(22, 163, 74, .35);
}
.seal-card__code {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(0, 0, 0, .35);
  color: rgba(255, 255, 255, .42);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .64rem;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seal-card__source {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .selos-grid { grid-template-columns: 1fr; gap: 14px; }
  .seal-card__preview { height: 96px; }
  .seal-card__preview img { max-height: 76px; }
}

/* ─── Icons (inline SVG sprite) ──────────────────── */
.icon {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  vertical-align: -0.2em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.icon-sm { width: 1em; height: 1em; }
.icon-lg { width: 2em; height: 2em; }
.icon-xl { width: 3em; height: 3em; }

/* ─── Screen-reader only ─────────────────────────── */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Navbar layout (menu + account actions) ─────── */
.navbar-vadiando .container { height: 100%; }
.navbar-vadiando .container > .d-flex {
  height: 100%;
  align-items: center;
  flex-wrap: nowrap;
}
.navbar-vadiando .navbar-collapse {
  display: flex;
  align-items: center;
  height: 100%;
  min-width: 0;
}
#navbar-nav,
.navbar-vadiando .navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  display: flex;
  align-items: center;
  height: 100%;
  flex-wrap: nowrap;
}
#navbar-nav > li,
.navbar-vadiando .navbar-nav > li {
  height: 100%;
  display: flex;
  align-items: center;
}
#navbar-nav > li > a,
.navbar-vadiando .navbar-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 14px;
  box-sizing: border-box;
}
.navbar-actions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.navbar-actions > li { display: flex; align-items: center; }
.navbar-actions > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-secondary) !important;
  transition: var(--transition-fast);
}
.navbar-actions > li > a:hover {
  color: var(--text-primary) !important;
  background: var(--bg-hover);
}
.navbar-actions .icon { width: 18px; height: 18px; }

/* Mobile: stacked menu inside the dropdown */
@media (max-width: 767px) {
  #navbar-nav,
  .navbar-vadiando .navbar-nav {
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }
  #navbar-nav > li,
  .navbar-vadiando .navbar-nav > li {
    height: auto;
    display: block;
  }
  #navbar-nav > li > a,
  .navbar-vadiando .navbar-nav > li > a {
    height: auto;
    padding: 12px 20px;
    width: 100%;
  }
}

/* ─── Age verification gate ──────────────────────── */
#age-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#age-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  padding: 36px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  color: var(--text-primary);
}
#age-modal h2 {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--accent);
  text-transform: uppercase;
}
#age-modal p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.6;
}
#age-modal p strong { color: var(--gold); }
#age-modal > div {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.age-btn {
  flex: 1 1 160px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition-normal);
}
.age-btn-yes { background: var(--accent); color: #fff; }
.age-btn-yes:hover { background: var(--accent-hover); box-shadow: var(--shadow-glow); }
.age-btn-no { background: transparent; color: var(--text-secondary); border-color: var(--border-subtle); }
.age-btn-no:hover { color: var(--text-primary); border-color: var(--accent); background: var(--bg-hover); }

@media (max-width: 480px) {
  #age-modal { padding: 28px 20px; }
  .age-btn { flex: 1 1 100%; }
}

/* ════════════════════════════════════════════════════════════════════
   Ticket de Suporte — Página dedicada (/ticket)
   ════════════════════════════════════════════════════════════════════ */

.ticket-page {
  max-width: 820px;
  margin: 32px auto;
  padding: 0 16px;
  width: 100%;
}

.ticket-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.ticket-header .icon.icon-lg {
  width: 34px;
  height: 34px;
  color: var(--accent);
}
.ticket-header h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.5px;
}
.ticket-subtitle {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: .95rem;
}

.ticket-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 26px 24px;
  margin-bottom: 20px;
}
.ticket-card h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 800;
}
.ticket-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ticket-blocked-notice {
  border-left: 3px solid var(--accent);
  background: rgba(229,9,20,.08);
}

/* Legado — mantido apenas para compatibilidade com caches antigos.
   A central de tickets atual usa assets/css/tickets.css (.vdt-*). */
.ticket-thread { display: flex; flex-direction: column; }
.ticket-thread-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 520px;
  overflow-y: auto;
}

.ticket-empty {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 18px; color: var(--text-muted); font-size: .95rem;
  text-align: center;
}

/* Caixa de resposta / novo ticket */
.ticket-reply-form {
  margin-top: 18px;
  padding: 16px 18px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.ticket-reply-form .form-group {
  margin-bottom: 12px;
}
.ticket-reply-form label {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.ticket-reply-form textarea {
  width: 100%;
  min-height: 110px;
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: .93rem;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}
.ticket-reply-form textarea::placeholder { color: var(--text-muted); opacity: .7; }
.ticket-hint { margin: 8px 0 0; color: var(--text-muted); font-size: .88rem; }

/* Ações abaixo do ticket */
.ticket-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.ticket-actions .btn { flex: 1 1 160px; }

/* Status inline */
.ticket-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .85rem; font-weight: 700;
}
.ticket-status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}
.ticket-status.pending .dot { background: #f59e0b; }
.ticket-status.replied .dot { background: var(--accent); }

@keyframes ticket-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.icon.icon-lg { width: 28px; height: 28px; }

@media (max-width: 600px) {
  .ticket-card { padding: 20px 16px; }
  .ticket-actions { flex-direction: column; }
  .ticket-actions .btn { flex: 1 1 auto; }
}

