/* ============================================================
   SuperLink Panel — Yesterday's Full UI Design System
   Color Palette: #0B132B (Deep Navy) & #39ff88 (Neon Mint Green)
   ============================================================ */

:root {
  --bg-main: #0B132B;
  --bg-surface: rgba(16, 27, 58, 0.86);
  --bg-elevated: rgba(24, 39, 80, 0.92);
  --border-subtle: rgba(57, 255, 136, 0.16);
  --border-hover: rgba(57, 255, 136, 0.48);
  --accent: #39ff88;
  --accent-hover: #22e570;
  --accent-orange: #39ff88;
  --grad: linear-gradient(135deg, #39ff88 0%, #10b981 55%, #06b6d4 100%);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-3: #94a3b8;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  background-image:
    radial-gradient(circle at 12% 14%, rgba(57, 255, 136, 0.14) 0%, transparent 38%),
    radial-gradient(circle at 88% 18%, rgba(6, 182, 212, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(57, 255, 136, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

main {
  flex: 1;
}

.top-spacer {
  height: 74px;
}

/* Ionicons Alignment */
ion-icon {
  vertical-align: -0.16em;
  font-size: 1.15em;
  pointer-events: none;
}

/* Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.bento-col-12 { grid-column: span 12; }
.bento-col-8  { grid-column: span 8; }
.bento-col-7  { grid-column: span 7; }
.bento-col-6  { grid-column: span 6; }
.bento-col-5  { grid-column: span 5; }
.bento-col-4  { grid-column: span 4; }
.bento-col-3  { grid-column: span 3; }

@media (max-width: 992px) {
  .bento-col-8, .bento-col-7, .bento-col-6, .bento-col-5, .bento-col-4 {
    grid-column: span 12;
  }
  .bento-col-3 {
    grid-column: span 6;
  }
}

@media (max-width: 576px) {
  .bento-col-3 {
    grid-column: span 12;
  }
}

/* ========================
   NAVBAR & BRAND MARK
   ======================== */
.glass-nav {
  background-color: rgba(11, 19, 43, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.65rem 0;
  z-index: 1030;
}

.glass-nav .navbar-brand {
  color: var(--text-primary) !important;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #39ff88 0%, #10b981 100%);
  color: #0B132B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 14px rgba(57, 255, 136, 0.32);
  flex-shrink: 0;
}

.glass-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.45rem 0.85rem !important;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.glass-nav .nav-link:hover,
.glass-nav .nav-link.active {
  color: #39ff88 !important;
  background-color: rgba(57, 255, 136, 0.1);
}

.glass-nav .navbar-toggler {
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.35rem 0.6rem;
}

/* Language Switcher */
.lang-switcher {
  background: rgba(16, 27, 58, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.lang-switcher a,
.lang-switcher .btn {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.62rem;
  border-radius: 7px;
  transition: all 0.15s ease;
}

.lang-switcher a:hover {
  color: var(--text-primary);
}

.lang-switcher a.on {
  background: #39ff88;
  color: #0B132B !important;
  box-shadow: 0 2px 10px rgba(57, 255, 136, 0.3);
}

/* ========================
   CARDS & CONTAINERS
   ======================== */
.glass-card,
.bento-box {
  background-color: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(4, 8, 20, 0.45);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.glass-card:hover,
.bento-box:hover {
  border-color: var(--border-hover);
}

.glass-card-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(57, 255, 136, 0.16), transparent 48%),
    radial-gradient(circle at 12% 85%, rgba(6, 182, 212, 0.14), transparent 48%),
    var(--bg-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(57, 255, 136, 0.26);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 40px rgba(4, 8, 20, 0.55);
}

.bento-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ========================
   HERO SECTION ELEMENTS
   ======================== */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(57, 255, 136, 0.12);
  border: 1px solid rgba(57, 255, 136, 0.35);
  color: #39ff88;
  font-size: 0.82rem;
  font-weight: 600;
}

.badge-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #39ff88;
  box-shadow: 0 0 8px #39ff88;
}

.hero-title {
  font-size: clamp(1.9rem, 3.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.trust-chip .mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #0B132B;
}

.mark-humo   { background: #39ff88; }
.mark-uzcard { background: #38bdf8; }
.mark-click  { background: #60a5fa; }
.mark-payme  { background: #34d399; }

.platform-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  height: 100%;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.platform-tile:hover {
  transform: translateY(-3px);
  border-color: #39ff88;
}

.platform-tile .pi {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.pi-tg { background: rgba(56, 189, 248, 0.16); color: #38bdf8; }
.pi-ig { background: rgba(244, 63, 94, 0.16);  color: #fb7185; }
.pi-tk { background: rgba(57, 255, 136, 0.16); color: #39ff88; }
.pi-yt { background: rgba(239, 68, 68, 0.16);  color: #f87171; }

.platform-tile .pn {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.98rem;
}

.platform-tile .ps {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ========================
   DASHBOARD STAT CARDS
   ======================== */
.stat-card {
  background: linear-gradient(145deg, rgba(20, 34, 72, 0.94) 0%, rgba(13, 23, 52, 0.96) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.3rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(4, 8, 20, 0.4);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.stat-card .t {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-card .v {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-card.s-violet,
.stat-card-purple  { border-left: 4px solid #39ff88; }
.stat-card.s-cyan,
.stat-card-cyan    { border-left: 4px solid #38bdf8; }
.stat-card.s-amber,
.stat-card-amber   { border-left: 4px solid #fbbf24; }
.stat-card.s-emerald,
.stat-card-emerald { border-left: 4px solid #39ff88; }

.stat-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-icon-violet,
.stat-icon-emerald {
  background: rgba(57, 255, 136, 0.15);
  color: #39ff88;
  border: 1px solid rgba(57, 255, 136, 0.32);
}

.stat-icon-cyan {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.32);
}

.stat-icon-amber {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.32);
}

.stat-icon-purple {
  background: rgba(57, 255, 136, 0.15);
  color: #39ff88;
  border: 1px solid rgba(57, 255, 136, 0.32);
}

/* ========================
   SIDEBAR & AVATAR
   ======================== */
.side-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #39ff88 0%, #10b981 100%);
  color: #0B132B;
  font-weight: 800;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(57, 255, 136, 0.28);
}

.glass-pills .nav-link {
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.15s ease;
}

.glass-pills .nav-link:hover {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
}

.glass-pills .nav-link.active {
  background-color: rgba(57, 255, 136, 0.12);
  color: #39ff88;
  border-left: 3px solid #39ff88;
  font-weight: 600;
}

/* ========================
   SERVICES & FILTER PILLS
   ======================== */
.service-item-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.service-item-card:hover {
  border-color: #39ff88;
  background-color: var(--bg-elevated);
  transform: translateY(-2px);
}

.platform-pill {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 0.48rem 0.95rem;
  font-weight: 500;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.platform-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background-color: var(--bg-elevated);
}

.platform-pill.active {
  background: #39ff88;
  border-color: #39ff88;
  color: #0B132B;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(57, 255, 136, 0.28);
}

/* ========================
   BANK CARDS
   ======================== */
.bank-card-humo {
  background: linear-gradient(135deg, #12224d 0%, #0B132B 100%);
  border: 1px solid rgba(57, 255, 136, 0.45);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(4, 8, 20, 0.45);
}

.bank-card-uzcard {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  color: var(--text-secondary);
}

.card-number-display {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #39ff88;
}

/* ========================
   INPUTS & BUTTONS
   ======================== */
.glass-input,
.form-control.glass-input,
.form-select.glass-input {
  background-color: rgba(8, 14, 34, 0.9) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm);
  padding: 0.58rem 0.9rem;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.glass-input::placeholder {
  color: var(--text-muted) !important;
}

.glass-input:focus {
  background-color: rgba(8, 14, 34, 0.98) !important;
  border-color: #39ff88 !important;
  box-shadow: 0 0 0 2px rgba(57, 255, 136, 0.22) !important;
  color: var(--text-primary) !important;
}

.glass-input option {
  background-color: #0B132B;
  color: var(--text-primary);
}

.glass-input-icon {
  background-color: var(--bg-elevated) !important;
  border: 1px solid var(--border-subtle) !important;
  color: #39ff88 !important;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.btn-glow {
  background: linear-gradient(135deg, #39ff88 0%, #10b981 100%);
  border: 1px solid #39ff88;
  color: #0B132B !important;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(57, 255, 136, 0.28);
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-glow:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(57, 255, 136, 0.4);
  color: #0B132B !important;
}

.btn-glass {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary) !important;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-glass:hover {
  background-color: rgba(57, 255, 136, 0.12);
  border-color: #39ff88;
  color: #39ff88 !important;
}

/* ========================
   TABLES, STATUS & CHIPS
   ======================== */
.glass-table {
  color: var(--text-primary) !important;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.glass-table thead th {
  background-color: var(--bg-elevated) !important;
  color: var(--text-secondary) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.75rem 0.95rem;
}

.glass-table tbody td {
  background-color: transparent !important;
  color: var(--text-primary) !important;
  border-bottom: 1px solid rgba(57, 255, 136, 0.1) !important;
  padding: 0.75rem 0.95rem;
  vertical-align: middle;
}

.glass-table tbody tr:hover td {
  background-color: rgba(57, 255, 136, 0.05) !important;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.68rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status.st-done {
  background: rgba(57, 255, 136, 0.15);
  color: #39ff88;
  border: 1px solid rgba(57, 255, 136, 0.35);
}

.status.st-prog,
.status.st-pend {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.status.st-canc {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.empty-state {
  text-align: center;
  padding: 2.2rem 1rem !important;
  color: var(--text-secondary) !important;
}

.empty-state ion-icon {
  font-size: 2.2rem;
  color: #39ff88;
  opacity: 0.75;
}

.code-chip {
  background: rgba(57, 255, 136, 0.1);
  border: 1px solid rgba(57, 255, 136, 0.25);
  color: #39ff88;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  font-size: 0.82rem;
}

/* ========================
   DROPDOWNS, MODALS, TOASTS
   ======================== */
.glass-dropdown,
.glass-modal {
  background-color: #0f1a3a !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.glass-dropdown .dropdown-item {
  color: var(--text-secondary);
  border-radius: 7px;
  padding: 0.48rem 0.85rem;
  font-size: 0.9rem;
}

.glass-dropdown .dropdown-item:hover,
.glass-dropdown .dropdown-item.active {
  background-color: rgba(57, 255, 136, 0.12);
  color: #39ff88;
}

.glass-alert {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.glass-footer {
  background-color: rgba(8, 14, 34, 0.92);
  border-top: 1px solid var(--border-subtle);
}

#bentoToastContainer {
  position: fixed;
  top: 76px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
  width: calc(100% - 40px);
  pointer-events: none;
}

.bento-toast {
  pointer-events: auto;
  background-color: #101c3d;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: toastSlideIn 0.2s ease forwards;
}

.bento-toast.toast-success { border-left: 3px solid #39ff88; }
.bento-toast.toast-warning { border-left: 3px solid #fbbf24; }
.bento-toast.toast-error   { border-left: 3px solid #ef4444; }
.bento-toast.toast-info    { border-left: 3px solid #38bdf8; }

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Notifications === */
.notif-bell { position: relative; display: inline-flex; align-items: center; }
.notif-badge { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #39ff88; color: #0B132B; font-size: .68rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 10px rgba(57,255,136,.55); }
.notif-list { display: flex; flex-direction: column; gap: 12px; }
.notif-item { display: flex; gap: 14px; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); transition: .2s; }
.notif-item:hover { border-color: rgba(57,255,136,.35); }
.notif-item.unread { background: rgba(57,255,136,.07); border-color: rgba(57,255,136,.4); box-shadow: 0 0 18px rgba(57,255,136,.08); }
.notif-icon { flex: 0 0 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #39ff88; background: rgba(57,255,136,.12); }
.notif-body { flex: 1; min-width: 0; }
.notif-text { color: #cbd5e1; white-space: pre-wrap; word-break: break-word; line-height: 1.55; }
