/* Import Onest from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700;800;900&display=swap');

/* DEFAULT DARK THEME */
:root {
  --bg: #0a0b0b; /* page background */
  --panel: rgba(255,255,255,0.05); /* cards/panels */
  --panel-alt: #1b2032;/* hovered or raised surfaces */
  --accent: #4d6bfe; /* primary blue accent */
  --accent-hover: #3b81f2;/* lighter hover shade */
  --p: #3b82f6;
  --p2: #3b81f2;
  --muted: #8b92a5; /* muted text/icons */
  --radius: 6px;
  --text: #e5e7eb; /* near-white text */
  --modal: #060607;
  --dropdown-bg: var(--bg);
}

/* LIGHT THEME */
:root[data-theme="light"] {
  --bg: #f3f4f6;
  --panel: #ffffff;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --muted: #6b7280;
  --border:rgba(0, 0, 0, 0.12);
  --radius: 6px;
  --text: #111827;
  --text2: #d4d7df;
  --modal: #060607;
}

/* DARK THEME with #4d6bfe as primary */
:root[data-theme="dark"] {
  /* palette */
  --bg: #0a0b0b;
  --bg-1: #0e1116;
  --panel: rgba(255,255,255,0.05);
  --muted: #9aa3b2;
  --accent: #3b82f6;
  --accent-2: #3b81f2;
  --glass: rgba(255,255,255,0.025);
  --glass-2: rgba(255,255,255,0.015);
  --text: #e6eef8;
  --success: #22c55e;
  --error: #ef4444;
  --border: rgba(255,255,255,0.05); 
  --modal: #060607;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Onest', sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  font-size: 16px; /* bigger */
  min-height: 100vh;
}

html, body {
  overflow-x: hidden; /* ❌ no horizontal scroll */
  overflow-y: auto; /* ✅ vertical scroll only when needed */
}

html {
  transition: background-color 0.4s ease, color 0.4s ease;
}

html:not(.theme-loaded) {
  transition: none !important;
}

/* ===== GLOBAL LOADER ===== */
#global-loader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #0a0b0b; /* dark bg */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  width: 80px;
  height: 80px;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Pulse animation for subtle life */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* Fade out when hidden */
#global-loader.hidden {
  opacity: 0;
  visibility: hidden;
}













.global-loader {
  position: fixed;
  inset: 0;
  background: var(--bg, #0b0d17);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  transition: opacity 0.4s ease;
}

.global-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  color: var(--text, #e5e7eb);
}

.loader-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  animation: pulse 2s infinite ease-in-out;
}

.loader-status {
  font-size: 1.1rem;
  font-weight: 500;
  min-height: 1.5em;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}








.loader-status {
  color: var(--text, #e5e7eb);
  font-size: 1.1rem;
  font-weight: 500;
  min-height: 1.5em;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}



/* Remove sidebar */
.sidebar {
  display: none;
}

/* MAIN */
.dashboard {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px; /* bigger */
}

/* --------------------------------------------------------------
   TOPBAR – desktop layout
   -------------------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 30px 0;
}

/* ---- LEFT: LOGO ---- */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 0; /* flush left */
}

.logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}


/* ── BETA Badge ──────────────────────────────────────── */
.beta-badge {
  position: relative;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.15);
  padding: 1.5px 5px;
  border-radius: 5px;
  border: 1px solid rgba(167, 139, 250, 0.12);
  cursor: help;
  transition: all 0.18s ease;
}

.beta-badge:hover {
  background: rgba(167, 139, 250, 0.26);
  transform: translateY(-0.5px);
  box-shadow: 0 2px 8px rgba(167, 139, 250, 0.18);
}

/* ── Tooltip (appears BELOW, left-aligned to badge) ─── */
.beta-tooltip {
  position: absolute;
  top: 100%;
  left: 0;                        /* starts at the left edge of BETA badge */
  margin-top: 6px;
  min-width: 240px;
  max-width: 340px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.45;
  color: #e8e8f5;
  background: rgba(25, 25, 33, 0.97);
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 2px 8px rgba(167, 139, 250, 0.1);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transition: 
    opacity 0.24s ease,
    transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.24s ease;
  pointer-events: none;
  z-index: 50;
}

.beta-badge:hover .beta-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Add this temporarily */
.beta-tooltip {
  text-transform: none !important;
  font-variant: normal !important;
}

/* Arrow pointing up from tooltip to badge */
.beta-tooltip::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 12px;                     /* small offset from left edge */
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid rgba(167, 139, 250, 0.45);
  z-index: 51;
}

/* Feedback button */
.tooltip-btn {
  display: inline-flex;
  margin-top: 10px;
  padding: 7px 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.tooltip-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
  background: linear-gradient(135deg, #6d28d9, #9333ea);
}

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

/* Small note text */
.beta-tooltip small {
  display: block;
  margin-top: 8px;
  font-size: 10.5px;
  opacity: 0.75;
}

/* ---- CENTER: 920px NAV ---- */
.nav-wrapper {
  flex: 0 1 920px;               /* max 920px, centered */
  display: flex;
  max-width: 920px;
  justify-content: center;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color .2s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--p); }
.nav-link.active:hover { color: var(--p2); }

/* ---- RIGHT: USER BOX ---- */
.user-box {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 50px;
  transition: background .2s;
}
.user-box:hover { background: rgba(255,255,255,0.05); }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-name { font-weight: 600; }
.arrow-icon { font-size: 12px; transition: transform .25s; }
.arrow-icon.open { transform: rotate(180deg); }
/* ---- DROPDOWN MENU ---- */
.dropdown-menu {
  position: absolute;
  top: calc(100%);
  right: 0;
  min-width: 220px;
  background: #111;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all .25s;
  z-index: 1000;
  margin-top: 5px;
  margin-right: 15px;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* dropdown items */
.dropdown-item {
  padding: 12px 16px;
  color: var(--text);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;

  /* ensure symmetric start alignment */
  justify-content: flex-start;
}

.dropdown-item i, /* any icon inside */
.dropdown-item svg {
  width: 20px;     /* fixed width for all icons */
  text-align: center;
  flex-shrink: 0;
}

.dropdown-item span {
  flex: 1;         /* text takes remaining space */
}

/* hover & logout */
.dropdown-item:hover { 
  background: #1c1d1e80; 
}
.dropdown-item.logout-item { 
  color: #e74c3c; 
}
.dropdown-item.logout-item:hover { 
  background: rgba(231,76,60,.1); 
}





.dropdown-menu {
  overflow: hidden;
  border-radius: var(--radius);     /* 8px, 10px, 12px… */
  background: #111;
  /* if you have backdrop blur etc, it still works */
}

.dropdown-item:hover {
  background: #1c1d1e80;           /* or rgba(28,29,30,0.5) */
  /* ← no border-radius needed here */
}

.dropdown-item.logout-item:hover {
  background: rgba(231, 76, 60, 0.12);
}




/* divider */
.dropdown-divider { 
  margin: 6px 0; 
  border-top: 1px solid var(--border); 
  opacity: .6; 
}

/* clickable user box */
.user-box {
  cursor: pointer;
  user-select: none;
}

/* Hide close button on desktop */
.mobile-menu-close {
  display: none;
}

/* ------------------- MOBILE ------------------- */
@media (max-width: 920px) {
  .nav-wrapper { display: none; }

  .user-dropdown { justify-content: flex-start; flex: 1; }

  .dropdown-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-width: unset;
    max-width: unset;
    width: 100%;
    height: 100%;
    background: #111;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    padding: 80px 24px 24px;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 2000;
  }

  .dropdown-menu.show { transform: translateX(0); }

  .dropdown-item {
    padding: 16px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);

    /* align icons/text same as desktop */
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
  }

  .dropdown-item i,
  .dropdown-item svg { width: 20px; flex-shrink: 0; text-align: center; }

  .dropdown-item span { flex: 1; }

  .dropdown-item:last-child { border-bottom: none; }
  .dropdown-divider { display: none; }

  .mobile-menu-close {
    display: block !important;
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
    padding: 0;
    z-index: 10;
  }
}





















/* Center content boxes like Spotify */
.section {
  display: none;
  width: 100%;
  max-width: 850px; /* Centered with max width */
  margin: 0 auto;
}

.section.active {
  display: block;
}

/* Remove section headers */
.section-header {
  display: none;
}







/* Center content boxes like Spotify */
.section2 {
  display: none;
  width: 100%;
  max-width: 1650px; /* Centered with max width */
  margin: 0 auto;
}

.section2.active {
  display: block;
}






.footer {
  color: #aaa;
  padding: 85px 20px 65px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin-top: 10%;
}

.footer-container {
  max-width: 960px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: baseline;       /* Aligns logo bottom with text baseline */
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo-img {
  height: 2rem;               /* Matches text size exactly */
  width: auto;
}

.footer-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 22px;
  margin-bottom: 32px;
  margin-top: 42px;
  font-size: 0.82rem;          /* Smaller links */
}

.footer-link {
  color: rgb(164, 170, 179);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover,
.footer-link:focus {
  color: #fff;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 25px;
}

.social-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--panel);
  border-radius: 50%;
  color: var(--muted);
  font-size: 1.1rem;           /* Icon inside circle */
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-circle:hover,
.social-circle:focus {
  background: var(--panel-alt);
  color: #fff;
  transform: scale(1.08);
}

.footer-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-bottom: 18px;
}

.badge-link {
  line-height: 0;
}

.badge-img {
  height: 36px;                /* Smaller badges overall */
  width: auto;
  display: block;
}

.roku {
  height: 32px;                /* Roku logo often needs slight adjustment */
}

.amazon {
  height: 34px;
}

.footer-copyright {
  font-size: 0.75rem;
  color: #666;
}

/* Mobile – even more compact */
@media (max-width: 768px) {
  .footer {
    padding: 30px 15px 40px;
  }

  .footer-logo-text {
    font-size: 1.25rem;
  }

  .footer-logo-img {
    height: 1.25em;
  }

  .footer-links {
    gap: 12px 18px;
    font-size: 0.85rem;
  }

  .social-circle {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .footer-badges {
    gap: 14px 24px;
  }

  .badge-img {
    height: 34px;
  }
}
















/* Rest of the original CSS remains the same, with potential overrides if needed */
.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  background: var(--accent);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px; /* bigger */
}

/* Recent Blog Posts Grid */
.recent-updates {
  margin-top: 20px;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.update-card {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.update-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-color: var(--accent);
}

/* Thumbnail on top only */
.update-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

/* Blog content */
.update-card h4 {
  font-size: 16px;
  margin: 12px 16px 6px;
  color: var(--text);
}

.update-card p {
  font-size: 13px;
  margin: 0 16px 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* Share Link */
.share-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent);
  margin: 0 16px 12px;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.2s;
}

.share-link:hover {
  color: var(--accent-hover);
}

.share-link i {
  font-size: 14px;
}




.profile-preview.loading .banner-img,
.profile-preview.loading .profile-avatar {
  background: linear-gradient(90deg, var(--border) 25%, var(--panel) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.profile-preview.loading #preview-name,
.profile-preview.loading #preview-desc,
.profile-preview.loading #preview-username {
  background: linear-gradient(90deg, var(--border) 25%, var(--panel) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

.profile-preview.loading #preview-socials .social-pill {
  background: var(--border);
  animation: pulse 1.5s infinite;
}

.profile-preview.loading #preview-links .link-card {
  background: linear-gradient(90deg, var(--border) 25%, var(--panel) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}












/* Banner Styles */
.banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 600;
}

.banner.info {
  background: #3b82f6;
  color: #fff;
}

.banner.warning {
  background: #f59e0b;
  color: #111;
}

.banner.error {
  background: #ef4444;
  color: #fff;
}

.banner.cta {
  background: #10b981;
  color: #fff;
}

.close-banner {
  background: none;
  border: none;
  color: inherit;
  font-size: 16px;
  cursor: pointer;
}

/* Responsive grid for mobile */
@media (max-width: 768px) {
  .updates-grid {
    grid-template-columns: 1fr;
  }
}

/* Dashboard Graph */
.dashboard-graph {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  margin-bottom: 25px;
}

.dashboard-graph h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--text);
}

/* Chart canvas */
#engagementChart {
  width: 100%;
  height: 200px;
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-graph {
    padding: 16px;
  }

  #engagementChart {
    height: 180px;
  }
}

/* Override for overview section */
#overview.section {
  width: 40%;
}

/* Account menu */
.account-menu {
  width: 100%;
}



.menu-option:hover {
  background: #30334070;
  color: #fff;
}

.account-subsection {
  padding: 18px; /* bigger */
  border-radius: var(--radius);
}

/* Subsection header */
.subsection-header {
  display: flex;
  align-items: center;
  gap: 12px; /* bigger */
  margin-bottom: 16px; /* bigger */
}

.subsection-header .back-btn {
  cursor: pointer;
  color: var(--accent);
}

/* Hidden class toggle */
.hidden {
  display: none;
}

/* Subscription & Security card actions */
.subscription-actions, .modal-footer {
  display: flex;
  gap: 10px; /* bigger */
  margin-top: 10px; /* bigger */
}

.current-plan, .available-plans {
  margin-bottom: 20px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--panel);
}

.plan-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.plan-card {
  flex: 1 1 200px;
  background: var(--border);
  padding: 16px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s, background 0.2s;
}

.plan-card:hover {
  transform: translateY(-3px);
  background: var(--accent-hover);
  color: #fff;
}

.plan-card h4 {
  font-size: 16px;
  font-weight: 600;
}

.plan-card ul {
  list-style: disc;
  margin-left: 20px;
  font-size: 14px;
}

.plan-card button.disabled {
  background: var(--muted);
  cursor: default;
}

.muted-text {
  color: var(--muted);
  font-size: 12px;
}

/* Input Hints */
.input-hint {
  font-size: 0.7rem;
  color: #777;
  margin-top: 4px;
  line-height: 1.4;
}

/* Info/Warning Boxes */
.info-box, .warning-box {
  background: #111213;
  border-left: 4px solid #007bff;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 16px 0;
  font-size: 0.9rem;
}

.warning-box {
  background: #fff3cd;
  border-left-color: #ffc107;
  color: #856404;
}

/* Icons in Labels */
label i {
  margin-right: 6px;
  color: #555;
  width: 18px;
  text-align: center;
}

/* Menu Icons */
.menu-option span i {
  margin-right: 10px;
  color: var(--p);
}

/* Responsive */
@media (max-width: 600px) {
  .menu-option span {
    font-size: 0.95rem;
  }
  .input-hint {
    font-size: 0.7rem;
  }
}

#notice-area {
  margin-top: 20px;
  animation: slideUp 0.6s ease-out;
}

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

.notice {
  transition: all 0.3s ease;
}

/* ========= Compact Profile Card ========= */
.profile-preview {
  max-width: 720px;
  border-radius: var(--radius);
  background: rgba(26,28,39,0.88);
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  /* allow dropdown overflow */
  overflow: visible;
  position: relative;
  padding-bottom: 6px;
}

/* ========================= 
   Keep profile-preview box theme-independent 
   ========================= */
#profile-preview-box.theme-isolated, #profile-preview-box.theme-isolated * {
  /* override the theme variables used inside the profile preview */
  --bg: #0b0e14;
  --panel: #11141c;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --muted: #6b7280;
  --border: rgba(255,255,255,0.06);
  --radius: 8px;
  --text: #e5e7eb;
}

/* Optional: more specific override for anything stubborn */
#profile-preview-box.theme-isolated .banner-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.16), rgba(26,28,39,0.9));
}

/* Banner: separated class for image */
.bannerp {
  position: relative;
  height: 230px;
  overflow: hidden;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
  display: block;
}

/* overlay sits above banner image (lower than upload buttons) */
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.16), rgba(26,28,39,0.9));
  display: flex;
  align-items: center;
  padding: 14px;
  gap: 10px;
  z-index: 2;
  pointer-events: auto;
}

/* upload container moved to bottom-right; pointer-events enabled */
.upload-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  z-index: 60; /* on top of overlay */
}

/* smaller clickable 'chip' */
.upload-btn .circle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, color .12s ease;
  color: #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
}

.upload-btn .circle:hover, .upload-btn .circle:focus {
  transform: translateY(-2px);
  color: #fff;
  outline: none;
}

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




.modern-toggle-group .toggle-label.big {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s ease;
}

.toggle-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

#status-icon {
  font-size: 1.55rem;
  transition: color 0.3s ease;
}

.toggle-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.toggle-subtitle {
  font-size: 0.89rem;
  opacity: 0.78;
  display: block;
  margin-top: 3px;
  line-height: 1.4;
}


















/* Beta Badge - Modern & Clean */
.beta-badge2 {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  line-height: 1;
}

.beta-badge-container2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Make it look consistent in the menu */
.menu-option .beta-badge-container2 {
  margin-left: auto;
}

/* Optional: subtle glow on hover */
.menu-option:hover .beta-badge2 {
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}




/* Avatar wrapper */
.avatar-wrapper {
  position: relative;
  display: inline-block;
}

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--card);
  object-fit: cover;
}

/* Status Dot - Discord style */
.status-dot {
  position: absolute;
  bottom: 2px;
  right: 1px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 2px solid #0b0d17;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 100;
}

/* Status colors */
.status-dot[data-status="online"]   { background: #22c55e; }
.status-dot[data-status="idle"]     { background: #eab308; }
.status-dot[data-status="dnd"]      { background: #ef4444; }
.status-dot[data-status="offline"]  { background: #6b7280; }

.status-dot:hover {
  transform: scale(1.18);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.25);
}

/* Sleek tooltip - positioned BELOW the dot */
.status-dot::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  margin-top: 10px;
  background: rgba(15, 17, 25, 0.96);
  color: #ffffff;
  font-size: 0.61rem;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 10px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s cubic-bezier(0.4, 0.0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  letter-spacing: 0.2px;
  z-index: 200;
}

/* Small arrow pointing UP to the dot (from below) */
.status-dot::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  margin-top: 6px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid rgba(15, 17, 25, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s cubic-bezier(0.4, 0.0, 0.2, 1);
  z-index: 200;
}

/* Hover animation - smooth pop-up from below */
.status-dot:hover::after,
.status-dot:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}




















/* Container for all banner action buttons */
.banner-actions2 {
  position: absolute;
  right: 16px;           /* a bit more breathing room from edge */
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;             /* ← this creates nice spacing between buttons */
  z-index: 6;
  pointer-events: auto;
}

/* All buttons share this style – identical appearance */
.banner-actions2 .circle {
  width: 30px;
  height: 30px;
  border-radius: 50px;          /* modern soft corner */

  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--accent);
  cursor: pointer;
  transition: all 0.14s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.45);
  backdrop-filter: blur(3px);
}

.banner-actions2 .circle:hover,
.banner-actions2 .circle:focus-visible {
  transform: translateY(-2px) scale(1.04);
  background: rgba(20, 20, 35, 0.8);
  color: var(--accent);
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  outline: none;
}

.banner-actions2 .circle:active {
  transform: translateY(0) scale(0.97);
}

/* Optional: slightly bigger icon for better touch targets */
.banner-actions2 .circle i {
  font-size: 13px;
}








/* Tooltip base styles */
.banner-actions2 .circle {
  position: relative;           /* ← very important for positioning tooltip */
}

.banner-actions2 .circle::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) scale(0.92);
  padding: 7px 12px;                /* slightly bigger padding */
  margin-bottom: 10px;

  background: rgba(30, 30, 45, 0.90);  /* lighter + less opacity */
  color: var(--accent);
  font-size: 13px;                      /* bigger text */
  font-weight: 600;                     /* bolder */
  letter-spacing: 0.25px;
  white-space: nowrap;
  border-radius: 8px;                   /* softer corners look nicer */
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);

  opacity: 0;
  pointer-events: none;

  transition: 
    opacity 0.22s ease,
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Arrow – match the new background color */
.banner-actions2 .circle::before {
  border-top-color: rgba(30, 30, 45, 0.90);
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 4px;           /* align with tooltip bottom */

  border: 6px solid transparent;
  border-top-color: rgba(20, 20, 35, 0.92);  /* match tooltip bg */

  opacity: 0;
  transition: 
    opacity 0.22s ease 0.05s,   /* tiny delay → feels polished */
    transform 0.22s ease;
}

/* Hover/focus state */
.banner-actions2 .circle:hover::after,
.banner-actions2 .circle:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.banner-actions2 .circle:hover::before,
.banner-actions2 .circle:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Optional: tiny delay before showing (avoids flicker on quick hover) */
.banner-actions2 .circle::after,
.banner-actions2 .circle::before {
  transition-delay: 0.08s;      /* feel free to tweak 60–140ms */
}

.banner-actions2 .circle:hover::after,
.banner-actions2 .circle:hover::before {
  transition-delay: 0s;
}






.lock-icon {
  position: relative;
  display: inline-block;
  transition: transform 0.25s ease;
}

/* The background circle that appears on hover */
.lock-icon::before {
  content: '';
  position: absolute;
  inset: -10px;                /* creates space around the icon */
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.28s ease;
  z-index: -1;
  pointer-events: none;
}

/* Hover state */
.lock-icon:hover {
  transform: scale(1.1);       /* slightly bigger */
}

/* Show & animate circle on hover */
.lock-icon:hover::before {
  opacity: 1;
  transform: scale(1);
}





/* Avatar Column */
.avatar-column {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-right: 4px;
}

/* Profile Avatar */
.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--panel);
  object-fit: cover;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.35);
  transition: transform .12s ease;
  z-index: 22;
}

.profile-avatar:hover {
  transform: scale(1.02);
}

/* Avatar Upload Button - Centered overlay */
.avatar-upload {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .12s ease;
  z-index: 41;
  pointer-events: none;
}

/* Show on hover */
.avatar-column:hover .avatar-upload {
  opacity: 1;
  pointer-events: auto;
}

/* Upload button style */
.avatar-upload .mini {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all .12s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.avatar-upload .mini:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.08);
}

/* Profile info compact */
.banner-row {
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: center;
}

.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preview-username {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.username-info {
  font-size: 11px;
  color: var(--muted);
}

.preview-name {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  gap: 6px;
  align-items: center;
}

.preview-text {
  overflow: hidden;
  max-width: 100%;
}

.preview-desc,
#desc-wrap {
  font-size: 11px;
  color: var(--muted);
  max-width: 100%;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  hyphens: auto;
}

.preview-desc:hover,
#desc-wrap:hover {
  -webkit-line-clamp: unset;
  overflow: visible;
  cursor: default;
  transition: all 0.2s ease;
}

.preview-desc,
#desc-wrap {
  max-height: 2.6em;
  overflow: hidden;
}

/* accept/cancel tiny buttons for inline edits */
.inline-actions {
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
}

.act-btn {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
}

.act-btn.save {
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  color: #fff;
  border: none;
}

.act-btn.cancel {
  background: rgba(255,255,255,0.02);
  color: var(--muted);
}

/* tiny inline edit icons (pen) */
.inline-edit-icon {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: background .12s;
  background: none;
  border: none;
}

.inline-edit-icon:hover {
  color: var(--accent);
}

/* socials compact */
.profile-socials {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  align-items: center;
}



.username-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.username-badge:hover {
  transform: scale(1.12);
  background: rgba(255,255,255,0.18);
}

.verified-by-server {
  /*box-shadow: 0 0 0 2px rgba(29, 155, 240, 0.3);*/
}



/* Badge manager improvements */
.username-badge {
  transition: all 0.2s ease;
}
.username-badge:hover {
  transform: scale(1.08);
  filter: brightness(1.15);
}

/* Remove button nicer */
#displayed-list .username-badge + div {
  transition: all 0.2s ease;
}



.social-pill {
  width: 24px;
  height: 24px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: grab;
  font-size: 11px;
}

.social-pill.dragging {
  opacity: .6;
  transform: scale(.98);
}

/* social editor */
.social-editor {
  margin-top: 6px;
  display: flex;
  gap: 6px;
  align-items: center;
  background: rgba(255,255,255,0.02);
  padding: 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.social-editor input {
  padding: 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

/* preview tags compact */
.preview-tags {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.tag-box {
  padding: 4px 8px;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--border);
}

/* links container compact */
.profile-links {
  padding: 10px;
  display: flex;
  flex-direction: column;
}

/* link card */
.link-card {
  border-radius: 8px;
  overflow: visible !important;
  background: rgba(255, 255, 255, 0.01); /*linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));*/
  display: flex;
  flex-direction: column;
  transition: transform .12s, box-shadow .12s;
  position: relative;
  margin-bottom: 10px;
  border: 2px solid var(--border);
}

.link-card:hover {
  transform: translateY(-4px);
}

.link-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #111;
}

.link-content {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
}

.link-icon {
  width: 33px;
  height: 33px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(25, 29, 32, 0.61);
  color: var(--accent);
  font-size: 12px;
  flex-shrink: 0;
}

.link-text h4 {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  font-weight: 800;
}

.link-text p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted);
}




.link-card .media-preview,
.link-card .link-img-container {
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}




.share {
  margin-left: auto;
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  padding: 4px;
  border-radius: 6px;
}

.card-actions {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-top: 1px solid rgba(255,255,255,0.02);
  justify-content: flex-end;
  background: rgba(0,0,0,0.02);
}

.btn.icon {
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
}

.btn.icon.edit {
  background: rgba(90,141,238,0.06);
  color: var(--accent);
}

.btn.icon.del {
  background: rgba(255,50,80,0.06);
  color: #ff7a88;
}

/* Link editor container */
.link-editor {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.02);
  width: 100%; /* full width */
  box-sizing: border-box;
  max-width: 480px; /* optional max width for larger screens */
  margin: 0 auto; /* center on larger screens */
}

/* Style inputs */
.link-editor input, .link-editor select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  height: 36px;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
  width: 100%; /* full width for mobile */
}

/* Focus state */
.link-editor input:focus, .link-editor select:focus {
  border: 1px solid var(--border);
  outline: none;
}

/* Row layout */
.link-editor .row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap; /* allow inputs to wrap on small screens */
}

/* Inputs inside row */
.link-editor .row .input-group {
  flex: 1 1 100%; /* full width by default */
  display: flex;
  flex-direction: column;
  min-width: 0; /* prevent overflow */
}

/* Optional: make inputs sit side by side on larger screens */
@media (min-width: 480px) {
  .link-editor .row .input-group {
    flex: 1 1 calc(50% - 3px); /* two columns with gap */
  }
}

/* Mobile only - smaller screens (typically under 768px) */
@media (max-width: 767px) {
    .link-text h4 {
        font-size: 12px;  /* slightly larger than 10px for better readability */
        line-height: 1.4;
    }

    .link-text p {
        font-size: 11px;  /* slightly larger than 9px – 9px is very hard to read */
        line-height: 1.4;
    }
}

/* Extra small phones (optional – if you really need tiny text) */
@media (max-width: 480px) {
    .link-text h4 {
        font-size: 11px;
    }

    .link-text p {
        font-size: 10px;
    }
}

/* Upload box styling */
.link-editor .upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px dashed rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  margin-top: 4px;
  background-color: var(--panel);
}

.link-editor .upload-box.dragover {
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.03);
}

/* Image preview */
.link-editor .image-preview {
  position: relative;
  margin-top: 4px;
  border-radius: 6px;
  overflow: hidden;
}

.link-editor .image-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.link-editor .image-preview .remove-icon {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  padding: 2px 4px;
  cursor: pointer;
  color: white;
  font-size: 12px;
}

/* Buttons container */
.link-editor > div:last-child {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap; /* wrap buttons on small screens */
}

.link-editor button {
  flex: 1 1 auto;
  min-width: 80px;
}

/* Style the select element */
select {
  background-color: var(--panel);
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 10px; /* Match input padding for consistency */
  font-size: 14px; /* Match input font size */
  color: #333;
  cursor: pointer;
  width: 100%; /* Full width to match inputs (removed 28%) */
  height: 36px; /* Match input height */
  box-sizing: border-box;
  appearance: none; /* Remove default browser styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color 0.2s ease;
}

/* Hover and focus states for select */
select:hover, select:focus {
  border-color: #666;
  outline: none;
}

/* Style the dropdown arrow (optional, using a pseudo-element) */
select {
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23666" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center; /* Adjusted for smaller padding */
  background-size: 12px;
}

/* Style the option elements */
select option {
  /*background-color: var(--dropdown-bg); /* Dark background for dropdown */
  color: var(--dropdown-text); /* Light text for readability on dark bg */
  font-size: 14px; /* Match select font size */
  padding: 6px 10px; /* Match padding */
}

/* Hover effect for options (browser support varies) */
select option:hover {
  background-color: var(--dropdown-hover); /* Darker hover */
}




.device-item {
  &:hover {
    background: rgba(30,41,59,0.6);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-1px);
  }
}

.device-tag {
  transition: all 0.2s ease;
  white-space: nowrap;
}

.current-device .device-tag {
  background: #22c55e22;
  color: #22c55e;
  border-color: #22c55e44;
  font-weight: 600;
}




/* Theme Dropdown - Professional & Smart Positioning */
.theme-dropdown {
  position: relative;
  display: inline-block;
  margin-top: 4px;
  z-index: 10;
}

/* Button */
.theme-dropdown-btn {
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.28);
  padding: 8px 12px;
  border-radius: 8px;
}

.theme-dropdown-btn:focus {
  outline: 3px solid rgba(59,130,246,0.18);
  outline-offset: 2px;
}

.theme-caret {
  transition: transform 0.18s ease;
}

.theme-dropdown-btn[aria-expanded="true"] .theme-caret {
  transform: rotate(180deg);
}











/* Popup - Smart positioning: below by default, above if near bottom */
.theme-popup {
  position: absolute;
  left: 0;
  width: 300px;
  max-height: 40vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  z-index: 99999 !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;

  /* Default: open below */
  top: 100%;
  margin-top: 8px;
}

/* Open above when near bottom of viewport */
.theme-popup.above {
  bottom: 100%;
  top: auto;
  margin-bottom: 8px;
  transform: translateY(8px);
}

.theme-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  background: var(--bg);
}

/* Scrollbar - Premium look */
.theme-popup::-webkit-scrollbar {
  width: 6px;
}
.theme-popup::-webkit-scrollbar-track {
  background: transparent;
}
.theme-popup::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}
.theme-popup::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}



































/* Search bar */
.theme-search-container {
  padding: 12px 16px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.theme-search-container i {
  position: absolute;
  left: 28px;
  top: 24px;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}

#theme-search-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

#theme-search-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}





/* Empty states */
.theme-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

.theme-empty i {
  margin-bottom: 16px;
  opacity: 0.4;
}

















/* Sidenav overlay */
.sidenav-overlay {
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Sidenav panel */
.theme-sidenav {
  left: -450px; /* hidden start */
  transition: left 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

/* Inside sidenav – adjust spacing/font */
.theme-detail-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.theme-detail-preview {
  height: 220px;
  border-radius: 12px;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.6);
}

.theme-detail-right h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.theme-description {
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 20px;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.color-swatch {
  height: 60px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.preview-notice {
  padding: 12px;
  background: rgba(99,102,241,0.15);
  border-radius: 8px;
  color: #a5b4fc;
  text-align: center;
  margin-top: 20px;
}

/* Menu dropdown */
.sidenav-menu {
  background: rgba(30,30,45,0.98);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.menu-item {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.menu-item:hover {
  background: rgba(255,255,255,0.08);
}

.menu-item.danger:hover {
  background: rgba(239,68,68,0.15);
}

























/* Theme Items */
.theme-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-item:hover {
  background: rgba(255,255,255,0.05);
}

.theme-item.active {
  background: rgba(59,130,246,0.15);
  border: 1px solid var(--accent);
}

.theme-preview {
  width: 60px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.theme-info {
  flex: 1;
}

.theme-name {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;          /* or 160px / 200px / whatever fits your design */
}

.custom-badge {
  font-size: 10px;
  background: var(--accent);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.custom-add {
  border: 2px dashed var(--border);
  justify-content: center;
}

.add-preview {
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 20px;
}

/* Mobile */
@media (max-width: 720px) {
  .theme-popup {
    width: 92vw !important;
    max-width: 420px;
    left: 50% !important;
    transform: translateX(-50%) translateY(-8px);
  }

  .theme-popup.show {
    transform: translateX(-50%) translateY(0);
  }

  .theme-item {
    padding: 12px 8px;
  }

  .theme-preview {
    width: 48px;
    height: 36px;
  }
}









/* Scrollbar - Clean, no bg color on hover, premium slim look */
.theme-popup::-webkit-scrollbar {
  width: 6px;                    /* slim width */
}

.theme-popup::-webkit-scrollbar-track {
  background: transparent;       /* always fully transparent */
  margin: 4px 0;                 /* tiny padding top/bottom for better feel */
}

.theme-popup::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);   /* very subtle light gray-white */
  border-radius: 3px;
  transition: background 0.2s ease;
}

.theme-popup::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);   /* only gets brighter/more visible — NO color change */
}

/* Firefox support (clean & consistent) */
.theme-popup {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

/* Optional: make it even more invisible when not scrolling */
.theme-popup:not(:hover)::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);   /* almost invisible until hover/scroll */
}
































/* ============================================================================
   Popup - Base styles
   ============================================================================ */
.theme-popup {
  position: absolute;
  width: 300px;
  max-height: 60vh;               /* ← desktop: generous but capped – tweak to 55vh/65vh/70vh if preferred */
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 6px 8px 8px;      /* slightly more right padding for scrollbar comfort */
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  z-index: 99999 !important;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.22s ease,
    transform 0.22s cubic-bezier(0.22, 0.8, 0.1, 1),
    visibility 0.22s;
}

/* Default: appear below */
.theme-popup {
  top: 100%;
  left: 0;
  margin-top: 10px;
  transform: translateY(-12px) scale(0.96);
}

/* Opening state */
.theme-popup.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  max-height: 35vh;
  background: var(--bg);
}

/* Flip to above – only on larger screens */
@media (min-width: 721px) {
  .theme-popup.above {
    top: auto;
    bottom: 100%;
    margin-bottom: 10px;
    margin-top: 0;
    
    transform: translateY(12px) scale(0.96);
  }

  .theme-popup.above.show {
    transform: translateY(0) scale(1);
  }
}

/* ============================================================================
   Mobile / small screen adjustments
   ============================================================================ */
@media (max-width: 720px) {
  .theme-popup {
    left: 50% !important;
    top: 100% !important;
    bottom: auto !important;
    transform: translateX(-30%) translateY(-12px) scale(0.96);
    margin-top: 12px;

    width: 92vw;
    max-width: 380px;
    min-width: 300px;
    max-height: 55vh;

    /* Mobile: fixed height + scrollbar */
    height: 55vh;                 /* ← your mobile fixed value – change to 50/60/65vh as needed */
    
    overflow-y: auto;

    background: var(--bg);        /* usually darker/more opaque on mobile */
  }

  .theme-popup.show {
    transform: translateX(-30%) translateY(0) scale(1);
  }

  /* Force no "above" flip on mobile */
  .theme-popup.above,
  .theme-popup.above.show {
    bottom: auto !important;
    top: 100% !important;
    transform: translateX(-30%) translateY(0) scale(1) !important;
  }
}

/* ============================================================================
   Items & visuals
   ============================================================================ */
.theme-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease;
}

.theme-item:hover {
  background: rgba(255,255,255,0.06);
}

.theme-item.active {
  background: rgba(59,130,246,0.12);
  border: 1px solid var(--accent);
}

.theme-preview {
  width: 60px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.theme-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================================
   Scrollbar – clean & modern
   ============================================================================ */
.theme-popup::-webkit-scrollbar {
  width: 6px;
}
.theme-popup::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px 0;
}
.theme-popup::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.20);
  border-radius: 3px;
}
.theme-popup::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.45);
}

/* Firefox */
.theme-popup {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.22) transparent;
}

/* Optional: subtle until hover (desktop users usually like this) */
.theme-popup:not(:hover)::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.10);
}







/* ── Billing portal loading state ───────────────────────────────────── */
.billingportal-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.75;
  cursor: wait;
  pointer-events: none;
}

.billingportal-loading::after {
  content: '';
  width: 1.1em;
  height: 1.1em;
  border: 2.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: billingportal-spin 0.9s linear infinite;
}

@keyframes billingportal-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Optional: slightly smaller text while loading */
.billingportal-loading span {
  opacity: 0.9;
}










.preview-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.preview-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  border-bottom: 4px;
  cursor: default;
  transform: translateY(-2px);
}


.preview-tag small {
  font-size: 10px;
  color: var(--muted);
  margin-left: 4px;
}



.preview-tag:hover {
  background: rgba(255,255,255,0.08);
}

.preview-tag:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.tag-preview {
  width: 28px;
  height: 18px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.tag-name {
  font-weight: 600;
}

.preview-tag:hover {
  background: rgba(255,255,255,0.08);
}












/* Tooltip - Appears above on desktop, stays when hovering tooltip itself */
.theme-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  margin-bottom: 12px;
  width: 280px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
}

/* Only show on hover — desktop behavior */
.preview-tag:hover .theme-tooltip,
.theme-tooltip:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-8px);
  pointer-events: auto;
}

/* Arrow pointing down (tooltip is above) */
.theme-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--border);
}

.theme-tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-1px);
  border: 7px solid transparent;
  border-top-color: var(--panel);
}

/* ──────────────────────────────────────────────
   MOBILE: completely disable / hide tooltip
─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .theme-tooltip {
    display: none;                    /* strongest way — removes from layout */
    /* 
      Alternative options if you ever want to keep structure:
      opacity: 0 !important;
      visibility: hidden !important;
      pointer-events: none !important;
    */
  }

  /* Make sure hover rules have no effect */
  .preview-tag:hover .theme-tooltip,
  .theme-tooltip:hover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* ──────────────────────────────────────────────
   Tooltip inner content styles (unchanged)
─────────────────────────────────────────────── */
.tooltip-preview {
  width: 100%;
  height: 100px;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.tooltip-info h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.tooltip-info p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.tooltip-colors {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.color-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.color-line span {
  color: var(--muted);
  min-width: 70px;
}

.color-line code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
}

.copy-btn:hover {
  color: var(--accent);
  background: rgba(59,130,246,0.1);
}

















































.toast {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.toast__icon {
  font-size: 15.5px;           /* smaller icons */
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.toast__message {
  flex: 1;
  margin-top: 1px;             /* tiny vertical tweak for perfect balance */
}

/* Optional modern accent colors */
.toast--success { background: rgba(16, 185, 129, 0.96); }
.toast--error   { background: rgba(234, 68, 68, 0.96); }
.toast--warning { background: rgba(245, 158, 11, 0.96); color: #111827; }


/* Errors / info box */
.errors-box {
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  padding: 8px;
  font-size: 13px;
  color: var(--text);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  margin: 10px 0 15px;
}

.errors-box .errors-title {
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

/* Change panel (sliding / popover style) */
.changes-panel {
  position: absolute;
  right: 12px;
  top: calc(100% + 10px);
  width: 360px;
  max-height: 360px;
  overflow: auto;
  background: var(--panel, rgba(26,28,39,0.98));
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 10px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
  z-index: 200;
}

.change-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.change-key {
  width: 110px;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}

.change-val {
  flex: 1;
  font-size: 13px;
  color: var(--text);
}

.change-actions {
  display: flex;
  gap: 6px;
  margin-left: 8px;
  align-items: center;
}

/* reverted state */
.change-prev {
  color: rgba(255,255,255,0.45);
  font-size: 12px;
}

/* small badge */
#changes-count {
  background: rgba(255,255,255,0.04);
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 12px;
}

/* responsive */
@media (max-width: 720px) {
  .bannerp {
    height: 190px;
  }

  .profile-avatar {
    width: 52px;
    height: 52px;
  }

  .link-img {
    height: 140px;
  }

  .link-content {
    padding: 6px;
  }

  .logo {
    display: none;
  }
}


/* ==== Unified style for every tool button on the right ==== */
.right-tools .tool-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;               /* a bit more spacious than 6px */
  border: 1px solid var(--border);
  border-radius: 6px;               /* slightly rounder = modern */
  background: var(--bg-secondary);
  position: relative;
  cursor: pointer;
  transition: all 0.22s ease;       /* smooth hover */
  margin-top: 4px;                  /* consistent vertical spacing */
}

.right-tools .tool-item:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);      /* tiny lift on hover */
}

.right-tools .tool-item i {
  font-size: 16px;
  width: 20px;              /* fixes alignment when there's a counter next to it */
  text-align: center;
}

/* The view counter sits next to the eye icon (only analytics has it) */
#analytics-box span.counter {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.9rem;
}


/* Hide non-essential icons on mobile (keep only analytics/views) */
@media (max-width: 768px) {
  #info-box,
  #updates-box,
  #security-box,
  #community-box {
    display: none !important;
  }
  
  /* On mobile the analytics button can be a bit smaller */
  #analytics-box {
    padding: 6px 10px;
  }
}











.toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text);
  user-select: none;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--panel);
  transition: .3s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--p);
}
input:checked + .slider:before {
  transform: translateX(22px);
}














/* utilities */
.hidden {
  display: none !important;
}

.btn.small {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 6px;
  background: var(--p);
  color: #fff;
  border: none;
  cursor: pointer;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.label-top-box {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  background: var(--panel);
}

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

.logo-wrapper {
  flex-shrink: 0;
}

.label-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
}

.label-text h3 {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.label-text p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.menu-icon {
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
}

.artist-management-menu h3 {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
  margin-bottom: 8px;
}

.artist-management-menu .menu-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--border);
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.artist-management-menu .menu-option:hover {
  background: var(--accent);
  color: #fff;
}

.artist-management-subsection {
  padding: 16px;
  border-radius: var(--radius);
}

.members-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.member-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 12px;
  flex: 1 1 220px;
}

.member-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
}

.member-text h4 {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.member-text p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.member-menu {
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
}






/* ====================== MODERN SUPPORT SECTION ====================== */
.support-section {
  padding: 16px;
}

.support-hub {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

/* Tabs */
.support-tabs {
  display: flex;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  flex: 1;
  padding: 14px 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}
.tab-btn.active {
  color: var(--primary);
}
.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
}
.tab-btn:hover:not(.active) {
  color: var(--text);
}

/* Tab Content */
.tab-content {
  padding: 20px;
}
.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}
.tab-pane.active {
  display: block;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* FAQ Minimal */
.faq-minimal .faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 14px 0;
}
.faq-minimal .faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 4px 0;
}
.faq-q i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}
.faq-item.active .faq-q i {
  transform: rotate(180deg);
  color: var(--primary);
}
.faq-a {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s ease;
}
.faq-item.active .faq-a {
  max-height: 120px;
  margin-top: 12px;
}
.faq-more {
  text-align: center;
  margin-top: 16px;
}
.faq-more a {
  color: var(--primary);
  font-size: 0.9rem;
  text-decoration: none;
}
.faq-more a:hover { text-decoration: underline; }

/* Contact Form */
.support-form .input,
.support-form textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 0.95rem;
}
.support-form textarea { resize: vertical; }
.support-form .btn {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  font-weight: 600;
  gap: 10px;
}

/* Quick Links Grid */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.quick-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  color: var(--text);
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
}
.quick-card i {
  font-size: 1.6rem;
  margin-bottom: 8px;
  display: block;
  color: var(--primary);
}
.quick-card span {
  font-weight: 600;
  font-size: 0.92rem;
}
.quick-card:hover {
  transform: translateY(-4px);
  background: rgba(16,185,129,0.12);
  border-color: var(--primary);
}
.quick-card .badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--success);
  color: black;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
}

/* Mobile */
@media (max-width: 600px) {
  .support-tabs { font-size: 0.9rem; }
  .tab-content { padding: 16px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
}






/* Theme cards container */
.theme-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
}

/* Individual theme card */
.theme-card {
  flex: 1 1 200px;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
}

/* Hover animation */
.theme-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  border-color: var(--accent);
}

/* Icon on card */
.theme-icon {
  font-size: 40px;
  margin-bottom: 12px;
  transition: transform 0.3s;
}

.theme-card:hover .theme-icon {
  transform: scale(1.2) rotate(10deg);
}

/* Card headings */
.theme-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--text);
}

/* Card description */
.theme-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

/* Select button */
.theme-card .select-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.theme-card .select-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* Active selection */
.theme-card.active {
  border: 2px solid var(--accent);
  box-shadow: 0 10px 25px rgba(59,130,246,0.4);
}

/* Hide the button when active */
.theme-card.active .select-btn {
  display: none;
}

/* Show "Selected" text when active */
.theme-card.active .selected-text {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
}

/* Optional: subtle animation for selected text */
.theme-card.active .selected-text {
  animation: pop 0.3s ease-out;
}

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

/* STATS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: 16px; /* bigger */
}

.stat-card {
  background: var(--panel);
  padding: 16px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-card i {
  font-size: 18px;
  color: var(--accent); /* bigger */
}

.stat-card h3 {
  font-size: 18px; /* bigger */
}

.stat-card p {
  font-size: 14px;
  color: var(--muted); /* bigger */
}

/* FORMS */
.card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
}

#profile-preview-box.card {
  padding: 0;
  background: var(--card-bg);
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--border);
}

.card h2 {
  font-size: 16px;
  margin-bottom: 12px;
}

.form-group {
  margin-bottom: 12px;
}


.input {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: var(--radius);
  background: var(--border);
  color: var(--text);
  font-size: 14px; /* bigger */
}

.input:focus {
  outline: 1px solid var(--accent);
}

.small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* BUTTONS */
.btn {
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px; /* bigger */
}

.btn.danger {
  background: #ef4444;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9000;
}

.modal-overlay.hidden {
  display: none;
}

.modal {
  background: var(--panel);
  border-radius: var(--radius);
  width: 100%;
  max-width: 420px;
  padding: 16px;

  margin: 50px;
  padding: 15px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.modal-header h2 {
  font-size: 16px;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}





/* MOBILE OPTIMIZED */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  /* Main content spacing */
  .dashboard {
    padding: 20px;
    margin-top: 10px;
  }

  /* Stats & links smaller */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-card {
    padding: 10px;
    gap: 6px;
  }

  .links-section {
    padding: 10px;
  }

  .link-card {
    font-size: 11px;
  }

  .preview-desc {
    font-size: 10px;
  }

  .preview-name {
    font-size: 14px;
  }

  .modal {
    margin: 10px;
  }
}

/* Remove default focus outline/box-shadow on pointer (mouse/touch) focus */
:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* Keep a visible focus ring for keyboard users (accessible) */
:focus-visible {
  outline: 2px solid #2563eb; /* customize color/size or use transparent if you truly want none */
  outline-offset: 2px;
  box-shadow: none;
}

/* Apply to all form controls */
input, textarea, select, button {
  padding: 0.5rem;
  border-radius: 10px;
  transition: box-shadow .12s ease, outline .12s ease, border-color .12s ease;
  background: transparent;
  color: white;
  border: 1px solid var(--border);
}

/* If you want *no* visible border on click/focus for all controls (not recommended for accessibility) */
input:focus, textarea:focus, select:focus, button:focus {
  outline: none;
  box-shadow: none;
  border-color: transparent;
}

/* Optionally remove inner highlight in Firefox */
input:-moz-focusring, textarea:-moz-focusring, select:-moz-focusring {
  outline: none;
}

/* Example: remove focus ring only on clicks (pointer down) but show on keyboard */
html[data-ux-mode="pointer"] :focus {
  outline: none;
  box-shadow: none;
}

/* basic form inputs */
.editor-panel, .modal2 {
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  color: var(--text);
}

.editor-panel {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* inputs */
input[type="text"],
textarea,
select {
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 50px;
  color: var(--text);
  font-size: 13px;
  width: 100%;
  outline: none;                     /* already removes the default browser outline */
  transition: none;                  /* disables all transitions */
}

/* Completely remove any focus styles */
input[type="text"]:focus,
textarea:focus,
select:focus {
  border-color: rgba(255,255,255,0.04) !important;   /* same as normal state */
  box-shadow: none !important;
  outline: none !important;
}

input[type="text"]:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: rgba(255,255,255,0.04) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* form labels */
label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}

/* small helper / tips text */
.tips {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

/* modern pills for social icons */
.social-pill {
  /*background: rgba(255,255,255,0.02);*/
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}

.social-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(2,6,23,0.45);
}






/* modal header */
.modal-header {
  display: flex;
  align-items: flex-start;        /* ← THIS is the key: align to top */
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
}

/* Title wrapper: title and close button on same line, subtitle below */
.modal-header .title-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0; /* allows long titles to truncate */
}

/* This inner row keeps title + future buttons on the same line */
.modal-header .title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

/* Title itself */
.modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Subtitle goes under the title row */
.modal-subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  width: 100%;
}

/* Close button – stays perfectly aligned with title */
.close-btn {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 28px;        /* slightly bigger × looks better */
  line-height: 1;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.close-btn:hover {
  color: var(--text);
}

.close-btn:focus-visible {
  outline: 2px solid var(--focus-ring, #5b8cff44);
  outline-offset: 2px;
}





/* Base layout */
.box-preview-username {
  display: flex;
  align-items: center;
  gap: 8px;

  /* Default state */
  background: transparent;
  border-radius: 0;
  padding: 0;
  width: fit-content;
  cursor: pointer;

  /* Smooth transitions */
  transition:
    background 0.22s ease,
    border-radius 0.22s ease,
    padding 0.22s ease,
    width 0.22s ease;
}

/* Hover state – visual change */
.box-preview-username:hover {
  background: rgba(16, 17, 17, 0.71);
  border-radius: 50px;
  padding: 4px 10px;
  width: fit-content;
}

/* -------------------------------------------------
   Info text – hidden by default, fade in on hover
   ------------------------------------------------- */
.username-info {
  overflow: hidden;
  max-width: 0;
  white-space: nowrap;
  opacity: 0;
  transition:
    max-width 0.25s ease,
    opacity 0.22s ease 0.05s,
    margin-left 0.22s ease;
  margin-left: 0;
}

.box-preview-username:hover .username-info {
  max-width: 300px;     /* adjust as needed */
  opacity: 1;
  margin-left: 8px;     /* space between username & info */
}

/* Optional: style the small text */
.username-info small {
  font-size: 0.65rem;
  color: #aaa;
}

/* Primary / destructive buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 50px;
  border: 1px solid transparent;
  background: rgba(13, 14, 15, 0.98);
  color: var(--text2);
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  
  /* Remove default focus ring and prevent flash */
  outline: none;
  box-shadow: none;
  
  /* Smooth transitions */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Optional: nice focus style (recommended for accessibility) */
.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);   /* or any color you like */
  outline-offset: 2px;
}

/* Keep the old :focus rule if you want, but :focus-visible is better */
.btn:focus {
  outline: none;
}

.btn.primary {
  color: white;
  border: none;
  background-color: var(--p);

  border-radius: 50px;
  padding: 10px 15px;
}



.btn.ghost {
  border: 1px solid var(--panel);
}

.btn.danger {
  background: linear-gradient(90deg, rgba(255,107,107,0.15), rgba(255,107,107,0.08));
  color: var(--danger);
  border: 1px solid rgba(255,107,107,0.12);
}

/* upload box (large modern area) */
.upload-box {
  display: flex;
  gap: 12px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255,255,255,0.06);
  padding: 28px;
  border-radius: 10px;
  min-height: 112px;
  cursor: pointer;
  transition: background .12s, transform .12s;
  text-align: center;
}

.upload-box:hover {
  transform: translateY(-3px);
  background: var(--panel-alt);
}

.upload-box.dragover {
  background: rgba(91,140,255,0.06);
  border-color: rgba(91,140,255,0.45);
}

.upload-box i.fa-upload {
  font-size: 20px;
  color: var(--primary);
}

/* preview image block */
.image-preview {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: block;
}

.image-preview img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.image-preview .remove-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.image-preview .meta {
  padding: 8px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* inline edit controls (name/desc) */
.inline-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* link editor layout */
.link-editor {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-editor .row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.link-editor .input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* small screens */
@media (max-width: 900px) {
  .modal.modal--wide .modal-body {
    grid-template-columns: 1fr;
  }

  .image-preview .meta {
    flex-direction: column;
    gap: 6px;
    text-align: left;
  }



}

.save-controls {
  margin-left: auto;
  gap: 0.4rem; /* Reduced gap for compactness */
  align-items: center;
  margin: 20px 0;
}

/* Base button */
.btn2 {
  appearance: none;
  border: none;
  border-radius: 6px;
  margin-top: 10px;
  margin-right: 5px;
  padding: 0.6rem 0.8rem; /* Reduced padding for smaller size */
  font: 500 0.85rem/1.2 system-ui, sans-serif; /* Slightly smaller font */
  cursor: pointer;
  transition: 
    background-color 0.25s ease, color 0.25s ease, 
    box-shadow 0.25s ease, 
    transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem; /* Reduced gap for compactness */
  white-space: nowrap;
}

.btn2 i {
  font-size: 0.85em; /* Adjusted to match smaller font */
}

.btn2:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}

/* Hover / active effects */
.btn2:hover:not(:disabled) {
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.btn2:active:not(:disabled) {
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transform: translateY(0);
}

/* Primary Save button */
#btn-save {
  background-color: var(--p); /* Dark gray */
  color: white;
}

#btn-save:hover:not(:disabled) {
  background-color: var(--p2); /* Slightly lighter dark gray */
}

#btn-save:active:not(:disabled) {
  background-color: var(--panel); /* Slightly darker for active */
}

#btn-save.saving {
  background: repeating-linear-gradient(
    45deg,
    var(--panel),
    var(--panel) 10px,
    #222222 10px,
    #222222 20px
  );
  background-size: 200% 200%;
  animation: btn-saving-stripes 1s linear infinite;
}

@keyframes btn-saving-stripes {
  0% { background-position: 0 0; }
  100% { background-position: 40px 0; }
}

/* Secondary Cancel button */
#btn-cancel {
  background-color: var(--panel); /* Same dark gray */
  color: white;
  border: none; /* Removed border to match save button style */
}

#btn-cancel:hover:not(:disabled) {
  background-color: var(--panel); /* Slightly lighter dark gray */
}

#btn-cancel:active:not(:disabled) {
  background-color: var(--panel); /* Slightly darker for active */
}

/* Mobile sizing */
@media (max-width: 600px) {
  .btn.small {
    font-size: 0.75rem; /* Further reduced for mobile */
    padding: 0.3rem 0.6rem;
    gap: 0.25rem;
  }

  .btn i {
    font-size: 0.8em;
  }

  .btn-text {
    display: none; /* keep just icons on very tight space */
  }
}

/* Fixed positioning for PC and wide screens */
@media (min-width: 601px) {
  .save-controls {
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
  }
}

/* Danger outline variant for cancel (when discarding changes) */
#btn-cancel.danger-outline {
  background-color: transparent; /* Override to transparent for outline */
  color: #dc2626; /* red-600 */
  border: 1px solid #fca5a5; /* red-300 */
}

#btn-cancel.danger-outline:hover:not(:disabled) {
  background-color: #fef2f2; /* red-50 */
}

#btn-cancel.danger-outline:active:not(:disabled) {
  background-color: #fee2e2; /* red-100 */
}









.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}



.save-controls2 {
  display: flex;
  gap: 0.5rem;
  margin: 1.2rem 0;
  transform: translateY(-2px);
  justify-content: flex-end;   /* ← pushes to right */
  /* If you want floating bottom-right style on wide screens: */
  /* position: sticky;
     bottom: 1rem;
     right: 1rem;
     z-index: 100;
     background: var(--panel);
     padding: 0.6rem 1rem;
     border-radius: 12px;
     box-shadow: 0 4px 16px rgba(0,0,0,0.22); */
}

/* ──────────────────────────────────────── */

.btn2 {
  --size: 2.1rem;           /* main control size */

  width: var(--size);
  height: var(--size);
  min-width: var(--size);
  padding: 0;
  border: none;
  background: var(--panel);
  color: white;
  font-size: 1.1rem;        /* icon size */
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition:
    background-color 0.2s ease,
    transform    0.13s ease,
    box-shadow   0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  user-select: none;
}

.btn2:hover:not(:disabled) {
  background: var(--p);       /* your primary color */
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.btn2:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.btn2:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* Save – primary look */
#btn-save {
  background: var(--p);
  color: white;
}

#btn-save:hover:not(:disabled) {
  background: var(--p2);     /* lighter/different hover shade */
}

/* Cancel – usually more subtle */
#btn-cancel {
  background: var(--panel-darker, #2a2a2f);  /* fallback if no var */
  color: #d1d5db;           /* gray-300 */
}

#btn-cancel:hover:not(:disabled) {
  background: #3f3f46;       /* zinc-700-ish */
  color: white;
}

/* Danger mode for cancel (when about to discard big changes) */
#btn-cancel.danger,
#btn-cancel.danger:hover,
#btn-cancel.danger-outline {
  background: transparent;
  color: #f87171;            /* red-400 */
  border: 1.5px solid #f87171;
}

#btn-cancel.danger:hover:not(:disabled) {
  background: #fee2e2;       /* red-100 */
  color: #dc2626;
}

/* Saving animation (only on save button) */
#btn-save.saving {
  background: repeating-linear-gradient(
    45deg,
    var(--panel),
    var(--panel) 8px,
    #1e293b 8px,
    #1e293b 16px
  );
  background-size: 200% 200%;
  animation: saving-stripes 1.6s linear infinite;
  pointer-events: none;
}

@keyframes saving-stripes {
  to { background-position: 32px 0; }
}

/* ── Very small screens ── keep icons, shrink a bit ─────── */
@media (max-width: 500px) {
  .save-controls {
    gap: 0.4rem;
  }
  .btn2 {
    --size: 1.9rem;
    font-size: 1rem;
    border-radius: 8px;
  }
}




















/* Modern "Add Link" card – premium glow + smooth fill */
.add-link-card {
  /*--add-bg: var(--accent);
  --add-border: var(--accent);
  --add-hover-bg: var(--accent-2);
  --add-hover-border: var(--accent);*/
  --add-text: #c4c4c4;
  --add-hover-text: #ffffff;

  position: relative;
  /*display: inline-flex;*/
  align-items: center;
  gap: 8px;
  padding: 12px;
  margin-top: 30px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--add-text);
  /*background: var(--add-bg);
  border: 1.5px dashed var(--add-border);*/
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  user-select: none;
  z-index: 1;
}



/* When the card is being edited — fade out its original look */
.link-card.editing {
  background: transparent !important;
  border: 2px dashed rgba(255,255,255,0.12) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* Smooth transition for background, border, shadow */
.link-card {
  transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  transition-property: background, border, box-shadow, transform;
}






/* Subtle inner glow on hover */
.add-link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    var(--accent) 0%, 
    var(--accent2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
}

/* Icon pulse + text */
.add-link-card i {
  font-size: 1.05em;
  transition: transform 0.25s ease;
  margin-right: 0.3rem;
}

/* Hover state – beautiful fill + glow */
.add-link-card:hover {
  color: var(--add-hover-text);
  /*border-color: var(--add-hover-border);
  border-style: solid;
  box-shadow: 0 6px 20px var(--panel);*/
  transform: translateY(-2px);
}

.add-link-card:hover::before {
  opacity: 1;
}

.add-link-card:hover i {
  transform: scale(1.15);
}

/* Active / click feedback */
.add-link-card:active {
  transform: translateY(0);
  transition: transform 0.1s, box-shadow 0.1s;
  box-shadow: 0 3px 10px var(--panel);
}

/* Optional: tiny sparkle on hover (pure CSS!) */
.add-link-card::after {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 0.65em;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.35s ease;
  pointer-events: none;
}

.add-link-card:hover::after {
  opacity: 0.7;
  transform: translateX(0);
}















.link-card.dragging {
  opacity: 0.6;
  transform: scale(0.995);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.drag-handle {
  cursor: grab;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: none;
}

.drag-handle:active {
  cursor: grabbing;
}

/* make icons a little lighter on hover */
.card-actions .btn.icon:hover {
  transform: translateY(-2px);
}

/* styles.css */
.category-container {
  margin-bottom: 16px;
  border: 0.1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-radius: 4px;
}

.category-title {
  font-weight: bold;
  font-size: 16px;
}

.category-actions {
  display: flex;
  gap: 4px;
}

/*.links-container { 
  padding: 8px;
}*/









/* ——— GHOST "Add Category" Card — No background ever ——— */
.add-category {
  cursor: pointer;
  position: relative;
  padding: 16px 20px;
  margin-top: 20px;
  border-radius: 14px;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  color: #999;
  font-weight: 600;
  font-size: 0.94rem;
  text-align: center;
  overflow: hidden;

  /* Never any background */
  background: transparent !important;

  transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  transition-property: color, border-color, transform, box-shadow;
}



.add-category:hover::before {
  border-color: rgba(255, 255, 255, 0.22);
}

/* Hover → brighter text + solid border + lift */
.add-category:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

/* Icon bounce */
.add-category-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  position: relative;
  z-index: 2;
}

.add-category i {
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.add-category:hover i {
  transform: translateY(-3px) scale(1.15);
}

/* Click feedback */
.add-category:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Tiny expanding ring on click (pure magic, zero bg) */
.add-category::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border: 2px solid var(--border);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: all 0.4s ease;
}

.add-category:active::after {
  width: 120px;
  height: 120px;
  opacity: 1;
  transition: all 0.5s ease;
}







.category-container.dragging, .link-card.dragging {
  opacity: 0.5;
}

.btn.small {
  padding: 4px 8px;
  font-size: smaller;
}

.btn.ghost:hover {
  color: var(--text);
}

.social-detected {
  margin-left: 8px;
  font-size: 14px;
}






/* FIXED & RESPONSIVE VERSION */
.profile-link-container {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  max-width: 38rem; /* ~608px - generous but not insane */
  margin: 0 auto; /* optional: centers it if parent allows */
}

.profile-link-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  border-radius: calc(var(--radius) - 2px);
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;

  /* ─── Add / change these lines ─── */
  outline: none;           /* removes default outline */
  border: 1px solid transparent;   /* ← important: reserve space so layout doesn't jump */
}

.profile-link-wrapper:focus-within,
.profile-link-wrapper:focus,
.profile-link-wrapper:active {
  outline: none;
  border: 1px solid transparent;
  box-shadow: none;
}
.profile-link-input {
  background: transparent;
  border: none;
  color: var(--text);
  flex: 1;
  outline: none;
  font-family: monospace;
  font-size: 0.9375rem;     /* 15px - more readable on mobile */
  min-width: 0;             /* allows flex shrinking inside flex container */
}

.profile-link-btn {
  flex-shrink: 0;           /* prevents button from shrinking */
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0.55rem;         /* bigger tap area */
  border-radius: 0.35rem;
  transition: all 0.2s ease;
  color: var(--icon-color, #888);
}

.profile-link-btn:hover {
  background: var(--hover-bg, rgba(255,255,255,0.1));
  color: var(--text);
}

.profile-link-text {
  margin: 0;
  font-size: 0.75rem; /* 12px */
  color: var(--muted-color, #888);
  line-height: 1.4;
}

/* Optional: tiny tweak for very small screens */
@media (max-width: 380px) {
  .profile-link-wrapper {
    padding: 0.4rem 0.6rem;
    font-size: 0.875rem;
  }
  .profile-link-btn {
    padding: 0.45rem;
  }
}





.secure-info-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;                    /* even smaller */
  height: 28px;
  margin-right: 0.35rem;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: #999;
  font-size: 1rem;
  cursor: default;
  transition: all 0.2s ease;
  position: relative;
}

.secure-info-btn:hover {
  color: #f38020;
  transform: scale(1.12);
  background: rgba(243, 128, 32, 0.12);
}

/* ─── Ultra-minimal tooltip ─── */
.secure-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  white-space: nowrap;
  background: #111114;
  color: #f0f0f0;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 50px;
  border: 1px solid #222;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  pointer-events: none;
  z-index: 15;
  transition: 
    opacity 0.16s ease,
    transform 0.16s ease;
}

.secure-info-btn:hover .secure-tooltip,
.secure-info-btn:focus .secure-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(6px);
}

/* Tiny arrow */
.secure-tooltip::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #111114;
}












/* ============================================= */
/* ACCOUNT SETTINGS – FULL PROFESSIONAL CSS ONLY */
/* Mobile-first, clean, modern, accessible       */
/* ============================================= */

#account {
  --surface: var(--panel);
  --text2: #4b5563;
  --muted: #6b7280;
  --accent: #3b82f6;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;

  min-height: 100vh;
  color: var(--text);
}

/* Header */
#account .section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}
#account .section-header p {
  font-size: 0.975rem;
  color: var(--text2);
  margin: 0;
}

/* Cards & Containers */
#account .card {
  background: transparent;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Compact mode (smaller padding) */
#account .compact {
  padding: 1rem;
}

/* Account Overview – Shorter & Cleaner */
#account-overview {
  margin-bottom: 2rem;
}
#account-overview h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--text);
}

/* Responsive info grid */
#account .overview-container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1.25rem;
  align-items: center;
  font-size: 0.925rem;
}

#account .avatar-box {
  grid-row: span 4;
  align-self: start;
}
#account .avatar-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}

/* Labels & Values */
#account-overview dt {
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
#account-overview dd {
  margin: 0;
  font-weight: 500;
  color: var(--text);
  word-break: break-all;
}

/* Subscription pill */
#user-subscription {
  display: inline-block;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  max-width: fit-content;
}

/* Menu – Sidebar style on desktop, stacked on mobile */
.account-menu {
  margin-bottom: 2rem;
}
.account-menu h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text2);
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* Menu options */
.menu-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text);
  background-color: var(--panel);
  margin-top: 0.6rem;
}

.menu-option i:first-child {
  width: 20px;
  text-align: center;
}
.menu-option[data-target="delete-account"] {
  color: var(--danger);
}
.menu-option[data-target="delete-account"]:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Subsections */
.account-subsection {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}
.subsection-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.subsection-header .back-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text2);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s;
}
.subsection-header .back-btn:hover {
  background: rgba(0,0,0,0.08);
}
.subsection-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.925rem;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border 0.2s, box-shadow 0.2s;
  background: var(--surface);
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Hints */
.input-hint {
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}


/* Messages */
.msg {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}
.msg.success { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.msg.error   { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

/* Background Image Section */
#bg-preview-container,
#current-bg-preview {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
#bg-preview-container img,
#current-bg-preview img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.remove-preview-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
}

/* Warning Box */
.warning-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

/* Responsive Layout – Desktop Sidebar */
@media (min-width: 1024px) {
  #account {
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2rem;
    border-radius: 8px;
    margin: 0 auto;
  }
  .account-menu {
    position: sticky;
    top: 2rem;
    height: fit-content;
    margin-bottom: 0;
  }
  .account-subsection {
    margin-bottom: 2rem;
  }
}

/* Mobile adjustments */
@media (max-width: 640px) {
  #account {
    padding: 1rem;
  }
  .overview-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .avatar-box {
    grid-row: auto;
    justify-self: center;
    margin-bottom: 1rem;
  }
  .subsection-header h3 {
    font-size: 1.25rem;
  }
}






.newsletter-options {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1.2rem 0;
}

.newsletter-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem;
  background: rgba(0,0,0,0.03);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.newsletter-item:hover {
  border-color: var(--accent);
  background: rgba(59,130,246,0.05);
}

.newsletter-item input[type="radio"] {
  margin-top: 0.15rem;
  accent-color: var(--accent);
  width: 1.1em;
  height: 1.1em;
}

.newsletter-content strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.newsletter-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.5;
}

/* Selected state */
.newsletter-item input:checked + .newsletter-content strong {
  color: var(--accent);
}

.verified-info ul,
.verified-benefits ul {
  margin: 0.8rem 0;
  padding-left: 1.4rem;
  line-height: 1.7;
}
.verified-info h4,
.verified-benefits h4 {
  margin: 1.2rem 0 0.5rem;
  color: var(--accent);
  font-size: 1rem;
}



/* ACCOUNT OVERVIEW – MODERN, COMPACT, EXPANDABLE */
#account-overview {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  position: relative;
}

.overview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.overview-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.info-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text2);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.info-btn:hover {
  background: rgba(0,0,0,0.08);
  color: var(--accent);
}

/* Compact View – Always Visible */
.overview-compact {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  align-items: start;
}

.avatar-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.compact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.compact-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.compact-username {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.status-row {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

/* Expandable Details Panel */
.overview-details {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(0,0,0,0.03);
  border-radius: 10px;
  border: 1px dashed var(--border);
  transition: all 0.3s ease;
}

.details-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.6rem 1rem;
  font-size: 0.9rem;
  align-items: baseline;
}

.details-grid dt {
  color: var(--text2);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.details-grid dd {
  margin: 0;
  color: var(--text);
  font-weight: 500;
  word-break: break-all;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  .overview-compact {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .avatar-box {
    justify-self: center;
  }
  .avatar-box img {
    width: 84px;
    height: 84px;
  }
  .compact-info {
    align-items: center;
  }
}

@media (max-width: 640px) {
  .details-grid {
    display: block; /* or display: grid is removed */
  }
  
  .details-grid dt {
    margin: 1rem 0 0.25rem 0;
    font-size: 0.75rem;
  }
  
  .details-grid dd {
    margin: 0 0 0.8rem 0;
  }
}


/* LEVEL BADGE ON AVATAR */
.level-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--surface);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
  z-index: 10;
}

/* XP SECTION */
.xp-section {
  margin: 1rem 0 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.level-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

#user-level {
  font-weight: 800;
  color: var(--accent);
  font-size: 1.1rem;
}

.level-name {
  font-size: 0.9rem;
  color: var(--text2);
  font-weight: 600;
}

/* XP BAR */
.xp-bar {
  position: relative;
  height: 10px;
  background: rgba(0,0,0,0.1);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 6px;
  transition: width 0.8s ease;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.xp-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  line-height: 10px;
}

/* Mobile */
@media (max-width: 640px) {
  .level-title {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }
  .xp-text {
    font-size: 0.65rem;
  }
}

/* Responsive image previews — mobile + desktop perfect */
#current-bg-preview img,
#bg-preview-container img {
  width: 100%;
  height: auto;
  min-height: 280px;           /* Mobile: decent size */
  max-height: 70vh;            /* Desktop: never too tall */
  object-fit: cover;
  display: block;
  background: #0d0f15;         /* Dark fallback while loading */
  border-radius: 16px;
}

/* Mobile-specific: smaller but still full & beautiful */
@media (max-width: 480px) {
  #current-bg-preview img,
  #bg-preview-container img {
    max-height: 55vh;
    border-radius: 14px;
  }
  
  #current-bg-preview .backdrop-blur-label,
  #bg-preview-container div[style*="background:rgba(0,0,0"] {
    font-size: 0.82rem !important;
    padding: 6px 10px !important;
  }
}

/* Optional: subtle loading shimmer while image loads */
#current-bg-img,
#bg-preview-img {
  background: linear-gradient(90deg, #111 25%, #1a1a1a 50%, #111 75%);
  background-size: 200% 100%;
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}





#cookies-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--panel, #fff);
  border: 1px solid var(--border, #ddd);
  border-radius: var(--radius, 8px);
  padding: 20px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: height 0.3s ease, opacity 0.3s ease;
}

#cookies-popup.hidden {
  display: none;
}

#cookies-popup .content {
  flex: 1;
}

#cookies-popup .header {
  display: flex;
  align-items: center; /* Ensures vertical centering */
  gap: 8px;
  margin-bottom: 12px;
}

#cookies-popup .header.hidden {
  display: none;
}

#cookies-popup img {
  height: 20px; /* Matches h3 font-size */
  object-fit: contain; /* Preserves aspect ratio */
  margin-bottom: 14px;
}

#cookies-popup h3 {
  margin: 0 0 12px 0;
  font-size: 20px; /* Slightly larger for emphasis */
  font-weight: 600;
  color: var(--text, #333);
}

#cookies-popup p {
  margin: 0 0 12px 0;
  font-size: 14px;
  line-height: 1.5; /* Improved readability */
  color: var(--text, #333);
}

#cookies-popup ul {
  margin: 0 0 12px 0;
  padding-left: 20px; /* Space for bullets */
  list-style-type: disc;
}

#cookies-popup li {
  margin-bottom: 8px; /* Spacing between list items */
  font-size: 14px;
  color: var(--text, #333);
}

#cookies-popup li strong {
  font-weight: 600;
}

#cookies-popup .buttons {
  display: flex;
  gap: 8px;
}

#cookies-popup button, #cookies-popup .cookie-link {
  background-color: var(--p);
  color: var(--text, #fff);
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 13px;
  transition: background-color 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#cookies-popup .cookie-link {
  background-color: var(--secondary, #6c757d);
}

#cookies-popup button:hover {
  background-color: var(--p2);
}

#cookies-popup .cookie-link:hover {
  background-color: var(--secondary-hover, #5a6268);
}

#cookies-popup #policy-view {
  max-height: 400px; /* Increased for more text */
  overflow-y: auto;
}

#cookies-popup #initial-view.hidden, #cookies-popup #policy-view.hidden {
  display: none;
}



/* --------------------------------------------------------------
   MENU – ALWAYS VISIBLE & OVER EVERYTHING
   -------------------------------------------------------------- */

.link-menu-wrapper {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;                    /* higher than card content */
}

.link-menu-dropdown {
  position: absolute !important;
  top: 100%;
  right: 0;
  left: auto;

  min-width: 160px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  z-index: 9999 !important;       /* very high – survives most stacking contexts */

  /* Animation + visibility */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.18s ease;
}

.link-menu-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


.link-menu-toggle.active {
  color: white;
}

/* 4. Item layout – icon + text */
.link-menu-item {
  width: 100%;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: none;
  cursor: pointer;
  transition: background .18s;
}
.link-menu-item i { width: 16px; text-align: center; }
.link-menu-item:hover { background: var(--bg-1); }

/* 5. Divider */
.menu-divider {
  margin: 4px 10px;
  border-top: 1px solid var(--border);
  opacity: .4;
}

/* 6. Delete button – red */
.link-menu-item[data-action="delete"],
.link-menu-item.delete-item { color: #ff5c5c; }
.link-menu-item[data-action="delete"]:hover,
.link-menu-item.delete-item:hover { background: rgb(126, 41, 41); }

/* --------------------------------------------------------------
   CATEGORY HEADER – make sure it doesn’t clip the menu
   -------------------------------------------------------------- */
.category-header {
  position: relative;      /* needed for absolute children */
  min-height: 36px;        /* give the toggle room */
  overflow: visible !important;
  margin-bottom: 6px;
}
.category-container {
  overflow: visible !important;
}

/* Hide old action buttons (keep this) */
.link-card .card-actions,
.category-header .category-actions { display: none !important; }










/* GLOBAL NOTIFICATION BANNER */
.global-notif {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 480px;
  background: rgba(30, 35, 55, 0.98);
  backdrop-filter: blur(16px);
  border-radius: 0 0 16px 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-100%);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  border-bottom: 4px solid transparent;
}

.global-notif.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Different styles */
.global-notif.maintenance   { border-bottom-color: #f59e0b; }
.global-notif.update        { border-bottom-color: #10b981; }
.global-notif.event         { border-bottom-color: #8b5cf6; }
.global-notif.offer         { border-bottom-color: #f43f5e; }
.global-notif.error         { border-bottom-color: #ef4444; }
.global-notif.success       { border-bottom-color: #22c55e; }

.notif-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.maintenance .notif-icon { background: #f59e0b22; color: #f59e0b; }
.update      .notif-icon { background: #10b98122; color: #10b981; }
.event       .notif-icon { background: #8b5cf622; color: #8b5cf6; }
.offer       .notif-icon { background: #f43f5e22; color: #f43f5e; }
.error       .notif-icon { background: #ef444422; color: #ef4444; }
.success     .notif-icon { background: #22c55e22; color: #22c55e; }

.notif-content {
  flex: 1;
}
.notif-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
}
.notif-desc {
  font-size: 13px;
  color: var(--muted);
}

.notif-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
}
.notif-close:hover { opacity: 1; }

.notif-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 4px;
  background: rgba(255,255,255,0.2);
  width: 100%;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}
.notif-progress::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: currentColor;
  transition: width linear;
}


















/* ────────────── DEVICE ITEM (MAIN CARD) ────────────── */
.device-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: 10px 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.device-item:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Current Device — Premium Highlight */
.device-item.current-device {
  border-left: 4px solid #4ade80;
  background: linear-gradient(90deg, rgba(74, 222, 128, 0.09) 0%, transparent 100%);
  box-shadow: 
    0 0 20px rgba(74, 222, 128, 0.12),
    inset 0 0 20px rgba(74, 222, 128, 0.03);
  border-color: rgba(74, 222, 128, 0.25);
}

/* "This Device" Ribbon — Like Discord/Spotify */
.this-device-ribbon {
  position: absolute;
  top: -11px;
  left: 14px;
  background: #4ade80;
  color: #000;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 5px 11px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  z-index: 10;
  text-transform: uppercase;
}

/* Device Icon Circle */
.device-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 14px;
  font-size: 22px;
  color: var(--accent);
  transition: all 0.2s;
}

.device-item:hover .device-icon {
  background: rgba(99, 102, 241, 0.2);
  transform: scale(1.08);
}

/* Info Section */
.device-info {
  flex: 1;
  min-width: 0; /* Allows text truncation */
}

.device-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.device-details {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
  opacity: 0.9;
}

/* Active Now Badge — Pulsing Dot */
.device-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(74, 222, 128, 0.18);
  color: #4ade80;
  padding: 5px 11px;
  border-radius: 30px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid var(--border);
  backdrop-filter: blur(4px);
}

.device-active-badge i {
  font-size: 9px;
  animation: pulse 2.5s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

/* Logout Button (only on other devices) */
.btn-logout-device {
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-logout-device:hover {
  background: #f87171;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(248, 113, 113, 0.4);
}

/* Optional: Subtle glow on current device icon */
.current-device .device-icon {
  background: rgba(74, 222, 128, 0.18);
  color: #4ade80;
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
}

/* Responsive tweak */
@media (max-width: 480px) {
  .device-item {
    padding: 12px;
    gap: 12px;
  }
  .device-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
  .this-device-ribbon {
    font-size: 10px;
    padding: 4px 9px;
  }
}












/* Mobile navbar fix */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--panel);
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
  }

  .hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: transform 0.3s;
  }

  /* Active hamburger (cross) - assume JS adds class */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

 
}

/* Footer fix on mobile */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }

}

/* Profile section positioning */
#profile-builder {
  position: relative;
  padding: 0 60px; /* Add padding for side tools */
}

@media (min-width: 801px) {
  #profile-builder {
    /*max-width: 920px; /* Extra space for sides */
  }
}

/* Left and right tools positioning */
.left-tools {
  position: fixed;
  left: 20px;
  bottom: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 999;
}

.right-tools {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Mobile adjustments for tools */
@media (max-width: 768px) {
  #profile-builder {
    padding: 0 2px;
  }

  .left-tools, .right-tools {
    position: static;
    justify-content: center;
    margin-bottom: 10px;
  }

  .left-tools {
    order: -2; /* Place above share */
  }

  .right-tools {
    order: -1; /* Below left, above share */
  }
}

.analytics-box .big-tooltip, .info-box .big-tooltip, .updates-box .big-tooltip, .security-box .big-tooltip, .community-box .big-tooltip {
  right: 10%;
  top: auto;
}

/* Make tooltip bottom-aligned to the icon and centered above it */
.big-tooltip {
  position: absolute;
  width: 360px;
  background: #0d0f19;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;

  /* This is the magic: anchor from the bottom of the parent */
  bottom: 100%;          /* sits directly above the icon */
  left: 50%;             /* center horizontally */
  transform: translateX(-50%) translateY(-8px);  /* center + initial offset */
  margin-bottom: 14px;   /* space for arrow */
}

/* When visible – smooth slide up */
.big-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}



/* Optional: shift the whole tooltip a bit to the left (feels more natural) */
.big-tooltip {
  left: 10%;                     /* instead of 50% → shifts left */
  transform: translateX(-50%) translateY(-8px);
}
.big-tooltip.show {
  transform: translateX(-50%) translateY(0);
}

/* Mobile – full width, no arrow, no fancy positioning */
@media (max-width: 768px) {
  .big-tooltip {
    position: static;
    width: auto;
    left: auto;
    transform: none;
    margin: 16px 0;
  }
  .big-tooltip.show { transform: none; }
  .tooltip-arrow { display: none; }
}


.counter {
  font-weight: 600;
  font-size: 1.1em;
  min-width: 24px;
  text-align: center;
}

/* Tooltip enhancements */
.big-tooltip h3 {
  margin: 0 0 8px 0;
  font-size: 1.15em;
}

.tooltip-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tooltip-header i {
  margin-bottom: 10px;
}

.text-gradient {
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight { font-size: 1.05em; margin: 8px 0; }
.muted { opacity: 0.7; font-size: 0.92em; }
.changelog li { margin: 6px 0; }
.changelog span { 
  display: inline-block;
  width: 42px;
  font-weight: 600;
  color: #a855f7;
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.community-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 0.95em;
}

.community-grid a:hover {
  background: rgba(168, 85, 247, 0.15);
  transform: translateY(-2px);
}

.community-grid i { width: 20px; text-align: center; }















.image-preview-container img {
  background: linear-gradient(90deg, #111 25%, #1a1a1a 50%, #111 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}




.upload-box {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg1);
}

.upload-box:hover {
  border-color: var(--accent);
  background: var(--bg2);
}

.upload-box.dragover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
}

.preview-container img {
  max-height: 300px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.image-preview-wrapper {
  position: relative;
  display: inline-block;
}

.remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.preview-actions {
  margin-top: 12px;
  text-align: center;
}



/* Analytics Box - Compact Edition (v2) */
.analytics-box {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(0,0,0,0.4);
  color: var(--text);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  transition: all 0.25s ease;
  cursor: default;
}

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

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.stat-info {
  text-align: center;
  width: 100%;
}

.stat-info .stat-value {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 3px;
  line-height: 1;
}

.stat-info .stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
  line-height: 1.2;
}

/* Mini sparkline inside stat card */
.sparkline {
  width: 100%;
  height: 24px;
}

/* Expandable Details - Tighter & perfectly synced */
.details-boxes {
  margin-top: 20px;
}

.details-box {
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--card-bg);
}

.details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;           /* slightly tighter vertical padding */
  cursor: pointer;
  background: var(--card-bg);
  transition: background 0.25s ease;
  gap: 12px;                    /* perfect spacing between h3 and icon */
}

.details-header:hover {
  background: rgba(4, 9, 17, 0.08);
}

.details-header h3 {
  margin: 0;
  font-size: 14px;              /* smaller as requested */
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  flex: 1;                      /* takes available space, keeps symmetry */
}

.details-header i {
  font-size: 13px;              /* smaller & perfectly centered icon */
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.25s ease;
  width: 20px;                  /* fixed width for perfect alignment */
  text-align: center;
}

.details-box.open .details-header i {
  transform: rotate(180deg);
}

.details-content {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  display: none;
}

.details-box.open .details-content {
  display: block;
  animation: fadeIn 0.2s ease;
}

/* Top Links - synced metrics with details */
.top-links-box {
  margin-top: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--card-bg);
}

.top-links-box h3 {
  text-align: center;
  font-weight: 600;
  padding: 12px;
  background: var(--accent);
  margin: 0;
  color: var(--text);
  font-size: 14.5px;            /* synced smaller with details h3 */
}

.top-links-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-links-box li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  font-size: 13.5px;
}

.top-links-box li:last-child {
  border-bottom: none;
}

.top-links-box li .bar {
  height: 5px;
  border-radius: 3px;
  background: var(--accent);
  margin-left: 8px;
  flex: 1;
}

/* Skeletons */
.skeleton-line {
  height: 16px;
  width: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

.analytics-box.loading .stat-value,
.analytics-box.loading .top-links-box li span,
.analytics-box.loading .top-links-box li strong {
  display: none;
}

.analytics-box.loading .skeleton-line {
  display: block;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

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

/* Responsive */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .details-content {
    font-size: 12.5px;
  }
}

/* Title - synced smaller */
.analytics-title {
  text-align: center;
  margin-bottom: 20px;
  color: var(--text);
}

.analytics-title h1 {
  font-size: 28px;
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
}

.analytics-title p {
  font-size: 13px;
  color: var(--muted);
  margin: 3px 0 0 0;
}









.link-editor-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 968px) {
  .link-editor-grid {
    grid-template-columns: 1fr;
  }
}

.link-form .form-group {
  margin-bottom: 20px;
}

.link-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.9;
}

.link-form input,
.link-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--background-secondary);
  color: var(--text);
  font-size: 1rem;
}

.link-form input:focus,
.link-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(100, 200, 255, 0.15);
}

.input-hint {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 4px;
}

.required { color: #ff6b6b; }
.optional { opacity: 0.6; font-size: 0.9rem; }

.link-preview-section h4 {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 12px;
}

.preview-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  background: var(--card);
  position: relative;
}

.preview-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.preview-content {
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.preview-icon {
  font-size: 2rem;
  opacity: 0.9;
}

.preview-text {
  flex: 1;
}

.preview-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.preview-sub {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 4px;
}








.link-card {
  transition: all 0.3s ease;
  position: relative;
}


.media-preview .play-overlay i {
  transition: transform 0.3s ease;
}

.link-card .play-overlay {
  transition: background 0.3s ease;
}

.link-card:hover .play-overlay {
  background: rgba(0,0,0,0.5);
}













/* Embedded media inside link-card */
.link-card .play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  color: white;
  font-size: 28px;
}

.link-card:hover .play-overlay {
  opacity: 1;
}

/* Ensure iframe doesn't break card layout */
.link-card iframe {
  display: block;
  border-radius: 6px;
}

/* Optional: slight inner shadow for depth */
.link-card > div[style*="position:relative"] {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
}

.page {
  transition: background-image 0.8s ease-in-out;
}











/* Limit link editor width on large screens */
.link-editor-wrapper {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 968px) {
  .link-editor-wrapper > div {
    grid-template-columns: 1fr !important;
  }
  
  .link-editor-wrapper > div > div:nth-child(2) {
    position: static;
    margin-top: 32px;
  }
}

@media (min-width: 1000px) {
  .modal[style*="max-width: 900px"] {
    width: 900px !important;
  }
}


















/* ──────────────────────────────────────────────
   Theme toggle button – clean & modern look
─────────────────────────────────────────────── */

.theme-toggle-wrapper {
  position: relative;
}

.theme-btn {
  --size: 42px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.28s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.theme-btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text);
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(59,130,246,0.18);
}

.theme-btn:active {
  transform: scale(0.97);
}

/* When in light mode – make button look more "sunny" */
:root[data-theme="light"] .theme-btn {
  background: rgba(59,130,246,0.08);
  color: #2563eb;
  border-color: rgba(59,130,246,0.25);
}

:root[data-theme="light"] .theme-btn:hover {
  background: rgba(59,130,246,0.18);
  box-shadow: 0 4px 20px rgba(59,130,246,0.25);
}

/* Optional: tiny tooltip / hint — now shown BELOW the button */
.theme-btn[title]:hover::after {
  content: attr(title);
  position: absolute;
  top: 120%;               /* ← changed: below instead of above */
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  white-space: nowrap;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 3px 12px rgba(0,0,0,0.4);
}

/* Small arrow pointing up (towards the button) */
.theme-btn[title]:hover::before {
  content: "";
  position: absolute;
  top: 100%;               /* right below the button */
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--panel);
  z-index: 101;
}














/* Topbar right — gems + user */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Gems Counter */
.gems-counter {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gems-counter:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

.gems-counter i {
  color: var(--p);
  font-size: 18px;
}

/* Tooltip */
.gems-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  background: #111;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 100;
}

.gems-counter:hover .gems-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

.gems-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #111;
}

/* Creator Tools — below theme dropdown */
.creator-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.creator-buttons {
  display: flex;
  gap: 12px;
}

.creator-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.creator-btn:hover {
  background: rgba(59,130,246,0.15);
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.creator-btn i {
  font-size: 16px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .topbar-right {
    display: flex;
    justify-content: space-between; /* left + right alignment */
    width: 100%; /* full width */
    padding: 0 12px; /* optional padding */
    box-sizing: border-box;
  }

  .gems-counter,
  .user-box {
    flex: 1; /* take equal space if needed */
  }

  .gems-counter {
    justify-content: flex-start; /* left align the gems */
  }

  .user-box {
    justify-content: flex-end; /* right align the user box */
  }
}


@media (max-width: 480px) {
  .gems-counter span,
  .user-name {
    font-size: 13px;
  }

  .gems-counter,
  .user-box {
    padding: 4px 8px;
  }
}












.device-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.device-icon-wrapper:hover .device-tooltip {
  visibility: visible !important;
  opacity: 1 !important;
  top: -65px !important;
}









/* Creator Circle Modal */
.creator-circle-modal {
  max-width: 520px;
  width: 90%;
}

.circle-info {
  text-align: center;
}

.circle-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.circle-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.circle-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circle-details h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.circle-details .muted {
  margin: 4px 0 0;
  font-size: 0.95rem;
}

.circle-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.circle-stats .stat {
  background: rgba(255,255,255,0.04);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}

.circle-stats .stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.circle-stats .stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.circle-progress {
  margin: 24px 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text);
}

.progress-bar {
  height: 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
}

#circle-goal-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  width: 0%;
  transition: width 1.2s ease;
}

.circle-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.circle-actions .btn {
  justify-content: center;
}

/* Mobile */
@media (max-width: 480px) {
  .circle-stats {
    grid-template-columns: 1fr;
  }
}














/* Modal Backdrop - Centered & Smooth */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  visibility: hidden;
}

.modal-backdrop.show {
  display: flex;
  opacity: 1;
  visibility: visible;
}

/* Feedback Modal */
.feedback-modal {
  max-width: 480px;
  width: 90%;
  background: var(--bg);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  overflow: hidden;
  border: 1px solid var(--border);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-backdrop.show .feedback-modal {
  transform: scale(1);
}

/* Rest of your existing feedback CSS remains the same */
.feedback-subtitle { text-align: center; color: var(--muted); margin: 8px 0 24px; font-size: 1rem; }
.rating-group { margin-bottom: 24px; text-align: center; }
.rating-group label { display: block; margin-bottom: 12px; font-weight: 600; color: var(--text-light); }
.stars { font-size: 3rem; letter-spacing: 8px; cursor: pointer; user-select: none; transition: all 0.2s; }
.star { color: #374151; transition: all 0.2s ease; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.star:hover, .star.hovered, .star.selected { color: #fbbf24; transform: scale(1.1); }
.star.selected { color: #f59e0b; text-shadow: 0 0 12px rgba(251, 191, 36, 0.6); }
.form-group { margin-bottom: 20px; }
.form-group label { margin-bottom: 8px; font-weight: 600; color: var(--text-light); }
.form-group input, .form-group textarea {
  width: 100%; padding: 14px; border-radius: 50px; color: var(--text); font-size: 1rem; transition: all 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2);
  background: rgba(255,255,255,0.1);
}
.form-group textarea { resize: vertical; }
.feedback-actions { display: flex; gap: 12px; margin-top: 24px; }
.feedback-actions .btn { flex: 1; padding: 14px; font-weight: 600; border-radius: 12px; }
.feedback-actions .btn.primary { background: linear-gradient(135deg, #22c55e, #16a34a); }
.feedback-actions .btn.secondary { background: rgba(255,255,255,0.1); border: 1px solid var(--border); }
.feedback-actions .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }

/* Feedback Trigger Button - Hidden by default */
.feedback-trigger-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  padding: 14px 20px;
  border-radius: 50px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.feedback-trigger-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.feedback-trigger-btn:hover {
  transform: translateY(-4px) scale(1.05);
  padding-right: 28px;
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
}

.feedback-trigger-btn i {
  font-size: 1.4rem;
}








@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.preview-tag.loading .tag-preview {
  animation: pulse 2s ease-in-out infinite;
}









/* Theme Shop Modal – Professional & Modern Grid */
.theme-shop-modal {
  width: 96%;
  max-width: 1200px;
  height: 900px;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #06070b;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
}

/* Header */
.theme-shop-modal .modal-header {
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.theme-shop-modal h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.gem-balance-header {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 8px 16px;
}

/* Tabs */
.shop-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.shop-tab {
  flex: 1;
  padding: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.shop-tab.active {
  color: var(--p);
  position: relative;
}

.shop-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--p);
}

/* Scrollable Content */
.shop-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  background: var(--bg-secondary);
  scrollbar-width: thin;
  scrollbar-color: var(--p) transparent;
  margin-bottom: 10px;
}

.shop-content::-webkit-scrollbar {
  width: 8px;
}

.shop-content::-webkit-scrollbar-thumb {
  background: var(--p);
  border-radius: 4px;
}

/* Search & Filters */
.shop-controls {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-inline: 200px;           /* desktop/large screens */
}

/* Remove heavy side padding on mobile / small screens */
@media (max-width: 1024px) {       /* ← or 992px, 768px, 900px — choose what fits your design */
  .shop-controls {
    padding-inline: 0;             /* most common mobile choice */
    /* OR: padding-inline: 16px;   ← small breathing room if you prefer */
    /* OR: padding-inline: 20px;   ← slightly more generous */
  }
}

.search-bar {
  position: relative;
}

.search-bar i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
}

.search-bar input {
  width: 100%;
  padding: 16px 18px 16px 54px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: #0a0c11;
  font-size: 1.05rem;
  color: var(--text);
  transition: all 0.3s ease;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--p);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15);
}

.filter-buttons {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.filter-btn {
  padding: 6px 12px;
  border-radius: 50px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #11141a;
  color: white;
}

/* True 4-Column Grid */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

/* Theme Card – Clean & Professional */
.theme-shop-item {
  background: #0000005e;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: 1px solid var(--border);
}

.theme-shop-item:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.25);
  border-color: var(--p);
}

.theme-shop-item.owned {
  border-color: #383b46;
}

/* Preview */
.theme-shop-preview {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #666, #999);
  background-size: 200% 200%;
  animation: gradient 10s ease infinite;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Card Content */
.theme-shop-item .card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: start;
}

.theme-shop-item h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.theme-shop-item .price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--p);
  margin: 16px 0;
}

/* Buy Button */
.theme-shop-item .btn {
  padding: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  background: #fff;
  color: #000;
}

.theme-shop-item.owned .btn {
  background: #a78bfa;
  color: black;
  cursor: default;
}










.status-box {
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(30, 40, 60, 0.6);
  backdrop-filter: blur(8px);
  text-align: center;
  margin: 1rem 0;
  border: 1px solid var(--border);
}

.status-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.status-box.good    { border-color: #10b981; color: #10b981; }
.status-box.warning { border-color: #f59e0b; color: #f59e0b; }
.status-box.bad     { border-color: #ef4444; color: #ef4444; }

#status-title {
  font-size: 1.4rem;
  margin: 0.5rem 0;
}


























/* True responsive grid – cards never stretch full-width when few */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 80px)); /* min 280px, preferred ~350px */
  gap: 24px; /* bigger breathing room */
  justify-content: center; /* center the whole grid when fewer items */
  padding: 0 16px; /* small side padding on mobile */
  margin: 0 auto;
  max-width: 1400px; /* prevent too wide on huge screens */
}

/* Card – fixed max-width so single item doesn't stretch */
.theme-shop-item {
  width: 100%;
  max-width: 380px;              /* ← key: prevents stretching when alone */
  background: #0d1117;           /* darker modern bg */
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%; /* make cards same height in row */
}

.theme-shop-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  border-color: var(--p, #a78bfa);
  z-index: 2;
}

.theme-shop-item.owned {
  border-color: #2d3748;
  opacity: 0.92;
}

.theme-shop-item.owned:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

/* Preview – better aspect ratio */
.theme-shop-preview {
  width: 100%;
  height: 180px;                 /* taller preview looks premium */
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

/* Gradient animation only when not owned */
.theme-shop-item:not(.owned) .theme-shop-preview {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6, #60a5fa);
  background-size: 200% 200%;
  animation: shopGradient 12s ease infinite;
}

@keyframes shopGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Card content – better spacing */
.theme-shop-item .card-content {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.theme-shop-item h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.theme-shop-item .price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--p, #c084fc);
  margin: 12px 0 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Buy / Owned button – more modern */
.theme-shop-item .btn {
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  align-self: stretch;
  margin-top: auto; /* pushes button to bottom */
}

.theme-shop-item .btn.primary {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: white;
  border: none;
}

.theme-shop-item.owned .btn {
  background: #2d3748;
  color: #a0aec0;
  cursor: default;
  font-weight: 600;
}

/* Center single or few items nicely */
@media (max-width: 900px) {
  .theme-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .theme-grid {
    grid-template-columns: 1fr; /* single column on mobile */
    padding: 0 12px;
  }
  .theme-shop-item {
    max-width: 100%;
  }
}



























/* Gem Info */
.gem-info {
  text-align: center;
  padding: 16px 12px;
  background: rgba(15, 17, 22, 0.85); /* subtle glass effect */
  backdrop-filter: blur(6px);
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.gem-info strong {
  color: var(--p);
  font-weight: 600;
}

/* Gem Grid */
.gem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* responsive & compact */
  gap: 20px;
}

/* Gem Pack Card */
.gem-pack {
  background: rgba(10, 12, 17, 0.9);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.gem-pack:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  border-color: var(--p);
}

/* Gem Preview */
.gem-pack .gem-preview {
  width: 100%;
  height: 100px;
  background: linear-gradient(135deg, var(--accent), #ff6347);
  border-radius: 12px;
  margin-bottom: 14px;
  transition: transform 0.3s ease;
}

.gem-pack:hover .gem-preview {
  transform: scale(1.05) rotate(2deg);
}

/* Gem Pack Text */
.gem-pack strong {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--p);
  margin-bottom: 6px;
}

.gem-pack .price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Button */
.gem-pack .btn {
  padding: 6px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #ff6347);
  color: #0a0c11;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.gem-pack .btn:hover {
  background: var(--p);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}






/* Outer box */
.community-box {
  border-radius: 12px;
  padding: 24px;
  margin: 30px auto;
  max-width: 650px;
  color: #e5e5e5;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

/* Banner inside box */
.community-banner {
  border-radius: 10px;
  box-sizing: border-box;
}

.community-banner .banner-content h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--accent);
}

.community-banner .banner-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #b0b0b0;
}

/* Banner Tips */
.community-banner .banner-tips {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1rem;
  color: #c5c5c5;
  line-height: 1.6;
  margin-top: 10px;
  background: #0a0c11;
  padding: 20px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Banner tips list item */
.community-banner .banner-tips li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;  /* Adjust gap for proper spacing between icon and text */
}

.community-banner .banner-tips li i {
  color: var(--accent); /* Icon color */
  font-size: 1.1rem;     /* Slightly larger icons */
  min-width: 20px;       /* Ensures symmetry by giving icons a fixed width */
}

/* Actions below banner */
.banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.banner-actions a {
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Primary button */
.banner-actions .btn-primary {
  background: var(--accent);
  color: #14171f;
  text-transform: uppercase;
}

.banner-actions .btn-primary:hover {
  background: var(--accent);
}

/* Secondary button */
.banner-actions .btn-secondary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-transform: uppercase;
}

.banner-actions .btn-secondary:hover {
  background: var(--accent);
  color: #14171f;
}





/* Transactions */
.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #0a0c11;
  border-radius: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.transaction-item:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.transaction-info strong {
  font-size: 1.2rem;
  color: var(--text);
}

.transaction-info small {
  opacity: 0.7;
  font-size: 1rem;
  display: block;
  margin-top: 4px;
}

.transaction-info span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}

.transaction-gems {
  font-weight: 700;
  font-size: 1.3rem;
}

/* Empty States & Not Found */
.empty-grid,
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  border-radius: 12px;
}

.empty-grid i,
.empty-state i {
  font-size: 4rem;
  opacity: 0.4;
  margin-bottom: 24px;
}

.empty-grid p,
.empty-state p {
  margin: 16px 0;
  font-size: 1.3rem;
  color: var(--text-muted);
}

.empty-grid small,
.empty-state small {
  font-size: 1rem;
  opacity: 0.8;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .theme-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }

  .gem-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .theme-shop-modal {
    width: 100%;
    height: 90vh;
    border-radius: 20px 20px 0 0;
  }

  .shop-content {
    padding: 24px 20px;
  }

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

  .gem-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gem-pack {
    padding: 20px;
  }

  .gem-preview {
    height: 100px;
  }
}

@media (max-width: 480px) {
  .theme-grid {
    grid-template-columns: 1fr;
  }

  .gem-grid {
    grid-template-columns: 1fr;
  }

  .gem-pack .gem-count {
    font-size: 1.6rem;
  }

  .gem-pack .price {
    font-size: 1.4rem;
  }
}

/* Tab Panes Visibility */
.shop-pane {
  display: none;
}

.shop-pane.active {
  display: block;
}






















/* Remove or comment out the old very-small-screen rule */
@media (max-width: 480px) {
  /* .theme-grid {
    grid-template-columns: 1fr;
  }  ← delete or comment this */
}

/* Add/adjust this instead (around ~400–500px and up) */
@media (max-width: 600px) {
  .theme-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    /* or more strict: repeat(2, 1fr)  or  repeat(3, 1fr) */
    gap: 16px;
    padding: 0 10px;
  }
}

/* Force 2–3 columns a bit earlier if you really want 3 on most phones */
@media (min-width: 380px) and (max-width: 700px) {
  .theme-grid {
    grid-template-columns: repeat(2, 1fr);     /* ← 3 columns */
    /* or: repeat(auto-fit, minmax(110px, 1fr));  very flexible */
  }
}





@media (max-width: 700px) {
  .theme-shop-item {
    max-width: none;                /* remove the old 380px limit */
    border-radius: 12px;            /* slightly smaller radius */
    border-width: 1px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);  /* lighter shadow */
  }

  .theme-shop-preview {
    height: 100px;                  /* ← crucial: much shorter preview */
    min-height: 90px;
  }

  .theme-shop-item .card-content {
    padding: 12px 14px;             /* much less padding */
  }

  .theme-shop-item h3 {
    font-size: 0.95rem;             /* smaller title */
    margin-bottom: 6px;
    line-height: 1.3;
  }

  .theme-shop-item .price {
    font-size: 0.9rem;
    margin: 8px 0;
  }

  .theme-shop-item .btn {
    padding: 8px 12px;              /* smaller button */
    font-size: 0.85rem;
    border-radius: 8px;
  }

  /* Optional: make text wrap better & prevent overflow */
  .theme-shop-item h3,
  .theme-shop-item .price {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}










/* Holiday Badge – Always Visible */
.holiday-badge {
  position: static;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.95);
  color: #d32f2f;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  z-index: 3;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  /* Removed opacity transition — always visible */
}

/* Limited theme glow */
.theme-shop-item.limited .theme-shop-preview {
  border: 3px solid #ffd700;
  box-shadow: 0 0 20px rgba(255,215,0,0.4);
}











/* Theme Preview Animations – Smooth Gradient Shift */
.theme-shop-preview,
.theme-preview {
  background-size: 200% 200% !important;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Optional: Slight hover scale for extra polish */
.theme-shop-item:hover .theme-shop-preview,
.theme-item:hover .theme-preview {
  animation-duration: 8s; /* Speed up a bit on hover */
  transform: scale(1.05);
  transition: transform 0.4s ease;
}










.device-skeleton {
  margin: 10px 0;
}

.skeleton-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface-1);
  border-radius: 12px;
  border: 1px solid var(--border);
  height: 76px;
  overflow: hidden;
  position: relative;
}

.skeleton-icon,
.skeleton-title,
.skeleton-subtitle {
  background: linear-gradient(90deg, 
    var(--surface-2) 25%, 
    var(--surface-3) 50%, 
    var(--surface-2) 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s linear infinite;
  border-radius: 8px;
}

.skeleton-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.skeleton-title {
  width: 65%;
  height: 18px;
}

.skeleton-subtitle {
  width: 45%;
  height: 14px;
  margin-top: 6px;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

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







.transaction-preview {
  width: 60px;
  height: 50px;
  border-radius: 10px;
  background: #666;
  flex-shrink: 0;
}

.transaction-info strong {
  font-size: 1.1rem;
}

.transaction-info small {
  opacity: 0.7;
  font-size: 0.9rem;
}

.transaction-info .price {
  display: block;
  margin-top: 6px;
  font-weight: 700;
  color: #ffd700;
  font-size: 1rem;
}







.creator-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.creator-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.creator-name {
  font-weight: 600;
}










.custom-upload-box {
  position: relative;
  width: 100%;
  height: 140px;
  border: 2px dashed var(--border);
  border-radius: 14px;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 18px;
}

.custom-upload-box:hover {
  border-color: var(--p2);
  background: rgba(var(--p2, 100, 100, 255), 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.custom-upload-box.drag-over {
  border-color: var(--p);
  background: rgba(var(--p, 100, 100, 255), 0.15);
  transform: scale(1.02);
}

.upload-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.custom-upload-box.has-image .upload-inner {
  opacity: 0;
}

.custom-upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 0; /* Prevent text overflow */
}

/* When an image is selected — show thumbnail preview inside upload box */
.custom-upload-box.has-image {
  border-style: solid;
  border-color: var(--p);
  background: #000;
}

.custom-upload-box.has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%);
  border-radius: 14px;
  pointer-events: none;
}

.custom-upload-box.has-image .preview-thumb {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 14px;
}

.custom-upload-box.has-image .upload-inner {
  opacity: 0;
}











.theme-detail-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: start;
  padding: 0 8px;
}

.theme-detail-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
  background-size: cover;
  border: 1px solid var(--border-light);
}

.theme-detail-right h3 {
  margin: 0 0 12px;
  font-size: 1.85rem;
  font-weight: 650;
  letter-spacing: -0.4px;
}

.theme-description {
  margin: 0 0 24px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-size: 0.98rem;
}


.price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 600;
}

.price-value {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gem-icon {
  font-size: 1.1em;
  color: var(--p);
}

.fa-gem {
  color: var(--p);
}

.fa-gem::before {
  color: var(--p);
}

.badge {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  line-height: 1;
}

.free-badge {
  background: rgba(40, 167, 69, 0.15);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.owned-badge {
  background: rgba(0, 123, 255, 0.15);
  color: #007bff;
  border: 1px solid rgba(0, 123, 255, 0.3);
}

/* ── Improved Colors Section ── */
.theme-color-section {
  margin: 24px 0 32px;
}

.theme-color-section h4 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--muted-text);
  font-weight: 500;
}



.color-item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  transition: all 0.18s ease;
}

.color-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.color-swatch {
  width: 100%;
  height: 68px;
  border-radius: 6px;
  margin-bottom: 8px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}

.color-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
}

.color-code {
  background: var(--bg-darker);
  padding: 3px 7px;
  border-radius: 6px;
  font-family: 'Consolas', monospace;
}

.copy-btn.mini {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  font-size: 0.75rem;
}

.copy-btn.mini:hover {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
}



.action-btn {
  height: 48px;
  padding: 0 20px;
  font-size: 0.97rem;
  font-weight: 500;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.action-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.preview-btn {
  /*background: linear-gradient(135deg, #6366f1, #8b5cf6);*/
  color: white;
}

.preview-btn.active {
  background: linear-gradient(135deg, #ef4444, #f87171);
}

.resell-btn {
  background: linear-gradient(135deg, #dc2626, #f87171);
  color: white;
}

.small-gem {
  font-size: 0.88em;
  opacity: 0.92;
}

.preview-notice {
  margin-top: 20px;
  padding: 12px 16px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  color: #6366f1;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}






















/* Marketplace Banner – Immersive Image + Overlay */
.marketplace-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
  height: 220px;                    /* Fixed height for impact */
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  background: #06070b;              /* fallback color */
}

/* Background Image Layer */
.marketplace-banner .banner-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://assets.melodreams.com/assets/media/marketplace.jpg'); /* cosmic/dark abstract – replace with your own */
  background-size: cover;
  background-position: center;
  filter: brightness(0.6) contrast(1.1); /* subtle dark moody look */
  z-index: 1;
  transition: transform 0.6s ease;
}

/* Dark Overlay (gradient + blur) */
.marketplace-banner .banner-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(0.5px);
  z-index: 2;
}

/* Content on top */
.banner-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 32px;
  color: white;
}

.banner-content h2 {
  font-size: 2.4rem;
  letter-spacing: -1px;
}

.banner-content p {
  margin: 0;
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 520px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Hover effect – subtle zoom on bg */
.marketplace-banner:hover .banner-bg {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .marketplace-banner {
    height: 180px;
    margin-bottom: 24px;
  }
  .banner-content h2 {
    font-size: 2rem;
  }
  .banner-content p {
    font-size: 1rem;
  }
}





/* No more grid → simple flex column layout */
.theme-detail-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0 12px;
  max-width: 720px;
  margin: 0 auto;
}

/* Smaller preview */
.theme-detail-preview {
  width: 100%;
  max-width: 520px;              /* limits how wide it gets on large screens */
  aspect-ratio: 16 / 9;          /* wider + shorter than before */
  max-height: 260px;             /* explicit height cap – adjust if needed */
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.22);
  background-size: cover;
  border: 1px solid var(--border-light);
}

/* Rest stays similar but with better spacing */
.theme-detail-right h3 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  font-weight: 650;
  text-align: center;            /* looks nicer centered now */
}

.theme-description {
  margin: 0 0 20px;
  line-height: 1.58;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-align: center;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.theme-meta {
  margin-bottom: 44px;
  text-align: center;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.28rem;
  font-weight: 600;
}

/* Colors section – keep grid but center it */
.theme-color-section {
  margin: 20px 0 28px;
  text-align: center;
}

.theme-color-section h4 {
  margin-bottom: 14px;
  font-size: 1.06rem;
  color: var(--muted-text);
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
}


.action-btn {
  min-width: 240px;              /* more consistent width */
  height: 48px;
  padding: 0 24px;
  font-size: 0.98rem;
  border-radius: 12px;
}

/* Preview notice also centered */
.preview-notice {
  margin: 20px auto 0;
  max-width: 520px;
  text-align: center;
}



/* Hover effect for theme action buttons */
.theme-actions .mini-btn {
    transition: all 0.2s ease;
    color: var(--text-secondary, #aaa);
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
}

.theme-actions .mini-btn:hover {
    color: var(--accent, #9f7aea);          /* or any color you want, e.g. #ff6b6b for delete */
    border-radius: 6px;
}

.theme-actions .mini-btn.delete:hover {
    color: #ff5555;                         /* red-ish for delete */
}




/* Container – keep vertical stack */
.theme-detail-container {
  display: flex;
  flex-direction: column;
  gap: 28px;              /* slightly tighter */
  padding: 0 12px;
  max-width: 720px;
  margin: 0 auto;
}

/* Preview – already good, just minor tweak */
.theme-detail-preview {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 16 / 9;
  max-height: 180px;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.22);
  background-size: cover;
  border: 1px solid var(--border-light);
}

/* Title */
.theme-detail-right h3 {
  margin: 0 0 8px;
  font-size: 1.65rem;
  font-weight: 650;
  text-align: center;
  letter-spacing: -0.3px;
}

/* Description */
.theme-description {
  margin: 0 0 16px;
  line-height: 1.58;
  color: var(--text-secondary);
  font-size: 0.86rem;
  text-align: center;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* Meta – price + badge below */
.theme-meta {
  margin-bottom: 36px;
  text-align: center;
}

/* Price – smaller, cleaner */
.price-row {
  display: flex;
  flex-direction: column;     /* stack price and badge vertically */
  align-items: center;
  gap: 8px;
}

.price-value {
  font-size: 0.98rem;         /* noticeably smaller than before */
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

/* Owned badge – smaller, below price, centered */
.owned-badge {
  font-size: 0.68rem;         /* tiny but readable */
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(0, 123, 255, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(0, 123, 255, 0.35);
  line-height: 1;
}

/* Free badge (if needed) */
.free-badge {
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(40, 167, 69, 0.18);
  color: #4ade80;
  border: 1px solid rgba(40, 167, 69, 0.35);
}

/* Colors section */
.theme-color-section {
  margin: 16px 0 24px;
  text-align: center;
}

.theme-color-section h4 {
  margin-bottom: 12px;
  font-size: 1.04rem;
  color: var(--muted-text);
  font-weight: 500;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
}

/* Menu improvements */
.modal-menu-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-menu-btn:hover {
  color: var(--text);
  background: rgba(255,255,255,0.08);
  transform: scale(1.1);
}

/* Menu background – better contrast */
.modal-options-menu {
  position: absolute;
  top: 52px;
  right: 8px;
  background: rgba(30, 30, 40, 0.98);          /* darker, more solid feel */
  backdrop-filter: blur(10px);                 /* subtle glass effect */
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  min-width: 190px;
  padding: 8px 0;
  z-index: 1000;
  overflow: hidden;
}

/* Menu item hover – more noticeable + smooth */
.menu-item {
  padding: 10px 18px;
  font-size: 0.94rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.menu-item:hover {
  background: rgba(255,255,255,0.08);
  transform: translateX(4px);
  color: var(--primary-light);
}

.menu-item.danger {
  color: #f87171;
}

.menu-item.danger:hover {
  background: rgba(248, 113, 113, 0.12);
  transform: translateX(4px);
  color: #fca5a5;
}

/* Preview notice */
.preview-notice {
  margin: 20px auto 0;
  max-width: 520px;
  padding: 10px 16px;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 12px;
  color: #a5b4fc;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(99, 102, 241, 0.18);
}















/* Watermark overlay for unowned theme previews */
.profile-preview-box::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: 
    linear-gradient(135deg, transparent 40%, rgba(0,0,0,0.1) 50%, transparent 60%),
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px);
  border-radius: 16px;
}

.profile-preview-box.preview-watermark::after {
  opacity: 1;
}

/* Watermark text */
.profile-preview-box.preview-watermark::before {
  content: 'PREVIEW – NOT OWNED';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.15);
  text-shadow: 0 0 20px rgba(0,0,0,0.8);
  pointer-events: none;
  z-index: 11;
  white-space: nowrap;
  letter-spacing: 8px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.profile-preview-box.preview-watermark::before {
  opacity: 1;
}













.settings-list {
  margin: 0.5rem 0;
}



.option-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
  margin-right: 1rem;
  flex-shrink: 0;
}

.option-content {
  flex: 1;
}


.option-subtitle {
  font-size: 0.9rem;
  color: var(--text2);
  margin-top: 0.2rem;
}

.option-meta {
  text-align: right;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.last-changed {
  white-space: nowrap;
}

.input-status {
  font-size: 0.85rem;
  margin-top: 0.4rem;
  min-height: 1.2em;
}

.input-status.good { color: #22c55e; }
.input-status.bad  { color: #ef4444; }














.verification-container {
  padding: 1.5rem 1rem;
}

.verification-status-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.status-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text2);
  border: 3px solid var(--border);
  transition: all 0.3s ease;
}

.status-badge.verified {
  background: #0ea5e9;
  color: white;
  border-color: #0ea5e9;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.status-badge.pending {
  background: #f59e0b;
  color: white;
  border-color: #f59e0b;
  animation: pulse2 2s infinite;
}

.status-badge.rejected {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.status-text h4 {
  margin: 0;
  font-size: 1.25rem;
}

.status-text p {
  margin: 0.25rem 0 0;
  color: var(--text2);
  font-size: 0.95rem;
}

/* Timeline */
.verification-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2rem 0;
  position: relative;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-connector {
  height: 4px;
  background: var(--border);
  flex: 1;
  position: relative;
}

.timeline-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface2);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text2);
  margin: 0 auto 0.5rem;
  transition: all 0.3s ease;
}

.step-circle.active,
.step-circle.completed {
  background: #0ea5e9;
  color: white;
  border-color: #0ea5e9;
}

.step-label {
  font-size: 0.9rem;
  color: var(--text2);
}

.timeline-step[data-step="1"] .step-circle.completed,
.timeline-step[data-step="2"] .step-circle.completed,
.timeline-step[data-step="3"] .step-circle.completed {
  background: #10b981;
  border-color: #10b981;
}

/* Pending animation */
@keyframes pulse2 {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Content & Button */
.verification-content {
  min-height: 80px;
  margin: 1rem 0 1.5rem;
  text-align: center;
  color: var(--text2);
}

.verification-action .btn {
  padding: 0.9rem;
  font-size: 1.05rem;
}

.center { text-align: center; }





.verification-form {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
}

.input.textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  margin-top: 1rem;
}

.hidden {
  display: none !important;
}




.verification-action.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.verification-action .btn {
  min-width: 220px;
  max-width: 100%;
  padding: 0.9rem 2rem;
}

.verification-action.center button {
  transition: opacity 0.3s ease;
}


.verification-action {
  margin-top: 1.5rem;
  text-align: center; /* fallback + helps hint */
}

.action-wrapper {
  display: inline-block;        /* makes it hug the button */
  width: 100%;                  /* full width on mobile */
  max-width: 320px;             /* prevents it from becoming too wide on desktop */
  margin: 0 auto;               /* centers the wrapper */
}

.verification-action .btn {
  width: 100%;                  /* full width inside wrapper */
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
  border-radius: 12px;
  transition: all 0.2s ease;
}

/* Optional: nicer hover/focus for primary button */
.verification-action .btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.25);
}

/* Make sure hint is nicely spaced */
.input-hint.center {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text3);
}


.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.modal-footer .btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-weight: 600;
  transition: all 0.2s;
  justify-content: center;
  border-radius: 50px;
  gap: 4px;
}

/* Primary & Danger colors */
.modal-footer .btn.primary {
  background: var(--accent);
  color: white;
}

.modal-footer .btn.danger {
  color: white;
}

/* Hover effect (optional but nice) */
.modal-footer .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}










.subsection-header {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border-color);
}

.visibility-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: var(--surface-2);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
}

.background-content {
  padding: 24px 10px;
  display: grid;
}

/* Preview Section */
.preview-section {
  background: var(--surface-2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  /*aspect-ratio: 16 / 9;*/
  position: relative;
}

.image-preview {
  width: 100%;
  height: 100%;
  background: #1a1a1a;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0,0,0,0.65);
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.preview-cancel-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.preview-cancel-btn:hover {
  background: rgba(220, 53, 69, 0.9);
}

.no-preview {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 1rem;
}

.no-preview i {
  font-size: 3.5rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Controls */
.controls-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hint-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
}

.url-input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.input-wrapper {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.input {
  flex: 1;
  min-width: 240px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--surface-1);
  font-size: 1rem;
}

.or-divider {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin: 12px 0;
}

.btn-upload {
  height: 52px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}



.btn-success {
  background: var(--p);
  color: white;
}

.btn-danger-outline {
  border: 1px solid var(--danger);
  color: var(--danger);
  background: transparent;
}


.status-message {
  margin-top: 16px;
  text-align: center;
  font-size: 0.9rem;
}

/* Make ALL action buttons consistent internally */
.action-buttons .btn.full-width {
  height: 48px;                  /* or 52px if you prefer taller */
  font-size: 1rem;
  font-weight: 500;
  display: flex;                 /* ← key: flex container */
  align-items: center;           /* vertical center */
  justify-content: center;       /* horizontal center */
  gap: 10px;                     /* space between icon and text */
  padding: 0 20px;               /* consistent horizontal padding */
  border-radius: 10px;           /* match your other inputs/buttons */
  transition: all 0.2s ease;
}

/* Optional: make icon slightly bigger/more prominent */
.action-buttons .btn i {
  font-size: 1.2rem;             /* or 1.3rem if you want it pop more */
}

/* Hover/focus states (optional but nice) */
.action-buttons .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.action-buttons .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}



















/* Compact Placeholder – smaller & tighter */
.placeholder-box {
  border: 2px dashed color-mix(in srgb, var(--accent), transparent 40%);
  border-radius: 16px;
  padding: 40px 28px;               /* reduced from 64px/40px */
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 260px;                /* was 380px → much smaller */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 6px rgba(0,0,0,0.05);
}

.placeholder-box:hover {
  border-color: var(--accent-2);
  background: var(--surface-1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1),
              inset 0 0 0 2px color-mix(in srgb, var(--primary), transparent 75%);
}

.placeholder-content {
  max-width: 380px;                 /* narrower */
}

.placeholder-icon {
  font-size: 3.2rem;                /* was 4.8rem → smaller icon */
  color: color-mix(in srgb, var(--primary), var(--text-tertiary) 65%);
  margin-bottom: 16px;              /* tighter spacing */
  transition: transform 0.3s ease;
}

.placeholder-box:hover .placeholder-icon {
  transform: scale(1.15);
}

.placeholder-content h4 {
  font-size: 1.28rem;               /* smaller headline */
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.placeholder-content .subtitle {
  font-size: 0.92rem;               /* smaller description text */
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.45;
}

.placeholder-content .features {
  font-size: 0.86rem;
  color: var(--text-tertiary);
  margin-bottom: 24px;
  text-align: left;
  display: inline-block;
}

.placeholder-content .features li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.placeholder-content .features i {
  font-size: 1rem;
  color: var(--primary);
}

/* Actions – more compact */
.placeholder-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;                        /* reduced gap */
}

.or-split {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.url-mini {
  display: flex;
  width: 100%;
  max-width: 380px;
  gap: 8px;
  background: var(--surface-1);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.url-mini input {
  flex: 1;
  background: var(--panel);
  border: none;
  padding: 0 12px;
  font-size: 0.94rem;
}

.url-mini button,
.placeholder-actions .btn-primary {
  padding: 10px 18px;               /* slightly smaller buttons */
  font-size: 0.94rem;
  border-radius: 10px;
}


.preview-mode {
  height: 100%;
  position: relative;
}

.image-preview {
  width: 100%;   
  background: #0a0a0a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.preview-label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 2;
}

.preview-remove-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 3;
  transition: all 0.2s;
}

.preview-remove-btn:hover {
  background: var(--danger);
  transform: scale(1.08);
}






















/* Section headers — smaller, lighter */
.theme-section-header {
    padding: 10px 14px 4px;
    font-size: 0.75rem;              /* even smaller */
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;                   /* a bit more subtle */
}

/* Create button footer — less heavy */
.theme-create-footer {
    padding: 12px 14px 16px;
    border-top: 1px solid var(--border-subtle, rgba(255,255,255,0.06));
    background: rgba(0,0,0,0.08);     /* softer gradient alternative */
}

/* Main create button — smaller, rounder, friendlier */
#btn-create-new-custom-theme {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    
    font-size: 0.88rem;              /* slightly smaller text */
    font-weight: 500;
  
    transition: all 0.22s ease;
 
    color: white;

}

#btn-create-new-custom-theme:hover {
   
    transform: scale(1.01) translateY(-1px);    
}

#btn-create-new-custom-theme:active {
    transform: scale(0.97);
}

/* Empty state — softer and smaller */
.empty-themes-message {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.empty-themes-message i {
    font-size: 2.4rem;               /* smaller icon */
    opacity: 0.45;
    margin-bottom: 12px;
}

.empty-themes-message p {
    margin: 10px 0 6px;
    font-size: 1rem;                 /* smaller text */
    color: var(--text-secondary);
}

.empty-themes-message small {
    font-size: 0.82rem;
    opacity: 0.75;
}




















.thank-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  
  width: 410px;
  max-width: 90vw;
  
  background: rgba(25, 25, 40, 0.96);
  border: 1px solid rgba(100, 100, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5),
              0 0 0 1px rgba(80,80,200,0.08) inset;
              
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  
  overflow: hidden;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.thank-popup.visible {
  transform: translateY(0);
  opacity: 1;
}

.thank-content {
  display: flex;
  align-items: center;
  padding: 18px 20px 18px 24px;
  gap: 16px;
}

.thank-icon {
  font-size: 2.1rem;
  color: #c084fc;          /* soft purple-pink */
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(168, 85, 247, 0.5));
}

.thank-text {
  flex: 1;
}

.thank-text strong {
  display: block;
  color: white;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.thank-text p {
  color: var(--text-muted, #a0a0c0);
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0;
}

.thank-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: all 0.2s;
}

.thank-close-btn:hover {
  color: white;
  background: rgba(255,255,255,0.08);
}

.thank-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(to right, var(--accent), #a78bfa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 6.5s linear;
}

.thank-popup.visible .thank-progress {
  transform: scaleX(1);
}

/* Mobile adjustments */
@media (max-width: 500px) {
  .thank-popup {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}









/* ── Link-style buttons in forms ────────────────────────────────────── */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;                    /* space between icon and text */
  padding: 0.6rem 1rem;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--accent, #3b82f6);  /* your primary accent color */
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-link:hover,
.btn-link:focus {
  background: var(--surface-hover, rgba(59, 130, 246, 0.08));
  color: var(--accent-hover, #2563eb); /* slightly darker/lighter on hover */
  outline: none;
}

.btn-link:active {
  transform: translateY(1px);
  opacity: 0.92;
}

.btn-link i {
  font-size: 1.1rem;              /* slightly larger icon for visibility */
  opacity: 0.9;
}

.btn-link:hover i {
  opacity: 1;
}

/* Container for better spacing & centering */
.btn-link-container {
  margin: 1.5rem 0;
  text-align: center;
}

/* Optional: make it look more like a list item if you want */
.btn-link.full-width {
  width: 100%;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
}










.info-content.padded {
  padding: 0.25rem 1.25rem 1.75rem;
}

.intro-text {
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0.8rem 0 1.5rem;
  color: var(--text-primary);
}

.warning-color {
  color: #f59e0b;
}

.clean-bullet-list,
.clean-numbered-list {
  list-style: none;
  padding-left: 0;
  margin: 1.4rem 0;
}

.clean-bullet-list > li,
.clean-numbered-list > li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.9rem;
  font-size: 0.98rem;
  line-height: 1.55;
}

.clean-bullet-list > li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}

.clean-numbered-list {
  counter-reset: step;
}

.clean-numbered-list > li {
  counter-increment: step;
}

.clean-numbered-list > li::before {
  content: counter(step) ".";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
}

.nested-list {
  margin: 0.7rem 0 0.3rem 0.8rem;
  padding-left: 1rem;
  list-style-type: disc;
}

.nested-list li {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.steps-container {
  background: rgba(30, 41, 59, 0.25);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.25rem 0;
}

.steps-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--accent);
}

.modern-tip,
.modern-important {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin: 1.5rem 0;
}

.modern-tip {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.modern-important {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.tip-icon,
.important-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.tip-content,
.important-content {
  flex: 1;
}

.extra-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-tertiary);
  text-align: center;
}

.action-center {
  text-align: center;
}

.large-btn {
  padding: 0.9rem 1.6rem;
  font-size: 1.05rem;
  min-width: 240px;
}









/* ── Modern form enhancements ──────────────────────────────────────── */
.form-section {
  padding: 1.25rem 1.25rem 1.75rem;
}

.modern-group {
  margin-bottom: 1.8rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.icon-label {
  font-size: 1.25rem;
  color: var(--accent);
  width: 24px;
  text-align: center;
}

.input-wrapper {
  position: relative;
}

.clean-input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-size: 1.05rem;
  border-radius: 10px;
  border: 1px solid var(--border-input, rgba(255,255,255,0.18));
  background: var(--surface-input, rgba(30,41,59,0.4));
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.clean-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}

.input-status-container {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-status {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.input-status.good { background: rgba(34,197,94,0.25); color: #86efac; }
.input-status.bad  { background: rgba(239,68,68,0.25); color: #fca5a5; }
.input-status.neutral { background: rgba(234,179,8,0.25); color: #fde047; }

.form-hint {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.cooldown-notice {
  margin: 1.2rem 0 1.8rem;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
}

.action-group {
  margin: 2rem 0 1.5rem;
}

.save-btn {
  height: 52px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.save-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.save-btn i.icon-btn {
  margin-right: 0.55rem;
  font-size: 1.15rem;
}

.form-message {
  font-size: 0.95rem;
  padding: 0.8rem;
  border-radius: 8px;
  margin-top: 1rem;
  transition: all 0.25s ease;
}

.form-message.success { background: rgba(34,197,94,0.18); color: #86efac; }
.form-message.error   { background: rgba(239,68,68,0.18); color: #fca5a5; }

.help-link-container {
  text-align: center;
  margin-top: 1.2rem;
}

.subtle-link {
  color: var(--accent);
  font-size: 0.97rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.18s;
}

.subtle-link:hover {
  background: rgba(var(--accent-rgb), 0.12);
}








/* ── Compact save group ────────────────────────────────────────────── */
.save-group.compact {
  margin: 1.4rem 0 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.save-btn.compact-btn {
  height: 46px;                    /* smaller than before */
  min-width: 180px;
  max-width: 100%;
  padding: 0 1.4rem;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: all 0.18s ease;
}

.save-btn.compact-btn i {
  margin-right: 0.5rem;
  font-size: 1.05rem;
}

.save-btn.compact-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.35);
}

.save-btn.compact-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Message below button – very compact */
.form-message.compact-msg {
  font-size: 0.92rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  margin: 0;
  text-align: center;
  width: 100%;
  max-width: 360px;
  transition: opacity 0.25s ease;
}

.form-message.compact-msg.success {
  background: rgba(34,197,94,0.15);
  color: #86efac;
  border: 1px solid rgba(34,197,94,0.4);
}

.form-message.compact-msg.error {
  background: rgba(239,68,68,0.15);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.4);
}

/* Help link – smaller & cleaner */
.help-link.compact-help {
  margin-top: 0.4rem;
}

.help-link .btn-link.subtle {
  font-size: 0.93rem;
  padding: 0.4rem 0.9rem;
  color: var(--text-secondary);
  opacity: 0.9;
}

.help-link .btn-link.subtle:hover {
  opacity: 1;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}

/* Optional: make cooldown notice even tighter */
.cooldown-notice.compact {
  margin: 1.1rem 0 1.4rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.93rem;
}






.subscription-card {
  background: #111;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.subscription-status .badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.badge.active { background: #1f7a1f; color: #fff; }
.badge.inactive { background: #444; color: #bbb; }

.paypal-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1c1c1c;
  padding: 10px;
  border-radius: 8px;
}

.btn.full { width: 100%; }









/* Status Circle Banner – with smooth animated gradient */
.subscription-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  background: var(--surface-1);
  border-radius: 16px;
  padding: 1.5rem 1.8rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Animated gradient background (smooth breathing effect) */
.subscription-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(var(--accent-rgb), 0.07), rgba(139, 92, 246, 0.05), rgba(var(--accent-rgb), 0.03));
  background-size: 200% 200%;
  opacity: 0.65;
  animation: gradientBreathe 14s ease infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gradientBreathe {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Circle Badge – smaller & refined */
.status-circle-wrapper {
  flex-shrink: 0;
  z-index: 1;
}

.status-circle {
  width: 60px;               /* smaller & cleaner size */
  height: 60px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
  position: relative;
  z-index: 1;
}

.status-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
}

.status-circle i {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.status-circle .status-text {
  font-size: 0.65rem;
  text-align: center;
  max-width: 78%;
  line-height: 1.2;
}

/* Status Variants */
.status-circle.active {
  background: linear-gradient(135deg, var(--accent), #586a80);
}

.status-circle.inactive {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.status-circle.loading {
  background: linear-gradient(135deg, #64748b, #475569);
  animation: pulse 2.5s infinite ease-in-out;
}

.status-circle.canceled {
  background: linear-gradient(135deg, #f59e0b, #d97706); /* nice orange warning color */
}

/* Banner Details */
.banner-details {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.25rem;
  z-index: 1;
}

.detail-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.detail-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.detail-value {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* PayPal Section */
.paypal-section {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text-primary);
}

.section-desc {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.code-input-group {
  display: flex;
  align-items: stretch;
  background: var(--background-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.code-display {
  flex: 1;
  padding: 0.9rem 1.3rem;
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.98rem;
  color: var(--text-primary);
  user-select: all;
}

.btn-copy {
padding: 0 1.3rem;
  background: transparent;
  border: none;
    border-left-width: medium;
    border-left-style: none;
    border-left-color: currentcolor;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
}

.btn-copy:hover {
  background: var(--accent);
  color: white;
}

.code-hint {
  margin-top: 0.75rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* How Subscription Works */
.subscription-info {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.subscription-info h5 {
  margin: 0 0 1.15rem;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text-primary);
}

.subscription-info ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.subscription-info li {
  margin-bottom: 1rem;
  padding-left: 1.6rem;
  position: relative;
}

.subscription-info li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}

.support-link {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s;
}

.support-link:hover {
  text-decoration: underline;
  opacity: 0.92;
}

/* Actions */
.subscription-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-danger-outline {
  padding: 0.7rem 1.4rem;
  font-size: 0.94rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid #ef4444;
  color: #ef4444;
  border-radius: 10px;
  transition: all 0.2s;
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.08);
}

/* Pulse animation for loading */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.68; }
}
















.form-section.padded {
  padding: 1.8rem;
}

.form-group.modern-group {
  margin-bottom: 1.8rem;
}


.input-status {
  position: absolute;
  right: 1rem;
  top: 35%;
  transform: translateY(-50%);
  font-size: 0.9rem;
}

.cooldown-notice.warning-box {
  background: transparent;
  border: transparent;
  color: var(--warning);
  padding: 1.2rem;
  border-radius: 50px;
  text-align: left;
  font-weight: 500;
}




.hint.center, .msg.center {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 1.8rem 0;
}



















/* ────────────────────────────────────────────────
   Two-Factor Authentication Section – Scoped with tfa-
───────────────────────────────────────────────── */

.tfa-card.elevated {
  border-radius: 16px;
  background: var(--card-bg, #ffffff);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08),
              0 1px 4px rgba(0,0,0,0.04);
  overflow: hidden;
  border: 1px solid var(--border-subtle, rgba(0,0,0,0.06));
}

.tfa-subsection-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(to bottom, rgba(0,0,0,0.015), transparent);
}

.tfa-back-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.18s ease;
}

.tfa-back-btn:hover {
  background: var(--hover-light);
  color: var(--text-primary);
  transform: translateX(-2px);
}

.tfa-overview {
  padding: 24px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tfa-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.tfa-status-pill i {
  font-size: 1.1rem;
}

.tfa-status-pill.enabled {
  background: var(--success-soft, #e6f4ea);
  color: var(--success, #2e7d32);
}

.tfa-status-pill.disabled {
  background: var(--warning-soft, #fff3e0);
  color: var(--warning-dark, #e65100);
}

.tfa-description.muted {
  color: var(--text-secondary);
  line-height: 1.45;
  font-size: 0.96rem;
}

/* ── Modern Toggle ──────────────────────────────────────── */
.tfa-modern-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgb(13, 14, 15);
  margin: 0 24px;
  border-radius: 12px;
  margin-top: 20px;
}

.tfa-toggle-label-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tfa-toggle-label {
  font-weight: 500;
  color: var(--text-primary);
}

.tfa-toggle-status {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-style: italic;
}

/* Switch - improved version */
.tfa-switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 28px;
}

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

.tfa-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .28s;
  border-radius: 28px;
}

.tfa-slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .28s;
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.tfa-switch input:checked + .tfa-slider {
  background-color: var(--accent);
}

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

/* Action row + message */
.tfa-action-row {
  padding: 16px 24px;
  text-align: right;
}

.tfa-compact-btn {
  padding: 10px 20px;
  font-size: 0.94rem;
}

.tfa-status-message {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  line-height: 1.5;
  min-height: 1.5em;
}

/* Help & Info panel */
.tfa-help-section {
  padding: 0 24px 20px;
}

.tfa-help-link {
  color: var(--primary);
  font-weight: 500;
}

.tfa-info-panel {
  margin: 0 24px 24px;
  background: var(--surface-2, rgba(0,0,0,0.02));
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
}

.tfa-info-panel.active {
  display: block !important;
}

.tfa-clean-list.checkmarks li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}

.tfa-clean-list.checkmarks li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 4px;
  color: var(--success);
}

/* Alert box */
.tfa-alert-warning.modern {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #fff8e1;
  border-radius: 10px;
  border-left: 4px solid #f59e0b;
  margin: 20px 0 8px;
}

.tfa-alert-icon {
  font-size: 1.4rem;
  color: #d97706;
  line-height: 1;
}

/* Responsive */
@media (max-width: 480px) {
  .tfa-modern-toggle {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .tfa-action-row {
    text-align: center;
  }
}

/* Make message always take space but fade in/out */
.tfa-status-message {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  line-height: 1.5;
  min-height: 1.5em;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.25s ease;
  margin-top: 8px;
}

.tfa-status-message.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slightly more professional toggle label */
.tfa-toggle-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.tfa-toggle-status {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-style: normal;
}

/* Better badge contrast & size */
.tfa-status-pill {
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 600;
  gap: 12px;
}

.tfa-status-pill i {
  font-size: 1.25rem;
}














.privacy-notice {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 1.4rem;
  text-align: center;
}

.info-section h4 {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 1rem;
}

.clean-bullet-list {
  list-style: none;
  padding-left: 0;
}

.clean-bullet-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.6rem;
}

.clean-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}

.note-box {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 10px;
  padding: 1.2rem;
}


.privacy-notice,
.reassurance-box {
  border-radius: 16px;
  padding: 1.6rem;
}

.privacy-notice {
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.18);
}

.reassurance-box {
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.12);
}

.clean-bullet-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.clean-bullet-list li {
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.clean-bullet-list li::before {
  content: "\f058"; /* fa-circle-check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--success);
  font-size: 1.3rem;
  line-height: 1.6;
}










.danger-zone {
  border-color: var(--danger);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.12);
}

.warning-notice {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 16px;
  padding: 1.8rem;
  text-align: center;
}

.btn.danger {
  border: none;
  transition: all 0.2s;
  padding: 8px 12px;
}

.btn.danger:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn.danger:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}







.thank-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(to right, var(--accent), #c084fc, #a78bfa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0s linear;           /* reset */
}

.thank-popup.visible .thank-progress {
  transform: scaleX(1);
  transition: transform 120s linear;         /* ← 120 seconds = 2 minutes */
}








.link-card:active {
  cursor: grabbing; /* Shows a closed hand while dragging */
}







/* Style all select elements */
select {
    background-color: #1e1e1e;      /* Dark background */
    color: #ffffff;                 /* White text */
    border: 1px solid #333;         /* Subtle border */
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Hover state (slightly lighter) */
select:hover {
    background-color: #2a2a2a;      /* A bit lighter dark */
    border-color: #555;
}

/* Focus state (when clicked) */
select:focus {
    background-color: #2f2f2f;
    border-color: #777;
}

/* Optional: style dropdown arrow (modern browsers) */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}












.btn-check-username {
  /* Core */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;           /* space between icon and text */
  padding: 0.55rem 1rem;  /* smaller than Bootstrap default */
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  color: #ffffff;
  background-color: #0d6efd;        /* Bootstrap primary blue */
  border: none;
  border-radius: 50px;            /* modern rounded corners */
  cursor: pointer;
  transition: all 0.15s ease;

  /* Icon tweaks */
  i {
    font-size: 1.05em;
  }
}

/* Hover / focus states */
.btn-check-username:hover:not(:disabled) {
  background-color: #0b5ed7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.btn-check-username:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.35);
}

/* Disabled state – clearer than default */
.btn-check-username:disabled {
  background-color: #6c757d;
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Optional: smaller variant */
.btn-check-username.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  gap: 0.4rem;
}


















/* ── Base button style ──────────────────────────────────────── */
.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;              /* icon ↔ text spacing */
  justify-content: center;
  padding: 0.55em 1.1em;    /* compact but comfortable */
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.45;
  border: none;
  border-radius: 50px;    /* modern softer roundness */
  cursor: pointer;
  transition: 
    background-color 0.14s ease,
    transform 0.13s ease,
    box-shadow 0.14s ease;
  user-select: none;
}

.btn-action i {
  font-size: 1.05em;        /* icon slightly larger than text */
  width: 1.1em;             /* consistent icon width */
  text-align: center;
}

/* ── Check button (primary / blue) ──────────────────────────── */
.btn-check {
  color: white;
  background: #3b82f6;      /* Tailwind-like blue-500 */
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.2);
}

.btn-check:hover:not(:disabled) {
  background: #2563eb;      /* blue-600 */
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-check:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.2);
}

/* ── Save button (success / green) ──────────────────────────── */
.btn-save {
  color: white;
  background: var(--accent);     
}

.btn-save:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-save:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.2);
}

/* ── Disabled state (clear & consistent) ────────────────────── */
.btn-action:disabled {
  background: #6b7280;      /* gray-500 */
  color: #e5e7eb;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
  transform: none;
}

/* ── Focus ring (accessibility) ─────────────────────────────── */
.btn-action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4); /* blue ring – works for both */
}

/* ── Optional compact variant (even smaller) ────────────────── */
.btn-action.compact {
  padding: 0.45em 0.95em;
  font-size: 0.88rem;
  gap: 0.45rem;
}

.btn-action.compact i {
  font-size: 1em;
}




/* ── Update & Verify button (amber/orange – signals "change + confirm") ── */
.btn-update {
  color: white;
  background: #f59e0b;      /* amber-500 – warm, attention-grabbing but friendly */
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.25);
}

.btn-update:hover:not(:disabled) {
  background: #d97706;      /* amber-600 – deeper on hover */
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.btn-update:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.25);
}









/* Full-width modifier (for wider buttons like Change Password) */
.btn-action.full-width {
  width: 100%;
  padding: 0.7em 1.2em;     /* slightly taller for prominence */
  font-size: 0.97rem;
}

/* ── Change Password button (purple/violet – security/change vibe) ── */
.btn-change {
  color: white;
  background: var(--accent);
}

.btn-change:hover:not(:disabled) {
  background: var(--accent-hover);    
  transform: translateY(-1px);
}

.btn-change:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(124, 58, 237, 0.25);
}


/* ── Disabled (same across all) ──────────────────────────────── */
.btn-action:disabled {
  background: #6b7280;
  color: #e5e7eb;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
  transform: none;
}

/* ── Focus (accessibility – blue ring works for all) ─────────── */
.btn-action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
}













/* Styling for the reset message */
.reset-info {
  margin-top: 20px;
  padding: 4px;
  text-align: center;
  font-size: 12px;
  color: #888; /* Light grey color */
}




.link-card:has(.post-description) {
  font-size: 1rem;
}

.post-description p {
  margin: 0 0 1.1em;
}

.post-preview-card {
  border: 1px solid var(--accent);
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.12) !important;
}












/* Mobile + portrait tablets — stack + hide preview */
@media (max-width: 768px) {
  .link-editor-wrapper > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 20px;                    /* bit tighter than 24px looks better on small screens */
  }

  .link-editor-wrapper > div[style*="grid-template-columns"] > div:nth-child(2) {
    display: none !important;
  }

  /* Optional: full-width feel */
  .link-editor-wrapper {
    padding: 12px;                /* or whatever your mobile padding is */
  }

  #preview-card {
    display: none;                /* extra insurance */
  }
}


@media (max-width: 820px) {   /* catches ~810px iPads + smaller */
  .link-editor-wrapper > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 20px;               /* tighter for smaller screens */
  }

  .link-editor-wrapper > div[style*="grid-template-columns"] > div:nth-child(2) {
    display: none !important;
  }

  #preview-card {
    display: none;           /* extra safety */
  }
}

/* Optional: keep side-by-side a bit longer on bigger tablets (13") */
@media (min-width: 821px) and (max-width: 1100px) {
  /* maybe reduce gap/padding instead of full hide */
  .link-editor-wrapper > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr 0.8fr !important;   /* slimmer preview */
    gap: 16px;
  }
}






.category-title {
  font-weight: bold;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;                    /* space between icon and text */
}

.category-visibility-icon {
  display: inline-flex;
  align-items: center;
  font-size: 1em;
  opacity: 0.85;
  transition: all 0.2s ease;
  position: relative;          /* important for absolute tooltip */
}

.category-visibility-icon:hover {
  opacity: 1;
  transform: scale(1.12);
}

/* Visible state - white/normal */
.category-visibility-icon.visible i {
  color: #ffffff;              /* pure white / normal */
}

/* Hidden state - attention color */
.category-visibility-icon.hidden i {
  color: #f59e0b;              /* amber/orange */
}













/* 
.category-visibility-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 100%;                 
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;           


  background: #111827;       
  

  color: #f1f5f9;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
  box-shadow: 0 6px 16px rgba(0,0,0,0.6);  
  border: 1px solid rgba(255,255,255,0.06); 
}

.category-visibility-icon:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px); 
}


.category-visibility-icon::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #0a0f1e;        
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.category-visibility-icon:hover::before {
  opacity: 1;
  visibility: visible;
}*/



.link-hidden-indicator {
  transition: all 0.2s ease;
}

.link-hidden-indicator:hover {
  opacity: 1 !important;
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Optional: tooltip styling (native title is ok, but for better look) */
.link-hidden-indicator[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  right: 0;
  background: rgba(0,0,0,0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
  margin-bottom: 8px;
}






.platform-icon {
  transition: opacity 0.2s ease;
}

#preview-card:hover .platform-icon {
  opacity: 0.6 !important;
}





/* === DRAG & DROP UX IMPROVEMENTS === */
.drag-handle {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.45;
  cursor: grab;
  color: var(--text-tertiary);
  z-index: 10;
  font-size: 1.15rem;
  transition: opacity .2s;
}

.link-card:hover .drag-handle,
.category-container:hover .drag-handle {
  opacity: 0.85;
}

.dragging {
  opacity: 0.35 !important;
  transform: scale(0.96);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.3);
}

.drag-over {
  background: rgba(99, 102, 241, 0.15) !important;
  border: 2px dashed #6366f1 !important;
  transition: all 0.2s ease;
}

.links-container, #preview-links {
  min-height: 80px; /* makes dropping easier */
}




/* === REORDER CONTROLS - Ultra minimal + modern tooltips BELOW icons === */
.reorder-controls {
  position: absolute;
  top: 10px;
  right: 50px;                    /* snug next to 3-dot menu */
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.4;
  transition: opacity 0.2s ease;
  z-index: 12;
}

/* PC: full opacity on hover */
@media (hover: hover) and (pointer: fine) {
  .link-card:hover .reorder-controls,
  .category-container:hover .reorder-controls {
    opacity: 1;
  }
}

/* Mobile/touch: always visible but subtle */
@media (hover: none) or (pointer: coarse) {
  .reorder-controls {
    opacity: 0.65;
    right: 54px;                  /* more space for fingers */
  }
}

/* Tiny ultra-minimal buttons */
.reorder-btn,
.move-to-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(120, 120, 140, 0.4);
  color: #bbb;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}

.reorder-btn:hover,
.reorder-btn:active,
.move-to-btn:hover,
.move-to-btn:active {
  color: var(--accent);           /* accent color for icon/text */
  border-color: var(--accent);    /* accent border on hover */
  background: rgba(var(--accent-rgb), 0.15); /* transparent accent bg */
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.4); /* glow */
  transform: scale(1.25);
}

/* Modern sleek tooltip BELOW button */
.reorder-btn::after,
.move-to-btn::after {
  content: "";
  position: absolute;
  top: 100%;                      /* below the button */
  left: 50%;
  transform: translateX(-50%) translateY(6px); /* start position */
  background: rgba(20, 20, 30, 0.96);
  color: #eee;
  font-size: 0.73rem;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  backdrop-filter: blur(6px);
}

/* Specific tooltip texts */
.reorder-btn.up::after    { content: "Move up"; }
.reorder-btn.down::after  { content: "Move down"; }
.move-to-btn::after       { content: "Move to..."; }
#addlinkbtn::after       { content: "New link"; }

/* Show tooltip on hover/active */
.reorder-btn:hover::after,
.reorder-btn:active::after,
.move-to-btn:hover::after,
.move-to-btn:active::after {
  opacity: 1;
  transform: translateX(-50%) translateY(8px); /* final position + bounce */
}

/* Arrow pointer (pointing UP since tooltip is below) */
.reorder-btn::before,
.move-to-btn::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: rgba(20, 20, 30, 0.96);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.reorder-btn:hover::before,
.reorder-btn:active::before,
.move-to-btn:hover::before,
.move-to-btn:active::before {
  opacity: 1;
}

/* Move menu styling */
.move-to-menu {
  position: absolute;
  top: 28px;
  right: -8px;
  background: rgba(20, 20, 30, 0.96);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 10px;
  padding: 6px 0;
  min-width: 160px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  z-index: 30;
  display: none;
  backdrop-filter: blur(8px);
}

.move-to-menu.show {
  display: block;
}

.move-to-menu button {
  display: block;
  width: 100%;
  padding: 8px 14px;
  background: none;
  border: none;
  text-align: left;
  color: #ddd;
  font-size: 0.85rem;
  cursor: pointer;
}

.move-to-menu button:hover {
  background: rgba(var(--accent-rgb), 0.2);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .reorder-btn,
  .move-to-btn {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }
  .move-to-menu {
    right: auto;
    left: 0;
    min-width: 150px;
  }
}


/* Sleek modal move buttons */
.modal .move-option-btn {
  padding: 8px 16px;
  font-size: 0.45rem;
  color: #ddd;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  text-align: left;
}

.modal .move-option-btn:hover:not(:disabled) {
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.3);
}

.modal .move-option-btn.active {
  background: var(--accent);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.5);
}

.modal .move-option-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}











/* Best & cleanest fix */
.toast {
  list-style: none !important;          /* kills the bullet */
  list-style-type: none !important;
}

/* Or even broader (if many toasts/components are affected) */
div.toast,
*[class*="toast"] {
  list-style: none;
}

/* Nuclear option — if you're sure you don't need bullets anywhere outside real lists */
body * {
  list-style: none;
}

/* But normally just do this at the start of your CSS or in a reset: */
* {
  list-style: none;
  /* ... other reset properties ... */
}

ul, ol {
  list-style: revert;   /* or disc / decimal — bring back only for real lists */
}








































