/**
 * Powerexc kullanıcı uygulaması — Genel Bilgiler / ana kabuk ile uyumlu canlı tema
 */
:root {
  --app-bg-deep: #0b0e11;
  --app-bg-mid: #0d1118;
  --app-accent: #a855f7;
  --app-accent-soft: rgba(168, 85, 247, 0.22);
  --app-border: rgba(255, 255, 255, 0.1);
  --app-glass: rgba(15, 23, 42, 0.55);
}

html {
  min-height: 100%;
  background-color: var(--app-bg-deep);
}

/* Arka plan: sabit (scroll’da üstte kalmaz), alt bölgede düz siyaha düşmesin */
.app-page-bg {
  background-color: var(--app-bg-deep);
  background-image: radial-gradient(1200px 800px at 20% 8%, rgba(59, 130, 246, 0.2), transparent 58%),
    radial-gradient(1000px 620px at 82% 18%, rgba(245, 158, 11, 0.16), transparent 58%),
    radial-gradient(900px 720px at 48% 92%, rgba(16, 185, 129, 0.14), transparent 55%),
    radial-gradient(130% 85% at 50% 108%, rgba(88, 28, 135, 0.38), transparent 52%),
    radial-gradient(90% 50% at 10% 60%, rgba(30, 27, 75, 0.22), transparent 45%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
}

/* Genel Bilgiler üst şeridi ile aynı mor / lacivert ışıma */
.app-shell-header-bg {
  background: radial-gradient(900px 500px at 15% 0%, rgba(168, 85, 247, 0.35), transparent 55%),
    radial-gradient(700px 420px at 85% 15%, rgba(59, 130, 246, 0.2), transparent 50%),
    radial-gradient(600px 400px at 50% 100%, rgba(168, 85, 247, 0.12), transparent 45%), #050510;
}

/* Giriş — birincil buton */
.app-login-submit {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 48%, #5b21b6 100%);
  color: #fff;
  box-shadow: 0 10px 32px rgba(109, 40, 217, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.app-login-submit:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 14px 40px rgba(124, 58, 237, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.app-login-submit:active:not(:disabled) {
  transform: scale(0.98);
}

/* Giriş — sekme */
.login-tab-active {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(91, 33, 182, 0.98)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 22px rgba(124, 58, 237, 0.32);
}

.login-tab-inactive {
  color: rgba(209, 213, 219, 0.88) !important;
  background: transparent !important;
}

.login-tab-inactive:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

/* Giriş kartı: iç gölge + çerçeve */
.login-glass-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(24, 24, 40, 0.72) 0%, rgba(12, 10, 24, 0.88) 100%);
  border: 1px solid rgba(192, 132, 252, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(168, 85, 247, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.login-glass-card::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(90% 55% at 50% -10%, rgba(168, 85, 247, 0.18), transparent 55%);
  opacity: 0.9;
}

.login-glass-card > * {
  position: relative;
  z-index: 1;
}

/* Giriş / kayıt sayfaları: mevcut fotoğraf üstüne mor ışıma */
.app-auth-aurora {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -9;
  background: radial-gradient(900px 500px at 20% 20%, rgba(168, 85, 247, 0.2), transparent 55%),
    radial-gradient(700px 450px at 80% 30%, rgba(59, 130, 246, 0.14), transparent 50%),
    radial-gradient(600px 500px at 50% 100%, rgba(124, 58, 237, 0.1), transparent 50%);
}

.app-glass-panel {
  background: var(--app-glass);
  border: 1px solid var(--app-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 0 1px var(--app-accent-soft);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.app-glass-panel:hover {
  border-color: rgba(192, 132, 252, 0.28);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.48), 0 0 40px rgba(124, 58, 237, 0.12);
}

/* vip-deposit / özet küçük kutular */
.app-info-tile {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(30, 27, 75, 0.42) 0%, rgba(8, 10, 22, 0.82) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 12px 32px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(168, 85, 247, 0.07);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.app-info-tile::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(80% 60% at 100% 0%, rgba(168, 85, 247, 0.12), transparent 55%);
}

.app-info-tile:hover {
  border-color: rgba(192, 132, 252, 0.25);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 16px 38px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(124, 58, 237, 0.1);
}

.app-info-tile--violet {
  border-left: 3px solid rgba(167, 139, 250, 0.65);
}

.app-info-tile--amber {
  border-left: 3px solid rgba(250, 204, 21, 0.55);
}

.app-info-tile > * {
  position: relative;
  z-index: 1;
}

/* ========== Dashboard (Pro Terminal) ========== */
body.page-dashboard {
  color: #eaecef;
}

body.page-dashboard .app-dash-header {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(8, 10, 22, 0.93) 100%);
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.4);
}

.app-dash-nav-active {
  color: #f0abfc !important;
  border-bottom: 2px solid rgba(192, 132, 252, 0.9) !important;
  padding-bottom: 0.25rem;
}

body.page-dashboard .app-dash-nav-muted {
  color: rgba(233, 212, 255, 0.55) !important;
  border-bottom: 2px solid transparent !important;
  padding-bottom: 0.25rem;
  transition: color 0.2s ease;
}

body.page-dashboard .app-dash-nav-muted:hover {
  color: #fdf4ff !important;
}

@media (min-width: 640px) {
  .app-dash-nav-active {
    padding-bottom: 1rem;
  }

  body.page-dashboard .app-dash-nav-muted {
    padding-bottom: 1rem;
  }
}

body.page-dashboard .app-dash-trade-form {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88) 0%, rgba(8, 10, 18, 0.95) 100%);
  border-top: 1px solid rgba(168, 85, 247, 0.12);
  backdrop-filter: blur(8px);
}

body.page-dashboard .panel {
  background: rgba(15, 23, 42, 0.58) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(168, 85, 247, 0.07);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

body.page-dashboard .panel:hover {
  border-color: rgba(192, 132, 252, 0.18) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), 0 0 32px rgba(124, 58, 237, 0.08);
}

body.page-dashboard .input-box {
  background: rgba(15, 23, 42, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.page-dashboard .input-box:focus-within {
  border-color: rgba(167, 139, 250, 0.45) !important;
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.2);
}

/* Yatırma / çekim / profil formları: trade kutularından biraz daha belirgin cam + fuşya */
body.page-dashboard .finance-ui .input-box,
body.page-dashboard .profile-ui .input-box {
  background: rgba(15, 23, 42, 0.78) !important;
  border-color: rgba(192, 132, 252, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.page-dashboard .finance-ui .input-box:focus,
body.page-dashboard .finance-ui .input-box:focus-within,
body.page-dashboard .profile-ui .input-box:focus,
body.page-dashboard .profile-ui .input-box:focus-within {
  border-color: rgba(232, 121, 251, 0.55) !important;
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.page-dashboard .profile-ui .input-box[readonly] {
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none;
}

body.page-dashboard .percent-btn {
  background: rgba(30, 27, 60, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #c4b5fd !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.page-dashboard .percent-btn:hover {
  background: rgba(88, 28, 135, 0.45) !important;
  color: #fff !important;
  border-color: rgba(192, 132, 252, 0.35) !important;
}

body.page-dashboard aside.panel {
  border-left-color: rgba(168, 85, 247, 0.12);
}

body.page-dashboard #announcement-slot-top,
body.page-dashboard #announcement-slot-bottom {
  border-color: rgba(251, 191, 36, 0.22) !important;
  background: linear-gradient(90deg, rgba(88, 28, 135, 0.25), rgba(15, 23, 42, 0.92)) !important;
}

/* Dashboard alt ikon menü */
.app-has-bottom-nav {
  padding-bottom: 6.25rem; /* fixed bottom nav overlay */
}

body.page-dashboard .app-bottom-nav .app-bottom-nav__inner {
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.75), rgba(8, 10, 18, 0.92));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(168, 85, 247, 0.08);
  padding: 0.25rem 0.35rem 0.45rem;
}

body.page-dashboard .app-bottom-nav__fab {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.96), rgba(91, 33, 182, 0.98));
  border: 1px solid rgba(192, 132, 252, 0.35);
  box-shadow: 0 14px 34px rgba(109, 40, 217, 0.35), 0 0 0 1px rgba(168, 85, 247, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .app-glass-panel:hover,
  .app-info-tile:hover,
  body.page-dashboard .panel:hover {
    transform: none;
  }

  .app-page-bg {
    background-attachment: scroll;
  }
}
