/* Moniesent — PHP site styles */
:root {
  --gold: #c9a227;
  --gold-light: #e8c547;
  --gold-dark: #9a7b1a;
  --ink: #0b0b0b;
  --ink-soft: #141414;
  --ink-elevated: #1c1c1c;
  --ink-border: #2a2a2a;
  --text: #f5f5f5;
  --muted: rgba(255,255,255,.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.ms-body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: linear-gradient(165deg, #0b0b0b 0%, #12100a 45%, #0b0b0b 100%);
  color: var(--text);
  min-height: 100vh;
}
.font-display { font-family: 'Syne', system-ui, sans-serif; }
.gold-text {
  background: linear-gradient(110deg, #9a7b1a, #e8c547, #c9a227, #f0d878, #9a7b1a);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ms-gold-sheen {
  pointer-events: none;
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(201,162,39,.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(201,162,39,.08), transparent 50%);
}

/* Header */
.ms-header {
  position: relative; z-index: 20;
  max-width: 72rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem;
}
.ms-logo-link { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--gold); }
.ms-logo-link img { width: 44px; height: 44px; border-radius: 50%; }
.ms-logo-text { font-family: 'Syne', sans-serif; font-weight: 700; letter-spacing: .18em; font-size: 1.05rem; }
.ms-nav { display: none; gap: 2rem; font-size: .875rem; }
.ms-nav a { color: rgba(255,255,255,.7); text-decoration: none; }
.ms-nav a:hover { color: var(--gold); }
@media (min-width: 768px) { .ms-nav { display: flex; } }
.ms-btn-outline {
  border: 1px solid rgba(201,162,39,.4); background: rgba(201,162,39,.1);
  color: var(--gold); padding: .5rem 1.25rem; border-radius: 999px;
  text-decoration: none; font-size: .875rem; font-weight: 500;
}
.ms-btn-outline:hover { background: var(--gold); color: var(--ink); }
.ms-btn-primary {
  background: var(--gold); color: var(--ink); padding: .875rem 2rem;
  border-radius: 999px; text-decoration: none; font-size: .875rem; font-weight: 600;
  border: none; cursor: pointer; display: inline-block;
}
.ms-btn-primary:hover { background: var(--gold-light); }

/* Hero */
.ms-hero { position: relative; z-index: 10; max-width: 72rem; margin: 0 auto; padding: 2rem 1.5rem 5rem; min-height: 80vh; display: flex; flex-direction: column; justify-content: center; }
.ms-hero-tag { font-family: 'Syne', sans-serif; font-size: .875rem; letter-spacing: .35em; color: rgba(201,162,39,.8); }
.ms-hero h1 { font-family: 'Syne', sans-serif; font-size: clamp(2.8rem, 8vw, 4.5rem); font-weight: 800; line-height: 1.05; margin-top: 1rem; max-width: 32rem; }
.ms-hero p { margin-top: 1.5rem; max-width: 28rem; line-height: 1.6; color: rgba(255,255,255,.65); font-size: 1.05rem; }
.ms-hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.ms-btn-secondary {
  border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.8);
  padding: .875rem 2rem; border-radius: 999px; text-decoration: none; font-size: .875rem;
}
.ms-btn-secondary:hover { border-color: rgba(201,162,39,.4); color: var(--gold); }

/* Sections */
.ms-section { padding: 6rem 1.5rem; }
.ms-section-soft { background: rgba(20,20,20,.8); border-top: 1px solid rgba(255,255,255,.05); }
.ms-container { max-width: 72rem; margin: 0 auto; }
.ms-section h2 { font-family: 'Syne', sans-serif; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; }
.ms-section .lead { margin-top: .75rem; max-width: 32rem; color: var(--muted); }
.ms-grid-3 { margin-top: 3.5rem; display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .ms-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ms-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.ms-card-line { border-left: 2px solid rgba(201,162,39,.3); padding-left: 1.25rem; }
.ms-card-line h3 { font-family: 'Syne', sans-serif; color: var(--gold-light); font-size: 1.2rem; margin-bottom: .5rem; }
.ms-card-line p { font-size: .875rem; color: var(--muted); line-height: 1.6; }
.ms-steps { margin-top: 3.5rem; display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .ms-steps { grid-template-columns: repeat(3, 1fr); } }
.ms-step-num { font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 800; color: rgba(201,162,39,.4); }
.ms-step h3 { font-family: 'Syne', sans-serif; margin-top: .75rem; font-size: 1.2rem; }
.ms-step p { margin-top: .5rem; font-size: .875rem; color: var(--muted); }
.ms-center { text-align: center; }
.ms-store-badges { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; align-items: center; }
.ms-store-link { display: inline-block; line-height: 0; transition: transform .2s ease, opacity .2s ease; }
.ms-store-link:hover { transform: translateY(-2px); opacity: .92; }
.ms-store-link img { display: block; height: 54px; width: auto; }

/* Footer */
.ms-footer { position: relative; z-index: 10; border-top: 1px solid rgba(255,255,255,.05); padding: 2.5rem 1.5rem; }
.ms-footer-inner { max-width: 72rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1rem; font-size: .875rem; color: rgba(255,255,255,.4); }
@media (min-width: 768px) { .ms-footer-inner { flex-direction: row; justify-content: space-between; } }
.ms-brand-small { letter-spacing: .2em; color: rgba(201,162,39,.7); }
.ms-footer-links { display: flex; gap: 1.5rem; }
.ms-footer-links a { color: rgba(255,255,255,.4); text-decoration: none; }
.ms-footer-links a:hover { color: var(--gold); }

/* Legal pages */
.ms-legal { max-width: 48rem; margin: 0 auto; padding: 2rem 1.5rem 5rem; }
.ms-legal h1 { font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 700; }
.ms-legal .date { margin-top: .5rem; font-size: .875rem; color: rgba(255,255,255,.5); }
.ms-legal section { margin-top: 2rem; }
.ms-legal h2 { font-family: 'Syne', sans-serif; color: var(--gold-light); font-size: 1.2rem; margin-bottom: .75rem; }
.ms-legal p, .ms-legal li { color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: .75rem; }
.ms-legal ul { padding-left: 1.5rem; }
.ms-legal a { color: var(--gold); }
.ms-legal-top { max-width: 48rem; margin: 0 auto; padding: 2rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.ms-legal-top a { text-decoration: none; color: rgba(255,255,255,.6); font-size: .875rem; }
.ms-legal-top a:hover { color: var(--gold); }

/* Admin */
.ms-admin-wrap { display: flex; min-height: 100vh; background: var(--ink); }
.ms-admin-sidebar {
  display: none; width: 14rem; flex-shrink: 0;
  border-right: 1px solid var(--ink-border); background: var(--ink-soft); padding: 1.5rem;
}
@media (min-width: 768px) { .ms-admin-sidebar { display: block; } }
.ms-admin-sidebar .brand { font-family: 'Syne', sans-serif; font-size: .875rem; letter-spacing: .25em; color: var(--gold); }
.ms-admin-sidebar .sub { font-size: .75rem; color: rgba(255,255,255,.4); margin-top: .25rem; }
.ms-admin-nav { margin-top: 2.5rem; display: flex; flex-direction: column; gap: .25rem; }
.ms-admin-nav a {
  padding: .5rem .75rem; font-size: .875rem; text-decoration: none; color: rgba(255,255,255,.55);
  border-left: 2px solid transparent;
}
.ms-admin-nav a.active, .ms-admin-nav a:hover { color: var(--gold); border-left-color: var(--gold); background: rgba(201,162,39,.1); }
.ms-admin-main { flex: 1; padding: 1.5rem 2.5rem; overflow: auto; }
.ms-admin-main h1 { font-family: 'Syne', sans-serif; font-size: 1.875rem; font-weight: 700; }
.ms-admin-main .sub { margin-top: .25rem; font-size: .875rem; color: rgba(255,255,255,.45); }
.ms-stat-grid { margin-top: 2rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.ms-stat { border: 1px solid var(--ink-border); background: var(--ink-elevated); padding: 1.25rem; }
.ms-stat label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.4); }
.ms-stat .val { margin-top: .5rem; font-family: 'Syne', sans-serif; font-size: 1.5rem; color: var(--gold); }
.ms-table-wrap { margin-top: 1.5rem; overflow-x: auto; border: 1px solid var(--ink-border); }
.ms-table { width: 100%; border-collapse: collapse; font-size: .875rem; text-align: left; }
.ms-table th { background: var(--ink-elevated); padding: .75rem 1rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.4); }
.ms-table td { padding: .75rem 1rem; border-top: 1px solid var(--ink-border); }
.ms-table .gold { color: var(--gold); }
.ms-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; position: relative; }
.ms-login-form {
  position: relative; z-index: 1; width: 100%; max-width: 28rem;
  border: 1px solid var(--ink-border); background: rgba(28,28,28,.9); padding: 2rem;
}
.ms-login-form h1 { font-family: 'Syne', sans-serif; text-align: center; color: var(--gold); font-size: 1.5rem; margin-top: 1rem; }
.ms-login-form label { display: block; margin-top: 1rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.4); }
.ms-login-form input {
  width: 100%; margin-top: .5rem; padding: .75rem 1rem;
  border: 1px solid var(--ink-border); background: var(--ink); color: var(--text); font-size: .875rem;
}
.ms-login-form input:focus { outline: none; border-color: var(--gold); }
.ms-login-form button { width: 100%; margin-top: 1.5rem; }
.ms-error { color: #f87171; font-size: .875rem; margin-top: 1rem; }
.ms-muted { color: rgba(255,255,255,.4); }
.ms-search-row { margin-top: 1.5rem; display: flex; gap: .75rem; }
.ms-search-row input { flex: 1; padding: .625rem 1rem; border: 1px solid var(--ink-border); background: var(--ink-elevated); color: var(--text); }
.ms-link-btn { background: none; border: none; color: rgba(255,255,255,.5); cursor: pointer; font-size: .75rem; }
.ms-link-btn:hover { color: var(--gold); }
.text-green { color: #34d399; }
.text-red { color: #f87171; }
