/* ==========================================================================
   UTURD - Digital Mining & Investment Platform
   Theme & Global Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Brand Color Palette */
  --bg-dark: #030a1c;
  --bg-deep: #05102a;
  --bg-gradient: radial-gradient(circle at 50% 20%, #0b2253 0%, #040c20 60%, #020713 100%);
  --bg-card: rgba(8, 22, 53, 0.72);
  --bg-card-hover: rgba(12, 32, 75, 0.85);
  --bg-input: rgba(7, 20, 50, 0.85);

  /* Gold Accents */
  --gold-primary: #f5c044;
  --gold-secondary: #e09819;
  --gold-light: #ffea85;
  --gold-gradient: linear-gradient(135deg, #ffd866 0%, #f5b938 50%, #d8890e 100%);
  --gold-gradient-hover: linear-gradient(135deg, #ffe185 0%, #ffc750 50%, #e69a1f 100%);
  --gold-glow: 0 0 25px rgba(245, 192, 68, 0.35);
  --gold-border: 1px solid rgba(245, 192, 68, 0.5);

  /* Borders & Highlights */
  --border-card: 1px solid rgba(46, 92, 175, 0.4);
  --border-card-bright: 1px solid rgba(70, 130, 230, 0.6);
  --border-focus: 1px solid #f5c044;
  --box-shadow-card: 0 10px 30px rgba(0, 10, 30, 0.6);
  --box-shadow-glow: 0 0 35px rgba(0, 100, 240, 0.15);

  /* Functional Colors */
  --success: #10b981;
  --success-glow: 0 0 20px rgba(16, 185, 129, 0.4);
  --info-blue: #38bdf8;
  --danger: #ef4444;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --text-main: #ffffff;
  --text-muted: #8ea5cb;
  --text-dim: #5c7499;
  --text-gold: #f5c044;
}

/* --------------------------------------------------------------------------
   Global Reset & Base
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(24, 76, 168, 0.45) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(16, 52, 120, 0.3) 0%, transparent 60%),
    linear-gradient(180deg, #030a1a 0%, #040f28 50%, #020612 100%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Subtle background cyber grid */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(30, 64, 130, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 64, 130, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: 70px;
  background: rgba(3, 11, 28, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(46, 92, 175, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  z-index: 1000;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  line-height: 1.1;
}

.brand-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(245, 192, 68, 0.6);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-nav-login {
  background: rgba(14, 34, 75, 0.6);
  border: 1px solid rgba(60, 110, 200, 0.4);
  color: #ffffff;
  padding: 7px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 20px;
  transition: all 0.25s ease;
}

.btn-nav-login:hover {
  background: rgba(22, 50, 105, 0.8);
  border-color: rgba(90, 150, 255, 0.7);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.btn-nav-register {
  background: var(--gold-gradient);
  border: none;
  color: #0c172a;
  padding: 7px 22px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(245, 192, 68, 0.3);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-nav-register:hover {
  background: var(--gold-gradient-hover);
  box-shadow: 0 6px 20px rgba(245, 192, 68, 0.5);
  transform: translateY(-1px);
}

.nav-user-avatar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(12, 30, 70, 0.6);
  border: 1px solid rgba(50, 100, 190, 0.4);
  padding: 5px 12px;
  border-radius: 25px;
  cursor: pointer;
}

.avatar-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.avatar-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   App Container & Page Layout
   -------------------------------------------------------------------------- */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.page-wrapper.full-width {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Page Header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.page-title-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-title-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 192, 68, 0.12);
  border: 1px solid rgba(245, 192, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1.35rem;
}

.page-title-icon.wallet {
  background: rgba(245, 192, 68, 0.15);
  color: #f5c044;
}

.page-title-icon.clock {
  background: rgba(245, 192, 68, 0.15);
  color: #f5c044;
}

.page-title-text h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.page-title-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Glassmorphism Cards
   -------------------------------------------------------------------------- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: var(--border-card);
  border-radius: 16px;
  box-shadow: var(--box-shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(70, 130, 230, 0.6);
  box-shadow: 0 12px 35px rgba(0, 15, 45, 0.7);
}

.glass-card.gold-border {
  border: 2px solid var(--gold-primary);
  box-shadow: var(--gold-glow);
}

/* --------------------------------------------------------------------------
   Buttons & Micro-interactions
   -------------------------------------------------------------------------- */
.btn-gold {
  background: var(--gold-gradient);
  color: #0b1526;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(245, 192, 68, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-gold:hover {
  background: var(--gold-gradient-hover);
  box-shadow: 0 6px 24px rgba(245, 192, 68, 0.55);
  transform: translateY(-2px);
  color: #000;
}

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

.btn-gold-sm {
  padding: 7px 18px;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 20px;
}

.btn-outline-blue {
  background: rgba(14, 32, 70, 0.6);
  border: 1px solid rgba(56, 110, 205, 0.45);
  color: #ffffff;
  padding: 9px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-outline-blue:hover {
  background: rgba(20, 48, 105, 0.8);
  border-color: rgba(90, 160, 255, 0.8);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Badges & Pills
   -------------------------------------------------------------------------- */
.badge-popular {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold-gradient);
  color: #0b1526;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(245, 192, 68, 0.4);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-status.completed {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-status.active {
  background: rgba(245, 192, 68, 0.15);
  color: #f5c044;
  border: 1px solid rgba(245, 192, 68, 0.4);
}

/* --------------------------------------------------------------------------
   Form Controls
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.45rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  font-size: 0.95rem;
  pointer-events: none;
  transition: color 0.25s ease;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(46, 92, 175, 0.5);
  border-radius: 10px;
  padding: 11px 14px 11px 40px;
  color: #ffffff;
  font-size: 0.92rem;
  outline: none;
  transition: all 0.25s ease;
}

.form-control:focus {
  border-color: var(--gold-primary);
  background: rgba(9, 26, 65, 0.95);
  box-shadow: 0 0 12px rgba(245, 192, 68, 0.25);
}

.form-control:focus + .input-icon,
.input-with-icon:focus-within .input-icon {
  color: var(--gold-primary);
}

.form-control::placeholder {
  color: #566c8f;
  font-size: 0.88rem;
}

/* Checkbox */
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.custom-checkbox input {
  accent-color: var(--gold-primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Notification / Alert Banner
   -------------------------------------------------------------------------- */
.info-alert-banner {
  background: rgba(10, 26, 62, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e2e8f0;
  font-size: 0.85rem;
}

.info-alert-banner i {
  color: var(--info-blue);
  font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   App Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid rgba(46, 92, 175, 0.3);
  background: rgba(2, 7, 18, 0.9);
  padding: 3rem 2.5rem 1.5rem;
  position: relative;
  z-index: 1;
}

.footer-top {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 1rem 0 1.25rem;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(14, 32, 72, 0.7);
  border: 1px solid rgba(56, 102, 184, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.social-link:hover {
  background: var(--gold-gradient);
  color: #0b1526;
  border-color: transparent;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.15rem;
  position: relative;
}

.footer-col ul li {
  margin-bottom: 0.65rem;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.footer-col ul li a:hover {
  color: var(--gold-primary);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid rgba(30, 60, 120, 0.3);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--gold-primary);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(7, 20, 50, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 192, 68, 0.6);
  border-radius: 12px;
  padding: 12px 20px;
  color: #fff;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
