/* ===========================
   RokoAI — Red / Black / White
   =========================== */

:root {
  --red:       #e01f2d;
  --red-dark:  #b0141f;
  --red-light: #ff3d4d;
  --black:     #0a0a0a;
  --gray-900:  #111111;
  --gray-800:  #1a1a1a;
  --gray-700:  #2a2a2a;
  --gray-600:  #3a3a3a;
  --gray-400:  #888888;
  --gray-200:  #cccccc;
  --gray-100:  #f0f0f0;
  --white:     #ffffff;
  --font:      'Inter', system-ui, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;
  --radius:    8px;
  --radius-lg: 16px;
  --transition: 200ms ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-light); }

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-700);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand { display: flex; align-items: center; }
.nav-logo { height: 36px; width: auto; max-width: 160px; object-fit: contain; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  color: var(--gray-200);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); background: var(--gray-700); }

.btn-nav {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: var(--radius) !important;
}
.btn-nav:hover { background: var(--red-dark) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--red-dark); color: var(--white); transform: translateY(-1px); }

.btn-primary-lg {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 16px 40px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 17px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary-lg:hover { background: var(--red-dark); color: var(--white); transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid var(--gray-600);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); color: var(--white); }

.btn-outline-sm {
  display: inline-block;
  background: transparent;
  color: var(--gray-200);
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--gray-600);
}
.btn-outline-sm:hover { border-color: var(--gray-400); color: var(--white); }

.btn-full { width: 100%; text-align: center; }

/* ===== FLASH MESSAGES ===== */
.flash-container { padding: 8px 24px; }
.flash {
  padding: 12px 18px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}
.flash-success { background: #1a3a1a; border: 1px solid #2d6a2d; color: #6fcf6f; }
.flash-error   { background: #3a1a1a; border: 1px solid var(--red-dark); color: #ff8888; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(224,31,45,0.25) 0%, transparent 70%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-snake {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  height: 92%;
  width: auto;
  opacity: 0.09;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 0 80px rgba(224, 31, 45, 0.5));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-block;
  background: rgba(224,31,45,0.15);
  border: 1px solid rgba(224,31,45,0.4);
  color: var(--red-light);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--gray-200);
  margin-bottom: 40px;
  max-width: 580px;
  line-height: 1.7;
}

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

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--white);
}
.section-cta { text-align: center; margin-top: 48px; }

/* ===== MISSION / VISION ===== */
.section-two-col { padding: 80px 0; background: var(--gray-900); }
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.card-dark, .card-red {
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-700);
}
.card-dark { background: var(--gray-800); }
.card-red { background: var(--red); }
.card-icon { font-size: 32px; margin-bottom: 20px; }
.card-dark h2, .card-red h2 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--white);
}
.card-dark p { color: var(--gray-200); line-height: 1.7; }
.card-red p  { color: rgba(255,255,255,0.9); line-height: 1.7; }

/* ===== WHY RED TEAMING ===== */
.section-why { padding: 80px 0; }
.why-body {
  max-width: 760px;
  margin: -32px auto 56px;
  text-align: center;
  color: var(--gray-200);
  font-size: 17px;
  line-height: 1.7;
}
.why-panel {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 820px;
  margin: 0 auto;
}
.why-panel h2 { font-family: var(--font-head); font-size: 26px; font-weight: 700; margin-bottom: 16px; color: var(--white); }
.why-panel p  { color: var(--gray-200); line-height: 1.7; }

.threat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.threat-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition);
}
.threat-card:hover { border-color: var(--red); }
.threat-dot {
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  margin-bottom: 12px;
}
.threat-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--white); }
.threat-card p  { font-size: 14px; color: var(--gray-400); line-height: 1.6; }

/* ===== SERVICES ===== */
.section-services { padding: 80px 0; background: var(--gray-900); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
}
.service-card:hover { border-color: var(--red); transform: translateY(-3px); }

.service-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(224,31,45,0.15);
  border: 1px solid rgba(224,31,45,0.3);
  margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.service-icon::after {
  content: '';
  display: block;
  width: 20px; height: 20px;
  background: var(--red);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.icon-shield::after       { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); }
.icon-lock::after         { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0110 0v4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0110 0v4'/%3E%3C/svg%3E"); }
.icon-search::after       { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E"); }
.icon-check-circle::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.icon-cpu::after          { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Crect x='9' y='9' width='6' height='6'/%3E%3Cpath d='M9 1v3M15 1v3M9 20v3M15 20v3M1 9h3M1 15h3M20 9h3M20 15h3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Crect x='9' y='9' width='6' height='6'/%3E%3Cpath d='M9 1v3M15 1v3M9 20v3M15 20v3M1 9h3M1 15h3M20 9h3M20 15h3'/%3E%3C/svg%3E"); }
.icon-users::after        { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 00-3-3.87M16 3.13a4 4 0 010 7.75'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 00-3-3.87M16 3.13a4 4 0 010 7.75'/%3E%3C/svg%3E"); }

.service-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--white); }
.service-card p  { font-size: 14px; color: var(--gray-400); line-height: 1.6; }

/* Services full list */
.section-services-full { padding: 80px 0; }
.services-list { display: flex; flex-direction: column; gap: 2px; }

.service-row {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-700);
  background: var(--gray-800);
  margin-bottom: 12px;
  transition: border-color var(--transition);
}
.service-row:hover { border-color: var(--red); }
.service-row-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(224,31,45,0.15);
  border: 1px solid rgba(224,31,45,0.3);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.service-row-icon::after { content: ''; display: block; width: 22px; height: 22px; background: var(--red); mask-size: contain; mask-repeat: no-repeat; mask-position: center; -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; }
.service-row-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--white); }
.service-row-content p  { color: var(--gray-400); line-height: 1.7; }

/* Icon aliases for rows */
.service-row-icon.icon-shield::after       { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E"); }
.service-row-icon.icon-lock::after         { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0110 0v4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0110 0v4'/%3E%3C/svg%3E"); }
.service-row-icon.icon-search::after       { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E"); }
.service-row-icon.icon-check-circle::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.service-row-icon.icon-cpu::after          { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Crect x='9' y='9' width='6' height='6'/%3E%3Cpath d='M9 1v3M15 1v3M9 20v3M15 20v3M1 9h3M1 15h3M20 9h3M20 15h3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Crect x='9' y='9' width='6' height='6'/%3E%3Cpath d='M9 1v3M15 1v3M9 20v3M15 20v3M1 9h3M1 15h3M20 9h3M20 15h3'/%3E%3C/svg%3E"); }
.service-row-icon.icon-users::after        { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 00-3-3.87M16 3.13a4 4 0 010 7.75'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 00-3-3.87M16 3.13a4 4 0 010 7.75'/%3E%3C/svg%3E"); }

/* ===== TEAM ===== */
.section-team { padding: 80px 0; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.team-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: border-color var(--transition);
}
.team-card:hover { border-color: var(--red); }
.team-card-lg { padding: 40px; }

.team-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.team-avatar-lg { width: 80px; height: 80px; font-size: 32px; }

.team-card h3   { font-size: 18px; font-weight: 700; margin-bottom: 4px; color: var(--white); }
.team-role      { color: var(--red-light); font-size: 13px; font-weight: 600; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.team-bio       { color: var(--gray-400); font-size: 14px; line-height: 1.6; }

/* ===== NEWS ===== */
.section-news { padding: 80px 0; background: var(--gray-900); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.news-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition);
}
.news-card:hover { border-color: var(--red); }
.news-date { font-size: 12px; color: var(--gray-400); font-weight: 500; }
.news-card h3 { font-size: 17px; font-weight: 700; line-height: 1.35; }
.news-card h3 a { color: var(--white); }
.news-card h3 a:hover { color: var(--red-light); }
.news-card p  { color: var(--gray-400); font-size: 14px; line-height: 1.6; flex: 1; }
.read-more    { font-size: 13px; font-weight: 600; color: var(--red); }
.read-more:hover { color: var(--red-light); }

/* News full list */
.section-news-full { padding: 60px 0; }
.list-heading { font-family: var(--font-head); font-size: 22px; font-weight: 700; margin-bottom: 32px; color: var(--white); }
.news-list { display: flex; flex-direction: column; gap: 24px; }
.news-list-item {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition);
}
.news-list-item:hover { border-color: var(--red); }
.news-list-meta { display: flex; gap: 16px; margin-bottom: 8px; }
.news-author { font-size: 12px; color: var(--red); font-weight: 600; }
.news-list-item h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.news-list-item h3 a { color: var(--white); }
.news-list-item h3 a:hover { color: var(--red-light); }
.news-list-item p { color: var(--gray-400); margin-bottom: 12px; }

/* Ideas */
.section-ideas { padding: 60px 0; background: var(--gray-900); }
.ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.idea-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 24px;
}
.idea-category {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 10px;
}
.idea-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--white); }
.idea-card p  { font-size: 14px; color: var(--gray-400); line-height: 1.6; margin-bottom: 12px; }
.idea-date    { font-size: 11px; color: var(--gray-400); }

/* Article detail */
.section-article { padding: 60px 0 80px; }
.article-body { max-width: 720px; }
.article-summary { font-size: 18px; color: var(--gray-200); margin-bottom: 32px; line-height: 1.7; font-weight: 500; }
.article-content p { color: var(--gray-200); font-size: 16px; line-height: 1.8; margin-bottom: 20px; }
.news-author-lg { color: var(--gray-400); font-size: 14px; margin-top: 8px; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: var(--gray-900);
  border-bottom: 1px solid var(--gray-700);
  padding: 80px 0 64px;
}
.page-hero-sm { padding: 60px 0 48px; }
.page-hero .section-tag { display: block; margin-bottom: 12px; }
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--white);
}
.page-hero p { color: var(--gray-200); font-size: 17px; line-height: 1.7; max-width: 640px; }

.back-link { display: inline-block; color: var(--gray-400); font-size: 14px; margin-bottom: 16px; }
.back-link:hover { color: var(--white); }

/* ===== CTA BANNER ===== */
.section-cta-banner {
  padding: 80px 0;
  background: var(--red);
  text-align: center;
}
.section-cta-banner h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--white);
}
.section-cta-banner p { color: rgba(255,255,255,0.85); font-size: 17px; margin-bottom: 32px; }
.section-cta-banner .btn-primary-lg {
  background: var(--white);
  color: var(--red);
}
.section-cta-banner .btn-primary-lg:hover {
  background: var(--gray-100);
  color: var(--red-dark);
}

.section-empty { padding: 80px 0; text-align: center; color: var(--gray-400); }

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  border-top: 1px solid var(--gray-700);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 40px;
  padding: 60px 24px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo { height: 100px; width: auto; max-width: 100px; object-fit: contain; align-self: flex-start; }
.footer-brand p { color: var(--gray-400); font-size: 14px; }
.footer-legal-name { color: var(--white) !important; font-weight: 600; font-size: 15px !important; }
.footer-links h4, .footer-contact h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 16px;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--gray-200); font-size: 14px; }
.footer-links a:hover { color: var(--white); }
.footer-contact p { color: var(--gray-400); font-size: 14px; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding: 16px 24px;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--gray-400);
}
.admin-link { color: var(--gray-600); font-size: 12px; }
.admin-link:hover { color: var(--gray-400); }

/* ===== ADMIN ===== */
.admin-body {
  background: var(--gray-900);
  min-height: 100vh;
}

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

.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--black);
  border-right: 1px solid var(--gray-700);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--gray-700);
}
.admin-logo { height: 30px; width: auto; border-radius: 4px; }
.admin-brand span { color: var(--gray-400); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

.admin-nav { display: flex; flex-direction: column; padding: 12px 8px; flex: 1; }

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--gray-400);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  margin-bottom: 2px;
}
.admin-nav-item:hover { color: var(--white); background: var(--gray-700); }
.admin-nav-item.active { color: var(--white); background: var(--red); }
.admin-logout { color: #ff8888 !important; }
.admin-logout:hover { background: rgba(224,31,45,0.15) !important; }

.admin-sidebar-footer { padding: 12px 8px; border-top: 1px solid var(--gray-700); }

.admin-main {
  flex: 1;
  overflow-y: auto;
  min-width: 0;
}

.admin-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 32px;
}

.admin-content-header {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 32px;
}

.admin-page-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.stat-number { font-size: 36px; font-weight: 800; color: var(--red); margin-bottom: 4px; }
.stat-label  { font-size: 13px; color: var(--gray-400); margin-bottom: 12px; }
.stat-link   { font-size: 12px; color: var(--red); font-weight: 600; }

.admin-quick-actions h2 {
  font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--white);
}
.quick-actions-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.quick-action-btn {
  display: inline-block;
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: border-color var(--transition), background var(--transition);
}
.quick-action-btn:hover { border-color: var(--red); background: rgba(224,31,45,0.1); color: var(--white); }

/* Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  border-bottom: 1px solid var(--gray-700);
}
.admin-table td {
  padding: 14px 16px;
  color: var(--gray-200);
  border-bottom: 1px solid var(--gray-700);
  vertical-align: middle;
}
.admin-table tr:hover td { background: var(--gray-800); }
.row-inactive td { opacity: 0.45; }
.tbl-actions { display: flex; gap: 8px; }
.tbl-btn {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  background: var(--gray-700);
  color: var(--white);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition);
}
.tbl-btn:hover { background: var(--gray-600); color: var(--white); }
.tbl-btn-danger { background: rgba(224,31,45,0.2); color: var(--red-light); }
.tbl-btn-danger:hover { background: var(--red); color: var(--white); }

/* Forms */
.admin-form { max-width: 700px; }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 0; }
.form-row .form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-200);
  margin-bottom: 6px;
}
.form-input, .form-textarea {
  width: 100%;
  background: var(--gray-800);
  border: 1px solid var(--gray-600);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  padding: 10px 14px;
  transition: border-color var(--transition);
  -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-textarea { resize: vertical; line-height: 1.5; }
.form-hint { display: block; margin-top: 4px; font-size: 12px; color: var(--gray-400); }
.form-check { display: flex; align-items: center; gap: 10px; }
.form-check input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--red); cursor: pointer; }
.form-check label { font-size: 14px; margin-bottom: 0; cursor: pointer; }

/* Login */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
}
.login-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 380px;
}
.login-logo { height: 40px; margin: 0 auto 24px; }
.login-card h1 { font-size: 22px; font-weight: 700; margin-bottom: 24px; text-align: center; }
.login-back { display: block; text-align: center; margin-top: 20px; font-size: 13px; color: var(--gray-400); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .two-col-grid    { grid-template-columns: 1fr; }
  .footer-inner    { grid-template-columns: 1fr; padding: 40px 24px; }
  .form-row        { grid-template-columns: 1fr; }
  .admin-layout    { flex-direction: column; }
  .admin-sidebar   { width: 100%; height: auto; position: relative; flex-direction: row; flex-wrap: wrap; }
  .admin-nav       { flex-direction: row; flex-wrap: wrap; }

  .nav-toggle { display: block; }
  .nav-links  {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--gray-900);
    flex-direction: column;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-700);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
}
