/*
Theme Name:   OrganicRanker
Theme URI:    https://organicranker.co.uk
Description:  OrganicRanker Guest Posting Marketplace Theme. Works standalone or as Astra child theme.
Author:       OrganicRanker
Author URI:   https://organicranker.co.uk
Version:      1.0.0
Text Domain:  organicranker-child
*/

/* ============================================
   PARENT THEME — handled via functions.php enqueue
   No @import needed — enqueued programmatically
   ============================================ */

/* ============================================
   GOOGLE FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   CSS VARIABLES / DESIGN TOKENS
   ============================================ */
:root {
  /* Brand Colors */
  --or-dark:       #0A2E1A;
  --or-dark-2:     #0F3D22;
  --or-dark-3:     #1A4D2E;
  --or-gold:       #C9A84C;
  --or-gold-light: #E2C57A;
  --or-cream:      #F9F6EF;
  --or-cream-2:    #F0EBE0;
  --or-white:      #FFFFFF;
  --or-slate:      #2D3748;
  --or-slate-2:    #4A5568;
  --or-slate-3:    #718096;
  --or-border:     #E2D9C8;
  --or-green-mid:  #155724;
  --or-success:    #28A745;
  --or-danger:     #DC3545;
  --or-warning:    #FFC107;

  /* Typography */
  --font-display: 'Sora', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, sans-serif;

  /* Spacing */
  --section-pad: 80px 0;
  --card-radius:  12px;
  --btn-radius:   8px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(10, 46, 26, 0.08);
  --shadow-md:  0 8px 24px rgba(10, 46, 26, 0.12);
  --shadow-lg:  0 20px 60px rgba(10, 46, 26, 0.18);
}

/* ============================================
   GLOBAL RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--or-slate);
  background: var(--or-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--or-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

a { color: var(--or-dark-3); text-decoration: none; }
a:hover { color: var(--or-gold); }

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

/* ============================================
   BUTTONS
   ============================================ */
.or-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  text-decoration: none;
}

.or-btn-primary {
  background: var(--or-gold);
  color: var(--or-dark);
  border-color: var(--or-gold);
}
.or-btn-primary:hover {
  background: var(--or-gold-light);
  border-color: var(--or-gold-light);
  color: var(--or-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}

.or-btn-outline {
  background: transparent;
  color: var(--or-white);
  border-color: rgba(255,255,255,0.5);
}
.or-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--or-white);
  color: var(--or-white);
}

.or-btn-dark {
  background: var(--or-dark);
  color: var(--or-white);
  border-color: var(--or-dark);
}
.or-btn-dark:hover {
  background: var(--or-dark-3);
  border-color: var(--or-dark-3);
  color: var(--or-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.or-btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.or-btn-lg {
  padding: 16px 40px;
  font-size: 17px;
}

/* ============================================
   ASTRA HEADER OVERRIDE
   ============================================ */
#masthead,
.site-header,
.ast-primary-header-bar {
  background: var(--or-dark) !important;
  border-bottom: 1px solid var(--or-dark-3) !important;
}

.ast-primary-header-bar .main-header-bar {
  background: var(--or-dark) !important;
}

/* Logo text */
.site-title a,
.ast-site-identity .site-title a {
  color: var(--or-white) !important;
  font-family: var(--font-display) !important;
  font-size: 22px !important;
}
.site-title a span { color: var(--or-gold) !important; }

/* Nav links */
.main-navigation .menu > li > a,
.ast-header-menu > li > a,
.main-header-menu .menu-item > a {
  color: rgba(255,255,255,0.85) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 10px 16px !important;
  transition: color 0.2s !important;
}
.main-header-menu .menu-item > a:hover,
.main-header-menu .menu-item.current-menu-item > a {
  color: var(--or-gold) !important;
}

/* Header CTA buttons */
.header-cta-btns {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ============================================
   HERO SECTION
   ============================================ */
.or-hero {
  background: var(--or-dark);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(21, 87, 36, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(201, 168, 76, 0.08) 0%, transparent 60%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.or-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.or-hero .container { position: relative; z-index: 1; }

.or-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--or-gold-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.or-hero-eyebrow::before {
  content: '●';
  font-size: 8px;
  color: var(--or-gold);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.or-hero h1 {
  font-family: var(--font-display);
  color: var(--or-white);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}
.or-hero h1 .highlight {
  color: var(--or-gold);
  position: relative;
}

.or-hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: 18px;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 40px;
}

.or-hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Stats bar */
.or-hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.or-hero-stat-item {}
.or-hero-stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--or-white);
  line-height: 1;
  display: block;
}
.or-hero-stat-num span { color: var(--or-gold); }
.or-hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
  display: block;
}

/* ============================================
   SECTION COMMONS
   ============================================ */
.or-section { padding: var(--section-pad); }
.or-section-light { background: var(--or-cream); }
.or-section-white { background: var(--or-white); }
.or-section-dark { background: var(--or-dark); }

.or-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.or-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.or-section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--or-gold);
  margin-bottom: 12px;
  display: block;
}
.or-section-header h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  margin-bottom: 16px;
}
.or-section-header p {
  color: var(--or-slate-2);
  font-size: 17px;
  line-height: 1.7;
}

/* ============================================
   HOW IT WORKS TABS
   ============================================ */
.or-how-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}
.or-how-tab {
  padding: 10px 28px;
  border-radius: 40px;
  border: 2px solid var(--or-border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--or-slate-2);
  cursor: pointer;
  transition: all 0.25s;
}
.or-how-tab.active {
  background: var(--or-dark);
  border-color: var(--or-dark);
  color: var(--or-white);
}

.or-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.or-step-card {
  background: var(--or-white);
  border: 1px solid var(--or-border);
  border-radius: var(--card-radius);
  padding: 32px 28px;
  position: relative;
  transition: box-shadow 0.25s;
}
.or-step-card:hover { box-shadow: var(--shadow-md); }

.or-step-num {
  width: 44px;
  height: 44px;
  background: var(--or-dark);
  color: var(--or-gold);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 20px;
}
.or-step-card h4 {
  font-size: 17px;
  margin-bottom: 10px;
}
.or-step-card p {
  font-size: 14px;
  color: var(--or-slate-2);
  line-height: 1.6;
  margin: 0;
}

.or-tab-panel { display: none; }
.or-tab-panel.active { display: block; }

/* ============================================
   SITE LISTINGS (BUYER BROWSE)
   ============================================ */
.or-listings-bar {
  background: var(--or-dark);
  padding: 28px 0;
}
.or-listings-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.or-filter-input,
.or-filter-select {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--or-white);
  padding: 10px 16px;
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.or-filter-input::placeholder { color: rgba(255,255,255,0.4); }
.or-filter-input:focus,
.or-filter-select:focus { border-color: var(--or-gold); }
.or-filter-input-main { flex: 1; min-width: 200px; }

.or-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.or-site-card {
  background: var(--or-white);
  border: 1px solid var(--or-border);
  border-radius: var(--card-radius);
  padding: 24px;
  transition: all 0.25s;
  position: relative;
}
.or-site-card:hover {
  border-color: var(--or-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.or-site-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.or-site-domain {
  font-weight: 700;
  color: var(--or-dark);
  font-size: 15px;
}
.or-site-niche {
  display: inline-block;
  background: rgba(10, 46, 26, 0.08);
  color: var(--or-dark-3);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.or-site-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--or-cream);
  border-radius: 8px;
}
.or-metric {}
.or-metric-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--or-dark);
  display: block;
}
.or-metric-lbl {
  font-size: 11px;
  color: var(--or-slate-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.or-site-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.or-site-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--or-dark);
}
.or-site-price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--or-slate-3);
}

/* ============================================
   PORTAL PAGES (PUBLISHER / BUYER)
   ============================================ */
.or-portal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: calc(100vh - 80px);
}

/* Sidebar */
.or-sidebar {
  background: var(--or-dark);
  padding: 32px 0;
  border-right: 1px solid var(--or-dark-3);
}
.or-sidebar-logo {
  padding: 0 24px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 16px;
}
.or-sidebar-logo span {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--or-white);
}
.or-sidebar-logo span em { color: var(--or-gold); font-style: normal; }

.or-sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 16px 24px 8px;
}
.or-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.or-nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--or-white);
  border-left-color: rgba(201,168,76,0.5);
}
.or-nav-item.active {
  background: rgba(201, 168, 76, 0.1);
  color: var(--or-gold-light);
  border-left-color: var(--or-gold);
}
.or-nav-icon { font-size: 16px; width: 20px; text-align: center; }
.or-nav-badge {
  margin-left: auto;
  background: var(--or-gold);
  color: var(--or-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

/* Main content area */
.or-portal-main {
  background: #F4F7F4;
  padding: 40px;
  overflow-y: auto;
}

.or-portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.or-portal-header h1 {
  font-size: 26px;
  margin: 0;
}
.or-portal-header p {
  color: var(--or-slate-2);
  font-size: 14px;
  margin: 4px 0 0;
}

/* Stats Cards */
.or-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.or-stat-card {
  background: var(--or-white);
  border: 1px solid var(--or-border);
  border-radius: var(--card-radius);
  padding: 24px;
}
.or-stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}
.or-stat-card-icon.green { background: rgba(10,46,26,0.08); }
.or-stat-card-icon.gold  { background: rgba(201,168,76,0.12); }
.or-stat-card-icon.blue  { background: rgba(59,130,246,0.1); }
.or-stat-card-icon.red   { background: rgba(220,53,69,0.08); }

.or-stat-card-val {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--or-dark);
  display: block;
  line-height: 1;
}
.or-stat-card-lbl {
  font-size: 13px;
  color: var(--or-slate-3);
  margin-top: 6px;
  display: block;
}
.or-stat-trend {
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  display: block;
}
.or-stat-trend.up { color: var(--or-success); }
.or-stat-trend.down { color: var(--or-danger); }

/* Tables */
.or-table-card {
  background: var(--or-white);
  border: 1px solid var(--or-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 28px;
}
.or-table-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--or-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.or-table-card-header h3 {
  font-size: 16px;
  margin: 0;
}
.or-table {
  width: 100%;
  border-collapse: collapse;
}
.or-table th {
  background: var(--or-cream);
  padding: 12px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--or-slate-3);
  border-bottom: 1px solid var(--or-border);
}
.or-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(226,217,200,0.5);
  font-size: 14px;
  color: var(--or-slate);
  vertical-align: middle;
}
.or-table tr:last-child td { border-bottom: none; }
.or-table tr:hover td { background: rgba(249,246,239,0.5); }

/* Status badges */
.or-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.or-badge::before { content: '●'; font-size: 8px; }
.or-badge-success { background: rgba(40,167,69,0.1);  color: #1a7a38; }
.or-badge-warning { background: rgba(255,193,7,0.15); color: #856404; }
.or-badge-pending { background: rgba(23,162,184,0.1);  color: #0c6875; }
.or-badge-danger  { background: rgba(220,53,69,0.1);   color: #9d1a26; }

/* ============================================
   FORMS
   ============================================ */
.or-form-card {
  background: var(--or-white);
  border: 1px solid var(--or-border);
  border-radius: var(--card-radius);
  padding: 36px;
  max-width: 560px;
}
.or-form-card h2 { font-size: 24px; margin-bottom: 6px; }
.or-form-card .or-subtitle {
  color: var(--or-slate-2);
  font-size: 14px;
  margin-bottom: 28px;
}
.or-form-group { margin-bottom: 20px; }
.or-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--or-slate);
  margin-bottom: 7px;
}
.or-input,
.or-select,
.or-textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--or-border);
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--or-slate);
  background: var(--or-white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.or-input:focus,
.or-select:focus,
.or-textarea:focus {
  border-color: var(--or-dark);
  box-shadow: 0 0 0 3px rgba(10,46,26,0.08);
}
.or-textarea { resize: vertical; min-height: 100px; }
.or-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================
   LOGIN / REGISTER PAGE
   ============================================ */
.or-auth-page {
  min-height: 100vh;
  background: var(--or-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background-image:
    radial-gradient(ellipse 70% 70% at 10% 10%, rgba(21,87,36,0.6) 0%, transparent 50%),
    radial-gradient(ellipse 60% 60% at 90% 90%, rgba(201,168,76,0.06) 0%, transparent 50%);
}

.or-auth-box {
  background: var(--or-white);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
}
.or-auth-top {
  background: var(--or-dark);
  padding: 32px;
  text-align: center;
}
.or-auth-top .or-logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--or-white);
}
.or-auth-top .or-logo span { color: var(--or-gold); }
.or-auth-top p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 0;
}
.or-auth-body { padding: 36px; }

.or-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--or-cream);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 28px;
}
.or-auth-tab {
  padding: 9px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--or-slate-2);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.or-auth-tab.active {
  background: var(--or-white);
  color: var(--or-dark);
  box-shadow: var(--shadow-sm);
}

.or-role-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.or-role-option {
  border: 2px solid var(--or-border);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.or-role-option.selected {
  border-color: var(--or-dark);
  background: rgba(10,46,26,0.04);
}
.or-role-option-icon { font-size: 24px; margin-bottom: 8px; }
.or-role-option-title { font-size: 13px; font-weight: 700; color: var(--or-dark); }
.or-role-option-sub { font-size: 11px; color: var(--or-slate-3); margin-top: 2px; }

/* Social divider */
.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--or-slate-3);
  font-size: 12px;
}
.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--or-border);
}

/* ============================================
   PRICING SECTION
   ============================================ */
.or-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}
.or-plan-card {
  background: var(--or-white);
  border: 2px solid var(--or-border);
  border-radius: var(--card-radius);
  padding: 36px 32px;
  position: relative;
  transition: all 0.25s;
}
.or-plan-card:hover { box-shadow: var(--shadow-md); }
.or-plan-card.featured {
  border-color: var(--or-gold);
  background: var(--or-dark);
}
.or-plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--or-gold);
  color: var(--or-dark);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.or-plan-name {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--or-gold);
  margin-bottom: 8px;
}
.or-plan-price {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--or-dark);
  line-height: 1;
  margin-bottom: 4px;
}
.or-plan-card.featured .or-plan-price { color: var(--or-white); }
.or-plan-price sup { font-size: 22px; vertical-align: super; }
.or-plan-price sub { font-size: 16px; font-weight: 400; color: var(--or-slate-3); }
.or-plan-card.featured .or-plan-price sub { color: rgba(255,255,255,0.5); }
.or-plan-desc {
  font-size: 14px;
  color: var(--or-slate-2);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--or-border);
}
.or-plan-card.featured .or-plan-desc { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.1); }
.or-plan-features { list-style: none; margin: 0 0 32px; padding: 0; }
.or-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--or-slate);
  padding: 7px 0;
}
.or-plan-card.featured .or-plan-features li { color: rgba(255,255,255,0.85); }
.or-plan-features li::before {
  content: '✓';
  color: var(--or-success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.or-plan-card.featured .or-plan-features li::before { color: var(--or-gold); }

/* ============================================
   TESTIMONIALS
   ============================================ */
.or-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.or-testimonial-card {
  background: var(--or-white);
  border: 1px solid var(--or-border);
  border-radius: var(--card-radius);
  padding: 28px;
}
.or-testimonial-stars {
  color: var(--or-gold);
  font-size: 14px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.or-testimonial-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--or-slate);
  margin-bottom: 20px;
  font-style: italic;
}
.or-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.or-testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--or-dark);
  color: var(--or-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.or-testimonial-name { font-size: 14px; font-weight: 700; color: var(--or-dark); }
.or-testimonial-role { font-size: 12px; color: var(--or-slate-3); }

/* ============================================
   FOOTER
   ============================================ */
.or-footer {
  background: var(--or-dark);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 0;
}
.or-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.or-footer-brand .or-logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--or-white);
  display: block;
  margin-bottom: 14px;
}
.or-footer-brand .or-logo-text span { color: var(--or-gold); }
.or-footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}
.or-footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--or-gold);
  margin-bottom: 20px;
}
.or-footer-col ul { list-style: none; margin: 0; padding: 0; }
.or-footer-col ul li { margin-bottom: 10px; }
.or-footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: color 0.2s;
}
.or-footer-col ul li a:hover { color: var(--or-gold-light); }
.or-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

/* ============================================
   PUBLISHER: SUBMIT SITE FORM
   ============================================ */
.or-submit-site-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

.or-info-box {
  background: var(--or-dark);
  border-radius: var(--card-radius);
  padding: 28px;
  color: rgba(255,255,255,0.8);
}
.or-info-box h4 {
  color: var(--or-gold);
  font-size: 15px;
  margin-bottom: 16px;
}
.or-info-list { list-style: none; padding: 0; margin: 0; }
.or-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  line-height: 1.5;
}
.or-info-list li:last-child { border-bottom: none; }
.or-info-list li::before {
  content: '→';
  color: var(--or-gold);
  flex-shrink: 0;
  font-weight: 700;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .or-portal-layout { grid-template-columns: 220px 1fr; }
  .or-footer-grid { grid-template-columns: 1fr 1fr; }
  .or-submit-site-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .or-portal-layout { grid-template-columns: 1fr; }
  .or-sidebar { display: none; }
  .or-hero { padding: 60px 0 50px; }
  .or-hero-stats { gap: 24px; }
  .or-portal-main { padding: 24px 16px; }
  .or-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .or-input-row { grid-template-columns: 1fr; }
  .or-section { padding: 56px 0; }
  .or-hero-ctas { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   HOMEPAGE MODERN ENHANCEMENT — Colorful + Animated
   ============================================================ */

/* ── Extra accent colors for vibrant touches ── */
:root {
  --or-blue:   #3B82F6;
  --or-purple: #8B5CF6;
  --or-pink:   #EC4899;
  --or-orange: #F59E0B;
  --or-teal:   #14B8A6;
}

/* ── Hero — richer multi-color gradient mesh ── */
.or-hero {
  background:
    radial-gradient(ellipse 70% 50% at 15% 20%, rgba(139, 92, 246, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 85% 15%, rgba(201, 168, 76, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse 80% 70% at 50% 100%, rgba(20, 184, 166, 0.12) 0%, transparent 60%),
    var(--or-dark) !important;
}

.or-hero-eyebrow {
  background: linear-gradient(135deg, rgba(201,168,76,0.18), rgba(139,92,246,0.12));
  border: 1px solid rgba(201,168,76,0.35);
  box-shadow: 0 4px 20px rgba(201,168,76,0.08);
}

.or-hero h1 .highlight {
  background: linear-gradient(120deg, var(--or-gold) 0%, var(--or-gold-light) 50%, var(--or-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animated gradient orbs floating in hero */
.or-hero { isolation: isolate; }
.or-hero::after {
  content: '';
  position: absolute;
  top: -120px; right: -100px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(139,92,246,0.25) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  animation: float-orb 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes float-orb {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-30px, 30px) scale(1.08); }
}

/* Stat numbers — gradient + hover lift */
.or-hero-stat-item {
  transition: transform 0.3s ease;
}
.or-hero-stat-item:hover { transform: translateY(-4px); }
.or-hero-stat-num {
  background: linear-gradient(135deg, var(--or-gold-light), var(--or-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Section eyebrow — colorful pill ── */
.or-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(139,92,246,0.08));
  border: 1px solid var(--or-border);
  padding: 5px 14px;
  border-radius: 20px;
}

/* ── How It Works — colorful numbered cards ── */
.or-how-tabs {
  display: inline-flex;
  background: var(--or-cream);
  border-radius: 14px;
  padding: 6px;
  gap: 4px;
  margin: 32px auto 48px;
}
.or-how-tab {
  padding: 10px 28px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  color: var(--or-slate-2);
  cursor: pointer;
  transition: all 0.25s ease;
}
.or-how-tab.active {
  background: var(--or-dark);
  color: var(--or-white);
  box-shadow: var(--shadow-sm);
}

.or-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.or-step-card {
  background: var(--or-white);
  border: 1px solid var(--or-border);
  border-radius: var(--card-radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.or-step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--or-gold), var(--or-purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.or-step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.or-step-card:hover::before { transform: scaleX(1); }

.or-step-num {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--or-white);
  margin-bottom: 18px;
}
/* Rotate through 4 colors for visual variety */
.or-steps-grid .or-step-card:nth-child(1) .or-step-num { background: linear-gradient(135deg, var(--or-gold), var(--or-gold-light)); }
.or-steps-grid .or-step-card:nth-child(2) .or-step-num { background: linear-gradient(135deg, var(--or-purple), #A78BFA); }
.or-steps-grid .or-step-card:nth-child(3) .or-step-num { background: linear-gradient(135deg, var(--or-teal), #2DD4BF); }
.or-steps-grid .or-step-card:nth-child(4) .or-step-num { background: linear-gradient(135deg, var(--or-blue), #60A5FA); }

.or-step-card h4 { font-size: 17px; margin-bottom: 8px; }
.or-step-card p { font-size: 14px; color: var(--or-slate-2); line-height: 1.65; margin: 0; }

/* ── Featured site cards — colorful niche tags ── */
.or-sites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.or-site-card {
  background: var(--or-white);
  border: 1px solid var(--or-border);
  border-radius: var(--card-radius);
  padding: 22px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.or-site-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--or-gold);
}
.or-site-card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.or-site-domain { font-weight: 700; color: var(--or-dark); font-size: 15px; }
.or-site-niche {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(236,72,153,0.1));
  color: var(--or-purple);
}
.or-site-metrics {
  display: flex; gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--or-border);
  border-bottom: 1px solid var(--or-border);
  margin-bottom: 16px;
}
.or-metric { flex: 1; text-align: center; }
.or-metric-val {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--or-dark);
}
.or-metric-lbl {
  display: block;
  font-size: 11px;
  color: var(--or-slate-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.or-site-card-footer {
  display: flex; justify-content: space-between; align-items: center;
}
.or-site-price { font-weight: 700; color: var(--or-dark); font-size: 16px; }
.or-site-price span { font-weight: 400; font-size: 12px; color: var(--or-slate-3); }

/* ── Testimonials — gradient avatar + colorful stars ── */
.or-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.or-testimonial-card {
  background: var(--or-white);
  border: 1px solid var(--or-border);
  border-radius: var(--card-radius);
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.or-testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.or-testimonial-stars { color: var(--or-gold); font-size: 15px; letter-spacing: 2px; margin-bottom: 14px; }
.or-testimonial-text { font-size: 14.5px; line-height: 1.7; color: var(--or-slate-2); margin-bottom: 20px; font-style: italic; }
.or-testimonial-author { display: flex; align-items: center; gap: 12px; }
.or-testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  color: var(--or-white);
  flex-shrink: 0;
}
.or-testimonials-grid .or-testimonial-card:nth-child(1) .or-testimonial-avatar { background: linear-gradient(135deg, var(--or-blue), #818CF8); }
.or-testimonials-grid .or-testimonial-card:nth-child(2) .or-testimonial-avatar { background: linear-gradient(135deg, var(--or-teal), #34D399); }
.or-testimonials-grid .or-testimonial-card:nth-child(3) .or-testimonial-avatar { background: linear-gradient(135deg, var(--or-pink), var(--or-orange)); }
.or-testimonial-name { font-weight: 700; font-size: 14px; color: var(--or-dark); }
.or-testimonial-role { font-size: 12.5px; color: var(--or-slate-3); }

/* ── Pricing cards — featured glow ── */
.or-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 800px;
  margin: 0 auto;
}
.or-plan-card {
  background: var(--or-white);
  border: 1.5px solid var(--or-border);
  border-radius: 16px;
  padding: 36px 32px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.or-plan-card:hover { transform: translateY(-4px); }
.or-plan-card.featured {
  border-color: var(--or-gold);
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(201,168,76,0.08) 0%, transparent 60%),
    var(--or-white);
  box-shadow: 0 8px 30px rgba(201,168,76,0.18);
}
.or-plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--or-gold), var(--or-gold-light));
  color: var(--or-dark);
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 5px 16px; border-radius: 20px;
  box-shadow: 0 4px 12px rgba(201,168,76,0.4);
}
.or-plan-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--or-slate-3); margin-bottom: 8px; }
.or-plan-price { font-family: var(--font-display); font-size: 44px; font-weight: 800; color: var(--or-dark); margin-bottom: 6px; }
.or-plan-price sup { font-size: 22px; vertical-align: top; top: 4px; }
.or-plan-price sub { font-size: 14px; font-weight: 400; color: var(--or-slate-3); }
.or-plan-desc { font-size: 14px; color: var(--or-slate-2); margin-bottom: 24px; line-height: 1.6; }
.or-plan-features { list-style: none; padding: 0; margin: 0 0 28px; }
.or-plan-features li {
  padding: 9px 0 9px 28px;
  position: relative;
  font-size: 14px;
  color: var(--or-slate);
  border-bottom: 1px solid var(--or-cream-2);
}
.or-plan-features li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--or-teal);
  font-weight: 800;
}

/* ── Section header centering polish ── */
.or-section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.or-section-header h2 { font-size: clamp(26px, 3.5vw, 38px); margin: 12px 0 14px; }
.or-section-header p { color: var(--or-slate-2); font-size: 16px; line-height: 1.65; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .or-steps-grid, .or-sites-grid, .or-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .or-pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .or-steps-grid, .or-sites-grid, .or-testimonials-grid { grid-template-columns: 1fr; }
  .or-hero-stats { gap: 28px; }
}

/* Niche category grid responsive */
@media (max-width: 900px) {
  .or-section-white div[style*="grid-template-columns:repeat(6,1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 500px) {
  .or-section-white div[style*="grid-template-columns:repeat(6,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ============================================================
   MOBILE NAVIGATION — Hamburger + Slide Menu
   ============================================================ */
.or-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.or-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--or-white);
  border-radius: 2px;
  transition: all 0.3s ease;
  margin: 0 auto;
}
.or-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.or-burger.active span:nth-child(2) { opacity: 0; }
.or-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.or-mobile-menu {
  display: none;
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--or-dark);
  z-index: 999999;
  padding: 90px 28px 28px;
  transition: right 0.35s ease;
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0,0,0,0.3);
}
.or-mobile-menu.open {
  display: block;
  right: 0;
}

.or-mobile-menu-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.or-mobile-menu-list li a {
  display: block;
  padding: 14px 4px;
  color: rgba(255,255,255,0.85);
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.or-mobile-menu-list li a:hover { color: var(--or-gold); }

.or-mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.or-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.or-mobile-overlay.open { opacity: 1; visibility: visible; }

/* ============================================================
   RESPONSIVE OVERHAUL — Mobile First Fixes
   ============================================================ */

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  .or-container { padding-left: 24px; padding-right: 24px; }
  .or-steps-grid { grid-template-columns: repeat(2, 1fr); }
  .or-sites-grid { grid-template-columns: repeat(2, 1fr); }
  .or-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  div[style*="grid-template-columns:repeat(6,1fr)"] { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ── Mobile + small tablet (≤880px) — hide desktop nav, show burger ── */
@media (max-width: 880px) {
  .or-desktop-nav,
  .or-desktop-cta {
    display: none !important;
  }
  .or-burger { display: flex !important; }

  .or-header-inner { padding-top: 14px; padding-bottom: 14px; }

  /* Hero */
  .or-hero { padding: 56px 0 44px; }
  .or-hero h1 { font-size: clamp(30px, 7vw, 42px); }
  .or-hero-desc { font-size: 16px; }
  .or-hero-ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .or-hero-ctas .or-btn { width: 100%; justify-content: center; }
  .or-hero-stats { gap: 22px 28px; padding-top: 28px; }
  .or-hero-stat-num { font-size: 28px; }

  /* Trust strip wraps nicely */
  section[style*="border-bottom:1px solid var(--or-border)"] div[style*="justify-content: center; gap:48px"] {
    gap: 20px !important;
    justify-content: flex-start !important;
  }

  /* Sections */
  .or-section { padding: 48px 0 !important; }
  .or-section-header { margin-bottom: 32px; }
  .or-section-header h2 { font-size: 24px; }

  /* Grids → single/double column */
  .or-steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .or-sites-grid { grid-template-columns: 1fr; gap: 16px; }
  .or-testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
  .or-pricing-grid { grid-template-columns: 1fr; gap: 20px; }
  div[style*="grid-template-columns:repeat(6,1fr)"] { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; }

  .or-how-tabs { width: 100%; }
  .or-how-tab { flex: 1; padding: 10px 12px; font-size: 13px; }

  /* For Publishers CTA section - stack feature list */
  section .or-container div[style*="display:flex; gap:48px"] {
    flex-direction: column !important;
    gap: 24px !important;
  }
  section .or-container div[style*="display:flex; gap:16px; justify-content:center"] {
    flex-direction: column !important;
    width: 100%;
  }
  section .or-container div[style*="display:flex; gap:16px; justify-content:center"] .or-btn {
    width: 100%; justify-content: center;
  }

  /* Footer */
  .or-footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; text-align: left; }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
  .or-container { padding-left: 18px; padding-right: 18px; }
  .or-hero h1 { font-size: 28px; }
  .or-hero-eyebrow { font-size: 11px; padding: 5px 12px; }
  .or-hero-stats { gap: 18px 24px; }
  .or-hero-stat-num { font-size: 24px; }
  .or-hero-stat-label { font-size: 11px; }

  div[style*="grid-template-columns:repeat(6,1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }

  .or-step-card, .or-site-card, .or-testimonial-card { padding: 20px 18px; }
  .or-plan-card { padding: 28px 22px; }
  .or-plan-price { font-size: 36px; }

  .or-section-header h2 { font-size: 21px; }
  .or-section-header p { font-size: 14px; }

  .or-btn-lg { padding: 13px 24px; font-size: 15px; }
}

/* ── Portal layout (buyer/publisher dashboards) ── */
@media (max-width: 1024px) {
  .or-portal-layout { grid-template-columns: 220px 1fr; }
}
@media (max-width: 768px) {
  .or-portal-layout { grid-template-columns: 1fr; }
  .or-sidebar {
    position: static;
    width: 100%;
    display: flex;
    overflow-x: auto;
    padding: 12px 16px;
    gap: 8px;
    border-right: none;
    border-bottom: 1px solid var(--or-border);
  }
  .or-sidebar .or-nav-item { white-space: nowrap; flex-shrink: 0; }
  .or-portal-main { padding: 20px 16px; }

  /* Tables become horizontally scrollable, never break layout */
  .or-table-card { overflow-x: auto; }
  table.or-table { min-width: 640px; }
}

/* ── Prevent horizontal scroll globally ── */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg { max-width: 100%; }

/* Tools hub 4-column grid responsive */
@media (max-width: 900px) {
  div[style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 880px) {
  div[style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
}
@media (max-width: 480px) {
  div[style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: 1fr !important; }
}

/* 5-column scale/grade guides (DR bands, speed grades) responsive */
@media (max-width: 880px) {
  div[style*="grid-template-columns:repeat(5,1fr)"] { grid-template-columns: repeat(5, 1fr) !important; gap: 8px !important; }
}
@media (max-width: 480px) {
  div[style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
}

/* ============================================================
   SOLUTIONS MEGA MENU — Adsy-style grouped columns
   ============================================================ */
.or-mega-dropdown { position: relative; }

.or-tools-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}
.or-tools-trigger:hover { color: var(--or-gold) !important; }

.or-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(2, 220px);
  gap: 4px;
  background: var(--or-white);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.2);
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 50;
}

.or-mega-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--or-slate-3);
  margin: 0 0 10px 10px;
}

.or-mega-item {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.or-mega-item:hover { background: var(--or-cream); }

.or-mega-item-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--or-dark);
  margin-bottom: 2px;
}
.or-mega-item-desc {
  display: block;
  font-size: 11.5px;
  color: var(--or-slate-3);
  line-height: 1.4;
}

@media (max-width: 880px) {
  .or-mega-menu { display: none !important; } /* Solutions items are listed flat in the mobile slide-menu instead */
}

/* Bulk upload field hint + dropzone */
.or-field-hint {
  font-size: 12px;
  color: var(--or-slate-3);
  margin: 5px 2px 0;
  line-height: 1.4;
}
#bulk-dropzone:hover {
  border-color: var(--or-gold);
  background: var(--or-cream);
}

/* Buyer/Publisher role switcher */
.or-role-switch-btn:hover,
.or-role-enable-btn:hover {
  background: var(--or-cream) !important;
}
.or-role-switcher-trigger:hover {
  background: var(--or-gold-light) !important;
}

/* ============================================================
   LEGAL PAGES — Terms, Privacy, Cookie Policy
   ============================================================ */
.or-legal-content {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--or-slate-2);
}
.or-legal-content h3 {
  font-size: 19px;
  color: var(--or-dark);
  margin: 36px 0 14px;
  font-family: var(--font-display);
}
.or-legal-content h3:first-of-type {
  margin-top: 8px;
}
.or-legal-content p {
  margin: 0 0 16px;
}
.or-legal-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.or-legal-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}
.or-legal-content a {
  color: var(--or-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--or-gold);
  text-underline-offset: 2px;
}
.or-legal-content a:hover {
  color: var(--or-gold);
}
.or-legal-content strong {
  color: var(--or-dark);
}

/* Cookie table */
.or-cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 13.5px;
}
.or-cookie-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--or-cream);
  color: var(--or-slate-3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
  border-bottom: 1px solid var(--or-border);
}
.or-cookie-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--or-cream-2);
  vertical-align: top;
}
.or-cookie-table code {
  background: var(--or-cream);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12.5px;
  color: var(--or-dark);
}

@media (max-width: 600px) {
  .or-cookie-table { font-size: 12.5px; }
  .or-cookie-table th, .or-cookie-table td { padding: 8px 10px; }
}

/* ============================================================
   GOOGLE ANALYTICS VERIFICATION
   ============================================================ */
.or-verified-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  color: #1A73E8;
  background: rgba(26,115,232,0.08);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  white-space: nowrap;
  vertical-align: middle;
}
.or-ga-property-option:hover {
  border-color: var(--or-gold) !important;
  background: var(--or-cream) !important;
}

/* ============================================================
   VERIFICATION BADGES — Site Ownership + Publisher Deposit
   ============================================================ */
.or-ownership-badge,
.or-verified-publisher-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #16A34A;
  background: rgba(22,163,74,0.08);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.or-verify-ownership-btn:hover {
  color: var(--or-gold-light) !important;
}
#ownership-tag-code {
  font-family: 'SF Mono', Monaco, Consolas, monospace;
}

/* ============================================================
   HOMEPAGE — Featured Sites List View (Adsy-style, not cards)
   ============================================================ */
.or-blurred-text {
  filter: blur(4px);
  user-select: none;
  -webkit-user-select: none;
  color: var(--or-slate-3) !important;
}
.or-homepage-sites-table th:nth-child(1) { width: 22%; }
.or-homepage-sites-table th:nth-child(2) { width: 16%; }
.or-homepage-sites-table th:last-child   { width: 14%; text-align: right; }
.or-homepage-sites-table td:last-child   { text-align: right; }

/* ============================================================
   COOKIE CONSENT BANNER — Adsy-style bottom bar
   ============================================================ */
.or-cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--or-dark);
  color: rgba(255,255,255,0.85);
  padding: 24px 28px;
  z-index: 99999;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
  transform: translateY(110%);
  transition: transform 0.35s ease;
  max-height: 80vh;
  overflow-y: auto;
}
.or-cookie-banner.or-cookie-visible {
  transform: translateY(0);
}
.or-cookie-close {
  position: absolute;
  top: 18px; right: 22px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}
.or-cookie-close:hover { color: #fff; }
.or-cookie-banner h4 {
  font-family: var(--font-display);
  font-size: 17px;
  color: #fff;
  margin: 0 0 10px;
  max-width: 900px;
}
.or-cookie-banner p {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  max-width: 760px;
  margin: 0 0 16px;
}
.or-cookie-banner p a {
  color: var(--or-gold);
  text-decoration: underline;
}
.or-cookie-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 18px;
  padding-top: 6px;
}
.or-cookie-category {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.or-cookie-category input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--or-gold);
  cursor: pointer;
}
.or-cookie-category input[disabled] { cursor: not-allowed; opacity: 0.8; }
.or-cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.or-btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.or-btn-outline-light:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
}
.or-cookie-details-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.or-cookie-details-toggle:hover { color: rgba(255,255,255,0.8); }

@media (max-width: 700px) {
  .or-cookie-banner { padding: 20px; }
  .or-cookie-categories { gap: 14px; }
  .or-cookie-actions { flex-direction: column; }
  .or-cookie-actions .or-btn,
  .or-cookie-actions .or-btn-outline-light { width: 100%; justify-content: center; }
}

/* ============================================================
   TRUST STRIP — SVG icon cards below hero
   ============================================================ */
.or-trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.or-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  transition: background 0.2s ease;
}
.or-trust-item:hover { background: var(--or-cream); }
.or-trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}
.or-trust-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--or-slate-2);
  line-height: 1.3;
}

@media (max-width: 880px) {
  .or-trust-strip-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .or-trust-strip-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MULTI-SELECT NICHE DROPDOWN
   ============================================================ */
.or-multi-select { position: relative; }
.or-multi-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: var(--or-white);
  border: 1.5px solid var(--or-border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--or-dark);
  cursor: pointer;
  text-align: left;
}
.or-multi-select-trigger:hover { border-color: var(--or-gold); }
.or-multi-select-menu {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  margin-top: 6px;
  max-height: 260px;
  overflow-y: auto;
  background: var(--or-white);
  border: 1px solid var(--or-border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  padding: 8px;
  z-index: 40;
  display: none;
}
.or-multi-select-menu.or-multi-select-open { display: block; }
.or-multi-select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--or-dark);
}
.or-multi-select-option:hover { background: var(--or-cream); }
.or-multi-select-option input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--or-gold);
  cursor: pointer;
}

/* ============================================================
   MARKETPLACE — LIST VIEW (Adsy-style, domain-grouped)
   ============================================================ */
.or-sites-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.or-list-domain-group {
  background: var(--or-white);
  border: 1px solid var(--or-border);
  border-radius: 12px;
  overflow: hidden;
}

.or-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  flex-wrap: wrap;
}

.or-list-row-primary .or-list-row { background: var(--or-white); }
.or-list-alternates .or-list-row {
  background: var(--or-cream);
  border-top: 1px solid var(--or-border);
}

.or-list-row-main {
  flex: 1;
  min-width: 240px;
}

.or-list-domain-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}
.or-list-domain-name a {
  color: var(--or-dark);
  text-decoration: none;
}
.or-list-domain-name a:hover { color: var(--or-gold); }
.or-list-domain-name-muted {
  font-size: 14px;
  font-weight: 600;
  color: var(--or-slate-3);
  margin-bottom: 6px;
}

.or-list-row-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.or-list-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.or-list-badge-green { color: #16A34A; background: rgba(22,163,74,0.08); }
.or-list-badge-blue  { color: #1A73E8; background: rgba(26,115,232,0.08); }

.or-list-row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--or-slate-3);
}
.or-list-meta-item { white-space: nowrap; }
.or-list-completion {
  font-weight: 700;
  color: var(--or-success);
  white-space: nowrap;
}
.or-list-completion-new {
  color: var(--or-slate-3);
  font-weight: 600;
}

.or-list-row-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.or-list-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--or-dark);
}

.or-list-more-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: var(--or-cream);
  border: none;
  border-top: 1px solid var(--or-border);
  color: var(--or-gold);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.or-list-more-toggle:hover { background: var(--or-cream-2); }
.or-list-more-toggle svg { transition: transform 0.2s ease; }

.or-list-row-skeleton {
  height: 92px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--or-cream) 0%, var(--or-cream-2) 50%, var(--or-cream) 100%);
  background-size: 200% 100%;
  animation: or-skeleton-shimmer 1.4s ease-in-out infinite;
}
@keyframes or-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 700px) {
  .or-list-row { flex-direction: column; align-items: flex-start; }
  .or-list-row-action { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
}

/* ============================================================
   ORDER FORM — Dynamic Link Pairs, Content Method, Image Upload
   ============================================================ */
.or-link-pair-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.or-link-pair-row .or-link-pair-url { flex: 1.3; }
.or-link-pair-row .or-link-pair-anchor { flex: 1; }
.or-link-pair-remove {
  flex-shrink: 0;
  width: 32px;
  height: 38px;
  border: 1.5px solid var(--or-border);
  border-radius: 8px;
  background: var(--or-white);
  color: var(--or-slate-3);
  cursor: pointer;
  font-size: 13px;
}
.or-link-pair-remove:hover { border-color: #DC2626; color: #DC2626; }

.or-mini-editor-toolbar {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: var(--or-cream);
  border: 1.5px solid var(--or-border);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}
.or-mini-editor-toolbar button {
  width: 32px;
  height: 30px;
  border: none;
  background: var(--or-white);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--or-dark);
}
.or-mini-editor-toolbar button:hover { background: var(--or-cream-2); }
.or-mini-editor {
  min-height: 160px;
  max-height: 320px;
  overflow-y: auto;
  padding: 14px;
  border: 1.5px solid var(--or-border);
  border-radius: 0 0 10px 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--or-dark);
}
.or-mini-editor:empty:before {
  content: attr(placeholder);
  color: var(--or-slate-3);
}
.or-mini-editor:focus { outline: none; border-color: var(--or-gold); }

.or-image-dropzone {
  border: 2px dashed var(--or-border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  position: relative;
}
.or-image-dropzone:hover { border-color: var(--or-gold); background: var(--or-cream); }
#order-image-placeholder, #modal-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
#order-image-preview-wrap, #modal-image-preview-wrap {
  position: relative;
  display: inline-block;
}
#order-image-preview, #modal-image-preview {
  max-width: 100%;
  max-height: 160px;
  border-radius: 8px;
}
.or-image-remove-btn {
  position: absolute;
  top: -8px; right: -8px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--or-dark);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 11px;
}

/* ============================================================
   FOR PUBLISHERS PAGE — mobile-responsive grids
   (replaces inline style overrides that were breaking mobile layout)
   ============================================================ */
.or-steps-grid.or-steps-grid-3col { grid-template-columns: repeat(3, 1fr); }

.or-publisher-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.or-publisher-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .or-steps-grid.or-steps-grid-3col { grid-template-columns: repeat(2, 1fr); }
  .or-publisher-calc-grid { grid-template-columns: 1fr; gap: 40px; }
  .or-publisher-features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .or-steps-grid.or-steps-grid-3col { grid-template-columns: 1fr; gap: 16px; }
  .or-publisher-features-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SITE INSPECTOR — mobile-responsive result grids
   (replaces inline grid styles that had no mobile breakpoints)
   ============================================================ */
.or-si-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.or-si-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.or-si-grid-3:last-of-type { margin-bottom: 0; }
.or-si-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.or-si-grid-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

@media (max-width: 700px) {
  .or-si-grid-2 { grid-template-columns: 1fr; }
  .or-si-grid-3 { grid-template-columns: 1fr; }
  .or-si-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .or-si-grid-checks { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .or-si-grid-5 { grid-template-columns: 1fr; }
}

.or-si-input-row { display: flex; gap: 10px; }
@media (max-width: 480px) {
  .or-si-input-row { flex-direction: column; }
  .or-si-input-row button { width: 100%; justify-content: center; }
}

/* refund-policy page added */

/* in-app notifications added */

/* payouts, withdrawals, usdt payments added */
/* security hardening: txid dedup, rate limits, atomic debit */
/* security sweep: login lockout, messaging/dispute/site rate limits */
/* seo schema markup added */
/* FAQ data unified into shared helper, seo-schema deduplicated */
/* marketplace filters expanded + PWA manifest */
/* admin dashboard overview + buyer receipts */
/* terms acceptance tracking + order content moderation */
/* live traffic trend intelligence — sparkline, crash alerts */
/* publisher reliability score wired to buyer-facing pages; smart pricing suggestions */

/* ============================================================
   BUYER PORTAL — AJAX SITE LIST (Adsy-style grouped list)
   ============================================================ */
#bp-sites-list .or-list-domain-group {
  margin-bottom: 8px;
}
#bp-sites-list .or-list-row-skeleton {
  margin-bottom: 8px;
}
/* Ensure filter toolbar inputs use portal variables */
#bp-search, #bp-niche, #bp-min-da, #bp-min-dr, #bp-max-price, #bp-sort {
  height: 42px;
  border: 1px solid var(--or-border);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--or-dark);
  background: var(--or-white);
  width: 100%;
  box-sizing: border-box;
}
#bp-sites-list .or-list-domain-name a {
  color: var(--or-dark);
  font-weight: 700;
  font-size: 15px;
}
#bp-sites-list .or-list-domain-name a:hover {
  color: var(--or-gold);
}

/* ═══════════════════════════════════════════════════════════════
   PORTAL 2.0 — MODERN REDESIGN (Buyer + Publisher)
   Design language: "Forest & Gold-leaf"
   — Cool sage canvas, white surfaces, forest-ink sidebar,
     vivid market-green actions, gold reserved for featured/active.
   — Data-first: tabular numerals, hairline tables, pill badges.
   This layer overrides the base portal styles below it in cascade.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --p2-canvas:      #F5F7F4;
  --p2-surface:     #FFFFFF;
  --p2-ink:         #17251C;
  --p2-ink-2:       #52655A;
  --p2-ink-3:       #8B988F;
  --p2-hairline:    #E4E9E3;
  --p2-hairline-2:  #EEF1ED;
  --p2-accent:      #16A34A;
  --p2-accent-deep: #15803D;
  --p2-accent-soft: #E8F7EE;
  --p2-forest:      #0A2E1A;
  --p2-forest-2:    #0E3A22;
  --p2-gold:        #C9A84C;
  --p2-gold-soft:   #FBF6E9;
  --p2-danger:      #DC2626;
  --p2-danger-soft: #FDECEC;
  --p2-warn:        #B45309;
  --p2-warn-soft:   #FEF6E7;
  --p2-blue:        #2563EB;
  --p2-blue-soft:   #EAF1FE;
  --p2-radius:      16px;
  --p2-radius-sm:   10px;
  --p2-shadow-1:    0 1px 2px rgba(13, 38, 23, 0.05), 0 4px 16px rgba(13, 38, 23, 0.05);
  --p2-shadow-2:    0 2px 4px rgba(13, 38, 23, 0.06), 0 12px 32px rgba(13, 38, 23, 0.10);
  --p2-shadow-glow: 0 0 0 3px rgba(22, 163, 74, 0.14);
}

/* ── Canvas & layout ───────────────────────────── */
.or-portal-layout {
  background: var(--p2-canvas);
  grid-template-columns: 264px 1fr;
}
.or-portal-main {
  background: var(--p2-canvas);
  padding: 34px 38px 60px;
}

/* ── Sidebar: forest panel with gold-leaf active ── */
.or-sidebar {
  background: linear-gradient(178deg, var(--p2-forest) 0%, var(--p2-forest-2) 58%, #10402A 100%);
  border-right: none;
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.05);
  padding: 26px 16px;
}
.or-sidebar-logo {
  padding: 2px 12px 22px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.or-sidebar-logo span {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.or-sidebar-logo em { color: var(--p2-gold); font-style: normal; }
.or-sidebar-section-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  padding: 14px 12px 8px;
}
.or-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10.5px 12px;
  margin: 2px 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.or-nav-item:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
  transform: translateX(2px);
}
.or-nav-item.active {
  background: linear-gradient(90deg, rgba(201,168,76,0.16) 0%, rgba(255,255,255,0.05) 100%);
  color: #fff;
  font-weight: 600;
}
.or-nav-item.active::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--p2-gold) 0%, #E2C57A 100%);
  box-shadow: 0 0 12px rgba(201,168,76,0.5);
}
.or-nav-icon { font-size: 15px; width: 20px; text-align: center; }
.or-nav-badge {
  margin-left: auto;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.or-nav-item.active .or-nav-badge {
  background: var(--p2-gold);
  color: var(--p2-forest);
}

/* ── Portal header ─────────────────────────────── */
.or-portal-header { margin-bottom: 26px; align-items: flex-end; }
.or-portal-header h1 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--p2-ink);
  margin: 0 0 4px;
}
.or-portal-header p { font-size: 14px; color: var(--p2-ink-2); margin: 0; }

/* ── Stat cards ────────────────────────────────── */
.or-stat-card {
  position: relative;
  background: var(--p2-surface);
  border: 1px solid var(--p2-hairline);
  border-radius: var(--p2-radius);
  box-shadow: var(--p2-shadow-1);
  padding: 20px 20px 18px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.or-stat-card:hover { transform: translateY(-2px); box-shadow: var(--p2-shadow-2); }
.or-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--p2-accent), transparent 70%);
  opacity: .8;
}
.or-stat-card:has(.or-stat-card-icon.gold)::before  { background: linear-gradient(90deg, var(--p2-gold), transparent 70%); }
.or-stat-card:has(.or-stat-card-icon.blue)::before  { background: linear-gradient(90deg, var(--p2-blue), transparent 70%); }
.or-stat-card:has(.or-stat-card-icon.red)::before   { background: linear-gradient(90deg, var(--p2-danger), transparent 70%); }
.or-stat-card-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px;
  font-size: 18px;
  margin-bottom: 12px;
  background: var(--p2-accent-soft);
}
.or-stat-card-icon.gold { background: var(--p2-gold-soft); }
.or-stat-card-icon.blue { background: var(--p2-blue-soft); }
.or-stat-card-icon.red  { background: var(--p2-danger-soft); }
.or-stat-card-val {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--p2-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.or-stat-card-lbl {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--p2-ink-3);
  margin-top: 3px;
}

/* ── Cards / tables ────────────────────────────── */
.or-table-card, .or-form-card, .or-info-box {
  background: var(--p2-surface);
  border: 1px solid var(--p2-hairline);
  border-radius: var(--p2-radius);
  box-shadow: var(--p2-shadow-1);
}
.or-table-card-header {
  border-bottom: 1px solid var(--p2-hairline-2);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--p2-ink);
}
.or-table th {
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--p2-ink-3);
  border-bottom: 1px solid var(--p2-hairline);
  padding: 12px 16px;
}
.or-table td {
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--p2-ink);
  border-bottom: 1px solid var(--p2-hairline-2);
  font-variant-numeric: tabular-nums;
}
.or-table tr:last-child td { border-bottom: none; }
.or-table tbody tr { transition: background .15s ease; }
.or-table tbody tr:hover { background: #FAFBF9; }

/* ── Forms ─────────────────────────────────────── */
.or-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--p2-ink-2);
  letter-spacing: 0.01em;
}
.or-input, .or-select, .or-form-card textarea, .or-multi-select-trigger {
  background: #FBFCFA;
  border: 1.5px solid var(--p2-hairline);
  border-radius: var(--p2-radius-sm);
  font-size: 14px;
  color: var(--p2-ink);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.or-input:focus, .or-select:focus, .or-form-card textarea:focus {
  background: #fff;
  border-color: var(--p2-accent);
  box-shadow: var(--p2-shadow-glow);
  outline: none;
}
.or-field-hint { color: var(--p2-ink-3); }

/* ── Buttons ───────────────────────────────────── */
.or-btn {
  border-radius: var(--p2-radius-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.or-btn-primary {
  background: linear-gradient(180deg, var(--p2-accent) 0%, var(--p2-accent-deep) 100%);
  border: none;
  color: #fff;
  box-shadow: 0 1px 2px rgba(21,128,61,0.35), 0 6px 16px rgba(22,163,74,0.28);
}
.or-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(21,128,61,0.4), 0 10px 24px rgba(22,163,74,0.36);
  background: linear-gradient(180deg, #19B152 0%, var(--p2-accent) 100%);
}
.or-btn-primary:active { transform: translateY(0); }
.or-btn-outline {
  background: var(--p2-surface);
  border: 1.5px solid var(--p2-hairline);
  color: var(--p2-ink);
}
.or-btn-outline:hover {
  border-color: var(--p2-accent);
  color: var(--p2-accent-deep);
  background: var(--p2-accent-soft);
}
.or-btn-dark {
  background: var(--p2-forest);
  color: #fff;
  border: none;
}
.or-btn-dark:hover { background: var(--p2-forest-2); transform: translateY(-1px); }

/* ── Badges: pills ─────────────────────────────── */
.or-badge, .or-badge-success, .or-badge-warning, .or-badge-danger, .or-badge-pending {
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 11px;
  border: none;
}
.or-badge-success { background: var(--p2-accent-soft); color: var(--p2-accent-deep); }
.or-badge-warning, .or-badge-pending { background: var(--p2-warn-soft); color: var(--p2-warn); }
.or-badge-danger { background: var(--p2-danger-soft); color: var(--p2-danger); }

/* ── Segmented tabs (how-tabs) ─────────────────── */
.or-how-tabs {
  background: #ECEFEA;
  border: 1px solid var(--p2-hairline);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  display: inline-flex;
}
.or-how-tab {
  border: none;
  background: transparent;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--p2-ink-2);
  padding: 9px 18px;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.or-how-tab:hover { color: var(--p2-ink); }
.or-how-tab.active {
  background: var(--p2-surface);
  color: var(--p2-ink);
  box-shadow: 0 1px 3px rgba(13,38,23,0.12);
}

/* ── Buyer marketplace list ────────────────────── */
.or-listings-bar {
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--p2-hairline);
  border-radius: var(--p2-radius);
  box-shadow: var(--p2-shadow-1);
}
.or-filter-input, .or-filter-select {
  background: #FBFCFA;
  border: 1.5px solid var(--p2-hairline);
  border-radius: var(--p2-radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.or-filter-input:focus, .or-filter-select:focus {
  border-color: var(--p2-accent);
  box-shadow: var(--p2-shadow-glow);
  outline: none;
}
.or-list-row {
  background: var(--p2-surface);
  border: 1px solid var(--p2-hairline);
  border-radius: 14px;
  box-shadow: var(--p2-shadow-1);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.or-list-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--p2-shadow-2);
  border-color: #D5DED6;
}
.or-list-domain-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--p2-ink);
}
.or-list-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--p2-ink);
}
.or-list-badge-green { background: var(--p2-accent-soft); color: var(--p2-accent-deep); border-radius: 999px; }
.or-list-badge-blue  { background: var(--p2-blue-soft); color: var(--p2-blue); border-radius: 999px; }
.or-list-meta-item strong { font-variant-numeric: tabular-nums; }

/* ── Order modal ───────────────────────────────── */
#order-modal > div {
  border-radius: 20px !important;
  box-shadow: 0 24px 80px rgba(10, 30, 18, 0.35) !important;
}

/* ── Info boxes ────────────────────────────────── */
.or-info-box h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--p2-ink);
}
.or-info-list li { color: var(--p2-ink-2); }
.or-info-list li::marker { color: var(--p2-accent); }

/* ── Scrollbar, selection, a11y ───────────────── */
.or-portal-main::-webkit-scrollbar { width: 10px; }
.or-portal-main::-webkit-scrollbar-thumb { background: #CBD5CE; border-radius: 999px; }
::selection { background: rgba(22,163,74,0.18); }
.or-portal-layout :focus-visible {
  outline: 2px solid var(--p2-accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .or-portal-layout *, .or-portal-layout *::before, .or-portal-layout *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ── Responsive polish ─────────────────────────── */
@media (max-width: 1114px) {
  .or-portal-layout { grid-template-columns: 232px 1fr; }
  .or-portal-main { padding: 26px 22px 48px; }
}
@media (max-width: 900px) {
  .or-portal-main { padding: 20px 14px 40px; }
  .or-portal-header h1 { font-size: 22px; }
}

/* Modal backdrop blur */
#order-modal { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* ═══════════════════════════════════════════════
   HEADER 2.0 — Balance strip + Profile dropdown
   ═══════════════════════════════════════════════ */
.or-hdr-balance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease;
}
.or-hdr-balance:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); }
.or-hdr-balance-lbl { font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,0.65); }
.or-hdr-balance-val {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.or-profile-wrap { position: relative; }
.or-profile-trigger {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.or-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--p2-forest, #0A2E1A);
  background: linear-gradient(135deg, #E2C57A 0%, #C9A84C 100%);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.18), 0 2px 8px rgba(0,0,0,0.25);
  transition: transform .16s ease, box-shadow .16s ease;
}
.or-profile-trigger:hover .or-avatar,
.or-profile-menu.open ~ * .or-avatar {
  transform: scale(1.05);
  box-shadow: 0 0 0 2.5px rgba(226,197,122,0.55), 0 4px 14px rgba(0,0,0,0.3);
}

.or-profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 268px;
  background: #fff;
  border: 1px solid var(--p2-hairline, #E4E9E3);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(13,38,23,0.08), 0 24px 64px rgba(13,38,23,0.18);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transform-origin: top right;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 80;
}
.or-profile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.or-pm-identity {
  padding: 12px 14px 12px;
  border-bottom: 1px solid var(--p2-hairline-2, #EEF1ED);
  margin-bottom: 6px;
}
.or-pm-role {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--p2-accent-deep, #15803D);
  background: var(--p2-accent-soft, #E8F7EE);
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.or-pm-name {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--p2-ink, #17251C);
}
.or-pm-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--p2-ink, #17251C);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition: background .14s ease, color .14s ease;
  font-family: var(--font-body);
}
.or-pm-item:hover { background: #F3F6F2; color: var(--p2-ink); }
.or-pm-ico { width: 20px; text-align: center; font-size: 15px; }
.or-pm-side {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--p2-accent-deep, #15803D);
  font-variant-numeric: tabular-nums;
}
.or-pm-divider { height: 1px; background: var(--p2-hairline-2, #EEF1ED); margin: 6px 8px; }
.or-pm-logout { color: #9AA6A0; }
.or-pm-logout:hover { background: var(--p2-danger-soft, #FDECEC); color: var(--p2-danger, #DC2626); }

@media (max-width: 900px) {
  .or-hdr-balance { display: none; }
  .or-profile-menu { right: -8px; min-width: 248px; }
}

/* ═══════════════════════════════════════════════
   HEADER RIGHT GROUP — balance + bell + avatar together
   ═══════════════════════════════════════════════ */
.or-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Bell inherits group placement; kill any legacy offsets */
.or-header-right .or-notif-wrap { margin: 0; }

/* ── CSS-ONLY HOVER FALLBACK for profile dropdown ──
   Works even if header JS is deferred/broken by optimizers.
   The 180ms close delay is emulated via transition-delay. */
.or-profile-wrap:hover .or-profile-menu,
.or-profile-wrap:focus-within .or-profile-menu,
.or-profile-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}
.or-profile-menu {
  transition: opacity .18s ease .12s, transform .18s ease .12s, visibility .18s .12s;
}
.or-profile-menu.open { transition-delay: 0s; }

/* Bridge the 10px gap between avatar and menu so hover doesn't drop */
.or-profile-wrap::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 14px;
}

/* Keep avatar + bell visible on mobile inside the group */
@media (max-width: 900px) {
  .or-header-right { gap: 8px; }
}
