/*
Theme Name: RAGE
Theme URI: https://rage-training-program.ir
Author: RAGE Team
Description: Dark, aggressive fitness brand theme for RAGE Training Program. RTL Persian.
Version: 1.0.0
Text Domain: rage
*/

/* ── Fonts ─────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('fonts/BarlowCondensed-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('fonts/BarlowCondensed-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('fonts/BarlowCondensed-Black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}


/* ── Design Tokens ────────────────────────────────────────────────────── */
:root {
  --bg: #050507;
  --bg2: #0A0A10;
  --surface: #111118;
  --border: #1E1E2A;
  --text: #F0F0F5;
  --muted: #5A5A70;
  --silver: #8890A4;
  --red: #E02020;
  --red-dim: rgba(224,32,32,0.15);
  --red-glow: rgba(224,32,32,0.4);
  --green: #27AE60;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-body: 'Vazirmatn', sans-serif;
  --font-display: 'Barlow Condensed', sans-serif;
}

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

html {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.7;
  font-size: 15px;
  direction: rtl;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

::selection {
  background: rgba(224, 32, 32, 0.25);
  color: #F0F0F5;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1E1418; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ── Noise Overlay ─────────────────────────────────────────────────────── */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Particle Canvas ───────────────────────────────────────────────────── */
#rage-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ────────────────────────────────────────────────────────────── */
.rage-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.rage-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

/* ── Navbar ────────────────────────────────────────────────────────────── */
.rage-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5,5,7,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30,30,42,0.5);
  transition: background 300ms var(--ease-out);
}

.rage-nav-logo img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.15));
}

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

.rage-nav-links a {
  color: var(--silver);
  font-weight: 500;
  font-size: 14px;
  transition: color 200ms;
  position: relative;
}

.rage-nav-links a:hover {
  color: var(--text);
}

.rage-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 300ms var(--ease-out);
}

.rage-nav-links a:hover::after,
.rage-nav-links a.current::after {
  width: 100%;
}

.rage-nav-cta {
  padding: 10px 24px;
  background: var(--red);
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  clip-path: polygon(6px 0%, calc(100% - 6px) 0%, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0% calc(100% - 6px), 0% 6px);
  box-shadow: 0 0 20px rgba(224,32,32,0.3);
  transition: background 180ms, box-shadow 200ms var(--ease-out);
}

.rage-nav-cta:hover {
  background: #FF3535;
  box-shadow: 0 0 36px rgba(224,32,32,0.5);
}

/* Mobile nav toggle */
.rage-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.rage-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 300ms var(--ease-out);
}

@media (max-width: 768px) {
  .rage-nav { padding: 0 16px; }
  .rage-nav-links { display: none; }
  .rage-nav-toggle { display: flex; }
}

/* Mobile overlay */
.rage-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(5,5,7,0.97);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-out);
}

.rage-mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}

.rage-mobile-nav a {
  color: var(--silver);
  font-size: 22px;
  font-weight: 600;
  transition: color 200ms;
}

.rage-mobile-nav a:hover {
  color: var(--text);
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.rage-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 24px 80px;
}

.rage-hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(224,32,32,0.06) 0%, transparent 68%);
  pointer-events: none;
}

.rage-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.rage-hero-logo {
  width: min(300px, 60vw);
  margin-bottom: 24px;
  filter: drop-shadow(0 0 18px rgba(255,255,255,0.4)) drop-shadow(0 0 48px rgba(224,32,32,0.18));
  animation: heroFadeIn 1s var(--ease-out) both;
}

.rage-hero-tagline {
  font-size: clamp(18px, 3vw, 26px);
  color: var(--silver);
  font-weight: 400;
  margin-bottom: 48px;
  animation: heroFadeIn 1s 0.2s var(--ease-out) both;
}

.rage-hero-tagline strong {
  color: var(--text);
  font-weight: 700;
}
.rage-hero-desc {
  font-size: 15px;
  color: var(--silver);
  max-width: 560px;
  margin: -28px auto 32px;
  line-height: 1.8;
  animation: heroFadeIn 1s 0.3s var(--ease-out) both;
}

.rage-hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroFadeIn 1s 0.4s var(--ease-out) both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
  .rage-hero-logo { width: clamp(320px, 34vw, 480px); }
  .rage-hero-glow { width: 1000px; height: 1000px; }
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn-rage {
  display: inline-block;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  transition: all 200ms var(--ease-out);
  clip-path: polygon(8px 0%, calc(100% - 8px) 0%, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0% calc(100% - 8px), 0% 8px);
}

.btn-rage-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 28px rgba(224,32,32,0.35), 0 0 64px rgba(224,32,32,0.12);
}

.btn-rage-primary:hover {
  background: #FF3535;
  box-shadow: 0 0 40px rgba(224,32,32,0.6), 0 0 80px rgba(224,32,32,0.22);
}

.btn-rage-outline {
  background: var(--bg);
  color: var(--silver);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.2);
}

.btn-rage-outline:hover {
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--red);
}

/* ── Feature Cards ─────────────────────────────────────────────────────── */
.rage-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .rage-features { grid-template-columns: 1fr; }
}

.rage-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 300ms var(--ease-out), transform 300ms var(--ease-out);
  clip-path: polygon(12px 0%, calc(100% - 12px) 0%, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0% calc(100% - 12px), 0% 12px);
}

.rage-feature-card:hover {
  border-color: rgba(224,32,32,0.3);
  transform: translateY(-4px);
}

.rage-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0;
  transition: opacity 300ms;
}

.rage-feature-card:hover::before {
  opacity: 1;
}

.rage-feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-dim);
  color: var(--red);
  font-size: 22px;
  margin-bottom: 20px;
  clip-path: polygon(6px 0%, calc(100% - 6px) 0%, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0% calc(100% - 6px), 0% 6px);
}

.rage-feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.rage-feature-card p {
  color: var(--silver);
  font-size: 14px;
  line-height: 1.8;
}

/* ── Section Headers ───────────────────────────────────────────────────── */
.rage-section-header {
  text-align: center;
  margin-bottom: 64px;
}

.rage-section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  font-family: var(--font-display);
}

.rage-section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.rage-section-subtitle {
  font-size: 16px;
  color: var(--silver);
  margin-top: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Stats Section ─────────────────────────────────────────────────────── */
.rage-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

@media (max-width: 768px) {
  .rage-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

.rage-stat-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
}

.rage-stat-label {
  font-size: 14px;
  color: var(--silver);
}

/* ── How It Works ──────────────────────────────────────────────────────── */
.rage-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  counter-reset: step;
}

@media (max-width: 768px) {
  .rage-steps { grid-template-columns: 1fr; gap: 32px; }
}

.rage-step {
  text-align: center;
  position: relative;
  counter-increment: step;
}

.rage-step-number {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 900;
  color: rgba(224,32,32,0.1);
  line-height: 1;
  margin-bottom: 16px;
}

.rage-step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.rage-step p {
  color: var(--silver);
  font-size: 14px;
  line-height: 1.8;
}

/* ── Testimonials ──────────────────────────────────────────────────────── */
.rage-testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .rage-testimonials { grid-template-columns: 1fr; }
}

.rage-testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  clip-path: polygon(8px 0%, calc(100% - 8px) 0%, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0% calc(100% - 8px), 0% 8px);
}

.rage-testimonial-text {
  font-size: 15px;
  color: var(--silver);
  line-height: 1.9;
  margin-bottom: 20px;
  font-style: italic;
}

.rage-testimonial-author {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.rage-testimonial-role {
  font-size: 12px;
  color: var(--muted);
}

/* ── CTA Banner ────────────────────────────────────────────────────────── */
.rage-cta-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  clip-path: polygon(16px 0%, calc(100% - 16px) 0%, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0% calc(100% - 16px), 0% 16px);
}

.rage-cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.rage-cta-banner h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

.rage-cta-banner p {
  color: var(--silver);
  font-size: 16px;
  margin-bottom: 32px;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.rage-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  position: relative;
  z-index: 1;
}

.rage-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .rage-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

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

.rage-footer-brand img {
  height: 36px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.1));
}

.rage-footer-brand p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.rage-footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.rage-footer-col a {
  display: block;
  color: var(--muted);
  font-size: 13px;
  padding: 4px 0;
  transition: color 200ms;
}

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

.rage-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.rage-footer-copy {
  font-size: 12px;
  color: var(--muted);
}

.rage-footer-socials {
  display: flex;
  gap: 16px;
}

.rage-footer-socials a {
  color: var(--muted);
  font-size: 18px;
  transition: color 200ms;
}

.rage-footer-socials a:hover {
  color: var(--red);
}

/* ── Blog Cards ────────────────────────────────────────────────────────── */
.rage-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .rage-blog-grid { grid-template-columns: 1fr; }
}

.rage-blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 300ms var(--ease-out), transform 300ms var(--ease-out);
  clip-path: polygon(8px 0%, calc(100% - 8px) 0%, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0% calc(100% - 8px), 0% 8px);
}

.rage-blog-card:hover {
  border-color: rgba(224,32,32,0.3);
  transform: translateY(-4px);
}

.rage-blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.rage-blog-card-body {
  padding: 24px;
}

.rage-blog-card-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.rage-blog-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.5;
}

.rage-blog-card p {
  font-size: 13px;
  color: var(--silver);
  line-height: 1.8;
}

.rage-blog-card-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  transition: color 200ms;
}

.rage-blog-card-link:hover {
  color: #FF3535;
}

/* ── Single Post ───────────────────────────────────────────────────────── */
.rage-post {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.rage-post-header {
  margin-bottom: 48px;
}

.rage-post-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  font-family: var(--font-display);
}

.rage-post h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.rage-post-meta {
  color: var(--muted);
  font-size: 13px;
}

.rage-post-content {
  font-size: 16px;
  line-height: 2;
  color: var(--silver);
}

.rage-post-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 16px;
}

.rage-post-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
}

.rage-post-content p {
  margin-bottom: 20px;
}

.rage-post-content img {
  border-radius: 0;
  margin: 32px 0;
  clip-path: polygon(8px 0%, calc(100% - 8px) 0%, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0% calc(100% - 8px), 0% 8px);
}

.rage-post-content blockquote {
  border-right: 3px solid var(--red);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--surface);
  color: var(--text);
  font-style: italic;
}

.rage-post-content ul, .rage-post-content ol {
  padding-right: 24px;
  margin-bottom: 20px;
}

.rage-post-content li {
  list-style: disc;
  margin-bottom: 8px;
}

.rage-post-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rage-post-content a:hover {
  color: #FF3535;
}

/* ── About Page ────────────────────────────────────────────────────────── */
.rage-about-hero {
  padding: 160px 24px 80px;
  text-align: center;
}

.rage-about-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  margin-bottom: 20px;
}

.rage-about-hero p {
  font-size: 18px;
  color: var(--silver);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.9;
}

.rage-about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.rage-about-content p {
  font-size: 16px;
  color: var(--silver);
  line-height: 2;
  margin-bottom: 24px;
}

.rage-about-content h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin: 48px 0 20px;
}

/* ── Contact Page ──────────────────────────────────────────────────────── */
.rage-contact {
  max-width: 600px;
  margin: 0 auto;
  padding: 160px 24px 80px;
}

.rage-contact h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  margin-bottom: 16px;
  text-align: center;
}

.rage-contact > p {
  text-align: center;
  color: var(--silver);
  margin-bottom: 48px;
}

.rage-form-group {
  margin-bottom: 24px;
}

.rage-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.rage-form-group input,
.rage-form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 200ms;
  clip-path: polygon(6px 0%, calc(100% - 6px) 0%, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0% calc(100% - 6px), 0% 6px);
}

.rage-form-group input:focus,
.rage-form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(224,32,32,0.12);
}

.rage-form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ── Pagination ────────────────────────────────────────────────────────── */
.rage-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.rage-pagination a,
.rage-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--silver);
  font-size: 14px;
  font-weight: 600;
  transition: all 200ms;
  clip-path: polygon(4px 0%, calc(100% - 4px) 0%, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0% calc(100% - 4px), 0% 4px);
}

.rage-pagination a:hover {
  border-color: var(--red);
  color: var(--text);
}

.rage-pagination .current {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ── 404 ───────────────────────────────────────────────────────────────── */
.rage-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.rage-404-code {
  font-family: var(--font-display);
  font-size: clamp(80px, 15vw, 180px);
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  opacity: 0.15;
}

.rage-404 h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.rage-404 p {
  color: var(--silver);
  margin-bottom: 32px;
}

/* ── Animations ────────────────────────────────────────────────────────── */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── WordPress Overrides ───────────────────────────────────────────────── */
.wp-block-image img {
  clip-path: polygon(8px 0%, calc(100% - 8px) 0%, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0% calc(100% - 8px), 0% 8px);
}

.aligncenter { text-align: center; }
.alignleft { float: right; margin-left: 24px; }
.alignright { float: left; margin-right: 24px; }

/* WordPress admin bar fix */
body.admin-bar .rage-nav { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .rage-nav { top: 46px; }
}

/* ── RAGE Brand Text (Barlow Condensed everywhere) ─────────────────────── */
.rage-brand {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── FREE Badge ────────────────────────────────────────────────────────── */
.rage-free-badge {
  display: inline-block;
  padding: 6px 18px;
  background: var(--red-dim);
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-display);
  clip-path: polygon(4px 0%, calc(100% - 4px) 0%, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0% calc(100% - 4px), 0% 4px);
  margin-bottom: 16px;
}

/* ── Clothing Banner ───────────────────────────────────────────────────── */
.rage-clothing-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0A0A10 0%, #111118 50%, #0A0A10 100%);
  border: 1px solid var(--border);
  clip-path: polygon(16px 0%, calc(100% - 16px) 0%, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0% calc(100% - 16px), 0% 16px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 320px;
}

.rage-clothing-banner::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.rage-clothing-text {
  padding: 48px;
  z-index: 1;
}

.rage-clothing-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rage-clothing-text p {
  color: var(--silver);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.8;
}

.rage-clothing-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  height: 100%;
}

.rage-clothing-img img {
  max-height: 240px;
  width: auto;
  filter: drop-shadow(0 0 40px rgba(224,32,32,0.25));
  transition: transform 400ms var(--ease-out);
}

.rage-clothing-banner:hover .rage-clothing-img img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .rage-clothing-banner {
    grid-template-columns: 1fr;
    min-height: auto;
    clip-path: polygon(8px 0%, calc(100% - 8px) 0%, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0% calc(100% - 8px), 0% 8px);
  }
  .rage-clothing-text { padding: 32px 24px 16px; text-align: center; }
  .rage-clothing-img { padding: 16px 24px 32px; }
  .rage-clothing-img img { max-height: 180px; }
}

/* ── Privacy / Terms ───────────────────────────────────────────────────── */
.rage-legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 140px 24px 80px;
}

.rage-legal h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.rage-legal-date {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 40px;
}

.rage-legal-section {
  border-right: 3px solid var(--red);
  padding-right: 20px;
  margin-bottom: 32px;
}

.rage-legal-section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.rage-legal-section p {
  font-size: 14px;
  color: var(--silver);
  line-height: 1.9;
}

.rage-legal-links {
  margin-top: 48px;
  display: flex;
  gap: 16px;
}

.rage-legal-links a {
  font-size: 13px;
  color: var(--silver);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 200ms;
}

.rage-legal-links a:hover {
  color: var(--red);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Support Chatbox Widget ────────────────────────────────────────────── */
.rage-support-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0D0D14;
  border: 2px solid rgba(224,32,32,0.35);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 220ms, box-shadow 220ms, transform 220ms var(--ease-spring);
  padding: 0;
}

.rage-support-btn:hover,
.rage-support-btn.active {
  border-color: rgba(224,32,32,0.7);
  box-shadow: 0 0 28px rgba(224,32,32,0.35), 0 4px 20px rgba(0,0,0,0.6);
  transform: scale(1.08);
}

.rage-support-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* Panel */
.rage-support-panel {
  position: fixed;
  bottom: 96px;
  left: 20px;
  z-index: 9998;
  width: 320px;
  background: #0D0D14;
  border: 1px solid rgba(224,32,32,0.25);
  border-radius: 16px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.03);
  overflow: hidden;
  transform-origin: bottom left;
  transform: scale(0.85) translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 280ms var(--ease-spring), opacity 220ms var(--ease-out);
}

.rage-support-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Panel header */
.rage-support-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(135deg, #111118, #0D0D14);
  border-bottom: 1px solid rgba(224,32,32,0.15);
}

.rage-support-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rage-support-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27AE60;
  box-shadow: 0 0 6px rgba(39,174,96,0.7);
  animation: rage-pulse-dot 2s infinite;
  flex-shrink: 0;
}

@keyframes rage-pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.rage-support-header-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rage-support-header-title strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

.rage-support-header-title span {
  font-size: 11px;
  color: var(--muted);
}

.rage-support-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 180ms, background 180ms;
}

.rage-support-close:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

/* FAQ section */
.rage-support-faq {
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.rage-support-faq::-webkit-scrollbar { width: 4px; }
.rage-support-faq::-webkit-scrollbar-track { background: transparent; }
.rage-support-faq::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.rage-faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.rage-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: background 180ms;
  user-select: none;
  width: 100%;
  background: none;
  border: none;
  text-align: right;
  font-family: var(--font-body);
}

.rage-faq-question:hover {
  background: rgba(255,255,255,0.03);
}

.rage-faq-question.open {
  color: var(--red);
}

.rage-faq-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transition: transform 250ms var(--ease-out);
  color: var(--muted);
}

.rage-faq-question.open .rage-faq-chevron {
  transform: rotate(180deg);
  color: var(--red);
}

.rage-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms var(--ease-out);
}

.rage-faq-answer-inner {
  padding: 0 18px 14px;
  font-size: 13px;
  color: var(--silver);
  line-height: 1.8;
}

/* Contact fallback section */
.rage-support-contact {
  border-top: 1px solid rgba(224,32,32,0.15);
  padding: 14px 18px;
  background: rgba(224,32,32,0.04);
}

.rage-support-contact-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  font-family: var(--font-display);
}

.rage-support-channels {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rage-support-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 200ms, background 200ms;
}

.rage-support-channel:hover {
  border-color: rgba(224,32,32,0.35);
  background: rgba(224,32,32,0.06);
  color: var(--text);
}

.rage-support-channel-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rage-support-channel-icon.instagram { background: rgba(225,48,108,0.15); }
.rage-support-channel-icon.telegram  { background: rgba(36,161,222,0.15); }
.rage-support-channel-icon.phone     { background: rgba(224,32,32,0.15); }

.rage-support-channel-icon svg { width: 16px; height: 16px; }

.rage-support-channel-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rage-support-channel-meta small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

/* Backdrop */
.rage-support-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: none;
}

.rage-support-backdrop.open {
  display: block;
}

@media (max-width: 400px) {
  .rage-support-panel {
    width: calc(100vw - 24px);
    left: 12px;
    bottom: 88px;
  }
  .rage-support-btn {
    left: 12px;
    bottom: 16px;
  }
}
