/*
Theme Name: CalculatorArray Pro
Theme URI: https://calculatorarray.com
Author: CalculatorArray Team
Author URI: https://calculatorarray.com/author
Description: Complete Design System 6.0 WordPress Theme for CalculatorArray. Includes 57 interactive calculators, 22 SEO blog guides, 67 bundled diagrams/images, 100% Gutenberg & Classic Editor page content editability, and native RankMath SEO integration.
Version: 6.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: calculatorarray
*/

/* =============================================================
   CalculatorArray — Master Design System & Stylesheet (v4.5)
   Modern, Accessible, High-Performance UI/UX
   ============================================================= */

/* ── Google Fonts Loaded in <head>: Outfit & Inter ── */

/* ────────────────────────────────────────────────────────────
   1. CSS Custom Properties & Design Tokens
──────────────────────────────────────────────────────────── */
:root {
  /* Brand Palettes */
  --primary:          #4f46e5; /* Electric Indigo */
  --primary-hover:    #4338ca;
  --primary-active:   #3730a3;
  --primary-light:    #eef2ff;
  --primary-glow:     rgba(79, 70, 229, 0.25);
  
  --secondary:        #0284c7; /* Sky Blue */
  --secondary-light:  #f0f9ff;
  
  --accent:           #10b981; /* Emerald Green */
  --accent-light:     #ecfdf5;
  
  --danger:           #f43f5e; /* Rose / Pink */
  --danger-light:     #fff1f2;
  
  --warning:          #f59e0b; /* Warm Amber */
  --warning-light:    #fffbeb;

  /* Surfaces & Backgrounds */
  --bg:               #f8fafc; /* Slate 50 */
  --surface:          #ffffff;
  --surface-2:        #f1f5f9; /* Slate 100 */
  --surface-3:        #e2e8f0; /* Slate 200 */
  
  /* Text & Typography */
  --text:             #0f172a; /* Slate 900 */
  --text-secondary:   #334155; /* Slate 700 */
  --text-muted:       #64748b; /* Slate 500 */
  --text-light:       #94a3b8; /* Slate 400 */
  
  /* Borders */
  --border:           #e2e8f0;
  --border-focus:     #6366f1;
  --border-subtle:    #f1f5f9;

  /* Radius Scales */
  --radius-xs:        0.375rem;
  --radius-sm:        0.5rem;
  --radius-md:        0.75rem;
  --radius:           1rem;
  --radius-lg:        1.25rem;
  --radius-xl:        1.75rem;
  --radius-full:      9999px;

  /* Elevation Shadows */
  --shadow-xs:        0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm:        0 2px 4px -1px rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-md:        0 6px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg:        0 12px 32px -4px rgba(15, 23, 42, 0.10), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl:        0 20px 48px -6px rgba(15, 23, 42, 0.12), 0 8px 20px -4px rgba(15, 23, 42, 0.06);
  --shadow-glow:      0 0 24px var(--primary-glow);
  --shadow-button:    0 4px 14px rgba(79, 70, 229, 0.35);

  /* Layout & Transitions */
  --nav-h:            72px;
  --transition-fast:  0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition:       0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:  0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Font Stacks */
  --font:             'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display:     'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ────────────────────────────────────────────────────────────
   2. Reset & Global Base
──────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

h1, h2, h3, h4, h5, h6,
.outfit-font,
.cs-logo,
.cs-hero-title,
.cs-page-header h1,
.cs-calc-hero-title,
.cs-calc-title,
.cs-stat-num,
.cs-res-circle-val {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  color: var(--text);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* Icon rendering */
.material-symbols-outlined {
  display: inline-block;
  width: 1em;
  height: 1em;
  overflow: hidden;
  line-height: 1;
  vertical-align: -0.125em;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* Layout Container */
.cs-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.text-center { text-align: center; }

/* Micro-interaction utility */
.lift-hover {
  transition: transform var(--transition), box-shadow var(--transition);
}
.lift-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ────────────────────────────────────────────────────────────
   3. Top Navigation Bar (Frosted Glass)
──────────────────────────────────────────────────────────── */
.cs-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: box-shadow var(--transition), background var(--transition);
}

.cs-nav.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.cs-nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Logo */
.cs-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.cs-logo:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

.cs-logo .material-symbols-outlined {
  font-size: 1.5rem;
  padding: 6px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* Nav Left */
.cs-nav-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  min-width: 0;
}

/* Nav Search */
.cs-nav-search-wrap {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.cs-nav-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.15rem;
  pointer-events: none;
}

.cs-nav-search-input {
  width: 100%;
  height: 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0 1.1rem 0 2.6rem;
  font-size: 0.9rem;
  background: var(--surface-2);
  color: var(--text);
  outline: none;
  transition: all var(--transition);
}

.cs-nav-search-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.cs-nav-search-input::placeholder {
  color: var(--text-muted);
}

/* Live Search Dropdown */
.cs-search-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0; right: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  display: none;
  max-height: 380px;
  overflow-y: auto;
}

.cs-search-result {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}

.cs-search-result:last-child { border-bottom: none; }
.cs-search-result:hover { background: var(--primary-light); }

.cs-search-result-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.cs-search-result-icon .material-symbols-outlined { font-size: 1.1rem; }
.cs-search-result-title { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.cs-search-result-cat { font-size: 0.75rem; color: var(--text-muted); }
.cs-search-no-results { padding: 1.5rem; font-size: 0.9rem; color: var(--text-muted); text-align: center; }

/* Nav Links */
.cs-nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.cs-nav-links a {
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.cs-nav-links a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.cs-nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.1);
}

/* Hamburger */
.cs-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  flex-shrink: 0;
  margin-left: auto;
}

.cs-hamburger:hover { background: var(--surface-2); }
.cs-hamburger span {
  display: block;
  width: 22px; height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile Menu */
.cs-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 1.25rem 1.5rem 1.75rem;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: var(--shadow-xl);
}

.cs-mobile-menu.open { display: flex; }
.cs-mobile-menu a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.cs-mobile-menu a:hover, .cs-mobile-menu a.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* ────────────────────────────────────────────────────────────
   4. Homepage Hero Section
──────────────────────────────────────────────────────────── */
.cs-hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 5.5rem;
  background: radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(2, 132, 199, 0.06) 0%, transparent 50%),
              linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.cs-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.cs-hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cs-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--primary-light);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  width: fit-content;
}

.cs-hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text);
}

.cs-gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cs-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 520px;
}

/* Hero Search */
.cs-hero-search-wrap {
  position: relative;
  max-width: 540px;
  display: flex;
  align-items: center;
}

.cs-hero-search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.45rem;
  pointer-events: none;
  z-index: 1;
}

.cs-search-input {
  width: 100%;
  height: 56px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0 8.5rem 0 3.4rem;
  font-size: 1.05rem;
  background: #ffffff;
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.cs-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15), var(--shadow-lg);
}

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

.cs-search-btn {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff;
  height: 46px;
  padding: 0 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: var(--shadow-button);
  transition: all var(--transition);
  white-space: nowrap;
}

.cs-search-btn:hover {
  transform: translateY(-50%) scale(1.02);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

/* Trust Badges */
.cs-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cs-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
}
.cs-badge .material-symbols-outlined { font-size: 1.1rem; color: var(--accent); }

/* Quick Hero Calculator Widget */
.cs-hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cs-calc-widget {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(79, 70, 229, 0.08);
  padding: 1.75rem;
  width: 100%;
  max-width: 360px;
  position: relative;
  z-index: 1;
}

.cs-calc-widget::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.calc-display-wrap {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.1rem;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  border: 1px solid var(--border);
}

.calc-history {
  font-size: 0.82rem;
  color: var(--text-muted);
  min-height: 1.2em;
  text-align: right;
}

.calc-display {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  text-align: right;
  word-break: break-all;
  line-height: 1.1;
  font-family: var(--font-display);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.col-span-2 { grid-column: span 2; }

.calc-btn {
  height: 52px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
  display: flex; align-items: center; justify-content: center;
}

.calc-btn:hover { background: var(--surface-3); transform: translateY(-1px); }
.calc-btn:active { transform: scale(0.96); }

.calc-btn-num { background: #ffffff; }
.calc-btn-num:hover { background: var(--surface-2); }

.calc-btn-op {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(79, 70, 229, 0.2);
  font-weight: 700;
}
.calc-btn-op:hover { background: rgba(79, 70, 229, 0.16); }

.calc-btn-clear {
  background: var(--danger-light);
  color: var(--danger);
  border-color: rgba(244, 63, 94, 0.2);
  font-weight: 700;
}
.calc-btn-clear:hover { background: rgba(244, 63, 94, 0.16); }

.calc-btn-eq {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
  font-size: 1.3rem;
  font-weight: 700;
}
.calc-btn-eq:hover {
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.5);
  transform: translateY(-1px);
}

/* ────────────────────────────────────────────────────────────
   5. Category Filter Tabs & Calculators Grid
──────────────────────────────────────────────────────────── */
.cs-page-header {
  padding-top: calc(var(--nav-h) + 3.5rem);
  padding-bottom: 3.5rem;
  background: linear-gradient(180deg, #f0f4ff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.cs-page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.cs-page-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cs-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.cs-filter-tab {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #ffffff;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
  cursor: pointer;
}

.cs-filter-tab:hover {
  color: var(--text);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.cs-filter-tab.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-button);
  transform: translateY(-1px);
}

/* Section Wrapper */
.cs-section {
  padding: 4.5rem 0;
}

.cs-section-dark {
  background: #0f172a;
  color: #ffffff;
}

/* Calculator Grid */
.cs-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

/* Individual Calculator Card — World-Class Glassmorphism & Micro-interactions */
.cs-calc-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.6rem 1.4rem;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: #0f172a;
  min-height: 230px;
}

.cs-calc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-border, var(--primary));
  opacity: 0.95;
  transition: height 0.2s ease;
}

.cs-calc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -4px rgba(79, 70, 229, 0.14), 0 8px 16px -2px rgba(15, 23, 42, 0.04);
  border-color: rgba(79, 70, 229, 0.4);
}

.cs-calc-card:hover::before {
  height: 6px;
}

.cs-calc-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cs-calc-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.cs-calc-card-icon,
.cs-calc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cs-calc-card:hover .cs-calc-card-icon,
.cs-calc-card:hover .cs-calc-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cs-calc-card-icon .material-symbols-outlined,
.cs-calc-icon .material-symbols-outlined {
  font-size: 1.5rem;
}

.cs-tag {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  padding: 0.3rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cs-calc-card-title,
.cs-calc-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.cs-calc-card:hover .cs-calc-card-title,
.cs-calc-card:hover .cs-calc-title {
  color: var(--primary);
}

.cs-calc-card-desc,
.cs-calc-desc {
  font-family: var(--font);
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.4rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cs-calc-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  transition: gap 0.2s ease, color 0.2s ease;
}

.cs-calc-card:hover .cs-calc-card-cta {
  gap: 0.75rem;
  color: var(--primary-hover);
}

.cs-calc-card-cta .material-symbols-outlined {
  font-size: 1.1rem;
}

/* ────────────────────────────────────────────────────────────
   6. Calculator Execution Page (calculator.php)
──────────────────────────────────────────────────────────── */
.cs-calc-hero {
  padding-top: calc(var(--nav-h) + 2.5rem);
  padding-bottom: 2.8rem;
  background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.25) 0%, transparent 60%),
              radial-gradient(circle at bottom left, rgba(2, 132, 199, 0.2) 0%, transparent 60%),
              linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #0f172a 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.cs-calc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cs-calc-breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition-fast);
}

.cs-calc-breadcrumb a:hover { color: #ffffff; }
.cs-calc-breadcrumb .sep { color: rgba(255, 255, 255, 0.35); }

.cs-calc-hero-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.cs-calc-hero-icon {
  width: 68px; height: 68px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.cs-calc-hero-icon .material-symbols-outlined {
  font-size: 2rem;
  color: #ffffff;
}

.cs-calc-hero-cat {
  display: inline-flex; align-items: center;
  background: rgba(79, 70, 229, 0.35);
  border: 1px solid rgba(79, 70, 229, 0.5);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.85rem;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c7d2fe;
  margin-bottom: 0.5rem;
}

.cs-calc-hero-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.cs-calc-hero-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 620px;
  line-height: 1.7;
}

/* Calculator Workspace Layout */
.cs-calc-page {
  padding: 2.5rem 0 5.5rem;
  background: var(--bg);
}

.cs-calc-page-inner {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 2.5rem;
  align-items: start;
}

/* Form Container Card */
.cs-calc-form-wrap {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cs-calc-form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.cs-calc-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cs-group { margin-bottom: 0; }

.cs-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.cs-input, select.cs-input {
  width: 100%;
  height: 48px;
  padding: 0 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: var(--surface-2);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  appearance: none;
}

.cs-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.cs-input::placeholder { color: var(--text-muted); }
textarea.cs-input { height: auto; padding: 0.85rem 1.1rem; resize: vertical; }

select.cs-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.8rem;
  cursor: pointer;
}

/* Primary Action Button */
.cs-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  height: 52px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: var(--shadow-button);
  transition: transform var(--transition), box-shadow var(--transition);
  margin-top: 0.75rem;
}

.cs-btn-primary:hover {
  box-shadow: 0 8px 26px rgba(79, 70, 229, 0.45);
  transform: translateY(-2px);
}

.cs-btn-primary:active {
  transform: scale(0.98);
}

/* Unit Selection Tabs */
.cs-unit-tabs {
  display: flex;
  gap: 0.4rem;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 0.35rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.cs-unit-tab {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  flex: 1;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.cs-unit-tab.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

/* Result Area */
#cs-result-area { margin-top: 1.75rem; }

.cs-result-panel {
  background: linear-gradient(135deg, #f8fafc 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(79, 70, 229, 0.25);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
  animation: resultIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs-result-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(79, 70, 229, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.cs-result-main {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
}

.cs-result-details {
  border-top: 1px solid rgba(79, 70, 229, 0.15);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cs-result-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.cs-result-detail-label { color: var(--text-muted); font-weight: 500; }
.cs-result-detail-val { font-weight: 800; color: var(--text); }

/* Sidebar */
.cs-calc-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.cs-calc-sidebar h3 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cs-related-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.75rem; }
.cs-related-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 0.9rem; font-weight: 600;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}

.cs-related-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  transform: translateX(4px);
}

.cs-related-item .material-symbols-outlined { font-size: 1.2rem; }

.cs-trust-box {
  background: linear-gradient(135deg, #ffffff 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow-xs);
}

.cs-trust-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; color: var(--text-secondary); font-weight: 600;
}
.cs-trust-item .material-symbols-outlined { font-size: 1.2rem; color: var(--accent); }

/* ────────────────────────────────────────────────────────────
   7. Content Article, TOC & FAQs
──────────────────────────────────────────────────────────── */
.cs-content-section {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 5.5rem;
}

.cs-content-layout {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 3.5rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cs-content-article .cs-content-h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--text);
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-subtle);
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}

.cs-content-article .cs-content-h2:first-child { margin-top: 0; }

.cs-content-article .cs-content-h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.2rem 0 0.75rem;
}

.cs-content-article .cs-content-p {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.cs-content-article .cs-content-ul,
.cs-content-article .cs-content-ol {
  margin: 0 0 1.5rem 1.8rem;
}

.cs-content-article .cs-content-ul li,
.cs-content-article .cs-content-ol li {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.45rem;
}

/* Callout Boxes */
.cs-callout {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  border-left: 4px solid;
}
.cs-callout-tip { background: var(--accent-light); border-color: var(--accent); color: #065f46; }
.cs-callout-info { background: var(--primary-light); border-color: var(--primary); color: #3730a3; }
.cs-callout-warning { background: var(--warning-light); border-color: var(--warning); color: #92400e; }

/* Sticky Table of Contents */
.cs-toc {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-xs);
}

.cs-toc-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cs-toc a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.4rem 0.65rem;
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
  line-height: 1.45;
  margin-bottom: 0.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.cs-toc a:hover, .cs-toc a.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: rgba(79, 70, 229, 0.08);
  font-weight: 600;
}

/* FAQ Accordions */
.cs-page-faq {
  padding: 4.5rem 0;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

.cs-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 800px;
  margin: 0 auto;
}

.cs-faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition-fast);
}

.cs-faq-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.4rem;
  font-size: 1rem; font-weight: 700;
  color: var(--text);
  text-align: left;
  background: transparent;
  cursor: pointer;
  gap: 1rem;
}

.cs-faq-btn:hover { color: var(--primary); }

.cs-faq-icon {
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.cs-faq-btn.open .cs-faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.cs-faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.cs-faq-body-inner {
  padding: 0 1.4rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ────────────────────────────────────────────────────────────
   8. Homepage Specific Components (How it works, Category Cards, Newsletter)
──────────────────────────────────────────────────────────── */
.cs-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.cs-section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

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

.cs-section-dark .cs-section-header h2 { color: #ffffff; }
.cs-section-dark .cs-section-header p { color: #94a3b8; }

.cs-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.cs-how-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: transform var(--transition), border-color var(--transition);
}

.cs-how-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.cs-how-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.cs-how-icon .material-symbols-outlined { font-size: 1.6rem; }
.cs-how-icon-blue { background: rgba(2, 132, 199, 0.15); color: #38bdf8; }
.cs-how-icon-green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.cs-how-icon-purple { background: rgba(124, 58, 237, 0.15); color: #c084fc; }

.cs-how-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.cs-how-card p {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.65;
}

/* Category Grid */
.cs-section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 2.5rem;
}

.cs-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.cs-cat-card {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.cs-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cat-border, var(--primary));
  background: var(--cat-bg, #ffffff);
}

.cs-cat-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  transition: transform var(--transition-fast);
}

.cs-cat-card:hover .cs-cat-icon {
  transform: scale(1.1);
}

.cs-cat-label {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.cs-cat-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  flex: 1;
}

.cs-cat-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

/* Stat bar */
.cs-stat-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: var(--surface-2);
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.5rem;
  margin: 3rem 0;
  border: 1px solid var(--border);
  text-align: center;
}

.cs-stat-num {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.cs-stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* SEO Prose Blocks */
.cs-prose-wrap { max-width: 900px; margin: 0 auto; }
.cs-content-sections { display: flex; flex-direction: column; gap: 1.5rem; margin: 2.5rem 0; }
.cs-content-block {
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  border-left: 4px solid;
}
.cs-content-block h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.6rem; }
.cs-content-block p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 0.5rem; }
.cs-content-block p:last-child { margin-bottom: 0; }
.cs-content-block-blue { background: var(--secondary-light); border-color: var(--secondary); }
.cs-content-block-rose { background: var(--danger-light); border-color: var(--danger); }
.cs-content-block-indigo { background: var(--primary-light); border-color: var(--primary); }

/* Newsletter */
.cs-newsletter-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cs-newsletter-content { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.cs-newsletter-content h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 900; margin-bottom: 0.75rem; color: #ffffff; }
.cs-newsletter-content p { font-size: 1rem; color: #94a3b8; line-height: 1.7; margin-bottom: 2rem; }
.cs-newsletter-form { display: flex; gap: 0.6rem; max-width: 480px; margin: 0 auto; }
.cs-newsletter-form input {
  flex: 1;
  height: 50px;
  padding: 0 1.25rem;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
}
.cs-newsletter-form input:focus { border-color: var(--primary); background: rgba(255, 255, 255, 0.15); }
.cs-newsletter-form input::placeholder { color: #94a3b8; }
.cs-newsletter-form button {
  height: 50px;
  padding: 0 1.75rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: var(--shadow-button);
}
.cs-newsletter-note { font-size: 0.8rem; color: #64748b; margin-top: 1rem; }

/* ────────────────────────────────────────────────────────────
   9. Special Calculators (Love, Numerology, Horoscope, etc.)
──────────────────────────────────────────────────────────── */
.cs-load-card {
  background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.cs-res-card {
  background: radial-gradient(circle at top, #1e1b4b 0%, #0f172a 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.cs-res-names {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cs-res-circle-wrap {
  position: relative;
  width: 200px; height: 200px;
  margin: 0 auto 2rem;
}

.cs-circular-chart { display: block; width: 200px; height: 200px; }
.cs-circle-bg { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 2.5; }
.cs-circle { fill: none; stroke-width: 2.5; stroke-linecap: round; transition: stroke-dasharray 1s ease-out; }
.cs-res-circle-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cs-res-circle-val {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
}
.cs-res-circle-lbl { font-size: 0.75rem; font-weight: 700; color: #94a3b8; letter-spacing: 0.1em; }

.cs-res-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.cs-res-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
}
.cs-stat-name { font-size: 0.75rem; font-weight: 700; color: #94a3b8; margin-bottom: 0.3rem; text-transform: uppercase; }
.cs-stat-val { font-size: 1.4rem; font-weight: 800; color: #ffffff; }

.cs-res-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cs-res-actions button {
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cs-btn-share-card { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }
.cs-btn-share-card:hover { background: rgba(244, 63, 94, 0.25); transform: translateY(-1px); }
.cs-btn-wa { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.cs-btn-wa:hover { background: rgba(16, 185, 129, 0.25); transform: translateY(-1px); }

/* ────────────────────────────────────────────────────────────
   10. Global Footer
──────────────────────────────────────────────────────────── */
.cs-footer {
  background: #0f172a;
  color: #f1f5f9;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4.5rem 0 2.5rem;
}

.cs-footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 4rem;
  margin-bottom: 3.5rem;
  align-items: start;
}

.cs-footer-brand p {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.75;
  max-width: 320px;
  margin-top: 1rem;
}

.cs-footer-brand .cs-logo {
  color: #ffffff;
}

.cs-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.cs-footer-links h5 {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 1.2rem;
}

.cs-footer-links ul { display: flex; flex-direction: column; gap: 0.65rem; }
.cs-footer-links a {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: color var(--transition-fast);
}

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

.cs-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.cs-footer-badges { display: flex; gap: 1.5rem; }
.cs-footer-badges span {
  display: flex; align-items: center; gap: 0.4rem;
  font-weight: 600;
}
.cs-footer-badges .material-symbols-outlined { font-size: 1.1rem; color: var(--accent); }

/* ────────────────────────────────────────────────────────────
   11. Responsive Media Queries
──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cs-hero-inner { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .cs-hero-left { align-items: center; }
  .cs-hero-subtitle { margin: 0 auto; }
  .cs-badges { justify-content: center; }
  .cs-3col-grid { grid-template-columns: 1fr; }
  .cs-calc-page-inner { grid-template-columns: 1fr; }
  .cs-calc-sidebar { position: static; }
  .cs-content-layout { grid-template-columns: 1fr; }
  .cs-toc { display: none; }
  .cs-footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .cs-nav-search-wrap { display: none; }
  .cs-nav-links { display: none; }
  .cs-hamburger { display: flex; }
  .cs-calc-hero-row { flex-direction: column; align-items: center; text-align: center; }
  .cs-calc-hero-desc { margin: 0 auto; }
  .cs-calc-breadcrumb { justify-content: center; }
  .cs-calc-form-wrap { padding: 1.5rem; }
  .cs-stat-bar { grid-template-columns: 1fr; }
  .cs-newsletter-form { flex-direction: column; }
}

@media (max-width: 480px) {
  .cs-calc-grid { grid-template-columns: 1fr; }
  .cs-category-grid { grid-template-columns: 1fr 1fr; }
  .cs-footer-links { grid-template-columns: 1fr; }
  .cs-footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}



/* ═══════════════════════════════════════════════════════════
   PREMIUM LOADING UX (15s ANIMATION)
   ═══════════════════════════════════════════════════════════ */
.cs-load-card {
  background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
  border-radius: 1.5rem;
  padding: 3.5rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(236, 72, 153, 0.2), inset 0 1px 0 rgba(255,255,255,0.4);
  color: #fff;
  text-align: center;
}
.cs-load-card::before, .cs-load-card::after {
  content: '';
  position: absolute;
  width: 24px; height: 24px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 4px;
}
.cs-load-card::before { bottom: 16px; left: 16px; border-top: none; border-right: none; }
.cs-load-card::after { bottom: 16px; right: 16px; border-top: none; border-left: none; }

.cs-load-heart-wrap {
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cs-heart-main {
  font-size: 3rem;
  animation: cs-heart-pulse 1.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  filter: drop-shadow(0 0 15px rgba(255,255,255,0.8));
}
@keyframes cs-heart-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

.cs-heart-particles {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
}
.cs-heart-particles span {
  position: absolute;
  font-size: 1.2rem;
  opacity: 0;
  animation: cs-float-up 2s linear infinite;
}
.cs-heart-particles span:nth-child(1) { left: -40px; animation-delay: 0.2s; }
.cs-heart-particles span:nth-child(2) { left: -20px; animation-delay: 0.8s; font-size: 0.9rem; }
.cs-heart-particles span:nth-child(3) { right: -20px; animation-delay: 0.5s; }
.cs-heart-particles span:nth-child(4) { right: -40px; animation-delay: 1.2s; font-size: 0.9rem; }

@keyframes cs-float-up {
  0%   { transform: translateY(0) scale(0.8); opacity: 0; }
  20%  { opacity: 0.6; }
  80%  { opacity: 0.6; }
  100% { transform: translateY(-40px) scale(1.2); opacity: 0; }
}

.cs-load-pct {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}
.cs-load-msg-primary {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.cs-load-msg-sec {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  min-height: 1.5em;
  font-weight: 500;
}
.cs-load-bar-wrap {
  width: 100%;
  max-width: 400px;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 3rem;
}
.cs-load-bar-fill {
  height: 100%;
  background: #fff;
  border-radius: 99px;
  box-shadow: 0 0 10px rgba(255,255,255,0.8);
  transition: width 0.1s linear;
}
.cs-load-footer {
  font-size: 0.85rem;
  opacity: 0.7;
  position: absolute;
  bottom: 20px;
}
.cs-load-footer span { font-weight: 700; color: #fff; }

/* ═══════════════════════════════════════════════════════════
   PREMIUM RESULT CARD (CIRCULAR)
   ═══════════════════════════════════════════════════════════ */
.cs-res-card {
  background: #19182d;
  background: radial-gradient(circle at top, #272147 0%, #151329 100%);
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cs-res-names {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}
.cs-res-heart-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #f97316, #ec4899);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(236,72,153,0.4);
}
.cs-res-heart-icon span { color: #fff; }

/* Circular Ring */
.cs-res-circle-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 2.5rem;
}
.cs-circular-chart {
  display: block;
  width: 200px;
  height: 200px;
  overflow: visible;
}
.cs-circle-bg {
  fill: none;
  stroke: rgba(255,255,255,0.05);
  stroke-width: 2.5;
}
.cs-circle {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dasharray 1s ease-out;
}
.cs-res-circle-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cs-res-circle-icon { margin-bottom: 0.25rem; font-size: 1.2rem; }
.cs-res-circle-val {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}
.cs-res-circle-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.15em;
}

/* Quote Block */
.cs-res-quote {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}
.cs-res-quote-en {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
}
.cs-res-quote-hi {
  font-size: 1.05rem;
  font-weight: 700;
  font-style: italic;
  color: #ec4899;
}

/* Stats Block */
.cs-res-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.cs-res-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cs-res-stat .material-symbols-outlined { margin-bottom: 0.5rem; font-size: 1.5rem; }
.cs-stat-name { font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.5); letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.cs-stat-val { font-size: 1.5rem; font-weight: 800; }

/* Buttons Block */
.cs-res-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.cs-res-actions button {
  padding: 1rem;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.cs-res-actions button:hover { filter: brightness(1.15); transform: translateY(-1px); }
.cs-btn-share-card { background: rgba(236,72,153,0.1); color: #ec4899; border-color: rgba(236,72,153,0.3) !important; }
.cs-btn-wa { background: rgba(16,185,129,0.1); color: #10b981; border-color: rgba(16,185,129,0.3) !important; }
.cs-btn-dl { background: rgba(99,102,241,0.1); color: #818cf8; border-color: rgba(99,102,241,0.3) !important; }
.cs-btn-retry { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.1) !important; }

/* Promos Block */
.cs-res-promos {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.cs-promo-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cs-promo-box:hover { background: rgba(255,255,255,0.05); transform: translateY(-2px); }
.cs-promo-box .material-symbols-outlined { font-size: 1.5rem; margin-bottom: 0.5rem; }
.cs-promo-title { font-size: 0.85rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.cs-promo-sub { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

.cs-res-footer {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}
.cs-res-footer span { font-weight: 700; color: #ec4899; }

@media (max-width: 600px) {
  .cs-res-card { padding: 1.5rem; }
  .cs-res-stats { grid-template-columns: 1fr; }
  .cs-res-actions { grid-template-columns: 1fr; }
  .cs-res-promos { grid-template-columns: 1fr; }
}

/* ────────────────────────────────────────────────────────────
   Daily Horoscope Layout
──────────────────────────────────────────────────────────── */
.cs-horo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.cs-horo-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.cs-horo-fullbox {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.cs-horo-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.cs-horo-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cs-horo-emoji {
  color: #c084fc;
}
.cs-horo-heading {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.cs-horo-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #d1d5db;
}

/* ────────────────────────────────────────────────────────────
   Name Numerology Layout
──────────────────────────────────────────────────────────── */
.cs-num-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.cs-num-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}
.cs-num-val {
  font-size: 2.5rem;
  font-weight: 900;
  color: #f59e0b;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.cs-num-lbl {
  font-size: 0.75rem;
  font-weight: 800;
  color: #fcd34d;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}
.cs-num-sub {
  font-size: 0.7rem;
  color: #9ca3af;
}

.cs-num-prof-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.cs-num-prof-secondary {
  padding: 1.25rem;
}
.cs-num-prof-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.cs-num-prof-lbl {
  font-size: 0.75rem;
  font-weight: 800;
  color: #fcd34d;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.cs-num-prof-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  margin: 0.25rem 0;
}
.cs-num-prof-planet {
  font-size: 0.75rem;
  color: #9ca3af;
}
.cs-num-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.cs-num-tag {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
}
.cs-num-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d1d5db;
}

@media (max-width: 600px) {
  .cs-horo-grid { grid-template-columns: 1fr; gap: 1rem; }
  .cs-num-grid { grid-template-columns: 1fr; }
}



/* Standard Calculator Result Details (.cs-result-sub & .cs-result-detail) */
.cs-result-panel {
  background: linear-gradient(135deg, #f0f4ff 0%, #fafafe 100%);
  border-radius: 1rem;
  border: 1.5px solid rgba(99,102,241,.25);
  padding: 2rem;
  animation: resultIn .35s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(99,102,241,.12);
  margin-top: 1.5rem;
}
.cs-result-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #2563eb, #10b981);
}
.cs-result-main {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: .5rem;
}
.cs-result-sub {
  font-size: 1rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 1rem;
}
.cs-result-detail {
  border-top: 1px solid rgba(99,102,241,.15);
  padding-top: 1rem;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .65rem;
}
.cs-result-detail span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .9rem;
  padding: .65rem .9rem;
  border-radius: .6rem;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(226,232,240,.8);
  color: #475569;
}
.cs-result-detail span strong {
  font-weight: 800;
  color: #0f172a;
}
.cs-result-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: #fff;
  border-radius: .6rem;
  overflow: hidden;
}
.cs-result-table th, .cs-result-table td {
  padding: .65rem .9rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  font-size: .88rem;
}
.cs-result-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #0f172a;
}
