/* ==========================================================
   PressPulse Media — Core Design System Tokens & Stylesheet
   Theme: Modern Light Base with Deep Navy & Royal Blue Accents
   ========================================================== */

:root {
  /* Color Palette */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.18);
  
  --navy-950: #080d1a;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --surface-border: #e2e8f0;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --success: #10b981;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  
  --info: #06b6d4;
  --info-bg: #ecfeff;
  
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  
  /* Radii & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.25);
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--surface-alt);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-body {
  flex: 1 0 auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.text-primary { color: var(--primary) !important; }
.text-navy { color: var(--navy-900) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.font-bold { font-weight: 700 !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* SVG Icons Helper */
.icon, .icon-sm, .icon-xs, .wa-icon, .nav-icon {
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
}
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 14px; height: 14px; }

/* Navbar */
.site-navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--navy-950);
}

.brand-bolt {
  color: var(--primary);
}

.badge-pro {
  background: var(--navy-900);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--navy-700);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary-hover);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.875rem;
}

/* Dropdowns */
.dropdown {
  position: relative;
  display: inline-block;
}

.btn-currency, .btn-user-profile {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--navy-800);
  transition: var(--transition);
}

.btn-currency:hover, .btn-user-profile:hover {
  border-color: var(--primary);
  background: var(--surface-alt);
}

.user-avatar-initials {
  width: 28px;
  height: 28px;
  background: var(--navy-900);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 210px;
  padding: 8px;
  display: none;
  z-index: 1050;
}

.dropdown.active .dropdown-menu {
  display: block;
  animation: dropdownFade 0.15s ease-out;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
}
.dropdown-header strong { color: var(--navy-900); font-size: 0.9rem; }
.dropdown-header small { color: var(--text-muted); font-size: 0.75rem; word-break: break-all; }

.dropdown-divider {
  height: 1px;
  background: var(--surface-border);
  margin: 6px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--navy-800);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.dropdown-item:hover {
  background: var(--surface-alt);
  color: var(--primary);
}

.dropdown-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

/* Mobile Toggle & Drawer */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.mobile-toggle .bar {
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  transition: var(--transition);
}
.mobile-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--surface-border);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  z-index: 999;
}
.mobile-drawer.active {
  display: block;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-nav a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-800);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-navy {
  background: var(--navy-900);
  color: #ffffff !important;
}
.btn-navy:hover {
  background: var(--navy-950);
}

.btn-outline {
  border-color: var(--surface-border);
  background: #ffffff;
  color: var(--navy-800);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface-alt);
}

.btn-ghost {
  background: transparent;
  color: var(--navy-800);
}
.btn-ghost:hover {
  background: var(--surface-border);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Cards & Layout */
.card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Hero Section */
.hero-section {
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 50%),
              radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.03), transparent 40%),
              #ffffff;
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--surface-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--navy-950);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-card-preview {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.hero-stat-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background: var(--navy-900);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}

/* Newspaper Outlets Section */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.outlets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.outlet-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.outlet-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37, 99, 235, 0.4);
}

.outlet-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.outlet-meta {
  display: flex;
  gap: 16px;
  margin: 16px 0 20px;
  padding: 12px 0;
  border-top: 1px dashed var(--surface-border);
  border-bottom: 1px dashed var(--surface-border);
}

.meta-item {
  display: flex;
  flex-direction: column;
}
.meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}
.meta-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-900);
}

.outlet-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 20px;
}

.price-box .curr-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-950);
}
.price-box .old-price {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-left: 6px;
}

/* SMM Catalog Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.data-table th {
  background: var(--surface-alt);
  padding: 14px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--surface-border);
}

.data-table td {
  padding: 16px 18px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--surface-border);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(37, 99, 235, 0.02);
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Badges & Status */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-pending { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning-border); }
.badge-in_progress, .badge-processing { background: var(--info-bg); color: var(--info); }
.badge-completed, .badge-paid, .badge-active, .badge-approved { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.badge-cancelled, .badge-failed, .badge-rejected, .badge-banned { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); }

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-success { background: var(--success-bg); color: #065f46; border: 1px solid var(--success-border); }
.alert-danger { background: var(--danger-bg); color: #991b1b; border: 1px solid var(--danger-border); }
.alert-warning { background: var(--warning-bg); color: #92400e; border: 1px solid var(--warning-border); }

/* Split Authentication Screen */
.auth-split-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-sidebar {
  background: radial-gradient(circle at top left, #1e3a8a, #090e17);
  color: #ffffff;
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-form-side {
  background: #ffffff;
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

/* Password Strength Bar */
.pw-strength-meter {
  height: 4px;
  background: var(--surface-border);
  border-radius: var(--radius-full);
  margin-top: 8px;
  overflow: hidden;
}
.pw-strength-bar {
  height: 100%;
  width: 0;
  transition: all 0.3s ease;
}
.strength-weak { width: 33%; background: var(--danger); }
.strength-medium { width: 66%; background: var(--warning); }
.strength-strong { width: 100%; background: var(--success); }

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: #94a3b8;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  color: #ffffff !important;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.compliance-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.badge-trust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.footer-title {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.footer-links, .footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-links a {
  color: #94a3b8;
}
.footer-links a:hover {
  color: #ffffff;
}

.footer-contact li {
  line-height: 1.5;
}

.footer-cta-box {
  margin-top: 16px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.legal-links {
  display: flex;
  gap: 12px;
}
.legal-links a {
  color: #94a3b8;
}

/* Floating WhatsApp Widget */
.floating-whatsapp-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: var(--transition);
}

.floating-whatsapp-widget:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

.wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: var(--navy-900);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.floating-whatsapp-widget:hover .wa-tooltip {
  opacity: 1;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-split-wrapper { grid-template-columns: 1fr; }
  .auth-sidebar { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { 
    display: flex; 
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.25rem; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .btn { min-height: 44px; }
  .btn-currency, .btn-user-profile { min-height: 44px; }
}

/* Accessibility & Focus-Visible Standards (WCAG 2.1 AA) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Reduced Motion Preference (Section 6 & 7) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

