/* ==========================================================================
   THE INNER EDGE / MALE ENERGY RECOVERY - LUXURY EDITORIAL THEME
   GEO: North Macedonia (MK) | Google Ads & EU Compliance Certified
   ========================================================================== */

:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #131316;
  --bg-card: #18181c;
  --bg-elevated: #222228;
  --bg-cream: #faf9f5;
  --text-main: #f5f5f7;
  --text-muted: #9e9ea7;
  --text-light: #ffffff;
  --text-dark: #121214;
  --gold: #d4af37;
  --gold-hover: #b89327;
  --gold-subtle: rgba(212, 175, 55, 0.15);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-active: rgba(212, 175, 55, 0.4);
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;
}

/* 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(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Editorial Typography */
h1, h2, h3, h4, .serif-title {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-light);
}

.subheading {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
  display: inline-block;
}

.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  gap: 12px;
}

.btn-gold {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

.btn-gold:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.25);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* Header & Navigation */
.topbar {
  background: #050507;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 8px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

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

.brand-logo {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 600;
}

.brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: #ffffff;
  margin: 6px 0;
  transition: var(--transition);
}

/* Editorial Ticker / Ribbon */
.ticker-band {
  background: #141418;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: flex;
  gap: 40px;
  animation: marquee 28s linear infinite;
}

.ticker-item {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 20px;
}

.ticker-item span {
  color: var(--gold);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero Section */
.hero-section {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
}

.stat-item h4 {
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-media-wrap {
  position: relative;
}

.hero-image-box {
  background: radial-gradient(circle at center, #262422 0%, #121215 70%);
  border: 1px solid var(--border-light);
  padding: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.hero-badge-floating {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(10, 10, 11, 0.85);
  border: 1px solid var(--gold);
  padding: 8px 14px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  backdrop-filter: blur(8px);
}

.hero-cert-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
}

.hero-cert-item {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-cert-item svg {
  width: 16px;
  height: 16px;
  fill: var(--gold);
}

/* Editorial Split Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.section-darker {
  background-color: var(--bg-secondary);
}

.section-header {
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
}

/* Feature Cards Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card-editorial {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 36px 30px;
  position: relative;
  transition: var(--transition);
}

.card-editorial:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.card-num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 16px;
  opacity: 0.8;
}

.card-editorial h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  line-height: 1.3;
}

.card-editorial p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Ingredient Matrix */
.ingredient-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 28px;
  transition: var(--transition);
}

.ingredient-card:hover {
  border-color: var(--gold);
}

.ingredient-tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.ingredient-card h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.ingredient-card .dose {
  font-size: 0.8rem;
  color: #22c55e;
  font-weight: 600;
  margin-bottom: 12px;
}

.ingredient-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Lifestyle Split Feature */
.editorial-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.editorial-img-frame {
  position: relative;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.editorial-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.editorial-img-frame:hover img {
  transform: scale(1.03);
}

.quote-box {
  border-left: 2px solid var(--gold);
  padding-left: 24px;
  margin: 30px 0;
}

.quote-box p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: #ffffff;
  line-height: 1.6;
}

/* Certificates Showcase */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cert-card {
  background: #ffffff;
  color: #111111;
  padding: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.25);
}

.cert-preview-img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: #f8f9fa;
  padding: 8px;
  border: 1px solid #e5e7eb;
}

.cert-info {
  margin-top: 14px;
}

.cert-info h4 {
  font-size: 1rem;
  color: #111111;
  margin-bottom: 4px;
}

.cert-info p {
  font-size: 0.75rem;
  color: #666666;
}

.cert-action-btn {
  margin-top: 10px;
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

/* Modal for Certificate Viewing */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 6px;
  position: relative;
  padding: 24px;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #111111;
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body img {
  width: 100%;
  height: auto;
}

/* Order / Checkout Page Layout */
.order-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: start;
}

.order-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 40px;
}

.package-selector {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.package-option {
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.package-option:hover {
  border-color: var(--border-active);
}

.package-option.selected {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.package-badge-popular {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--gold);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}

.package-info h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.package-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.package-price {
  text-align: right;
}

.price-main {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: bold;
  color: #ffffff;
}

.price-old {
  font-size: 0.8rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 14px 16px;
  color: #ffffff;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--gold);
}

.form-helper {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.payment-notice {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  font-size: 0.85rem;
  color: #86efac;
}

.buyer-guarantees {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Order Summary Sidebar */
.order-summary {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 30px;
  position: sticky;
  top: 110px;
}

.summary-product {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.summary-img {
  width: 90px;
  background: #111;
  border: 1px solid var(--border-light);
  padding: 6px;
}

.summary-totals {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.summary-row.total {
  font-size: 1.15rem;
  color: #ffffff;
  font-weight: bold;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

/* Order Success Feedback Modal */
.success-card {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid #22c55e;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #22c55e;
  font-size: 1.8rem;
}

/* Legal & Compliance Pages Content Layout */
.legal-page-wrap {
  padding: 80px 0 120px;
}

.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 50px;
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.legal-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.legal-content h2 {
  font-size: 1.4rem;
  margin: 30px 0 14px;
  color: var(--gold);
}

.legal-content h3 {
  font-size: 1.15rem;
  margin: 20px 0 10px;
}

.legal-content p, .legal-content li {
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-content ul, .legal-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

/* Mandatory Google Ads / EU Disclaimer Box */
.compliance-disclaimer-box {
  background: #0f1013;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  font-size: 0.8rem;
  color: #888892;
  line-height: 1.6;
  margin-top: 40px;
}

.compliance-disclaimer-box strong {
  color: #d1d5db;
}

/* Cookie Banner (EU GDPR / ePrivacy Compliance) */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #111114;
  border-top: 1px solid var(--border-light);
  padding: 20px 0;
  z-index: 9999;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
  display: none;
}

.cookie-banner.active {
  display: block;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cookie-text {
  max-width: 750px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.cookie-text a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
}

.cookie-btn-accept {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 10px 22px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-btn-accept:hover {
  background: #ffffff;
}

.cookie-btn-decline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 10px 18px;
  font-size: 0.8rem;
  cursor: pointer;
}

.cookie-btn-decline:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* Footer */
.footer {
  background: #060608;
  border-top: 1px solid var(--border-light);
  padding: 80px 0 40px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.footer-brand h3 {
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-brand p {
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-legal-bar {
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.75rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .order-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.4rem;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .editorial-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #0a0a0b;
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    padding: 30px 24px;
    gap: 20px;
    display: none;
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .cert-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .legal-content {
    padding: 24px;
  }
  .order-box {
    padding: 24px;
  }
  .timeline-steps-grid {
    grid-template-columns: 1fr !important;
  }
  .order-details-grid {
    grid-template-columns: 1fr !important;
  }
}

.timeline-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.order-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
