/* ============================================
   WayVIP — Page-Specific Styles
   Pricing, Auth, Dashboard, Blog
   ============================================ */

/* ============================================
   PRICING PAGE
   ============================================ */

/* Hero */
.pricing-hero {
  position: relative;
  padding-top: calc(var(--nav-height) + var(--space-5xl));
  overflow: hidden;
}

.pricing-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-bg-mesh);
  pointer-events: none;
}

/* Billing Toggle */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  padding: var(--space-sm) var(--space-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
}

.billing-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-tertiary);
  transition: color var(--transition-base);
}

.billing-label.active {
  color: var(--text-primary);
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-base);
  border: 1px solid var(--border-default);
}

.toggle-switch.active {
  background: var(--primary-600);
  border-color: var(--primary-500);
}

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--text-primary);
  border-radius: 50%;
  transition: transform var(--transition-base);
}

.toggle-switch.active .toggle-knob {
  transform: translateX(22px);
}

.billing-save-badge {
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-base);
}

.billing-save-badge.visible {
  opacity: 1;
  transform: scale(1);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

/* Pricing Card */
.pricing-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  backdrop-filter: blur(10px);
  position: relative;
  transition: all var(--transition-base);
}

.pricing-card:hover {
  transform: translateY(-6px);
  background: var(--glass-bg-hover);
  box-shadow: var(--glass-shadow);
}

.pricing-card-popular {
  border-color: transparent;
  background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
              var(--gradient-primary) border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow-glow-primary);
  transform: scale(1.04);
  z-index: 2;
}

.pricing-card-popular:hover {
  transform: scale(1.04) translateY(-6px);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.35);
}

.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.pricing-card-header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-plan-name {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
}

.pricing-amount {
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-period {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.pricing-desc {
  margin-top: var(--space-sm);
}

/* Features List */
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  min-height: 260px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.feature-check {
  color: var(--success-400);
  font-weight: 700;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.feature-check.accent {
  color: var(--accent-400);
}

.feature-cross {
  color: var(--text-tertiary);
  font-weight: 700;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.feature-disabled {
  opacity: 0.5;
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: var(--bg-tertiary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.col-highlight {
  background: rgba(99, 102, 241, 0.06) !important;
}

.category-row td {
  font-weight: 700;
  font-size: var(--text-sm) !important;
  color: var(--text-primary);
  background: var(--bg-secondary) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-sm) var(--space-lg);
}

.table-check {
  color: var(--success-400);
  font-weight: 700;
}

.table-cross {
  color: var(--text-tertiary);
  font-weight: 700;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq-item.open {
  border-color: var(--primary-500);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  background: none;
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-base);
}

.faq-question:hover {
  background: var(--glass-bg-hover);
}

.faq-icon {
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--text-tertiary);
  transition: transform var(--transition-base);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--primary-400);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer p {
  padding: 0 var(--space-xl) var(--space-lg);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

/* Enterprise CTA */
.enterprise-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-4xl);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.enterprise-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.enterprise-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.enterprise-orb-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-600);
  top: -100px;
  right: -100px;
  animation: float 6s ease-in-out infinite;
}

.enterprise-orb-2 {
  width: 200px;
  height: 200px;
  background: var(--accent-500);
  bottom: -80px;
  left: -60px;
  animation: float 8s ease-in-out infinite reverse;
}

.enterprise-content {
  position: relative;
  z-index: 1;
}


/* ============================================
   AUTH PAGE
   ============================================ */

.auth-body {
  overflow: hidden;
}

.auth-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--nav-height);
}

/* Left Decorative Panel */
.auth-decor {
  flex: 0 0 55%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-secondary);
}

.auth-decor-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-bg-mesh);
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.auth-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(99, 102, 241, 0.2);
  top: 10%;
  left: 10%;
  animation: float 7s ease-in-out infinite;
}

.auth-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(6, 182, 212, 0.15);
  bottom: 15%;
  right: 10%;
  animation: float 9s ease-in-out infinite reverse;
}

.auth-orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(139, 92, 246, 0.15);
  top: 50%;
  right: 30%;
  animation: float 5s ease-in-out infinite 1s;
}

.auth-decor-content {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl);
  max-width: 480px;
}

.auth-decor-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.auth-benefits {
  margin-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.auth-benefits li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

.benefit-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--success-400);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  flex-shrink: 0;
}

/* Right Form Panel */
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  overflow-y: auto;
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: var(--space-2xl);
}

.auth-tab {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  background: none;
  color: var(--text-tertiary);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
}

.auth-tab.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* Auth Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.password-wrapper {
  position: relative;
}

.password-wrapper .input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  transition: color var(--transition-fast);
}

.password-toggle:hover {
  color: var(--text-primary);
}

/* Password Strength */
.password-strength {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.strength-bars {
  display: flex;
  gap: 4px;
  flex: 1;
}

.strength-bar {
  height: 4px;
  flex: 1;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  transition: background var(--transition-base);
}

.strength-bar.weak { background: var(--error-400); }
.strength-bar.medium { background: var(--warning-400); }
.strength-bar.strong { background: var(--success-400); }

.strength-text {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-tertiary);
  min-width: 50px;
  text-align: right;
}

.strength-text.weak { color: var(--error-400); }
.strength-text.medium { color: var(--warning-400); }
.strength-text.strong { color: var(--success-400); }

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition-fast);
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--primary-600);
  border-color: var(--primary-500);
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  color: white;
  font-weight: 700;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-link {
  font-size: var(--text-sm);
  color: var(--primary-400);
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-tertiary);
  font-size: var(--text-xs);
}

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

/* Social Login */
.social-login-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--glass-bg);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.social-btn:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.auth-switch-text {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.auth-switch-link {
  background: none;
  color: var(--primary-400);
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.auth-switch-link:hover {
  color: var(--primary-300);
}


/* ============================================
   DASHBOARD PAGE
   ============================================ */

.dashboard-body {
  overflow: hidden;
}

.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: var(--z-sticky);
  transition: transform var(--transition-base);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  height: var(--nav-height);
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-close-btn {
  display: none;
  background: none;
  color: var(--text-tertiary);
  font-size: var(--text-lg);
  cursor: pointer;
  padding: var(--space-xs);
  transition: color var(--transition-fast);
}

.sidebar-close-btn:hover {
  color: var(--text-primary);
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-md);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.sidebar-link:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-400);
}

.sidebar-icon {
  font-size: var(--text-lg);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.sidebar-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-md) var(--space-md);
}

.sidebar-plan {
  padding: var(--space-md) var(--space-xl);
}

.plan-badge-box {
  margin-bottom: var(--space-sm);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  color: white;
  flex-shrink: 0;
}

.user-avatar-sm {
  width: 32px;
  height: 32px;
  font-size: var(--text-xs);
}

.user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-name {
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dashboard Main */
.dashboard-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: var(--space-2xl) var(--space-3xl);
  max-width: 100%;
  overflow-y: auto;
  min-height: 100vh;
}

/* Top bar (mobile) */
.dashboard-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  margin-bottom: var(--space-xl);
}

.sidebar-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: var(--space-sm);
  cursor: pointer;
}

.sidebar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* Welcome */
.dash-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.dash-quick-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Stats Cards */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  transition: all var(--transition-base);
}

.stat-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-default);
}

/* Circular Progress */
.stat-progress-ring {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.progress-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-bg {
  fill: none;
  stroke: var(--bg-tertiary);
  stroke-width: 6;
}

.progress-fill {
  fill: none;
  stroke: url(#progressGradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 213.6;
  stroke-dashoffset: calc(213.6 - (213.6 * var(--progress, 0)) / 100);
  transition: stroke-dashoffset 1.5s ease;
}

.progress-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
}

.stat-number {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.stat-count {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-count-text {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-icon-heart {
  font-size: var(--text-xl);
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.stat-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.stat-sublabel {
  font-size: var(--text-xs);
}

.stat-trend {
  font-size: var(--text-xs);
  font-weight: 600;
}

.stat-trend.up {
  color: var(--success-400);
}

.stat-trend.down {
  color: var(--error-400);
}

/* Sections */
.dash-section {
  margin-bottom: var(--space-2xl);
}

.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.dash-view-all {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--primary-400);
  transition: color var(--transition-fast);
}

.dash-view-all:hover {
  color: var(--primary-300);
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.activity-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.activity-item:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-default);
}

.activity-icon {
  width: 42px;
  height: 42px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.activity-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.activity-name {
  font-weight: 600;
  font-size: var(--text-sm);
}

.activity-desc {
  font-size: var(--text-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-time {
  font-size: var(--text-xs);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Tools Grid */
.dash-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.dash-tool-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  transition: all var(--transition-base);
}

.dash-tool-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-default);
}

.dash-tool-icon {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-xs);
}

.dash-tool-name {
  font-weight: 600;
  font-size: var(--text-sm);
}

.dash-tool-desc {
  font-size: var(--text-xs);
}

/* Upgrade Banner */
.dash-upgrade-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl) var(--space-3xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}


/* ============================================
   BLOG PAGE
   ============================================ */

/* Hero */
.blog-hero {
  position: relative;
  padding-top: calc(var(--nav-height) + var(--space-5xl));
  padding-bottom: var(--space-3xl);
  overflow: hidden;
}

.blog-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-bg-mesh);
  pointer-events: none;
}

/* Featured Post */
.featured-post {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-2xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.featured-post:hover {
  border-color: var(--border-default);
  box-shadow: var(--glass-shadow);
}

.featured-image {
  position: relative;
  min-height: 320px;
}

.featured-image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.featured-image-icon {
  font-size: 3.5rem;
}

.featured-image-text {
  font-size: var(--text-lg);
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.featured-badge {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
}

.featured-content {
  padding: var(--space-2xl) var(--space-2xl) var(--space-2xl) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-content h2 a {
  transition: color var(--transition-fast);
}

.featured-content h2 a:hover {
  color: var(--primary-400);
}

/* Post Meta */
.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.post-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.author-avatar {
  width: 32px;
  height: 32px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-xs);
  color: white;
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: var(--text-sm);
  font-weight: 600;
}

.author-date {
  font-size: var(--text-xs);
}

.post-read-time {
  font-size: var(--text-xs);
  white-space: nowrap;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.blog-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.blog-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-default);
  box-shadow: var(--glass-shadow);
}

.blog-card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.blog-card-emoji {
  font-size: 3rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.blog-card-body {
  padding: var(--space-xl);
}

.blog-card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.3;
}

.blog-card-title a {
  transition: color var(--transition-fast);
}

.blog-card-title a:hover {
  color: var(--primary-400);
}

.blog-card-excerpt {
  font-size: var(--text-sm);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Newsletter */
.newsletter-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-bg-mesh);
  pointer-events: none;
}

.newsletter-content {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.newsletter-input-group {
  display: flex;
  gap: var(--space-sm);
}

.newsletter-input {
  flex: 1;
}

.newsletter-meta {
  font-size: var(--text-xs);
}

.newsletter-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-lg);
  color: var(--success-400);
  font-weight: 500;
  font-size: var(--text-sm);
  margin-top: var(--space-md);
}

.success-icon {
  width: 24px;
  height: 24px;
  background: var(--success-500);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-xs);
  flex-shrink: 0;
}


/* ============================================
   RESPONSIVE — All Pages
   ============================================ */

@media (max-width: 1024px) {
  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .pricing-card-popular {
    transform: none;
    order: -1;
  }

  .pricing-card-popular:hover {
    transform: translateY(-6px);
  }

  .pricing-features {
    min-height: auto;
  }

  /* Dashboard */
  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-main {
    padding: var(--space-xl);
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-content {
    padding: var(--space-xl);
  }
}

@media (max-width: 768px) {
  /* Auth */
  .auth-decor {
    display: none;
  }

  .auth-form-panel {
    padding: var(--space-xl) var(--space-md);
  }

  .social-login-buttons {
    grid-template-columns: 1fr;
  }

  /* Dashboard */
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-xl);
  }

  .sidebar-close-btn {
    display: block;
  }

  .dashboard-main {
    margin-left: 0;
    padding: var(--space-md);
  }

  .dashboard-topbar {
    display: flex;
  }

  .dash-stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .dash-tools-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dash-welcome {
    flex-direction: column;
    align-items: flex-start;
  }

  .dash-upgrade-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--space-xl);
  }

  .activity-time {
    display: none;
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .featured-image {
    min-height: 200px;
  }

  .newsletter-input-group {
    flex-direction: column;
  }

  /* Pricing */
  .billing-toggle {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .dash-stats {
    grid-template-columns: 1fr;
  }

  .dash-tools-grid {
    grid-template-columns: 1fr;
  }

  .dash-quick-actions {
    width: 100%;
  }

  .dash-quick-actions .btn {
    flex: 1;
    font-size: var(--text-xs);
    padding: var(--space-sm);
  }

  .stat-card {
    padding: var(--space-md);
  }

  .enterprise-card {
    padding: var(--space-2xl) var(--space-lg);
  }

  .newsletter-card {
    padding: var(--space-2xl) var(--space-lg);
  }
}

/* ============================================
   BLOG ARTICLE TYPOGRAPHY & LAYOUT
   ============================================ */
.blog-post-content {
  color: var(--text-secondary);
  font-size: var(--text-md);
  line-height: 1.8;
  letter-spacing: -0.01em;
}

.blog-post-content p {
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
}

.blog-post-content .blog-intro {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: var(--space-2xl);
  font-weight: 500;
  opacity: 0.95;
}

.blog-post-content h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.blog-post-content h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.blog-post-content ul, 
.blog-post-content ol {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-left: var(--space-xl);
}

.blog-post-content ul {
  list-style-type: disc;
}

.blog-post-content ol {
  list-style-type: decimal;
}

.blog-post-content li {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-xs);
  line-height: 1.7;
}

.blog-post-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.blog-post-content blockquote {
  border-left: 4px solid var(--primary-500);
  background: var(--glass-bg);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-primary);
}

/* ============================================================
   DYNAMIC MESH BACKGROUND ANIMATION
   ============================================================ */
.pricing-hero-bg, 
.about-hero-bg, 
.contact-hero-bg, 
.blog-hero-bg {
  animation: heroMeshGlow 12s infinite alternate ease-in-out;
  background-size: 140% 140%;
}

@keyframes heroMeshGlow {
  0% {
    background-position: 0% 0%;
    filter: brightness(0.9) contrast(1);
  }
  50% {
    background-position: 50% 100%;
    filter: brightness(1.1) contrast(1.1);
  }
  100% {
    background-position: 100% 0%;
    filter: brightness(0.85) contrast(0.95);
  }
}


