/* ==========================================================================
   TRIDENT CUSTOMER DASHBOARD - EXACT SUSANO.RE PROFILE AESTHETIC
   1:1 Pixel-Perfect Recreation of Susano User Control Center
   ========================================================================== */

:root {
  --bg: #09080c;
  --bg-elev: #0c0a0f;
  --panel: rgba(18, 14, 20, 0.75);
  --panel-2: rgba(255, 255, 255, 0.04);
  --panel-solid: rgba(18, 14, 20, 0.75);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(239, 68, 68, 0.35);

  --accent: #ef4444;
  --accent-2: #dc2626;
  --accent-3: #ff5757;
  --accent-grad: linear-gradient(135deg, #ff5757 0%, #ef4444 100%);
  --accent-soft: rgba(239, 68, 68, 0.12);
  --accent-glow: rgba(239, 68, 68, 0.35);

  --cyan: #06b6d4;
  --cyan-soft: rgba(6, 182, 212, 0.12);
  --cyan-border: rgba(6, 182, 212, 0.3);

  --green: #10b981;
  --green-soft: rgba(16, 185, 129, 0.12);
  --green-border: rgba(16, 185, 129, 0.3);

  --text: #ffffff;
  --text-dim: #8e8e9f;
  --text-muted: #5c5c6e;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 20px;
  --sidebar-w: 270px;

  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body.dash-body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  position: relative;
}

/* Background Atmosphere Ring Glow */
.dash-bg-glow {
  position: fixed;
  top: 0;
  right: 15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.12) 0%, rgba(220, 38, 38, 0.03) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   FLOATING GLASS SIDEBAR (Susano Exact 1:1)
   ========================================================================== */
.dash-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: #0c0a0f;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 28px 18px 24px;
  min-height: 100vh;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  overflow-y: auto;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
  scrollbar-width: none;
}
.dash-sidebar::-webkit-scrollbar {
  display: none;
}

/* Brand Link */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
}
.sidebar-brand-logo {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(255, 96, 54, 0.5));
  transition: transform 0.25s ease;
}
.sidebar-brand:hover .sidebar-brand-logo {
  transform: scale(1.06);
}
.sidebar-brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-brand-badge {
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Navigation Groups */
.sidebar-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-nav-label {
  color: var(--text-muted);
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px 6px;
}
.sidebar-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dim);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}
.sidebar-nav-item svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
  color: var(--text-muted);
  transition: color 0.2s ease;
  flex-shrink: 0;
}
.sidebar-nav-item:hover {
  color: #ffffff;
  background: var(--panel-2);
}
.sidebar-nav-item:hover svg {
  color: #ffffff;
}

/* Active Nav Item - Susano Signature Vibrant Pill Glow */
.sidebar-nav-item.active {
  background: linear-gradient(135deg, #ff5757 0%, #ef4444 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.38);
}
.sidebar-nav-item.active svg {
  color: #ffffff;
}

/* Pill badge on nav item (e.g. 10% on Referrals) */
.sidebar-item-badge {
  margin-left: auto;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 100, 60, 0.18);
  color: #ff8a65;
  border: 1px solid rgba(255, 100, 60, 0.35);
  letter-spacing: 0.04em;
}
.sidebar-nav-item.active .sidebar-item-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-color: transparent;
}

/* Spacer to push user card to bottom */
.sidebar-spacer {
  margin-top: auto;
}

/* User Profile Card at Bottom of Sidebar */
.dash-user-card {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}
.dash-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(239, 68, 68, 0.5);
  flex-shrink: 0;
}
.dash-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.dash-user-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-user-uid {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.dash-logout-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
}
.dash-logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* ==========================================================================
   MAIN DASHBOARD CONTENT AREA
   ========================================================================== */
.dash-main {
  flex: 1;
  margin-left: 270px;
  padding: 36px 44px 80px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* Top Header Bar */
.dash-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.dash-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-eyebrow {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dash-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #ffffff;
  line-height: 1.1;
}
.dash-subline {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Top Header Action Buttons */
.dash-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dash-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}
.dash-btn svg {
  width: 15px;
  height: 15px;
}
.dash-btn-primary {
  background: linear-gradient(135deg, #ff5757 0%, #ef4444 100%);
  color: #ffffff;
  border-radius: 12px;
  font-weight: 800;
  border: none;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.38);
}
.dash-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -6px rgba(255, 96, 54, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  filter: brightness(1.08);
}
.dash-btn-secondary {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  backdrop-filter: blur(12px);
}
.dash-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.dash-btn-admin-link {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ff6060;
}
.dash-btn-admin-link:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
  color: #ffffff;
}
.dash-btn-reseller-link {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(29, 78, 216, 0.35) 100%) !important;
  border: 1px solid rgba(59, 130, 246, 0.55) !important;
  color: #93c5fd !important;
  box-shadow: 0 0 16px -2px rgba(37, 99, 235, 0.4) !important;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}
.dash-btn-reseller-link:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border-color: #60a5fa !important;
  box-shadow: 0 6px 20px -2px rgba(37, 99, 235, 0.6) !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   PROFILE HERO BANNER CARD (Exact Susano Composition)
   ========================================================================== */
.d1-profile {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px 34px;
  border-radius: 20px;
  background: rgba(18, 14, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  margin-bottom: 24px;
}
.d1-profile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(640px 260px at 0% 0%, rgba(239, 68, 68, 0.12), transparent 70%);
  pointer-events: none;
}
.d1-profile > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

/* Left side: Avatar + Username + Badges */
.d1-profile-id {
  display: flex;
  align-items: center;
  gap: 22px;
}
.d1-avatar-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  flex-shrink: 0;
}
.d1-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 96, 54, 0.5);
  box-shadow: 0 0 24px rgba(255, 96, 54, 0.25);
}
.d1-profile-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.d1-profile-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.d1-profile-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.d1-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.d1-meta-badge.role {
  background: rgba(255, 255, 255, 0.07);
  color: #e2e2ea;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.d1-meta-badge.role.admin {
  background: rgba(239, 68, 68, 0.18);
  color: #ff6e6e;
  border-color: rgba(239, 68, 68, 0.35);
}
.d1-meta-badge.uid {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.d1-meta-badge.license-active {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-border);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.15);
}
.d1-meta-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

/* Right side of Profile: Configs Hub & Settings links */
.d1-profile-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.d1-action-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.d1-action-link svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}
.d1-action-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}
.d1-action-link:hover svg {
  color: #ffffff;
}

/* ==========================================================================
   CARDS GRID: LICENSE & ACCOUNT (Trident Classic, Privacy Protector, Account)
   ========================================================================== */
.d1-lic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.d1-lic {
  position: relative;
  overflow: hidden;
  padding: 24px 26px;
  border-radius: 20px;
  background: rgba(18, 14, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 185px;
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
}
.d1-lic::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: top;
  background-image: linear-gradient(var(--lic-color, var(--border-strong)), var(--lic-color, var(--border-strong)));
  background-size: 100% 3px;
}
.d1-lic.classic {
  --lic-color: var(--accent-grad);
}
.d1-lic.protector {
  --lic-color: linear-gradient(90deg, #22c55e, #16a34a);
}
.d1-lic.account {
  --lic-color: linear-gradient(90deg, #ffffff, #6f6f7d);
}

.d1-lic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.d1-lic-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.d1-lic-badge {
  font-size: 0.64rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.d1-lic-badge.green,
.d1-lic-badge.active {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-border);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.12);
}
.d1-lic-badge.user {
  background: rgba(255, 255, 255, 0.07);
  color: #dfdfe6;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.d1-lic-value {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #ffffff;
  line-height: 1.05;
  margin-top: 2px;
}
.d1-lic-value.success {
  color: var(--green);
}
.d1-lic-value.warning {
  color: #f59e0b;
}
.d1-lic-value.danger {
  color: #ef4444;
}

.d1-lic-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Cluster actions inside license card */
.d1-lic-cluster {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.d1-lic-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.d1-lic-btn svg {
  width: 14px;
  height: 14px;
}
.d1-lic-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.d1-ref-link {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
.d1-ref-link:hover {
  color: #ffffff;
}

/* Watermark emblem on the right */
.d1-lic-emblem {
  position: absolute;
  right: -10px;
  bottom: -16px;
  width: 130px;
  height: 130px;
  opacity: 0.06;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

/* ==========================================================================
   ANNOUNCEMENTS SECTION (Exact Susano Composition)
   ========================================================================== */
.d1-announce-card {
  padding: 24px 28px;
  border-radius: 22px;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.d1-announce-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.d1-announce-title {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.d1-announce-title svg {
  width: 14px;
  height: 14px;
}
.d1-announce-ext-link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}
.d1-announce-ext-link:hover {
  color: #ffffff;
}

.d1-announce-list {
  display: flex;
  flex-direction: column;
}
.d1-announce-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.d1-announce-item:first-child {
  border-top: none;
  padding-top: 0;
}
.d1-announce-item:last-child {
  padding-bottom: 0;
}
.d1-announce-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}
.d1-announce-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.d1-announce-meta {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.d1-owner-tag {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.d1-announce-date {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.d1-announce-text {
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.d1-announce-text.warning {
  color: #ff9e9e;
}

/* ==========================================================================
   UPGRADE BANNER AT BOTTOM (Exact Susano Composition)
   ========================================================================== */
.d1-upgrade-banner {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #ff7a45 0%, #ff5733 50%, #ea3824 100%);
  padding: 34px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 20px 50px -15px rgba(255, 87, 51, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.d1-upgrade-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}
.d1-upgrade-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
}
.d1-upgrade-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.d1-upgrade-sub {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin-bottom: 14px;
}
.d1-upgrade-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  background: #ffffff;
  color: #0b0b0e;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}
.d1-upgrade-btn:hover {
  transform: translateY(-2px);
  background: #f7f7fa;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}
.d1-upgrade-art {
  position: absolute;
  right: 24px;
  bottom: 0;
  height: 100%;
  max-height: 180px;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* ==========================================================================
   MODAL STYLES (Redeem Key, Download Loader, Configs Hub)
   ========================================================================== */
.dash-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.dash-modal-backdrop.active {
  display: flex;
  opacity: 1;
}
.dash-modal-card {
  background: #0c0a0f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  padding: 32px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.95);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.dash-modal-backdrop.active .dash-modal-card {
  transform: scale(1);
}
.dash-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.dash-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.dash-modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}
.dash-modal-desc {
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 22px;
}
.dash-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.dash-input-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dash-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}
.dash-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 96, 54, 0.25);
  background: rgba(255, 255, 255, 0.07);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile & Tablet)
   ========================================================================== */
.dash-mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.84rem;
}

@media (max-width: 960px) {
  body.dash-body {
    flex-direction: column;
  }
  .dash-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    margin: 0;
    height: 100vh;
    width: min(300px, 86vw);
    border-radius: 0 24px 24px 0;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(12, 12, 17, 0.98);
  }
  .dash-sidebar.open {
    transform: translateX(0);
  }
  .dash-mobile-toggle {
    display: inline-flex;
  }
  .dash-main {
    padding: 20px 18px 48px;
  }
  .d1-profile {
    grid-template-columns: 1fr;
    padding: 22px 20px;
    margin-bottom: 20px;
  }
  .d1-lic-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .d1-upgrade-art {
    display: none;
  }
}

@media (max-width: 1120px) and (min-width: 961px) {
  .d1-lic-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

/* Maintenance Badge & Warning Styles */
.d1-lic.classic.maintenance,
.d1-lic.maintenance {
  --lic-color: linear-gradient(90deg, #f59e0b, #d97706);
}
.d1-lic-badge.maintenance,
.d1-meta-badge.maintenance {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.12);
}
.d1-lic-value.warning {
  color: #f59e0b;
}

/* ==========================================================
   DASHBOARD TABS & DOWNLOAD PRODUCT SECTION
   ========================================================== */
.dash-tab-pane {
  display: none;
}
.dash-tab-pane.active {
  display: block;
  animation: fadeIn 0.25s ease forwards;
}

.dash-download-product-card {
  background: rgba(18, 14, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(239, 68, 68, 0.1);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.dash-download-product-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.download-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.download-prod-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.download-prod-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  flex-shrink: 0;
}

.download-prod-title {
  font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.download-prod-sub {
  font-size: 0.86rem;
  color: var(--text-muted, #8e8e9f);
  margin: 0;
}

.download-key-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 24px 0;
}

.download-key-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted, #8e8e9f);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.download-key-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.download-key-code {
  flex: 1;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 1.05rem;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 10px 16px;
  border-radius: 10px;
  letter-spacing: 0.05em;
  user-select: all;
}

.btn-copy-lic {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-copy-lic:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

.download-action-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.btn-download-main {
  background: #ef4444;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 16px 32px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.45);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-download-main:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(239, 68, 68, 0.6);
}

.download-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 800px) {
  .download-steps-grid {
    grid-template-columns: 1fr;
  }
}

.download-step-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
}

.download-step-num {
  font-size: 0.72rem;
  font-weight: 900;
  color: #ef4444;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: block;
}

.download-step-text {
  font-size: 0.84rem;
  color: #ffffff;
  margin: 0;
  line-height: 1.45;
}

/* ==========================================================
   SETTINGS 2x2 GRID & CARDS (Exact match with reference image)
   ========================================================== */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 14px;
}

.settings-card.settings-card-account {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .settings-card.settings-card-account {
    grid-column: 1;
  }
}

.settings-card {
  background: rgba(18, 14, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px 26px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  min-height: 260px;
  transition: all 0.25s ease;
}

.dash-btn-redeem-orange {
  background: linear-gradient(135deg, #ff6239 0%, #eb4e24 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 9px 18px !important;
  font-weight: 700 !important;
  font-size: 0.84rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 6px 16px rgba(255, 98, 57, 0.35) !important;
}

.settings-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.settings-card-icon.hwid {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.settings-card-icon.referral {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #22c55e;
}

.settings-card-icon.account {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #3b82f6;
}

.settings-card-icon.redeem {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: #f97316;
}

.settings-card-title {
  font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.settings-card-desc {
  font-size: 0.84rem;
  color: var(--text-muted, #8e8e9f);
  margin: 0 0 14px;
  line-height: 1.5;
}

.settings-pills-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.settings-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.settings-status-pill .label {
  color: var(--text-muted, #8e8e9f);
}

.settings-status-pill .val {
  color: #ffffff;
  font-weight: 800;
}

.settings-status-pill .val.bound {
  color: #22c55e;
}

.settings-status-pill .val.unbound {
  color: #f59e0b;
}

.settings-notice-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #f59e0b;
  margin-bottom: 20px;
}

.settings-btn-reset {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 13px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-top: auto;
}

.settings-btn-reset:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
}

.settings-btn-orange {
  width: 100%;
  background: linear-gradient(135deg, #ff6239 0%, #eb4e24 100%);
  border: none;
  border-radius: 12px;
  padding: 14px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(255, 98, 57, 0.35);
  transition: all 0.2s ease;
  margin-top: auto;
}

.settings-btn-orange:hover {
  background: linear-gradient(135deg, #ff724d 0%, #f0582f 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 98, 57, 0.5);
}

/* Account Details Table */
.settings-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.settings-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.settings-info-row .label {
  color: var(--text-muted, #8e8e9f);
}

.settings-info-row .val {
  color: #ffffff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.settings-account-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-signout-link {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-signout-link:hover {
  background: #ef4444;
  color: #ffffff;
}

.settings-legal-link {
  color: var(--text-muted, #8e8e9f);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.2s;
}

.settings-legal-link:hover {
  color: #ffffff;
}


/* ==========================================================
   ADMIN-INSPIRED HOVER EFFECTS & ANNOUNCEMENTS
   ========================================================== */
.d1-lic:hover,
.settings-card:hover,
.dash-card:hover {
  border-color: rgba(239, 68, 68, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.dash-announcement-card:hover {
  border-color: rgba(239, 68, 68, 0.35) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  transform: translateY(-1px);
}
