/* AUREA – design system (light edition)
   Hell, edel, warm-cremig, vergoldete Akzente.
   Stark abgerundete Pill-Buttons.                                        */

:root {
  /* Backgrounds – warmes Elfenbein/Creme */
  --bg:        #faf7f1;
  --bg-soft:   #f3ecde;
  --card:      #ffffff;
  --card-2:    #fbf6ec;

  /* Lines & dividers */
  --border:    #e8dec9;
  --border-2:  #d4c5a3;

  /* Gold – tiefer, satter, edel auf hellem Grund */
  --gold:      #a87f3a;
  --gold-soft: #c19a55;
  --gold-dim:  #8a6a2f;
  --mint:      #4a9d8e;

  /* Text */
  --text:      #1d1a14;
  --text-mute: #6b6357;
  --text-dim:  #9a9285;

  /* Accents */
  --danger:    #b5503f;
  --ok:        #4a9d8e;

  /* Geometry – mehr Rundung überall */
  --radius:    22px;
  --radius-sm: 14px;
  --maxw:      1140px;

  /* Schatten – weich, edel, kein Drama */
  --shadow:    0 30px 70px -28px rgba(60, 45, 20, .18);
  --shadow-sm: 0 8px 24px -12px rgba(60, 45, 20, .14);
  --shadow-btn: 0 8px 22px -10px rgba(168, 127, 58, .45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse 1200px 600px at 50% -10%, #fff9eb 0%, transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--gold); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold-dim); }

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, .82);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.brand .diamond {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold-dim) 100%);
  transform: rotate(45deg);
  box-shadow: 0 4px 14px rgba(168, 127, 58, .35);
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--text-mute);
  padding: 8px 14px;
  font-size: 14px;
  letter-spacing: 0.06em;
  border-radius: 999px;
}
.nav a:hover { color: var(--text); background: rgba(168, 127, 58, .06); }

/* ---------- Buttons – stark abgerundet, modern ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  border: 1px solid var(--gold-dim);
  background: transparent;
  color: var(--gold);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  text-decoration: none;
}
.btn:hover {
  background: rgba(168, 127, 58, .08);
  border-color: var(--gold);
  color: var(--gold-dim);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, #d5ad5e 0%, var(--gold) 65%, var(--gold-dim) 100%);
  color: #fffaf0;
  border: 1px solid var(--gold-dim);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  filter: brightness(1.05);
  color: #fffaf0;
  box-shadow: 0 12px 28px -8px rgba(168, 127, 58, .55);
}

.btn-ghost {
  border-color: var(--border-2);
  color: var(--text-mute);
  background: var(--card);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-mute);
  background: var(--card);
}

.btn-block { width: 100%; }
.btn-block + .btn-block { margin-top: 10px; }

.btn-danger { border-color: var(--danger); color: var(--danger); background: transparent; }
.btn-danger:hover { background: rgba(181, 80, 63, .08); color: var(--danger); border-color: var(--danger); }

/* Compact pill (für Tabellen-Aktionen) */
.btn-sm {
  padding: 8px 18px;
  font-size: 11px;
  letter-spacing: 0.14em;
}

/* Reiner Kreis-Button (Icon-only) */
.btn-circle {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 64px;
  text-align: center;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  color: var(--text);
}
.headline em {
  font-style: italic;
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-mute);
  font-size: 18px;
  line-height: 1.65;
}

/* ---------- Card ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.card-soft {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

/* ---------- Labels ---------- */
.label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.label.mint { color: var(--mint); }

/* ---------- Forms – abgerundete Pill-Inputs ---------- */
.form-row { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 10px;
  font-weight: 500;
}
.input, .select, .textarea {
  width: 100%;
  padding: 14px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: all .18s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(168, 127, 58, .12);
}
.textarea {
  min-height: 120px;
  resize: vertical;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.input-money {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  border: none;
  background: transparent;
  padding: 8px 0;
  border-radius: 0;
  box-shadow: none;
}
.input-money:focus { box-shadow: none; border: none; }

/* ---------- Auth pages ---------- */
.auth-shell {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow);
}
.auth-card h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 38px;
  margin: 0 0 8px;
  font-weight: 500;
}
.auth-card .sub {
  color: var(--text-mute);
  margin-bottom: 32px;
  font-size: 14px;
}
.auth-foot {
  margin-top: 22px;
  text-align: center;
  color: var(--text-mute);
  font-size: 14px;
}

/* ---------- Alerts ---------- */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  background: var(--card);
}
.alert-error  { background: #fdf1ee; border-color: rgba(181, 80, 63, .35);  color: #8a3d2f; }
.alert-ok     { background: #eef7f5; border-color: rgba(74, 157, 142, .35); color: #2d6c61; }
.alert-info   { background: #fbf5e8; border-color: rgba(168, 127, 58, .35); color: var(--gold-dim); }

/* ---------- Dashboard ---------- */
.dash-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  padding: 40px 0;
}
.side-nav .item {
  display: block;
  padding: 12px 18px;
  color: var(--text-mute);
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
  transition: all .15s ease;
}
.side-nav .item:hover { background: var(--card); color: var(--text); }
.side-nav .item.active {
  background: linear-gradient(180deg, #fbf5e8, var(--card-2));
  color: var(--gold-dim);
  font-weight: 500;
}

.balance-card {
  background: linear-gradient(135deg, #fff9eb 0%, var(--card-2) 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}
.balance-card .lbl {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.balance-card .amt {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 52px;
  line-height: 1;
  color: var(--text);
  font-weight: 500;
}
.balance-card .amt span { color: var(--gold); font-size: 26px; margin-left: 8px; }

/* ---------- Product grid ---------- */
.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 34px;
  margin: 0 0 6px;
  font-weight: 500;
}
.section-sub { color: var(--text-mute); margin: 0 0 28px; }

.cat-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.cat-pill {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
  background: var(--card);
  transition: all .15s ease;
}
.cat-pill:hover, .cat-pill.active {
  color: var(--gold-dim);
  border-color: var(--gold);
  background: #fbf5e8;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.product {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
  box-shadow: var(--shadow-sm);
}
.product:hover {
  border-color: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -16px rgba(60, 45, 20, .2);
}
.product .cat {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.product .ttl {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}
.product .desc { color: var(--text-mute); font-size: 14px; flex-grow: 1; }
.product .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.product .price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  color: var(--gold);
}

/* ---------- Tables ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table th, .table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.table th {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 500;
  background: var(--bg-soft);
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(168, 127, 58, .03); }
.table .actions { display: flex; gap: 8px; }

/* ---------- Tags ---------- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border-2);
  color: var(--text-mute);
  background: var(--card);
}
.tag.ok   { color: var(--mint);   border-color: rgba(74, 157, 142, .4);  background: #eef7f5; }
.tag.warn { color: var(--gold);   border-color: var(--gold-soft);        background: #fbf5e8; }
.tag.err  { color: var(--danger); border-color: rgba(181, 80, 63, .4);   background: #fdf1ee; }

/* ---------- Deposit / Exchange card ---------- */
.exchange-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.ex-row {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ex-currency {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  background: var(--card);
}
.ex-currency .coin {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff9eb, var(--card-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--gold-dim); letter-spacing: 0.06em;
  border: 1px solid var(--border-2);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.breadcrumb a { color: var(--text-mute); }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Purchases Liste ---------- */
.purchase-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  gap: 20px;
  flex-wrap: wrap;
}
.purchase-row:last-child { border-bottom: none; }

/* ---------- Scrollbar (Webkit) ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 999px;
  border: 2px solid var(--bg-soft);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-soft); }

/* ---------- Selection ---------- */
::selection { background: rgba(168, 127, 58, .25); color: var(--text); }

/* ---------- Mobile ---------- */
@media (max-width: 800px) {
  .dash-grid { grid-template-columns: 1fr; gap: 20px; padding: 24px 0; }
  .nav a { padding: 8px 10px; font-size: 13px; }
  .hero { padding: 64px 0 40px; }
  .auth-card { padding: 36px 26px; }
  .balance-card .amt { font-size: 40px; }
  .ex-row { flex-direction: column; align-items: stretch; }
  .table { display: block; overflow-x: auto; }
  .product-grid { grid-template-columns: 1fr; }
  .purchase-row { flex-direction: column; align-items: flex-start; }
  .btn { padding: 12px 26px; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 80px;
  background: rgba(255, 255, 255, .4);
}
