/* ============================================================================
 * WINTRADELY PROFESSIONAL TRADER ACCOUNT & IDENTITY CABINET UI
 * Cyber-Fintech Glassmorphism, Motion Graphics & Multi-Device Responsive Suite
 * ============================================================================ */

/* --- Root & Modal Shell --- */
.ih-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.35s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ih-root.ih-open {
  pointer-events: auto;
  visibility: visible;
}

/* Backdrop with cinematic blur & ambient glow */
.ih-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.12), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.08), transparent 50%),
              rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ih-root.ih-open .ih-backdrop {
  opacity: 1;
}

/* Main Cabinet Panel (Executive sliding drawer on desktop, sheet on mobile) */
.ih-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(960px, 100vw);
  height: 100%;
  background: linear-gradient(175deg, rgba(10, 16, 28, 0.98) 0%, rgba(5, 9, 18, 0.99) 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -20px 0 70px rgba(0, 0, 0, 0.75), 0 0 100px rgba(14, 165, 233, 0.06);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-sizing: border-box;
}

.ih-root.ih-open .ih-panel {
  transform: translateX(0);
}

/* --- Top Bar Navigation --- */
.ih-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  background: rgba(8, 14, 25, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.ih-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ih-topbar-badge {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ih-topbar-badge svg {
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
}

.ih-topbar-title {
  font-size: 17px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ih-vip-tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.25));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.2);
}

.ih-vip-star {
  font-size: 12px;
  animation: starSpin 6s linear infinite;
  display: inline-block;
}

@keyframes starSpin {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.ih-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
}

.ih-close-btn:hover {
  color: #fff;
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.12);
  transform: rotate(90deg);
}

/* --- Hero Profile Card --- */
.ih-hero-card {
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%),
              radial-gradient(ellipse at top left, rgba(56, 189, 248, 0.12), transparent 60%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-shrink: 0;
  position: relative;
}

.ih-hero-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

/* Avatar with glowing animated ring */
.ih-avatar-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #00e676, #38bdf8, #818cf8);
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ih-avatar-ring:hover {
  transform: scale(1.04);
  box-shadow: 0 0 28px rgba(0, 230, 118, 0.45);
}

.ih-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #090e17;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ih-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.ih-avatar-initial {
  font-size: 26px;
  font-weight: 800;
  color: #38bdf8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  user-select: none;
}

/* Online Pulse Dot */
.ih-online-pulse {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #00e676;
  border: 2px solid #090e17;
  box-shadow: 0 0 10px #00e676;
  animation: onlinePulse 2.5s infinite;
}

@keyframes onlinePulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

/* Avatar photo upload mini-button */
.ih-photo-btn {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0284c7;
  border: 2px solid #090e17;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.ih-photo-btn:hover {
  background: #00e676;
  transform: scale(1.1);
}

.ih-file-input {
  display: none;
}

/* Hero Metadata */
.ih-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.ih-hero-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ih-hero-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

/* Status Chips */
.ih-status-chip {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ih-st-unverified {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.ih-st-pending {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.ih-st-verified {
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.ih-st-rejected {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.ih-st-guest {
  background: rgba(148, 163, 184, 0.14);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Email & Verification Row */
.ih-hero-email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ih-hero-email {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

.ih-email-verify-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ih-email-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
}

.ih-email-badge.verified {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.ih-email-badge.unverified {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.ih-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.ih-verify-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
  color: #38bdf8;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ih-verify-email-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #fff;
}

/* Sub-row: Member ID Pill & Country */
.ih-hero-sub-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 3px;
  flex-wrap: wrap;
}

.ih-uid-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.ih-uid-pill:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.ih-uid-label {
  color: #64748b;
  font-weight: 600;
}

.ih-copy-icon {
  opacity: 0.6;
  transition: opacity 0.2s;
}

.ih-uid-pill:hover .ih-copy-icon {
  opacity: 1;
}

.ih-copied-tooltip {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 3px 8px;
  background: #0284c7;
  color: #fff;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.ih-copied-tooltip.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ih-hero-country {
  font-size: 12px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Hero Right: VIP Rank Progress Box */
.ih-hero-right {
  flex-shrink: 0;
  min-width: 220px;
}

.ih-vip-progress-box {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ih-vip-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ih-vip-progress-title {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ih-vip-progress-pct {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
}

.ih-vip-bar-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.ih-vip-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #00e676);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ih-vip-perk-hint {
  font-size: 10.5px;
  color: #64748b;
  line-height: 1.3;
}

/* --- Navigation Tabs Strip --- */
.ih-tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(6, 11, 20, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.ih-tabs-nav::-webkit-scrollbar {
  display: none;
}

.ih-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
  position: relative;
}

.ih-tab-btn:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.04);
}

.ih-tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.12));
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.15);
}

.ih-tab-btn.active svg {
  color: #38bdf8;
}

.ih-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  display: none;
}

.ih-tab-dot.show {
  display: inline-block;
}

/* --- Scrollable Content Container --- */
.ih-body-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.ih-body-scroll::-webkit-scrollbar {
  width: 6px;
}

.ih-body-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.ih-body-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.ih-tab-pane {
  display: none;
  animation: fadeInPane 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ih-tab-pane.active {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

/* --- TAB 1: OVERVIEW & WALLETS --- */
/* Wallets Grid */
.ih-wallets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.ih-wallet-card {
  padding: 20px 22px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ih-wallet-card:hover {
  transform: translateY(-2px);
}

/* Real Account Card: Cyber Emerald */
.ih-wallet-card.real-card {
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.35) 0%, rgba(6, 30, 24, 0.5) 100%),
              radial-gradient(ellipse at top right, rgba(0, 230, 118, 0.15), transparent 70%);
  border: 1px solid rgba(0, 230, 118, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 40px rgba(0, 230, 118, 0.08);
}

.ih-wallet-card.real-card:hover {
  border-color: rgba(0, 230, 118, 0.45);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 50px rgba(0, 230, 118, 0.15);
}

/* Demo Account Card: Cyber Cyan */
.ih-wallet-card.demo-card {
  background: linear-gradient(145deg, rgba(8, 51, 68, 0.35) 0%, rgba(8, 24, 38, 0.5) 100%),
              radial-gradient(ellipse at top right, rgba(56, 189, 248, 0.15), transparent 70%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 40px rgba(56, 189, 248, 0.08);
}

.ih-wallet-card.demo-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 50px rgba(56, 189, 248, 0.15);
}

.ih-wallet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ih-wallet-label-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ih-wallet-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
  animation: onlinePulse 2s infinite;
}

.ih-wallet-pulse-dot.demo {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.ih-wallet-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
}

.ih-wallet-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.real-card .ih-wallet-tag {
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.demo-card .ih-wallet-tag {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.ih-wallet-amount-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.ih-wallet-val {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.real-card .ih-wallet-val {
  color: #00e676;
  text-shadow: 0 0 25px rgba(0, 230, 118, 0.35);
}

.demo-card .ih-wallet-val {
  color: #38bdf8;
  text-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
}

.ih-wallet-currency {
  font-size: 15px;
  font-weight: 600;
  color: #94a3b8;
}

.ih-wallet-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.ih-wallet-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.22s ease;
  border: none;
}

.ih-btn-deposit {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
}

.ih-btn-deposit:hover {
  background: linear-gradient(135deg, #047857, #059669);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}

.ih-btn-withdraw {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.ih-btn-withdraw:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.ih-btn-reset-demo {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.25);
}

.ih-btn-reset-demo:hover {
  background: linear-gradient(135deg, #0369a1, #0284c7);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.4);
}

.ih-btn-reset-demo svg {
  transition: transform 0.4s ease;
}

.ih-btn-reset-demo:hover svg {
  transform: rotate(180deg);
}

/* 4 Trader Performance Metric Cards */
.ih-section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.ih-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.ih-stat-card {
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.25s ease;
}

.ih-stat-card:hover {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(56, 189, 248, 0.25);
  transform: translateY(-2px);
}

.ih-stat-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ih-stat-lbl {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ih-stat-icon {
  font-size: 14px;
  opacity: 0.8;
}

.ih-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.text-emerald { color: #00e676 !important; }
.text-cyan { color: #38bdf8 !important; }
.text-rose { color: #f43f5e !important; }

.ih-stat-sub {
  font-size: 11px;
  color: #64748b;
}

/* VIP Benefits Preview Card */
.ih-vip-card {
  padding: 20px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.4) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(129, 140, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ih-vip-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ih-vip-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.3));
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.ih-vip-card-info h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.ih-vip-card-info p {
  margin: 0;
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.4;
}

.ih-vip-perks-list {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ih-vip-perk-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 500;
}

.ih-vip-perk-item svg {
  color: #00e676;
}

/* Quick Navigation Shortcuts */
.ih-shortcuts-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ih-shortcut-pill {
  padding: 10px 16px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.ih-shortcut-pill:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  transform: translateY(-1px);
}

/* --- TAB 2: PERSONAL PROFILE --- */
.ih-form-card {
  padding: 24px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ih-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.ih-field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ih-field-group.full-width {
  grid-column: span 2;
}

.ih-field-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ih-field-input,
.ih-field-select,
.ih-field-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(10, 16, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  font-size: 13.5px;
  font-family: inherit;
  transition: all 0.22s ease;
  box-sizing: border-box;
}

.ih-field-input:focus,
.ih-field-select:focus,
.ih-field-textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
  background: rgba(15, 23, 42, 0.95);
}

.ih-input-readonly {
  background: rgba(255, 255, 255, 0.03) !important;
  color: #64748b !important;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

.ih-field-textarea {
  min-height: 80px;
  resize: vertical;
}

.ih-btn-save-profile {
  align-self: flex-start;
  padding: 12px 26px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.22s ease;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3);
}

.ih-btn-save-profile:hover {
  background: linear-gradient(135deg, #0369a1, #0284c7);
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(56, 189, 248, 0.45);
}

/* --- TAB 3: VERIFICATION / KYC --- */
.ih-screen {
  display: none;
  padding: 28px 24px;
  border-radius: 14px;
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ih-screen.ih-show {
  display: flex;
}

.ih-screen.pending {
  background: linear-gradient(135deg, rgba(8, 51, 68, 0.3) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.ih-screen.verified {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.3) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.ih-screen.rejected {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.3) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.ih-screen.guest {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ih-screen-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
}

.pending .ih-screen-ring {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 2px solid rgba(56, 189, 248, 0.4);
  animation: pendingPulse 2.5s infinite;
}

@keyframes pendingPulse {
  0% { transform: scale(0.96); }
  50% { transform: scale(1.04); }
  100% { transform: scale(0.96); }
}

.verified .ih-screen-ring {
  background: rgba(16, 185, 129, 0.18);
  color: #00e676;
  border: 2px solid rgba(16, 185, 129, 0.45);
}

.rejected .ih-screen-ring {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 2px solid rgba(239, 68, 68, 0.45);
}

.ih-screen h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
}

.ih-screen p {
  margin: 0;
  font-size: 13.5px;
  color: #94a3b8;
  max-width: 520px;
  line-height: 1.5;
}

.ih-resubmit-btn {
  margin-top: 8px;
  padding: 10px 22px;
  border-radius: 9px;
  border: none;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
  transition: all 0.2s ease;
}

.ih-resubmit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
}

/* Upload Dropzones */
.ih-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ih-upload-zone {
  position: relative;
  min-height: 190px;
  border-radius: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.14);
  background: rgba(10, 16, 28, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.25s ease;
}

.ih-upload-zone:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.04);
}

.ih-upload-zone.ih-filled {
  border-style: solid;
  border-color: rgba(16, 185, 129, 0.4);
}

.ih-upload-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 16px;
}

.ih-upload-ph svg {
  color: #38bdf8;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.ih-upload-zone:hover .ih-upload-ph svg {
  transform: translateY(-2px);
}

.ih-upload-ph span {
  font-size: 13.5px;
  font-weight: 700;
  color: #e2e8f0;
}

.ih-upload-ph small {
  font-size: 11px;
  color: #64748b;
}

.ih-upload-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 2;
}

.ih-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
}

.ih-upload-zone:hover .ih-upload-overlay {
  opacity: 1;
}

.ih-uploading::after {
  content: 'Uploading...';
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.8);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  z-index: 5;
}

/* Submit Verification Button */
.ih-btn-primary {
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.22s ease;
  opacity: 0.5;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}

.ih-btn-primary.ih-ready {
  opacity: 1;
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}

.ih-btn-primary.ih-ready:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
}

.ih-btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

/* --- TAB 4: SECURITY & 2FA --- */
.ih-pwd-meter {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 4px;
}

.ih-pwd-meter-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.ih-pwd-meter-lbl {
  font-size: 11px;
  color: #64748b;
  margin-top: 3px;
}

.ih-btn-update-pwd {
  align-self: flex-start;
  padding: 11px 24px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.3);
  transition: all 0.22s ease;
}

.ih-btn-update-pwd:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}

/* Security feature card */
.ih-sec-card {
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ih-sec-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ih-sec-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #00e676;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.ih-sec-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 2px;
}

.ih-sec-card-sub {
  font-size: 12px;
  color: #64748b;
}

.ih-sec-badge-active {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #00e676;
  font-size: 11px;
  font-weight: 700;
}

/* --- TAB 5: TRADING PREFERENCES --- */
.ih-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  gap: 16px;
  transition: all 0.2s ease;
}

.ih-pref-row:hover {
  background: rgba(30, 41, 59, 0.5);
}

.ih-pref-meta h4 {
  margin: 0 0 3px 0;
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
}

.ih-pref-meta p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

/* Modern iOS-style Glowing Toggle Switch */
.ih-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.ih-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ih-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 34px;
}

.ih-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.ih-switch input:checked + .ih-slider {
  background: linear-gradient(135deg, #00e676, #059669);
  border-color: #00e676;
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.35);
}

.ih-switch input:checked + .ih-slider:before {
  transform: translateX(22px);
}

/* ============================================================================
 * MULTI-DEVICE RESPONSIVE BREAKPOINTS (Mobile, Tablet, Desktop)
 * ============================================================================ */

@media (max-width: 900px) {
  .ih-panel {
    width: 100vw;
  }
  .ih-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .ih-hero-right {
    width: 100%;
  }
  .ih-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ih-topbar {
    padding: 14px 16px;
  }
  .ih-topbar-title {
    font-size: 15px;
  }
  .ih-hero-card {
    padding: 16px;
    gap: 14px;
  }
  .ih-hero-left {
    gap: 14px;
  }
  .ih-avatar-ring {
    width: 60px;
    height: 60px;
  }
  .ih-avatar-initial {
    font-size: 22px;
  }
  .ih-hero-name {
    font-size: 17px;
  }
  .ih-tabs-nav {
    padding: 8px 14px;
    gap: 6px;
  }
  .ih-tab-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  .ih-body-scroll {
    padding: 16px 14px 60px;
    gap: 18px;
  }
  .ih-wallets-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ih-wallet-card {
    padding: 16px;
  }
  .ih-wallet-val {
    font-size: 26px;
  }
  .ih-grid-2col {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ih-field-group.full-width {
    grid-column: span 1;
  }
  .ih-doc-grid {
    grid-template-columns: 1fr;
  }
  .ih-vip-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
