/* ============================================================
   PlayPadel — Premium E-Commerce Design v2
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --navy:        #060e1f;
  --navy-mid:    #0d1f3c;
  --navy-card:   #111e35;
  --green:       #22c55e;
  --green-dark:  #16a34a;
  --green-glow:  rgba(34,197,94,0.25);
  --blue:        #2563eb;
  --blue-light:  #3b82f6;
  --white:       #ffffff;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-300:    #cbd5e1;
  --gray-400:    #94a3b8;
  --gray-600:    #475569;
  --gray-700:    #334155;
  --gray-800:    #1e293b;
  --text:        #1e293b;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow:      0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.14);
  --shadow-xl:   0 24px 64px rgba(0,0,0,0.18);
  --radius:      20px;
  --radius-sm:   12px;
  --radius-pill: 999px;
  --transition:  0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--gray-50);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ════════════════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(6, 14, 31, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 40px;
  display: flex; justify-content: space-between; align-items: center;
  height: 68px;
}

.nav-left  { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 2px; }

.nav-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem; font-weight: 500;
  padding: 7px 13px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }

.brand {
  font-size: 1.4rem; font-weight: 900; letter-spacing: -0.5px;
  color: var(--white) !important;
  display: flex; align-items: center; gap: 8px;
}
.brand span { color: var(--green); }

.nav-right { display: flex; align-items: center; gap: 8px; }

.nav-right a {
  color: rgba(255,255,255,0.75); font-size: 0.875rem; font-weight: 500;
  padding: 7px 16px; border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.nav-right a:hover { color: var(--white); background: rgba(255,255,255,0.08); }

.nav-cta {
  background: var(--green) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
}
.nav-cta:hover {
  background: var(--green-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--green-glow) !important;
}

/* ════════════════════════════════════════════════════════════
   LAYOUT
   ════════════════════════════════════════════════════════════ */
.container { max-width: 1280px; margin: 0 auto; padding: 40px 28px 80px; }

/* ════════════════════════════════════════════════════════════
   FLASH ALERTS
   ════════════════════════════════════════════════════════════ */
.alert {
  padding: 14px 20px; border-radius: var(--radius-sm);
  margin-bottom: 20px; font-weight: 600; font-size: 0.9rem;
  display: flex; align-items: center; gap: 10px;
}
.alert.success { background: #dcfce7; color: #15803d; border-left: 4px solid #22c55e; }
.alert.danger  { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.alert.warning { background: #fef9c3; color: #92400e; border-left: 4px solid #f59e0b; }
.alert.info    { background: #dbeafe; color: #1d4ed8; border-left: 4px solid #3b82f6; }

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  background: url('/static/images/hero.jpg') center 30% / cover no-repeat;
  min-height: 580px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; align-items: center;
  margin-bottom: 56px;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(6,14,31,0.95) 0%,
    rgba(6,14,31,0.75) 50%,
    rgba(34,197,94,0.12) 100%
  );
}

.hero-content {
  position: relative; z-index: 1;
  color: var(--white);
  max-width: 620px;
  padding: 80px 72px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.35);
  color: var(--green);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 16px; border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.eyebrow::before { content: '●'; font-size: 0.5rem; }

.hero-content h1 {
  font-size: 3.4rem; font-weight: 900;
  line-height: 1.08; letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.hero-content h1 .accent {
  background: linear-gradient(135deg, var(--green), #86efac);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.05rem; line-height: 1.75;
  color: rgba(255,255,255,0.75);
  margin-bottom: 34px;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-stat {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.55); font-size: 0.85rem;
  margin-top: 32px;
}
.hero-stat strong { color: var(--white); }
.hero-stat::before { content: '✓'; color: var(--green); font-weight: 800; }

/* ════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: var(--white);
  border: none; border-radius: var(--radius-sm);
  padding: 13px 24px; cursor: pointer;
  font-weight: 700; font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.4);
  color: var(--white);
}

.btn-green { background: var(--green); color: var(--navy); }
.btn-green:hover {
  background: var(--green-dark); color: var(--navy);
  box-shadow: 0 8px 24px var(--green-glow);
}

.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.35);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  box-shadow: none; transform: translateY(-2px); color: var(--white);
}

.btn-ghost {
  background: transparent; color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-ghost:hover {
  background: var(--blue); color: var(--white);
  box-shadow: 0 8px 24px rgba(37,99,235,0.3);
}

.google-btn {
  background: #4285f4; color: var(--white);
  margin-top: 14px; width: 100%;
}
.google-btn:hover { background: #3367d6; box-shadow: 0 8px 24px rgba(66,133,244,0.35); }

.small-btn { padding: 8px 16px; font-size: 0.85rem; border-radius: 10px; }
.danger-btn { background: #dc2626; color: var(--white); }
.danger-btn:hover { background: #b91c1c; box-shadow: 0 8px 24px rgba(220,38,38,0.35); }

/* ════════════════════════════════════════════════════════════
   CATEGORY STRIP
   ════════════════════════════════════════════════════════════ */
.category-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 56px;
}

.category-box {
  background: var(--white);
  padding: 26px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  color: var(--text);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex; flex-direction: column; gap: 8px;
  position: relative; overflow: hidden;
}

.category-box::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.category-box:hover::after { transform: scaleX(1); }

.category-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.cat-icon { font-size: 2.2rem; margin-bottom: 4px; }
.category-box h3 { font-size: 1rem; font-weight: 800; color: var(--gray-800); }
.category-box p  { font-size: 0.82rem; color: var(--gray-600); line-height: 1.4; }

/* ════════════════════════════════════════════════════════════
   SECTION HEADINGS
   ════════════════════════════════════════════════════════════ */
.section-title {
  font-size: 1.6rem; font-weight: 900; color: var(--gray-800);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 16px;
}
.section-title::after {
  content: ''; flex: 1; height: 2px;
  background: linear-gradient(90deg, var(--gray-200), transparent);
  border-radius: 99px;
}

.page-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--gray-200);
}
.page-header h1 { font-size: 2.2rem; font-weight: 900; color: var(--gray-800); margin-bottom: 6px; }
.page-header p  { color: var(--gray-600); font-size: 1rem; }

/* ════════════════════════════════════════════════════════════
   PRODUCT GRID & CARDS
   ════════════════════════════════════════════════════════════ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 26px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.card-img-wrap {
  overflow: hidden;
  height: 240px;
  position: relative;
}
.card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s ease;
}
.card:hover .card-img-wrap img { transform: scale(1.07); }

.card-body {
  padding: 20px 22px 22px;
  display: flex; flex-direction: column; flex: 1; gap: 10px;
}
.card-body h3 { font-size: 1rem; font-weight: 800; color: var(--gray-800); line-height: 1.3; }
.card-body > p { font-size: 0.85rem; color: var(--gray-600); line-height: 1.55; flex: 1; }
.card-body form, .card-body a.btn { margin-top: auto; }
.card-body .btn { width: 100%; }

.badge {
  display: inline-flex; align-items: center;
  background: #dbeafe; color: #1d4ed8;
  font-size: 0.72rem; font-weight: 700; padding: 3px 10px;
  border-radius: var(--radius-pill); letter-spacing: 0.04em;
  text-transform: uppercase; width: fit-content;
}
.badge.rackets { background: #fce7f3; color: #be185d; }
.badge.shoes   { background: #ffedd5; color: #c2410c; }
.badge.balls   { background: #fef9c3; color: #92400e; }
.badge.bags    { background: #dcfce7; color: #15803d; }

.price {
  font-size: 1.25rem; font-weight: 900;
  color: var(--blue);
  letter-spacing: -0.5px;
}

/* ════════════════════════════════════════════════════════════
   FEATURES / TRUST STRIP
   ════════════════════════════════════════════════════════════ */
.features-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  margin-bottom: 56px;
  overflow: hidden;
}
.feature-item {
  padding: 28px 24px;
  display: flex; align-items: flex-start; gap: 16px;
  border-right: 1px solid var(--gray-200);
}
.feature-item:last-child { border-right: none; }
.feature-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--gray-50); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.feature-text h4 { font-size: 0.9rem; font-weight: 700; color: var(--gray-800); margin-bottom: 4px; }
.feature-text p  { font-size: 0.8rem; color: var(--gray-600); line-height: 1.4; }

/* ════════════════════════════════════════════════════════════
   FILTER BAR
   ════════════════════════════════════════════════════════════ */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px;
}
.filter-link {
  background: var(--white); color: var(--gray-700);
  padding: 9px 20px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm); font-weight: 600; font-size: 0.875rem;
  border: 1.5px solid var(--gray-200);
  transition: all var(--transition);
}
.filter-link:hover { border-color: var(--blue-light); color: var(--blue); }
.filter-link.active {
  background: var(--navy); color: var(--white); border-color: var(--navy);
  box-shadow: 0 4px 16px rgba(6,14,31,0.25);
}

/* ════════════════════════════════════════════════════════════
   FORMS
   ════════════════════════════════════════════════════════════ */
.form-card {
  background: var(--white); border-radius: var(--radius);
  padding: 40px 44px; box-shadow: var(--shadow-lg);
  max-width: 480px; margin: 0 auto;
  border: 1px solid var(--gray-200);
}
.form-card h2 { font-size: 1.65rem; font-weight: 900; color: var(--gray-800); margin-bottom: 6px; }
.form-subtitle { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 28px; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
  width: 100%; padding: 13px 16px;
  margin: 8px 0 16px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 0.95rem; font-family: inherit;
  color: var(--text); background: var(--gray-50);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
}
input:focus {
  border-color: var(--blue); background: var(--white);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}
.form-card .btn { width: 100%; padding: 14px; font-size: 1rem; margin-top: 4px; }

.divider {
  display: flex; align-items: center; gap: 14px;
  color: var(--gray-400); font-size: 0.8rem; font-weight: 600;
  margin: 18px 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gray-200);
}

.muted { color: var(--gray-600); font-size: 0.875rem; margin-top: 18px; text-align: center; }
.muted a { color: var(--blue); font-weight: 600; }
.muted a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════════
   CART
   ════════════════════════════════════════════════════════════ */
.cart-list, .orders-list { display: grid; gap: 16px; }

.cart-item {
  background: var(--white); border-radius: var(--radius);
  padding: 20px 26px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  transition: box-shadow var(--transition);
}
.cart-item:hover { box-shadow: var(--shadow); }
.cart-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.cart-item p  { font-size: 0.875rem; color: var(--gray-600); }

.inline-form { display: flex; align-items: center; gap: 10px; }
.inline-form input[type="number"] { width: 76px; margin: 0; padding: 8px 12px; }

.checkout-box {
  background: var(--white); border-radius: var(--radius);
  padding: 30px 34px; box-shadow: var(--shadow);
  border: 1px solid var(--gray-200); margin-top: 26px;
}
.checkout-box h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.checkout-total { font-size: 1.6rem; font-weight: 900; color: var(--blue); margin-bottom: 20px; }

/* ════════════════════════════════════════════════════════════
   ORDERS / DASHBOARD
   ════════════════════════════════════════════════════════════ */
.order-card {
  background: var(--white); border-radius: var(--radius);
  padding: 24px 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition), transform var(--transition);
}
.order-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.order-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
.order-meta { font-size: 0.85rem; color: var(--gray-600); }

.order-divider {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.status {
  font-weight: 700; text-transform: capitalize;
  padding: 5px 14px; border-radius: var(--radius-pill); font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.status.paid    { background: #dcfce7; color: #15803d; }
.status.pending { background: #fef9c3; color: #92400e; }
.status.failed  { background: #fee2e2; color: #991b1b; }

/* ════════════════════════════════════════════════════════════
   SUCCESS / CANCEL
   ════════════════════════════════════════════════════════════ */
.result-box {
  background: var(--white); border-radius: var(--radius);
  padding: 64px 52px; box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  text-align: center; max-width: 540px; margin: 48px auto;
}
.result-icon { font-size: 3.8rem; margin-bottom: 22px; display: block; }
.result-box h2 { font-size: 1.9rem; font-weight: 900; margin-bottom: 14px; }
.result-box p  { color: var(--gray-600); margin-bottom: 30px; line-height: 1.7; }
.result-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════════
   EMPTY STATE
   ════════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 72px 28px;
  background: var(--white); border-radius: var(--radius);
  border: 2px dashed var(--gray-200);
}
.empty-icon { font-size: 3.5rem; margin-bottom: 18px; display: block; }
.empty-state h3 { font-size: 1.15rem; font-weight: 800; color: var(--gray-700); margin-bottom: 8px; }
.empty-state p  { font-size: 0.9rem; color: var(--gray-500, #6b7280); margin-bottom: 22px; }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.45);
  padding: 0;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 40px 28px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.footer-brand { font-size: 1.2rem; font-weight: 900; color: var(--white); }
.footer-brand span { color: var(--green); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.45); font-size: 0.85rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.8rem; }
.footer-copy strong { color: var(--green); }

/* ════════════════════════════════════════════════════════════
   BROWSE ALL CTA
   ════════════════════════════════════════════════════════════ */
.browse-cta {
  text-align: center; margin-top: 52px;
  padding: 56px 28px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius);
}
.browse-cta h3 { font-size: 1.5rem; font-weight: 900; color: var(--white); margin-bottom: 10px; }
.browse-cta p  { color: rgba(255,255,255,0.65); margin-bottom: 24px; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .navbar { padding: 0 24px; }
  .container { padding: 32px 20px 64px; }
  .category-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar { height: auto; padding: 14px 20px; flex-wrap: wrap; gap: 10px; }
  .nav-left { gap: 16px; flex-wrap: wrap; }
  .nav-links { display: none; }

  .hero { min-height: 400px; }
  .hero-content { padding: 44px 28px; }
  .hero-content h1 { font-size: 2.2rem; }

  .category-strip { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .features-strip { grid-template-columns: 1fr 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .feature-item:nth-child(2n) { border-right: none; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
  .form-card { padding: 30px 22px; }
  .result-box { padding: 44px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .category-strip { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .features-strip { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   ANIMATIONS & 3D
   ════════════════════════════════════════════════════════════ */

/* Scroll-in base state */
.card, .category-box, .feature-item, .browse-cta, .page-header {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.card.visible, .category-box.visible, .feature-item.visible,
.browse-cta.visible, .page-header.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card shine overlay */
.card { position: relative; transform-style: preserve-3d; }
.card-shine {
  position: absolute; inset: 0; border-radius: var(--radius);
  pointer-events: none; z-index: 5;
  transition: background 0.1s;
}

/* Card image transition */
.card-img-wrap img {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Image dots */
.img-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 4;
}
.img-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none; padding: 0;
}
.img-dot.active { background: var(--white); transform: scale(1.3); }

/* ── Hero entrance animation ── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.hero-content { animation: fadeIn 0.6s ease both; }
.hero-content .eyebrow   { animation: slideUp 0.6s 0.1s ease both; }
.hero-content h1         { animation: slideUp 0.7s 0.2s ease both; }
.hero-content p          { animation: slideUp 0.7s 0.35s ease both; }
.hero-content .hero-actions { animation: slideUp 0.7s 0.5s ease both; }
.hero-content .hero-stat { animation: slideUp 0.6s 0.65s ease both; }

/* Floating ball in hero */
.hero-float {
  position: absolute; right: 10%; top: 50%; transform: translateY(-50%);
  font-size: 8rem; opacity: 0.08; pointer-events: none;
  animation: float 4s ease-in-out infinite;
  display: none;
}
@media (min-width: 900px) { .hero-float { display: block; } }

/* Animated brand gradient */
.brand {
  background: linear-gradient(90deg, #fff, var(--green), #fff, var(--green));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}
.brand span {
  -webkit-text-fill-color: transparent;
}

/* Pulsing eyebrow */
.eyebrow { animation: pulseBadge 2.5s ease-in-out infinite, slideUp 0.6s 0.1s ease both; }

/* Category box animated border */
@keyframes borderSpin {
  to { transform: rotate(360deg); }
}
.category-box {
  overflow: hidden;
}

/* Price color animation */
@keyframes priceGlow {
  0%, 100% { color: var(--blue); }
  50%       { color: var(--blue-light); }
}
.price { animation: priceGlow 3s ease-in-out infinite; }

/* Ripple on button */
.btn { position: relative; overflow: hidden; }
.ripple {
  position: absolute; border-radius: 50%;
  width: 14px; height: 14px;
  background: rgba(255,255,255,0.45);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
  margin-left: -7px; margin-top: -7px;
}

/* ── Lightbox ── */
#lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(6px);
}
#lightbox.open { opacity: 1; pointer-events: all; }

#lb-img {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain; border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  transition: opacity 0.15s ease;
}
#lb-close {
  position: absolute; top: 20px; right: 28px;
  background: rgba(255,255,255,0.12); border: none; color: #fff;
  font-size: 1.6rem; width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
#lb-close:hover { background: rgba(255,255,255,0.25); }

#lb-prev, #lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 1.4rem;
  width: 52px; height: 52px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
#lb-prev:hover, #lb-next:hover {
  background: rgba(255,255,255,0.22); transform: translateY(-50%) scale(1.08);
}
#lb-prev { left: 24px; }
#lb-next { right: 24px; }

#lb-dots {
  display: flex; gap: 8px; margin-top: 20px;
}
.lb-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.35); cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.lb-dot.active { background: var(--green); transform: scale(1.3); }

/* Navbar transition */
.navbar { transition: transform 0.35s cubic-bezier(0.22,1,0.36,1); }

/* Stagger grid items */
.grid .card:nth-child(1) { --delay: 0ms; }
.grid .card:nth-child(2) { --delay: 80ms; }
.grid .card:nth-child(3) { --delay: 160ms; }
.grid .card:nth-child(4) { --delay: 240ms; }
.grid .card:nth-child(5) { --delay: 80ms; }
.grid .card:nth-child(6) { --delay: 160ms; }
.grid .card:nth-child(7) { --delay: 240ms; }
.grid .card:nth-child(8) { --delay: 320ms; }

/* ════════════════════════════════════════════════════════════
   MOBILE HAMBURGER MENU
   ════════════════════════════════════════════════════════════ */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: rgba(255,255,255,0.8); border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: var(--navy); border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 199; padding: 12px 20px; flex-direction: column; gap: 2px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.75); font-size: 0.95rem; font-weight: 500;
  padding: 12px 16px; border-radius: var(--radius-sm);
  transition: all var(--transition); border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.mobile-menu .nav-cta-m {
  background: var(--green); color: var(--navy) !important;
  font-weight: 700 !important; border-radius: var(--radius-pill) !important;
  text-align: center; margin-top: 6px;
}
@media (max-width: 768px) { .hamburger { display: flex; } }

/* ════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ════════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed; bottom: 28px; right: 28px; z-index: 9000;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  background: var(--navy); color: var(--white);
  padding: 14px 20px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl); font-size: 0.9rem; font-weight: 600;
  display: flex; align-items: center; gap: 10px; pointer-events: all;
  border-left: 4px solid var(--green);
  animation: toastIn 0.35s cubic-bezier(0.22,1,0.36,1) both;
  max-width: 320px;
}
.toast.removing { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn  { from { opacity:0; transform: translateX(100%) scale(0.9); } to { opacity:1; transform: translateX(0) scale(1); } }
@keyframes toastOut { to   { opacity:0; transform: translateX(100%) scale(0.9); } }

/* ════════════════════════════════════════════════════════════
   SCROLL TO TOP
   ════════════════════════════════════════════════════════════ */
#scroll-top {
  position: fixed; bottom: 28px; left: 28px;
  width: 44px; height: 44px;
  background: var(--navy); color: var(--white);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.25s;
  z-index: 8000;
}
#scroll-top.visible { opacity: 1; pointer-events: all; }
#scroll-top:hover { background: var(--green); transform: translateY(-3px); }

/* ════════════════════════════════════════════════════════════
   AUTH SPLIT LAYOUT
   ════════════════════════════════════════════════════════════ */
.auth-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  min-height: calc(100vh - 200px); align-items: stretch;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-xl); border: 1px solid var(--gray-200);
  max-width: 960px; margin: 0 auto;
}
.auth-side {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 64px 48px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.auth-side::after {
  content: '';
  position: absolute; bottom: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(34,197,94,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.auth-side h2 {
  font-size: 2.1rem; font-weight: 900; color: var(--white);
  margin-bottom: 14px; line-height: 1.15;
}
.auth-side h2 .accent {
  background: linear-gradient(135deg, var(--green), #86efac);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.auth-side > p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.7; margin-bottom: 32px; }
.auth-perk { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.75); font-size: 0.875rem; margin-bottom: 14px; }
.auth-perk-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; flex-shrink: 0;
}
.auth-form-side {
  background: var(--white); padding: 64px 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-form-side .form-card { box-shadow: none; border: none; padding: 0; max-width: 100%; margin: 0; }
@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; max-width: 480px; }
  .auth-side { display: none; }
  .auth-form-side { padding: 36px 28px; border-radius: var(--radius); }
}

/* ════════════════════════════════════════════════════════════
   CART UPGRADE
   ════════════════════════════════════════════════════════════ */
.cart-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cart-sticky { position: sticky; top: 90px; }
@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr; } .cart-sticky { position: static; } }

.cart-item-img {
  width: 82px; height: 82px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0; border: 1px solid var(--gray-200);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h3 { margin-bottom: 3px; }
.cart-item-subtotal { font-size: 1rem; font-weight: 800; color: var(--blue); margin-top: 4px; }

/* qty stepper */
.qty-stepper {
  display: flex; align-items: center;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  overflow: hidden; width: fit-content;
}
.qty-btn {
  background: var(--gray-50); border: none; cursor: pointer;
  width: 34px; height: 36px; font-size: 1rem; font-weight: 700;
  color: var(--gray-700); transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--gray-200); }
.qty-stepper input[type="number"] {
  width: 50px; text-align: center; border: none;
  border-left: 1.5px solid var(--gray-200); border-right: 1.5px solid var(--gray-200);
  border-radius: 0; margin: 0; padding: 8px 4px; background: var(--white);
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-form-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════════
   FOOTER UPGRADE
   ════════════════════════════════════════════════════════════ */
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  padding: 56px 28px 32px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-col h4 {
  font-size: 0.8rem; font-weight: 700; color: var(--white);
  margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.08em;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.45); font-size: 0.85rem;
  margin-bottom: 10px; transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-col p { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.65; margin-top: 12px; }
.footer-secure {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2);
  color: var(--green); font-size: 0.78rem; font-weight: 700;
  padding: 5px 12px; border-radius: var(--radius-pill); margin-top: 18px;
}
.footer-bottom-bar {
  max-width: 1280px; margin: 0 auto; padding: 20px 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
}
.footer-bottom-bar p { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer-bottom-bar strong { color: var(--green); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding: 40px 20px 24px; } }
@media (max-width: 480px)  { .footer-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════
   NAV SEARCH
   ════════════════════════════════════════════════════════════ */
.nav-search-form {
  flex: 1; max-width: 340px; margin: 0 16px;
}
.nav-search-wrap {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-pill);
  padding: 0 14px; gap: 8px;
  transition: border-color var(--transition), background var(--transition);
}
.nav-search-wrap:focus-within {
  border-color: rgba(34,197,94,0.5);
  background: rgba(255,255,255,0.1);
}
.nav-search-icon { color: rgba(255,255,255,0.45); font-size: 0.85rem; flex-shrink: 0; }
.nav-search-wrap input {
  background: none; border: none; outline: none;
  color: var(--white); font-size: 0.875rem; width: 100%;
  padding: 9px 0; margin: 0;
}
.nav-search-wrap input::placeholder { color: rgba(255,255,255,0.4); }
.nav-icon-btn { font-size: 1rem !important; }
@media (max-width: 900px) { .nav-search-form { display: none; } }

/* ════════════════════════════════════════════════════════════
   BREADCRUMB
   ════════════════════════════════════════════════════════════ */
.breadcrumb-nav {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.83rem; color: var(--gray-600);
  margin-bottom: 28px;
}
.breadcrumb-nav a { color: var(--blue); transition: color var(--transition); }
.breadcrumb-nav a:hover { color: var(--navy); }
.bc-sep { color: var(--gray-400); }
.breadcrumb-nav span:last-child { color: var(--gray-700); font-weight: 600; }

/* ════════════════════════════════════════════════════════════
   PRODUCT DETAIL
   ════════════════════════════════════════════════════════════ */
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; gap: 32px; } }

.detail-main-img {
  border-radius: var(--radius); overflow: hidden;
  background: var(--gray-100); position: relative;
  aspect-ratio: 1 / 1;
}
.detail-main-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.18s ease;
}
.detail-zoom-btn {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,0.85); border: none;
  width: 38px; height: 38px; border-radius: 10px;
  cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), transform var(--transition);
}
.detail-zoom-btn:hover { background: var(--white); transform: scale(1.08); }

.detail-thumbs {
  display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap;
}
.detail-thumb {
  width: 72px; height: 72px; border-radius: var(--radius-sm);
  background-size: cover; background-position: center;
  border: 2px solid var(--gray-200); cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.detail-thumb:hover { border-color: var(--blue-light); transform: scale(1.05); }
.detail-thumb.active { border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }

.detail-info { padding-top: 8px; }
.detail-title { font-size: 1.9rem; font-weight: 900; color: var(--gray-800); margin: 12px 0 10px; line-height: 1.2; }

.detail-rating {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; }
.rating-count { font-size: 0.85rem; color: var(--gray-600); }

.detail-price {
  font-size: 2rem; font-weight: 900; color: var(--blue);
  margin-bottom: 20px; letter-spacing: -1px;
}
.detail-price span { font-size: 1rem; font-weight: 600; color: var(--gray-600); }

.detail-desc { margin-bottom: 24px; }
.detail-desc p { font-size: 0.95rem; color: var(--gray-700); line-height: 1.75; }

.detail-perks { display: grid; gap: 10px; margin-bottom: 28px; }
.detail-perk {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem; color: var(--gray-700);
}
.detail-perk span { font-size: 1rem; flex-shrink: 0; }

.detail-add-btn { width: 100%; padding: 15px; font-size: 1.05rem; margin-bottom: 12px; }
.detail-back-btn {
  width: 100%; padding: 12px; font-size: 0.9rem; text-align: center;
  color: var(--gray-700) !important; border-color: var(--gray-300) !important;
}

/* Make card product name clickable */
.card-body h3 a { color: var(--gray-800); }
.card-body h3 a:hover { color: var(--blue); }
.card-img-link { display: block; }

/* ════════════════════════════════════════════════════════════
   SEARCH PAGE
   ════════════════════════════════════════════════════════════ */
.search-form-big { margin-bottom: 32px; }
.search-input-wrap {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 2px solid var(--gray-200);
  border-radius: var(--radius-pill); padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input-wrap:focus-within {
  border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}
.search-icon-inside { color: var(--gray-400); font-size: 1.1rem; flex-shrink: 0; }
.search-input-wrap input {
  flex: 1; border: none; outline: none; font-size: 1rem;
  background: none; color: var(--text); margin: 0; padding: 10px 0;
}
.search-input-wrap .btn { border-radius: var(--radius-pill); padding: 11px 28px; flex-shrink: 0; }
.search-count { font-size: 0.875rem; color: var(--gray-600); margin-bottom: 20px; }
.search-suggest-label { font-size: 0.9rem; color: var(--gray-600); font-weight: 600; }

/* ════════════════════════════════════════════════════════════
   ABOUT PAGE
   ════════════════════════════════════════════════════════════ */
.about-hero {
  position: relative;
  background: url('/static/images/hero.jpg') center 40% / cover no-repeat;
  min-height: 400px; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; margin-bottom: 56px;
}
.about-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(6,14,31,0.95) 0%, rgba(6,14,31,0.65) 60%, transparent 100%);
}
.about-hero-content {
  position: relative; z-index: 1; color: var(--white);
  padding: 72px; max-width: 600px;
}
.about-hero-content h1 {
  font-size: 2.8rem; font-weight: 900; line-height: 1.1;
  letter-spacing: -1px; margin-bottom: 16px;
}
.about-hero-content p { font-size: 1rem; color: rgba(255,255,255,0.75); line-height: 1.7; }
@media (max-width: 768px) {
  .about-hero-content { padding: 40px 28px; }
  .about-hero-content h1 { font-size: 2rem; }
}

.about-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--gray-200);
  margin-bottom: 64px; overflow: hidden;
}
.about-stat {
  padding: 32px 24px; text-align: center;
  border-right: 1px solid var(--gray-200);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.about-stat:last-child { border-right: none; }
.about-stat-num {
  font-size: 2.4rem; font-weight: 900; color: var(--navy);
  line-height: 1; letter-spacing: -2px;
}
.stat-plus { color: var(--green); font-size: 1.8rem; }
.about-stat-label { font-size: 0.82rem; color: var(--gray-600); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 768px) { .about-stats { grid-template-columns: 1fr 1fr; } .about-stat:nth-child(2) { border-right: none; } }
@media (max-width: 480px) { .about-stats { grid-template-columns: 1fr 1fr; } }

.about-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; margin-bottom: 64px;
}
.about-text-block h2 { font-size: 1.7rem; font-weight: 900; color: var(--gray-800); margin-bottom: 20px; }
.about-text-block p { font-size: 0.95rem; color: var(--gray-700); line-height: 1.8; margin-bottom: 16px; }
.about-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-xl); }
@media (max-width: 768px) { .about-section { grid-template-columns: 1fr; } .about-img-block { display: none; } }

.values-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.value-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.value-icon { font-size: 2rem; margin-bottom: 16px; display: block; }
.value-card h3 { font-size: 1rem; font-weight: 800; color: var(--gray-800); margin-bottom: 10px; }
.value-card p  { font-size: 0.875rem; color: var(--gray-600); line-height: 1.65; }

/* ════════════════════════════════════════════════════════════
   PROFILE PAGE
   ════════════════════════════════════════════════════════════ */
.profile-layout {
  display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start;
}
@media (max-width: 900px) { .profile-layout { grid-template-columns: 1fr; } }

.profile-side {
  background: var(--white); border-radius: var(--radius);
  padding: 36px 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200); text-align: center;
  position: sticky; top: 90px;
}
@media (max-width: 900px) { .profile-side { position: static; } }

.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--white); font-size: 2rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; border: 3px solid var(--green);
  box-shadow: 0 0 0 6px rgba(34,197,94,0.12);
}
.profile-name  { font-size: 1.1rem; font-weight: 800; color: var(--gray-800); margin-bottom: 4px; }
.profile-email { font-size: 0.83rem; color: var(--gray-600); margin-bottom: 20px; }
.profile-oauth-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #dbeafe; color: #1d4ed8; font-size: 0.78rem; font-weight: 700;
  padding: 4px 12px; border-radius: var(--radius-pill); margin-bottom: 20px;
}
.profile-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--gray-200); border-radius: var(--radius-sm);
  overflow: hidden; margin-bottom: 20px;
}
.profile-stat {
  background: var(--gray-50); padding: 14px 8px; text-align: center;
  display: flex; flex-direction: column; gap: 4px;
}
.profile-stat-num   { font-size: 1.4rem; font-weight: 900; color: var(--navy); }
.profile-stat-label { font-size: 0.75rem; color: var(--gray-600); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.profile-forms {}
.profile-form-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px 36px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.profile-form-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--gray-800); margin-bottom: 4px; }
.profile-form-card label { display: block; margin-top: 4px; }
.profile-form-card .btn { margin-top: 8px; }
@media (max-width: 768px) { .profile-form-card { padding: 24px 20px; } }
