/* =========================================
   GOLDXIETY PROFIT CALCULATOR — STYLE.CSS
   Black & Gold Premium Theme
========================================= */

:root {
  --gold: #D4AF37;
  --gold-light: #F4E5B2;
  --gold-dark: #9c7a1e;
  --gold-gradient: linear-gradient(135deg, #F4E5B2 0%, #D4AF37 45%, #9c7a1e 100%);
  --black-bg: #060604;
  --black-card: #0e0d0a;
  --black-card-light: #161410;
  --border-gold: rgba(212, 175, 55, 0.35);
  --text-muted: #b8ad95;
  --text-soft: #8a8270;
  --danger: #e85c5c;
  --success: #3ddc84;
  --shadow-gold: 0 0 40px rgba(212, 175, 55, 0.15);
  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html, body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--black-bg);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.06), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(212, 175, 55, 0.05), transparent 45%);
  color: #f0ead8;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Decorative glow blobs */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}
.bg-glow-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, rgba(212,175,55,0.18), transparent 70%);
}
.bg-glow-2 {
  width: 480px;
  height: 480px;
  bottom: -150px;
  right: -150px;
  background: radial-gradient(circle, rgba(212,175,55,0.14), transparent 70%);
}

/* =========================
   PAGE LAYOUT / TRANSITIONS
========================= */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.page.active {
  display: flex;
}

/* =========================
   LOGIN PAGE
========================= */
.login-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(160deg, var(--black-card-light), var(--black-card));
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 48px 36px 36px;
  text-align: center;
  box-shadow: var(--shadow-gold), 0 20px 60px rgba(0,0,0,0.6);
  animation: fadeUp 0.7s ease;
}

.logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.logo-frame {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #060503;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 6px rgba(212,175,55,0.08), 0 0 35px rgba(212,175,55,0.3);
  animation: glowPulse 3s ease-in-out infinite;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-crown.small {
  font-size: 18px;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1.5px;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.4;
  margin-bottom: 10px;
}

.brand-title span {
  display: block;
  font-size: 18px;
  letter-spacing: 3px;
  margin-top: 4px;
}

.brand-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  font-style: italic;
  margin-bottom: 34px;
  letter-spacing: 0.3px;
}

.login-footer {
  margin-top: 26px;
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* =========================
   BUTTONS
========================= */
.btn-gold {
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 15px 20px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  color: #1a1304;
  background: var(--gold-gradient);
  box-shadow: 0 6px 20px rgba(212,175,55,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212,175,55,0.5);
  filter: brightness(1.05);
}

.btn-gold:active {
  transform: translateY(0px) scale(0.98);
}

.btn-outline {
  width: 100%;
  margin-top: 22px;
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: rgba(212,175,55,0.08);
  border-color: var(--gold);
}

/* =========================
   CALCULATOR PAGE
========================= */
.calculator-wrapper {
  width: 100%;
  max-width: 480px;
  animation: fadeUp 0.6s ease;
}

.calc-header {
  text-align: center;
  margin-bottom: 24px;
}

.calc-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.calc-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  object-fit: cover;
  box-shadow: 0 0 12px rgba(212,175,55,0.35);
}

.calc-logo-text {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--gold-light);
  font-weight: 700;
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 0 6px rgba(212,175,55,0.08), 0 0 30px rgba(212,175,55,0.25);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(212,175,55,0.12), 0 0 42px rgba(212,175,55,0.4);
  }
}

.calc-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2.5px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.calc-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.calc-card {
  background: linear-gradient(160deg, var(--black-card-light), var(--black-card));
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: var(--shadow-gold), 0 16px 50px rgba(0,0,0,0.55);
  margin-bottom: 22px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.6px;
  color: var(--gold-light);
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 600;
}

.input-field {
  width: 100%;
  background: #0a0907;
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 15px;
  color: #f0ead8;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-body);
}

.input-field:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}

.input-field option {
  background: #0a0907;
  color: #f0ead8;
}

.btn-hitung {
  margin-top: 6px;
}

/* =========================
   RESULT CARD
========================= */
.result-card {
  background: linear-gradient(160deg, #181309, #0a0805);
  border: 1px solid var(--gold);
  border-radius: 18px;
  padding: 26px 24px;
  margin-bottom: 22px;
  box-shadow: 0 0 0 1px rgba(212,175,55,0.1), var(--shadow-gold), 0 18px 50px rgba(0,0,0,0.6);
  animation: fadeUp 0.45s ease;
}

.result-card.hidden {
  display: none;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(212,175,55,0.25);
}

.result-crown {
  color: var(--gold);
  font-size: 18px;
}

.result-header h3 {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--gold-light);
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 14.5px;
}

.result-label {
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.result-value {
  color: #f0ead8;
  font-weight: 600;
}

.result-divider {
  height: 1px;
  background: rgba(212,175,55,0.25);
  margin: 10px 0;
}

.result-final {
  padding-top: 6px;
}

.result-final .result-label {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.result-amount {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.result-amount.negative {
  background: none;
  -webkit-text-fill-color: var(--danger);
  color: var(--danger);
}

.calc-footer {
  text-align: center;
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: 0.6px;
  margin-top: 10px;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 480px) {
  .login-card {
    padding: 40px 24px 28px;
  }

  .logo-frame {
    width: 120px;
    height: 120px;
  }

  .brand-title {
    font-size: 22px;
  }

  .brand-title span {
    font-size: 15px;
    letter-spacing: 2px;
  }

  .calc-card,
  .result-card {
    padding: 22px 18px;
  }

  .result-amount {
    font-size: 21px;
  }
}

@media (min-width: 768px) {
  .calculator-wrapper {
    max-width: 520px;
  }
}
