/* ============================================================
   Interactive Studios — Main Stylesheet
   © 2025 John (ZephyrSPT). All Rights Reserved.
   Unauthorized reproduction or distribution is prohibited.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --white: #ffffff;
  --off-white: #fafafa;
  --light-gray: #f5f5f5;
  --border: #e5e5e5;
  --text-primary: #222222;
  --text-secondary: #555555;
  --text-muted: #888888;
  --accent: #444444;
  --accent-light: #f0f0f0;
  --accent-hover: #333333;
  --accent-2: #555555;
  --red: #e53e3e;
  --red-light: #fff5f5;
  --green: #38a169;
  --green-light: #f0fff4;
  --gold: #d97706;
  --gold-light: #fffbeb;
  --navy: #222222;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --font-main: 'Outfit', sans-serif;
  --font-serif: 'Crimson Pro', Georgia, serif;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--text-primary);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { color: var(--text-secondary); line-height: 1.75; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

/* ─── LAYOUT ─── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }

/* ─── NAVBAR ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar__logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(26,86,219,0.28);
}
.navbar__logo-icon svg { width: 22px; height: 22px; fill: white; }
.navbar__logo-text { font-size: 1.05rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.03em; }
.navbar__logo-text span { color: var(--accent); }
.navbar__nav { display: flex; align-items: center; gap: 4px; }
.navbar__link {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  text-decoration: none;
}
.navbar__link:hover, .navbar__link.active {
  background: var(--accent-light);
  color: var(--accent);
}
.navbar__actions { display: flex; align-items: center; gap: 10px; }
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  border: none;
  background: none;
}
.navbar__hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }
.navbar__mobile { display: none; }

@media (max-width: 820px) {
  .navbar__nav { display: none; }
  .navbar__hamburger { display: flex; }
  .navbar__mobile {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border);
    background: white;
  }
  .navbar__mobile.open { display: flex; }
  .navbar__mobile .navbar__link { padding: 10px 14px; font-size: 0.95rem; }
  .navbar__mobile .navbar__actions { flex-direction: column; align-items: stretch; margin-top: 8px; }
  .navbar__mobile .navbar__actions .btn { text-align: center; }
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn--primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(26,86,219,0.22);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,86,219,0.32);
}
.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--outline:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
}
.btn--ghost {
  background: var(--light-gray);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--border); color: var(--text-primary); }
.btn--danger { background: var(--red); color: white; border-color: var(--red); }
.btn--danger:hover { background: #c53030; border-color: #c53030; color: white; }
.btn--lg { padding: 14px 30px; font-size: 1rem; border-radius: 10px; }
.btn--sm { padding: 7px 14px; font-size: 0.82rem; }
.btn--full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ─── CARDS ─── */
.card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__body { padding: 28px; }
.card__header { padding: 24px 28px; border-bottom: 1px solid var(--border); }

/* ─── FORMS ─── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.925rem;
  color: var(--text-primary);
  background: white;
  transition: var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.form-input.error { border-color: var(--red); }
.form-error { font-size: 0.8rem; color: var(--red); font-weight: 500; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 100px; }

/* ─── ALERTS ─── */
.alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.alert--error { background: var(--red-light); color: #c53030; border: 1px solid #fed7d7; }
.alert--success { background: var(--green-light); color: #276749; border: 1px solid #c6f6d5; }
.alert--warning { background: var(--gold-light); color: #92400e; border: 1px solid #fde68a; }
.alert--info { background: var(--accent-light); color: var(--accent); border: 1px solid #bfdbfe; }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

/* ─── BADGE ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge--blue { background: var(--accent-light); color: var(--accent); }
.badge--green { background: var(--green-light); color: var(--green); }
.badge--red { background: var(--red-light); color: var(--red); }
.badge--gold { background: var(--gold-light); color: var(--gold); }
.badge--gray { background: var(--light-gray); color: var(--text-secondary); }

/* ─── DIVIDER ─── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── PAGE HEADER ─── */
.page-header {
  background: linear-gradient(160deg, #f0f5ff 0%, #ffffff 60%, #f8f9fc 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,86,219,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-header__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-header__eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.page-header h1 { margin-bottom: 16px; }
.page-header p { font-size: 1.1rem; color: var(--text-secondary); max-width: 560px; }

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,27,45,0.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.22s cubic-bezier(0.4,0,0.2,1);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal__header {
  padding: 28px 28px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.modal__title { font-size: 1.35rem; font-weight: 800; }
.modal__close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--light-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: var(--transition);
}
.modal__close:hover { background: var(--border); color: var(--text-primary); }
.modal__body { padding: 0 28px 28px; }

/* ─── FOOTER ─── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
  margin-top: 80px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer__brand {}
.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer__brand-logo-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__brand-logo-icon svg { width: 20px; height: 20px; fill: white; }
.footer__brand-name { font-size: 1rem; font-weight: 800; color: white; letter-spacing: -0.03em; }
.footer__brand-desc { font-size: 0.875rem; line-height: 1.65; max-width: 280px; }
.footer__col-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 0.9rem; color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer__links a:hover { color: white; }
.footer__bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__copyright { font-size: 0.82rem; }
.footer__badges { display: flex; gap: 10px; flex-wrap: wrap; }
.footer__badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 840px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ─── AVATAR ─── */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.avatar--sm { width: 32px; height: 32px; font-size: 0.8rem; }
.avatar--md { width: 48px; height: 48px; font-size: 1rem; }
.avatar--lg { width: 80px; height: 80px; font-size: 1.6rem; }
.avatar--xl { width: 112px; height: 112px; font-size: 2.2rem; }

/* ─── TABS ─── */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 28px; }
.tab-btn {
  padding: 10px 18px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  border-radius: 8px 8px 0 0;
}
.tab-btn:hover { color: var(--text-primary); background: var(--light-gray); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─── ACCOUNT DROPDOWN ─── */
.user-menu { position: relative; }
.user-menu__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: white;
  cursor: pointer;
  transition: var(--transition);
}
.user-menu__trigger:hover { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,86,219,0.08); }
.user-menu__name { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu__chevron { width: 16px; height: 16px; color: var(--text-muted); transition: var(--transition); }
.user-menu.open .user-menu__chevron { transform: rotate(180deg); }
.user-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 220px;
  padding: 8px;
  z-index: 500;
  display: none;
}
.user-menu.open .user-menu__dropdown { display: block; }
.user-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.user-menu__item svg { width: 16px; height: 16px; }
.user-menu__item:hover { background: var(--light-gray); color: var(--text-primary); }
.user-menu__item--danger:hover { background: var(--red-light); color: var(--red); }
.user-menu__separator { height: 1px; background: var(--border); margin: 6px 0; }

/* ─── UTILITY ─── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.font-serif { font-family: var(--font-serif); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.hidden { display: none !important; }

/* ─── ANIMATIONS ─── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fadeIn 0.4s ease both; }
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ─── POLICY PAGE ─── */
.policy-content { max-width: 780px; }
.policy-content h2 { font-size: 1.4rem; margin-top: 48px; margin-bottom: 12px; padding-top: 32px; border-top: 1px solid var(--border); }
.policy-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.policy-content h3 { font-size: 1.1rem; margin-top: 24px; margin-bottom: 8px; font-weight: 700; color: var(--text-primary); }
.policy-content p { margin-bottom: 14px; }
.policy-content ul, .policy-content ol { padding-left: 22px; margin-bottom: 14px; }
.policy-content li { color: var(--text-secondary); line-height: 1.75; margin-bottom: 6px; }
.policy-content .notice-box {
  background: var(--accent-light);
  border: 1.5px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 20px 0;
}
.policy-content .notice-box p { color: var(--accent); margin-bottom: 0; font-weight: 500; }
.policy-content .warning-box {
  background: var(--gold-light);
  border: 1.5px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 20px 0;
}
.policy-content .warning-box p { color: #92400e; margin-bottom: 0; font-weight: 500; }
.policy-sidebar {
  position: sticky;
  top: 90px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.policy-sidebar__title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px; }
.policy-sidebar__link {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 0.855rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
  transition: var(--transition);
}
.policy-sidebar__link:hover, .policy-sidebar__link.active { background: var(--accent-light); color: var(--accent); }
.policy-layout { display: grid; grid-template-columns: 1fr 220px; gap: 48px; align-items: start; }
@media (max-width: 760px) { .policy-layout { grid-template-columns: 1fr; } .policy-sidebar { position: static; } }

/* ─── PRODUCT CARDS ─── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--accent-light) 0%, #e0f2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.product-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card__name { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.product-card__desc { font-size: 0.875rem; color: var(--text-secondary); flex: 1; margin-bottom: 16px; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-card__price { font-size: 1.2rem; font-weight: 800; color: var(--accent); }

/* ─── ORDER TABLE ─── */
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); padding: 10px 16px; text-align: left; border-bottom: 2px solid var(--border); background: var(--off-white); }
.orders-table td { padding: 14px 16px; font-size: 0.9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.orders-table tr:last-child td { border-bottom: none; }
.orders-table tr:hover td { background: var(--off-white); }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--light-gray); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #c0c8d8; }
