:root {
  --gold: #d4af37;
  --gold-strong: #e6c65c;
  --gold-soft: rgba(212, 175, 55, 0.35);
  --card-bg: #fbfaf7;
  --jewel-a: #63C7F5;
  --jewel-b: #2196D8;
  --jewel-glow: rgba(255, 255, 255, 0.20);
  --jewel-edge: rgba(0, 0, 0, 0.22);
}

body {
  min-height: 100vh;
  background-color: var(--jewel-b);
  background-image:
    radial-gradient(80% 50% at 50% -6%, rgba(255, 255, 255, 0.30), transparent 55%),
    radial-gradient(72% 62% at 90% 108%, var(--jewel-glow), transparent 60%),
    radial-gradient(70% 60% at 4% -6%, rgba(255, 255, 255, 0.22), transparent 55%),
    radial-gradient(135% 125% at 50% 42%, transparent 56%, var(--jewel-edge)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.16'%3E%3Cpath d='M60 18 L102 60 L60 102 L18 60 Z'/%3E%3Cpath d='M60 32 L88 60 L60 88 L32 60 Z'/%3E%3Ccircle cx='60' cy='60' r='3.5'/%3E%3Ccircle cx='60' cy='18' r='2'/%3E%3Ccircle cx='102' cy='60' r='2'/%3E%3Ccircle cx='60' cy='102' r='2'/%3E%3Ccircle cx='18' cy='60' r='2'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(150deg, var(--jewel-a), var(--jewel-b));
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat, no-repeat;
  background-attachment: fixed, fixed, fixed, fixed, scroll, fixed;
}

body.theme-login       { --jewel-a: #17a2b8; --jewel-b: #0e6d7c; }
body.theme-dashboard   { --jewel-a: #63C7F5; --jewel-b: #2196D8; --jewel-glow: rgba(255, 214, 90, 0.32); --jewel-edge: rgba(12, 86, 140, 0.42); }
body.theme-family      { --jewel-a: #F7C93A; --jewel-b: #E39A00; --jewel-glow: rgba(246, 110, 140, 0.30); --jewel-edge: rgba(150, 92, 0, 0.40); }
body.theme-gifts       { --jewel-a: #F87E98; --jewel-b: #E23E68; --jewel-glow: rgba(255, 206, 90, 0.32); --jewel-edge: rgba(150, 30, 62, 0.40); }
body.theme-income      { --jewel-a: #A6DE63; --jewel-b: #6BBE2E; --jewel-glow: rgba(110, 205, 235, 0.30); --jewel-edge: rgba(58, 120, 20, 0.40); }
body.theme-investments { --jewel-a: #45CFCF; --jewel-b: #17A6AA; --jewel-glow: rgba(120, 180, 255, 0.30); --jewel-edge: rgba(8, 104, 106, 0.44); }
body.theme-goals       { --jewel-a: #C79BF2; --jewel-b: #9B5FD6; --jewel-glow: rgba(255, 150, 200, 0.30); --jewel-edge: rgba(88, 48, 138, 0.44); }
body.theme-settings    { --jewel-a: #FF9E6B; --jewel-b: #F1743C; --jewel-glow: rgba(255, 214, 120, 0.30); --jewel-edge: rgba(158, 70, 28, 0.40); }

nav {
  background: #161a22;
  border-bottom: 2px solid var(--gold);
}
nav a.active { color: var(--gold); }
nav a:hover { color: var(--gold-strong); }

main {
  background: var(--card-bg);
  border: 1px solid var(--gold-soft);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  margin: 1.5rem auto;
}

.login-card {
  border: 1px solid var(--gold-soft);
  border-top: 4px solid var(--gold);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

button[type="submit"],
.save-btn {
  background: linear-gradient(180deg, var(--gold-strong), #c99a2e);
  color: #3a2a06;
  border: 1px solid #b98e28;
}
button[type="submit"]:hover,
.save-btn:hover {
  background: linear-gradient(180deg, #edd070, #bd8f27);
}
