/* ARES COACHING – Premium dark + gold */
:root {
  --bg: #080808;
  --bg2: #0f0f0f;
  --card: #141414;
  --card-hover: #1a1a1a;
  --border: #262626;
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --dim: #666;
  --accent: #c9a227;
  --accent2: #e8c547;
  --accent-dim: rgba(201,162,39,.15);
  --red: #e31c25;
  --green: #22c55e;
  --radius: 14px;
  --font: 'Inter', system-ui, sans-serif;
  --display: 'Orbitron', var(--font);
  --sidebar: 260px;
  --header-h: 64px;
  --glow: rgba(201,162,39,.28);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent2); }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

h1,h2,h3 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.display { font-family: var(--display); letter-spacing: 0.06em; text-transform: uppercase; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4.5rem 0; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px var(--glow); }
  50% { box-shadow: 0 0 36px rgba(201,162,39,.45); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes borderGlow {
  0%, 100% { border-color: rgba(201,162,39,.25); }
  50% { border-color: rgba(201,162,39,.55); }
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.anim-fade { animation: fadeIn .7s ease both; }
.anim-up { animation: fadeUp .7s ease both; }
.anim-scale { animation: scaleIn .55s ease both; }
.anim-float { animation: float 4s ease-in-out infinite; }
.anim-glow { animation: glowPulse 3s ease-in-out infinite; }

.stagger > *:nth-child(1) { animation-delay: .05s; }
.stagger > *:nth-child(2) { animation-delay: .12s; }
.stagger > *:nth-child(3) { animation-delay: .19s; }
.stagger > *:nth-child(4) { animation-delay: .26s; }
.stagger > *:nth-child(5) { animation-delay: .33s; }
.stagger > *:nth-child(6) { animation-delay: .4s; }
.stagger > * { animation: fadeUp .65s ease both; }

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  border: none; cursor: pointer; transition: all .25s ease; line-height: 1;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.15) 50%, transparent 60%);
  background-size: 200% 100%; opacity: 0; transition: opacity .3s;
}
.btn:hover::after { opacity: 1; animation: shimmer 1s linear; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #a8861a);
  color: #0a0a0a; box-shadow: 0 0 24px var(--glow);
}
.btn-primary:hover {
  filter: brightness(1.1); transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--glow); color: #0a0a0a;
}
.btn-outline {
  background: transparent; border: 1.5px solid rgba(201,162,39,.4); color: var(--accent2);
}
.btn-outline:hover {
  border-color: var(--accent); color: #fff;
  background: rgba(201,162,39,.12); transform: translateY(-2px);
}
.btn-sm { padding: .45rem .9rem; font-size: .8rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .35rem; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: .75rem .95rem; transition: border .25s, box-shadow .25s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,162,39,.15);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.checkbox-row { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1rem; font-size: .9rem; color: var(--muted); }
.checkbox-row input { margin-top: .2rem; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.msg { padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .9rem; display: none; animation: fadeUp .35s ease; }
.msg.show { display: block; }
.msg.ok { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); color: var(--green); }
.msg.err { background: rgba(227,28,37,.12); border: 1px solid rgba(227,28,37,.35); color: #ff6b6b; }

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.35rem; transition: all .3s ease; position: relative;
}
.card:hover {
  border-color: rgba(201,162,39,.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4), 0 0 24px var(--glow);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,.5), transparent);
  opacity: 0; transition: opacity .3s;
}
.card:hover::before { opacity: 1; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h); background: rgba(8,8,8,.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: .3s;
}
.site-header.scrolled {
  border-bottom-color: rgba(201,162,39,.2);
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo {
  display: flex; align-items: center; gap: .65rem; color: #fff;
  font-family: var(--display); font-size: 1.05rem; letter-spacing: .08em;
  transition: filter .3s;
}
.logo:hover { filter: drop-shadow(0 0 8px var(--glow)); }
.logo img { width: 36px; height: 36px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--muted); font-size: .88rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent2); }
.menu-btn {
  display: none; background: none; border: none; color: #fff; width: 42px; height: 42px;
  flex-direction: column; justify-content: center; gap: 5px; cursor: pointer;
}
.menu-btn span {
  display: block; width: 22px; height: 2px; background: #c9a227;
  border-radius: 2px; box-shadow: 0 0 4px rgba(201,162,39,.4); transition: .25s;
}

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center; padding-top: var(--header-h);
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(201,162,39,.18), transparent),
    radial-gradient(ellipse 40% 30% at 90% 60%, rgba(201,162,39,.06), transparent),
    var(--bg);
  position: relative; overflow: hidden;
}
.hero-inner { max-width: 640px; padding: 3rem 0; animation: fadeUp .9s ease both; }
.hero-badge {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); border: 1px solid rgba(201,162,39,.4);
  padding: .3rem .85rem; border-radius: 999px; margin-bottom: 1.1rem;
  animation: borderGlow 3s ease-in-out infinite;
}
.hero h1 {
  font-family: var(--display); font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: .05em; margin-bottom: .6rem;
  background: linear-gradient(180deg, #fff 20%, #c9a227 120%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero .tag { font-family: var(--display); color: var(--accent); letter-spacing: .12em; font-size: 1.1rem; margin-bottom: 1rem; }
.hero p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.75rem; max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero img.anim-float { filter: drop-shadow(0 0 20px var(--glow)); }

/* Pricing */
.price-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; display: flex; flex-direction: column; position: relative;
  transition: all .35s ease;
}
.price-card:hover { transform: translateY(-8px); box-shadow: 0 16px 48px rgba(0,0,0,.45), 0 0 30px var(--glow); }
.price-card.featured {
  border-color: var(--accent); box-shadow: 0 0 36px var(--glow);
  animation: glowPulse 4s ease-in-out infinite;
}
.price-card.featured::after {
  content: 'POPOLARE'; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #a8861a); color: #0a0a0a;
  font-size: .65rem; font-weight: 700; letter-spacing: .1em;
  padding: .25rem .75rem; border-radius: 999px;
}
.price-name { font-family: var(--display); font-size: 1.2rem; letter-spacing: .08em; margin-bottom: .4rem; }
.price-amount { font-size: 2.2rem; font-weight: 700; }
.price-amount span { font-size: .95rem; color: var(--muted); font-weight: 500; }
.price-features { flex: 1; margin: 1.25rem 0; }
.price-features li { padding: .4rem 0; color: var(--muted); font-size: .9rem; display: flex; gap: .5rem; }
.price-features li::before { content: '✓'; color: var(--accent); font-weight: 700; }

.disclaimer {
  background: rgba(201,162,39,.06); border: 1px solid rgba(201,162,39,.3);
  border-radius: var(--radius); padding: 1.75rem; max-width: 880px; margin: 0 auto;
}
.disclaimer h2 { color: var(--accent); font-size: 1.2rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.disclaimer p { color: var(--muted); font-size: .92rem; margin-bottom: .85rem; }

.footer { background: #050505; border-top: 1px solid var(--border); padding: 2.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 1.5rem; }
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; color: var(--accent); }
.footer a { color: var(--dim); font-size: .9rem; }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  font-size: .82rem; color: var(--dim);
}
.phone-link { color: var(--accent) !important; font-weight: 600; }

/* App layout */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); background: linear-gradient(180deg, #12100a 0%, #0a0a0a 100%);
  border-right: 1px solid rgba(201,162,39,.15);
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
  display: flex; flex-direction: column; transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.sidebar-brand {
  display: flex; align-items: center; gap: .6rem; padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(201,162,39,.15);
  font-family: var(--display); font-size: .95rem; letter-spacing: .06em;
}
.sidebar-brand img { width: 32px; height: 32px; }
.sidebar-nav { flex: 1; padding: 1rem .75rem; overflow-y: auto; }
.sidebar-nav a {
  display: flex; align-items: center; gap: .65rem; padding: .7rem .85rem; border-radius: 10px;
  color: var(--muted); font-size: .9rem; font-weight: 500; margin-bottom: .25rem;
  transition: all .2s ease;
}
.sidebar-nav a:hover {
  background: rgba(201,162,39,.1); color: var(--accent2); transform: translateX(4px);
}
.sidebar-nav a.active {
  background: rgba(201,162,39,.18); color: var(--accent2);
  border: 1px solid rgba(201,162,39,.25); box-shadow: 0 0 16px rgba(201,162,39,.12);
}
.sidebar-footer { padding: 1rem; border-top: 1px solid rgba(201,162,39,.12); }
.main-wrap { margin-left: var(--sidebar); flex: 1; min-width: 0; animation: fadeIn .5s ease; }
.topbar {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; border-bottom: 1px solid rgba(201,162,39,.12);
  background: rgba(8,8,8,.95); position: sticky; top: 0; z-index: 40; backdrop-filter: blur(10px);
}
.topbar h1 { font-size: 1.15rem; }
.page-content { padding: 1.5rem; max-width: 1100px; animation: fadeUp .5s ease both; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem;
  transition: all .3s ease; animation: fadeUp .6s ease both;
}
.stat-card:hover {
  border-color: rgba(201,162,39,.4); transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3), 0 0 16px var(--glow);
}
.stat-card .label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stat-card .value { font-size: 1.5rem; font-weight: 700; margin-top: .25rem; color: var(--accent); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: .7rem .75rem; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
tr { transition: background .2s; }
tr:hover td { background: rgba(201,162,39,.04); }

/* Workout sets */
.set-row {
  display: grid; grid-template-columns: 40px 1fr 1fr 1fr auto; gap: .5rem;
  align-items: end; margin-top: .5rem; padding: .5rem; border-radius: 8px;
  background: rgba(0,0,0,.25); animation: fadeUp .4s ease both;
}
.set-row input { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: .5rem; }
.set-row input:focus { border-color: var(--accent); outline: none; }
.ex-card {
  margin-bottom: .85rem; padding: 1.1rem; border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg2); transition: border .25s;
}
.ex-card:hover { border-color: rgba(201,162,39,.35); }

/* Chat + photos */
.chat-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 0;
  height: calc(100vh - var(--header-h) - 3rem);
  border: 1px solid rgba(201,162,39,.2); border-radius: var(--radius); overflow: hidden;
  animation: scaleIn .5s ease both;
}
.chat-list { background: var(--bg2); border-right: 1px solid var(--border); overflow-y: auto; }
.chat-list-item {
  padding: .9rem 1rem; border-bottom: 1px solid var(--border); cursor: pointer; transition: .2s;
}
.chat-list-item:hover, .chat-list-item.active { background: rgba(201,162,39,.1); }
.chat-list-item .name { font-weight: 600; font-size: .9rem; }
.chat-list-item .preview { font-size: .78rem; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-main { display: flex; flex-direction: column; background: var(--card); }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .65rem; }
.bubble {
  max-width: 75%; padding: .65rem .9rem; border-radius: 14px; font-size: .9rem; line-height: 1.4;
  animation: fadeUp .3s ease both;
}
.bubble.me { align-self: flex-end; background: rgba(201,162,39,.2); border: 1px solid rgba(201,162,39,.3); }
.bubble.them { align-self: flex-start; background: var(--bg); border: 1px solid var(--border); }
.bubble .time { font-size: .7rem; color: var(--dim); margin-top: .25rem; }
.bubble img.chat-photo {
  max-width: 220px; border-radius: 10px; margin-top: .4rem; cursor: pointer;
  transition: transform .25s;
}
.bubble img.chat-photo:hover { transform: scale(1.03); }
.chat-input { display: flex; gap: .5rem; padding: .85rem; border-top: 1px solid var(--border); align-items: center; }
.chat-input input[type=text] {
  flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: .65rem 1rem;
}
.chat-input input[type=text]:focus { outline: none; border-color: var(--accent); }
.chat-input input[type=file] { display: none; }
.btn-icon {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(201,162,39,.35);
  background: rgba(201,162,39,.1); color: var(--accent); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  transition: all .2s;
}
.btn-icon:hover { background: rgba(201,162,39,.25); transform: scale(1.08); }

.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: .5rem; }
.chart-bars .bar {
  flex: 1; background: linear-gradient(180deg, var(--accent), rgba(201,162,39,.25));
  border-radius: 4px 4px 0 0; min-width: 8px; position: relative;
  transition: height .6s ease; animation: fadeUp .5s ease both;
}
.chart-bars .bar span {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  font-size: .65rem; color: var(--dim); white-space: nowrap;
}

/* Quality stars */
.quality-picker { display: flex; gap: .35rem; flex-wrap: wrap; }
.quality-picker button {
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--muted); cursor: pointer; font-weight: 700;
  transition: all .2s;
}
.quality-picker button:hover, .quality-picker button.active {
  border-color: var(--accent); background: rgba(201,162,39,.2); color: var(--accent2);
  transform: scale(1.08);
}

.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(201,162,39,.14), transparent), var(--bg);
}
.auth-box {
  width: 100%; max-width: 420px; background: var(--card);
  border: 1px solid rgba(201,162,39,.25); border-radius: var(--radius); padding: 2rem;
  animation: scaleIn .55s ease both; box-shadow: 0 0 40px rgba(201,162,39,.08);
}
.auth-tabs { display: flex; gap: .4rem; margin-bottom: 1.25rem; }
.auth-tab {
  flex: 1; padding: .65rem; background: transparent; border: 1px solid var(--border);
  border-radius: 10px; color: var(--muted); cursor: pointer; font-weight: 600; transition: .25s;
}
.auth-tab.active {
  background: linear-gradient(135deg, var(--accent), #a8861a); border-color: var(--accent); color: #0a0a0a;
}
.auth-tab:hover:not(.active) { border-color: var(--accent); color: var(--accent2); }

.sidebar-toggle { display: none; background: none; border: none; color: var(--accent); font-size: 1.4rem; cursor: pointer; }

.photo-preview {
  max-width: 120px; border-radius: 8px; margin: .5rem 0; border: 1px solid rgba(201,162,39,.3);
  animation: scaleIn .3s ease;
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: 8px 0 32px rgba(0,0,0,.5); }
  .main-wrap { margin-left: 0; }
  .sidebar-toggle { display: block; }
  .chat-layout { grid-template-columns: 1fr; height: auto; min-height: 60vh; }
  .chat-list { max-height: 180px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: linear-gradient(180deg, #1a1508 0%, #0c0a05 40%, #080808 100%) !important;
    border-left: 1px solid rgba(201,162,39,.35);
    box-shadow: -8px 0 32px rgba(201,162,39,.12);
    flex-direction: column; padding: 1.5rem; gap: 0;
    transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1); z-index: 99;
  }
  .nav-links.open { transform: translateX(0); animation: slideInRight .35s ease; }
  .nav-links a {
    padding: 1rem 0; border-bottom: 1px solid rgba(201,162,39,.2); width: 100%;
    color: #e8c547 !important; font-weight: 600; letter-spacing: 0.04em;
  }
  .nav-links a:hover { color: #fff !important; padding-left: .5rem; }
  .menu-btn { display: flex; }
  .set-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
