/*
Theme Name: OrbStats
Theme URI: https://orbstats.com
Author: OrbStats
Author URI: https://orbstats.com
Description: Opening Range Breakout Statistics — A members-only trading statistics, strategies & indicators platform for TradingView.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: orbstats
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ========================================================================
   CSS VARIABLES & RESET
   ======================================================================== */

:root {
  /* Core palette */
  --orb-bg-primary: #0a0e17;
  --orb-bg-secondary: #111827;
  --orb-bg-card: #151c2c;
  --orb-bg-elevated: #1a2236;
  --orb-bg-input: #0d1221;

  /* Accent */
  --orb-accent: #00e5a0;
  --orb-accent-dim: rgba(0, 229, 160, 0.15);
  --orb-accent-hover: #00ffb3;
  --orb-accent-secondary: #3b82f6;
  --orb-accent-secondary-dim: rgba(59, 130, 246, 0.15);
  --orb-red: #ef4444;
  --orb-red-dim: rgba(239, 68, 68, 0.12);
  --orb-amber: #f59e0b;

  /* Text */
  --orb-text-primary: #e8ecf4;
  --orb-text-secondary: #8896b0;
  --orb-text-muted: #4b5a74;

  /* Borders */
  --orb-border: rgba(255, 255, 255, 0.06);
  --orb-border-accent: rgba(0, 229, 160, 0.25);

  /* Misc */
  --orb-radius: 10px;
  --orb-radius-sm: 6px;
  --orb-radius-lg: 16px;
  --orb-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --orb-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --orb-font-display: 'DM Sans', sans-serif;
  --orb-font-body: 'IBM Plex Sans', sans-serif;
  --orb-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--orb-font-body);
  background: var(--orb-bg-primary);
  color: var(--orb-text-primary);
  line-height: 1.65;
  font-size: 15px;
  overflow-x: hidden;
}

a {
  color: var(--orb-accent);
  text-decoration: none;
  transition: color var(--orb-transition);
}
a:hover {
  color: var(--orb-accent-hover);
}

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

/* ========================================================================
   TYPOGRAPHY
   ======================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--orb-font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--orb-text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p {
  color: var(--orb-text-secondary);
  max-width: 680px;
}

/* ========================================================================
   LAYOUT
   ======================================================================== */

.orb-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.orb-section {
  padding: 80px 0;
}

.orb-grid {
  display: grid;
  gap: 24px;
}

.orb-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.orb-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.orb-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ========================================================================
   HEADER / NAV
   ======================================================================== */

.orb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--orb-border);
}

.orb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.orb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--orb-font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--orb-text-primary);
  letter-spacing: -0.04em;
}

.orb-logo__icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--orb-accent), var(--orb-accent-secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--orb-bg-primary);
  letter-spacing: 0;
}

.orb-logo span {
  color: var(--orb-accent);
}

.orb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.orb-nav a {
  color: var(--orb-text-secondary);
  padding: 8px 16px;
  border-radius: var(--orb-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--orb-transition);
}
.orb-nav a:hover,
.orb-nav a.current-menu-item > a,
.orb-nav .current_page_item a {
  color: var(--orb-text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.orb-nav__cta {
  background: var(--orb-accent) !important;
  color: var(--orb-bg-primary) !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: var(--orb-radius-sm) !important;
}
.orb-nav__cta:hover {
  background: var(--orb-accent-hover) !important;
  color: var(--orb-bg-primary) !important;
}

/* Mobile nav toggle */
.orb-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.orb-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--orb-text-primary);
  margin: 5px 0;
  transition: all var(--orb-transition);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .orb-nav-toggle { display: block; }
  .orb-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--orb-bg-secondary);
    border-bottom: 1px solid var(--orb-border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
  }
  .orb-nav.is-open { display: flex; }
  .orb-nav a { width: 100%; }
}

/* ========================================================================
   HERO
   ======================================================================== */

.orb-hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.orb-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 229, 160, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.orb-hero__content {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.orb-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--orb-accent-dim);
  color: var(--orb-accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 28px;
  border: 1px solid rgba(0, 229, 160, 0.15);
}

.orb-hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--orb-accent);
  border-radius: 50%;
  animation: orb-pulse 2s ease-in-out infinite;
}

@keyframes orb-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.orb-hero h1 {
  margin-bottom: 20px;
}

.orb-hero p {
  font-size: 1.1rem;
  margin: 0 auto 36px;
  max-width: 560px;
}

.orb-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========================================================================
   BUTTONS
   ======================================================================== */

.orb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--orb-radius);
  font-family: var(--orb-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--orb-transition);
  text-decoration: none;
}

.orb-btn--primary {
  background: var(--orb-accent);
  color: var(--orb-bg-primary);
}
.orb-btn--primary:hover {
  background: var(--orb-accent-hover);
  color: var(--orb-bg-primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(0, 229, 160, 0.25);
}

.orb-btn--ghost {
  background: transparent;
  color: var(--orb-text-secondary);
  border: 1px solid var(--orb-border);
}
.orb-btn--ghost:hover {
  border-color: var(--orb-text-muted);
  color: var(--orb-text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.orb-btn--sm {
  padding: 8px 18px;
  font-size: 0.825rem;
}

/* ========================================================================
   CARDS
   ======================================================================== */

.orb-card {
  background: var(--orb-bg-card);
  border: 1px solid var(--orb-border);
  border-radius: var(--orb-radius-lg);
  padding: 32px;
  transition: all var(--orb-transition);
  position: relative;
  overflow: hidden;
}

.orb-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--orb-shadow);
}

.orb-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.orb-card__icon--green {
  background: var(--orb-accent-dim);
  color: var(--orb-accent);
}
.orb-card__icon--blue {
  background: var(--orb-accent-secondary-dim);
  color: var(--orb-accent-secondary);
}
.orb-card__icon--red {
  background: var(--orb-red-dim);
  color: var(--orb-red);
}
.orb-card__icon--amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--orb-amber);
}

.orb-card h3 {
  margin-bottom: 10px;
}

.orb-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========================================================================
   STATS PREVIEW TABLE
   ======================================================================== */

.orb-stats-preview {
  background: var(--orb-bg-card);
  border: 1px solid var(--orb-border);
  border-radius: var(--orb-radius-lg);
  overflow: hidden;
}

.orb-stats-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--orb-border);
}

.orb-stats-preview__title {
  font-family: var(--orb-font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.orb-stats-preview__filters {
  display: flex;
  gap: 6px;
}

.orb-pill {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--orb-border);
  background: transparent;
  color: var(--orb-text-secondary);
  cursor: pointer;
  transition: all var(--orb-transition);
}
.orb-pill:hover,
.orb-pill.is-active {
  background: var(--orb-accent-dim);
  border-color: var(--orb-border-accent);
  color: var(--orb-accent);
}

.orb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.orb-table th {
  text-align: left;
  padding: 12px 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orb-text-muted);
  border-bottom: 1px solid var(--orb-border);
}

.orb-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--orb-border);
  font-family: var(--orb-font-mono);
  font-size: 0.82rem;
  color: var(--orb-text-secondary);
}

.orb-table tr:last-child td {
  border-bottom: none;
}

.orb-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.orb-table .orb-positive {
  color: var(--orb-accent);
}
.orb-table .orb-negative {
  color: var(--orb-red);
}

.orb-table .orb-instrument {
  font-family: var(--orb-font-body);
  font-weight: 600;
  color: var(--orb-text-primary);
}

/* ========================================================================
   SECTION HEADERS
   ======================================================================== */

.orb-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.orb-section-header p {
  margin: 12px auto 0;
}

.orb-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orb-accent);
  margin-bottom: 12px;
}

/* ========================================================================
   PRICING / CTA
   ======================================================================== */

.orb-cta-section {
  text-align: center;
  padding: 80px 0;
}

.orb-cta-box {
  position: relative;
  background: var(--orb-bg-card);
  border: 1px solid var(--orb-border-accent);
  border-radius: var(--orb-radius-lg);
  padding: 60px 40px;
  max-width: 640px;
  margin: 0 auto;
  overflow: hidden;
}

.orb-cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orb-accent), transparent);
}

.orb-cta-box h2 {
  margin-bottom: 12px;
}

.orb-cta-box p {
  margin: 0 auto 32px;
}

.orb-price {
  font-family: var(--orb-font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--orb-accent);
  margin-bottom: 8px;
}

.orb-price-sub {
  font-size: 0.85rem;
  color: var(--orb-text-muted);
  margin-bottom: 32px;
}

/* ========================================================================
   MEMBERS DASHBOARD
   ======================================================================== */

.orb-dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 68px);
}

@media (max-width: 900px) {
  .orb-dashboard {
    grid-template-columns: 1fr;
  }
}

.orb-sidebar {
  background: var(--orb-bg-secondary);
  border-right: 1px solid var(--orb-border);
  padding: 32px 20px;
}

.orb-sidebar__section {
  margin-bottom: 32px;
}

.orb-sidebar__label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orb-text-muted);
  padding: 0 12px;
  margin-bottom: 8px;
}

.orb-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--orb-radius-sm);
  color: var(--orb-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--orb-transition);
}
.orb-sidebar a:hover,
.orb-sidebar a.is-active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--orb-text-primary);
}
.orb-sidebar a.is-active {
  color: var(--orb-accent);
}

.orb-main {
  padding: 36px;
}

.orb-main__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

/* Stat cards row */
.orb-stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.orb-stat-card {
  background: var(--orb-bg-card);
  border: 1px solid var(--orb-border);
  border-radius: var(--orb-radius);
  padding: 20px;
}

.orb-stat-card__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orb-text-muted);
  margin-bottom: 8px;
}

.orb-stat-card__value {
  font-family: var(--orb-font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--orb-text-primary);
}

/* ========================================================================
   LOGIN / REGISTER FORMS
   ======================================================================== */

.orb-auth {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.orb-auth__card {
  width: 100%;
  max-width: 420px;
  background: var(--orb-bg-card);
  border: 1px solid var(--orb-border);
  border-radius: var(--orb-radius-lg);
  padding: 44px 36px;
}

.orb-auth__card h2 {
  margin-bottom: 8px;
}

.orb-auth__card > p {
  margin-bottom: 32px;
  font-size: 0.9rem;
}

.orb-form-group {
  margin-bottom: 20px;
}

.orb-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orb-text-secondary);
  margin-bottom: 6px;
}

.orb-input {
  width: 100%;
  padding: 11px 16px;
  background: var(--orb-bg-input);
  border: 1px solid var(--orb-border);
  border-radius: var(--orb-radius-sm);
  color: var(--orb-text-primary);
  font-family: var(--orb-font-body);
  font-size: 0.9rem;
  transition: border-color var(--orb-transition);
  outline: none;
}

.orb-input:focus {
  border-color: var(--orb-accent);
  box-shadow: 0 0 0 3px var(--orb-accent-dim);
}

.orb-input::placeholder {
  color: var(--orb-text-muted);
}

.orb-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  font-size: 0.85rem;
}

/* WP Login form overrides */
.login #login {
  background: var(--orb-bg-card);
  border-radius: var(--orb-radius-lg);
  padding: 36px;
}

/* ========================================================================
   STRATEGY & INDICATOR CARDS (Post Type Archives)
   ======================================================================== */

.orb-content-card {
  background: var(--orb-bg-card);
  border: 1px solid var(--orb-border);
  border-radius: var(--orb-radius-lg);
  overflow: hidden;
  transition: all var(--orb-transition);
}

.orb-content-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--orb-shadow);
}

.orb-content-card__thumb {
  height: 180px;
  background: var(--orb-bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orb-text-muted);
  font-size: 2rem;
  overflow: hidden;
}

.orb-content-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orb-content-card__body {
  padding: 24px;
}

.orb-content-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.orb-tag {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.orb-tag--strategy {
  background: var(--orb-accent-dim);
  color: var(--orb-accent);
}
.orb-tag--indicator {
  background: var(--orb-accent-secondary-dim);
  color: var(--orb-accent-secondary);
}
.orb-tag--free {
  background: rgba(245, 158, 11, 0.12);
  color: var(--orb-amber);
}

.orb-content-card__body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.orb-content-card__body h3 a {
  color: var(--orb-text-primary);
}
.orb-content-card__body h3 a:hover {
  color: var(--orb-accent);
}

.orb-content-card__body p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ========================================================================
   SINGLE POST / PAGE CONTENT
   ======================================================================== */

.orb-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.orb-content h1 {
  margin-bottom: 16px;
}

.orb-content .entry-content {
  font-size: 1rem;
  line-height: 1.8;
}

.orb-content .entry-content p {
  margin-bottom: 1.4em;
  max-width: 100%;
}

.orb-content .entry-content h2 {
  margin: 2em 0 0.8em;
}

.orb-content .entry-content h3 {
  margin: 1.6em 0 0.6em;
}

.orb-content .entry-content img {
  border-radius: var(--orb-radius);
  margin: 1.5em 0;
}

.orb-content .entry-content pre,
.orb-content .entry-content code {
  font-family: var(--orb-font-mono);
  font-size: 0.85rem;
}

.orb-content .entry-content pre {
  background: var(--orb-bg-secondary);
  border: 1px solid var(--orb-border);
  border-radius: var(--orb-radius);
  padding: 20px;
  overflow-x: auto;
  margin: 1.5em 0;
}

.orb-content .entry-content code {
  background: var(--orb-bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
}

/* TradingView Pine Script blocks */
.orb-pine-block {
  background: var(--orb-bg-secondary);
  border: 1px solid var(--orb-border);
  border-radius: var(--orb-radius);
  overflow: hidden;
  margin: 1.5em 0;
}

.orb-pine-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--orb-border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orb-text-muted);
}

.orb-pine-block pre {
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
}

/* ========================================================================
   FOOTER
   ======================================================================== */

.orb-footer {
  border-top: 1px solid var(--orb-border);
  padding: 48px 0 32px;
}

.orb-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .orb-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.orb-footer__brand p {
  font-size: 0.85rem;
  margin-top: 12px;
  max-width: 300px;
}

.orb-footer__col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orb-text-muted);
  margin-bottom: 16px;
}

.orb-footer__col a {
  display: block;
  color: var(--orb-text-secondary);
  font-size: 0.875rem;
  padding: 4px 0;
}
.orb-footer__col a:hover {
  color: var(--orb-text-primary);
}

.orb-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--orb-border);
  font-size: 0.8rem;
  color: var(--orb-text-muted);
}

/* ========================================================================
   LOCKED CONTENT OVERLAY
   ======================================================================== */

.orb-locked {
  position: relative;
}

.orb-locked__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--orb-bg-primary) 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 60px 24px;
  text-align: center;
  z-index: 5;
}

.orb-locked__overlay h3 {
  margin-bottom: 8px;
}
.orb-locked__overlay p {
  margin: 0 auto 20px;
}

/* ========================================================================
   WP SPECIFIC OVERRIDES
   ======================================================================== */

/* Gutenberg alignment */
.alignwide {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.alignfull {
  width: 100%;
  max-width: 100%;
}

/* WordPress navigation menu */
.orb-nav .menu {
  display: flex;
  list-style: none;
  gap: 4px;
}
.orb-nav .menu li a {
  color: var(--orb-text-secondary);
  padding: 8px 16px;
  border-radius: var(--orb-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}
.orb-nav .menu li a:hover,
.orb-nav .menu .current-menu-item a {
  color: var(--orb-text-primary);
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .orb-nav .menu {
    flex-direction: column;
  }
}

/* WP admin bar offset */
body.admin-bar .orb-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .orb-header {
    top: 46px;
  }
}

/* Pagination */
.orb-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.orb-pagination a,
.orb-pagination span {
  padding: 8px 14px;
  border-radius: var(--orb-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--orb-border);
  color: var(--orb-text-secondary);
}

.orb-pagination .current {
  background: var(--orb-accent);
  color: var(--orb-bg-primary);
  border-color: var(--orb-accent);
}

/* ========================================================================
   UTILITY
   ======================================================================== */

.orb-blur-sm { filter: blur(4px); pointer-events: none; user-select: none; }
.orb-text-center { text-align: center; }
.orb-mt-0 { margin-top: 0; }
.orb-mb-0 { margin-bottom: 0; }
.orb-hidden { display: none; }

/* Smooth fade-in for page content */
@keyframes orb-fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.orb-animate-in {
  animation: orb-fadeIn 0.5s ease-out forwards;
}

/* Screen readers only */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ========================================================================
   GOOGLE SIGN-IN BUTTON + DIVIDER
   ======================================================================== */

.orb-google-signin {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.orb-google-signin iframe {
  /* Google renders its button in an iframe; constrain width on small screens */
  max-width: 100% !important;
}

.orb-auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 28px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orb-text-muted);
}

.orb-auth__divider::before,
.orb-auth__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--orb-border);
}

.orb-auth__divider span {
  white-space: nowrap;
}

/* ========================================================================
   NOTICE BOARD (sticky announcement banner) — enhanced
   ======================================================================== */

.orb-notice {
  position: sticky;
  top: 0;
  z-index: 1000;            /* above the header */
  width: 100%;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 2px 14px rgba(0,0,0,0.35);
  animation: orbNoticeSlideDown 0.3s ease-out;
}

@keyframes orbNoticeSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.orb-notice__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.orb-notice__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  font-size: 1rem;
  line-height: 1;
}

.orb-notice__message {
  flex: 1;
  min-width: 0;
  letter-spacing: 0.01em;
}

.orb-notice__message a {
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
  color: inherit;
}

.orb-notice__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.orb-notice__close:hover {
  opacity: 1;
  background: rgba(255,255,255,0.24);
}

/* ----- Type: info (blue) ----- */
.orb-notice--info {
  background: linear-gradient(90deg, #1d63c9 0%, #2f7de0 100%);
  color: #ffffff;
}

/* ----- Type: warning (amber) ----- */
.orb-notice--warning {
  background: linear-gradient(90deg, #c47e10 0%, #e0a020 100%);
  color: #1a1205;
}
.orb-notice--warning .orb-notice__icon,
.orb-notice--warning .orb-notice__close {
  background: rgba(0,0,0,0.16);
}
.orb-notice--warning .orb-notice__close:hover {
  background: rgba(0,0,0,0.28);
}

/* ----- Type: success (green) ----- */
.orb-notice--success {
  background: linear-gradient(90deg, #0c9b62 0%, #12c47e 100%);
  color: #04210f;
}
.orb-notice--success .orb-notice__icon,
.orb-notice--success .orb-notice__close {
  background: rgba(0,0,0,0.14);
}
.orb-notice--success .orb-notice__close:hover {
  background: rgba(0,0,0,0.26);
}

@media (max-width: 600px) {
  .orb-notice {
    font-size: 0.86rem;
  }
  .orb-notice__inner {
    padding: 13px 16px;
    gap: 10px;
  }
  .orb-notice__icon {
    width: 24px;
    height: 24px;
    font-size: 0.9rem;
  }
}
