/* ============================================
   kpr.lol — Dashboard & Admin Panel Styles
   Premium dark glassmorphism UI
   ============================================ */

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

body {
  font-family: 'Poppins', sans-serif;
  background: #0a0a0f;
  color: #e0e0e0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Fix input/select/textarea font */
input, select, textarea, button {
  font-family: 'Poppins', sans-serif;
}

/* ===========================
   Top Navigation (Legacy / Fallback)
   =========================== */
.dash-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-nav-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.dash-nav-brand span {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

.dash-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-nav-link {
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.dash-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.dash-nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-logout {
  padding: 8px 18px;
  background: rgba(255, 60, 60, 0.1);
  border: 1px solid rgba(255, 60, 60, 0.15);
  border-radius: 10px;
  color: rgba(255, 100, 100, 0.8);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-logout:hover {
  background: rgba(255, 60, 60, 0.15);
  border-color: rgba(255, 60, 60, 0.3);
  color: #ff6b6b;
}

/* ===========================
   Sidebar App Layout
   =========================== */
.dash-layout {
  display: flex;
  min-height: 100vh;
  background: #0a0a0f;
  position: relative;
}

/* Mobile Header Bar */
.dash-mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 99;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.dash-sidebar-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.dash-sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Sidebar Overlay */
.dash-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.dash-sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Sidebar Component */
.dash-sidebar {
  width: 260px;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  background: rgba(13, 13, 18, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  z-index: 101;
  padding: 24px 16px;
  overflow-y: auto;
  scrollbar-width: none;
}

.dash-sidebar::-webkit-scrollbar {
  display: none;
}

.dash-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 6px;
}

.dash-sidebar-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.dash-sidebar-brand span {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

/* User Profile Badge Card in Sidebar */
.dash-sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.dash-sidebar-user:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.dash-sidebar-avatar-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(52, 194, 122, 0.5);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: none;
}

.dash-sidebar-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-sidebar-user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dash-sidebar-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-sidebar-handle {
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Navigation List */
.dash-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.dash-sidebar-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.8px;
  padding: 10px 10px 4px;
  text-transform: uppercase;
}

.dash-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.dash-sidebar-link i {
  font-size: 0.95rem;
  width: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
}

.dash-sidebar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.dash-sidebar-link:hover i {
  color: #fff;
}

.dash-sidebar-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-sidebar-link.active i {
  color: var(--accent, #34C27A);
}

.dash-sidebar-sublink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 0.81rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.dash-sidebar-sublink i {
  font-size: 0.85rem;
  width: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s ease;
}

.dash-sidebar-sublink:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.04);
}

.dash-sidebar-sublink:hover i {
  color: var(--accent, #34C27A);
}

/* Sidebar Footer */
.dash-sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 16px;
}

.dash-sidebar-footer .btn-logout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 10px;
}

/* Main Content Area Layout */
.dash-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dash-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 10, 15, 0.4);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 90;
}

.dash-main-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-main-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.dash-main-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.dash-main-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-save-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #F3EFE2;
  border: none;
  border-radius: 12px;
  color: #0E1210;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}

.btn-save-header:hover {
  background: #E4DFCC;
  transform: translateY(-1px);
  box-shadow: none;
}

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

.dash-content-body {
  padding: 32px 36px 120px;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

/* ============================================================
   Dashboard Hero Banner & Tabbed Content Styling
   ============================================================ */

/* Hero Overview Banner */
.dash-hero-card {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 24, 22, 0.85), rgba(14, 18, 16, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 24px 28px;
  margin-bottom: 24px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: none;
}

.dash-hero-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(52, 194, 122, 0.08), transparent 70%);
  pointer-events: none;
}

.dash-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.dash-hero-user-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dash-hero-avatar-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 2.5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(52, 194, 122, 0.5);
  box-shadow: none;
  flex-shrink: 0;
}

.dash-hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0E1210;
}

.dash-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.dash-hero-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ECEEE9;
  letter-spacing: -0.3px;
}

.dash-hero-handle {
  font-size: 0.84rem;
  color: #8B9089;
  font-weight: 500;
}

.dash-hero-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-hero-btn-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #ECEEE9;
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: none;
}

.dash-hero-btn-profile:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: #34C27A;
  transform: translateY(-1px);
  box-shadow: none;
  color: #fff;
}

/* Tab Navigation Bar */
.dash-tabs-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 18, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 6px;
  border-radius: 16px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.dash-tabs-bar::-webkit-scrollbar {
  display: none;
}

/* Sliding Pill Background */
.dash-tabs-slider {
  position: absolute;
  top: 6px;
  left: 6px;
  height: calc(100% - 12px);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}

.dash-tab-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #8B9089;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.15s ease;
  box-shadow: none;
}

.dash-tab-btn i {
  font-size: 0.95rem;
  color: #8B9089;
  transition: color 0.2s ease;
}

.dash-tab-btn:hover {
  color: #ECEEE9;
}

.dash-tab-btn:hover i {
  color: #ECEEE9;
}

.dash-tab-btn.active {
  color: #ECEEE9;
  font-weight: 600;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.dash-tab-btn.active i {
  color: var(--accent, #34C27A);
}

/* Tab Panes */
.dash-tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dash-tab-pane.active {
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 1;
  transform: translateY(0);
}

/* Dashboard Card Panels */
.dash-card-panel {
  background: rgba(20, 24, 22, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: none;
  transition: border-color 0.25s ease;
}

.dash-card-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.dash-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #ECEEE9;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-card-title i {
  font-size: 1.05rem;
  color: var(--accent, #34C27A);
}

/* Floating Save Changes Bar */
.dash-sticky-save-bar {
  position: fixed;
  bottom: 24px;
  left: calc(50% + 130px);
  transform: translateX(-50%);
  background: rgba(14, 18, 16, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 999;
  transition: all 0.3s ease;
}

@media (max-width: 900px) {
  .dash-sticky-save-bar {
    left: 50%;
    width: calc(100% - 32px);
    max-width: 500px;
    justify-content: space-between;
  }
}

.dash-sticky-save-text {
  font-size: 0.82rem;
  color: #8B9089;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-sticky-save-text i {
  color: var(--accent, #34C27A);
}

.btn-save-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #F3EFE2;
  border: none;
  border-radius: 12px;
  color: #0E1210;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}

.btn-save-primary:hover {
  background: #E4DFCC;
  transform: translateY(-1px);
  box-shadow: none;
}

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

/* Legacy Section Support Overrides */
.dash-section {
  background: rgba(18, 18, 24, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.dash-section:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.dash-section-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.dash-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.dash-section-title i {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.4);
  width: 20px;
  text-align: center;
}

.dash-section-toggle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.25);
  transition: transform 0.3s ease;
}

.dash-section.collapsed .dash-section-toggle {
  transform: rotate(-90deg);
}

.dash-section-body {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

.dash-section.collapsed .dash-section-body {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

/* --- Form Elements --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-input,
.form-textarea,
.form-select {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.25s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: rgba(52, 194, 122, 0.5);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.06);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff40' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-select option {
  background: #151520;
  color: #fff;
}

.form-hint {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.25);
}

.char-counter {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.25);
  text-align: right;
}

.char-counter.over {
  color: #ff6b6b;
}

/* --- Avatar Preview --- */
.avatar-preview-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-preview-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.avatar-preview-row .form-input {
  flex: 1;
}

/* --- Color Picker Row --- */
.color-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-swatch {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.color-swatch input[type="color"] {
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  border: none;
  cursor: pointer;
  background: none;
}

.color-picker-row .form-input {
  flex: 1;
}

/* --- Social Link Row --- */
.social-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: border-color 0.2s;
}

.social-link-row:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.social-link-row .form-select {
  width: 140px;
  padding: 8px 32px 8px 10px;
  font-size: 0.82rem;
  border-radius: 8px;
  flex-shrink: 0;
}

.social-link-row .form-input {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.82rem;
  border-radius: 8px;
}

.social-link-delete {
  background: none;
  border: none;
  color: rgba(255, 80, 80, 0.5);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.social-link-delete:hover {
  color: #ff6b6b;
  background: rgba(255, 60, 60, 0.1);
}

.btn-add-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-add-link:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
}

.links-limit {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
}

/* --- Save Button --- */
.dash-save-area {
  position: sticky;
  bottom: 24px;
  z-index: 50;
}

.btn-save {
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, #1a3fa8, #2d5fd4);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-save:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn-save:active:not(:disabled) {
  transform: translateY(0);
}

.btn-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-save .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* ===========================
   Live Preview (Phone Frame)
   =========================== */
.dash-preview-area {
  position: sticky;
  top: 88px;
  align-self: start;
}

.preview-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-align: center;
}

.preview-phone {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  border-radius: 32px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0f;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  position: relative;
}

.preview-phone-notch {
  width: 120px;
  height: 24px;
  background: #0a0a0f;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.preview-phone-screen {
  padding: 0 16px 24px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow-y: auto;
  max-height: 580px;
}

.preview-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.preview-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.preview-bio {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 20px;
}

.preview-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
}

.preview-badges .bio-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #ddd;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 500;
}

.preview-link i {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* ===========================
   Admin Panel
   =========================== */
.admin-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* --- Admin Actions Bar --- */
.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-count-input {
  width: 70px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  font-size: 0.88rem;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}

.admin-count-input:focus {
  border-color: rgba(52, 194, 122, 0.4);
}

.btn-generate {
  padding: 10px 22px;
  background: #F3EFE2;
  border: none;
  border-radius: 10px;
  color: #0E1210;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: none;
}

.btn-generate:hover:not(:disabled) {
  background: #E4DFCC;
  transform: translateY(-1px);
  box-shadow: none;
}

.btn-generate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Tables --- */
.admin-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(18, 18, 24, 0.5);
  backdrop-filter: blur(12px);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 20px;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* --- Status Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-unused {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.15);
}

.badge-used {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-admin {
  background: rgba(52, 194, 122, 0.1);
  color: #34C27A;
  border: 1px solid rgba(52, 194, 122, 0.2);
}

/* --- Code Cell --- */
.code-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-text {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 6px;
}

.btn-copy {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-copy:hover {
  color: #34C27A;
  background: rgba(52, 194, 122, 0.08);
}

.btn-copy.copied {
  color: #4ade80;
}

/* --- Table Action Buttons --- */
.btn-table-delete {
  background: none;
  border: 1px solid rgba(255, 60, 60, 0.15);
  color: rgba(255, 100, 100, 0.6);
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-table-delete:hover {
  background: rgba(255, 60, 60, 0.1);
  border-color: rgba(255, 60, 60, 0.3);
  color: #ff6b6b;
}

/* --- User Avatar (Table) --- */
.user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}

.user-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.user-link:hover {
  color: #34C27A;
}

/* --- Empty State --- */
.empty-state {
  padding: 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.88rem;
}

.empty-state i {
  display: block;
  font-size: 2rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* --- Access Denied --- */
.access-denied {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 12px;
  text-align: center;
}

.access-denied i {
  font-size: 3rem;
  color: rgba(255, 80, 80, 0.4);
}

.access-denied h2 {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.5);
}

.access-denied p {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.9rem;
}

/* ===========================
   Toast Notifications
   =========================== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  background: rgba(18, 18, 24, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: toastIn 0.3s ease forwards;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
}

.toast.toast-out {
  animation: toastOut 0.25s ease forwards;
}

.toast-success {
  border-left: 3px solid #4ade80;
}

.toast-error {
  border-left: 3px solid #ff6b6b;
}

.toast-info {
  border-left: 3px solid #60a5fa;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 900px) {
  .dash-mobile-header {
    display: flex;
  }

  .dash-sidebar-overlay {
    display: block;
  }

  .dash-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 102;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .dash-sidebar.open {
    transform: translateX(0);
  }

  .dash-main-header {
    margin-top: 60px;
    padding: 16px 20px;
  }

  .dash-main-title {
    font-size: 1.15rem;
  }

  .dash-content-body {
    padding: 20px 16px;
  }

  .dash-content {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }

  .dash-preview-area {
    position: relative;
    top: 0;
    order: -1;
  }

  .preview-phone {
    max-width: 300px;
  }

  .preview-phone-screen {
    min-height: 360px;
    max-height: 420px;
  }
}

@media (max-width: 600px) {
  .dash-nav {
    padding: 12px 16px;
  }

  .dash-nav-brand {
    font-size: 1.1rem;
  }

  .dash-nav-link {
    font-size: 0.78rem;
    padding: 6px 10px;
  }

  .social-link-row {
    flex-wrap: wrap;
  }

  .social-link-row .form-select {
    width: 100%;
  }

  .admin-content {
    padding: 20px 16px;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 14px;
    font-size: 0.78rem;
  }

  .btn-save {
    border-radius: 12px;
  }

  .btn-save-header span {
    display: none;
  }
  .btn-save-header {
    padding: 10px 14px;
  }
}

/* ── Admin Badge Pills ──────────────────────────────── */
.badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: none;
}

.badge-pill:hover {
  border-color: var(--badge-color);
  color: var(--badge-color);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: none;
}

.badge-pill.active {
  border-color: var(--badge-color);
  color: var(--badge-color);
  background: color-mix(in srgb, var(--badge-color) 20%, transparent);
  box-shadow: none;
}

.badge-pill.active:hover {
  background: color-mix(in srgb, var(--badge-color) 32%, transparent);
  transform: translateY(-1px);
  box-shadow: none;
}
