/* ===== ROOT VARIABLES ===== */
:root {
  --gold: #F5A623;
  --gold-light: #FFD076;
  --gold-dark: #C47F17;
  --orange: #FF6B35;
  --orange-light: #FF8F5E;
  --orange-dark: #D94E1A;
  --bg-primary: #0D0D0D;
  --bg-secondary: #141414;
  --bg-card: #1A1A1A;
  --bg-card-hover: #222222;
  --bg-input: #1E1E1E;
  --border: #2A2A2A;
  --border-light: #3A3A3A;
  --text-primary: #F0F0F0;
  --text-secondary: #A0A0A0;
  --text-muted: #666666;
  --success: #4ADE80;
  --error: #F87171;
  --warning: #FBBF24;
  --info: #60A5FA;
  --gradient-gold: linear-gradient(135deg, var(--gold), var(--orange));
  --gradient-gold-soft: linear-gradient(135deg, rgba(245,166,35,0.15), rgba(255,107,53,0.15));
  --shadow-gold: 0 4px 30px rgba(245, 166, 35, 0.15);
  --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

input, select, textarea {
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.navbar-brand img { width: 32px; height: 32px; border-radius: 50%; }
.navbar-brand span {
  background: var(--gradient-gold);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.navbar-links a:hover { color: var(--gold); }

.navbar .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar .user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient-gold);
  color: #000;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 40px rgba(245, 166, 35, 0.4), 0 0 20px rgba(245, 166, 35, 0.2) inset;
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--gold);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.btn-danger {
  background: rgba(248, 113, 113, 0.15);
  color: var(--error);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.btn-danger:hover { background: rgba(248, 113, 113, 0.25); }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ===== PRO FEATURE LOCK ===== */
.pro-feature {
  position: relative;
}

.pro-overlay {
  display: none;
  position: absolute;
  inset: 0;
  padding: 8px;
  background: rgba(8, 8, 8, 0.76);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.pro-overlay.visible {
  display: flex;
}

.pro-overlay-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: min(100%, 520px);
  min-height: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(245, 166, 35, 0.28);
  background:
    radial-gradient(circle at top right, rgba(255, 208, 118, 0.16), transparent 44%),
    linear-gradient(160deg, rgba(36, 26, 10, 0.96), rgba(18, 18, 18, 0.96));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pro-overlay-card::after {
  content: '';
  position: absolute;
  top: -32px;
  right: -10px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.22), transparent 65%);
  pointer-events: none;
}

.pro-overlay-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.22);
  color: var(--gold-light);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pro-overlay-card h4 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.22;
  color: var(--text-primary);
}

.pro-overlay-card p {
  display: none;
}

.pro-overlay-list {
  display: none;
}

.pro-overlay-list span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.pro-overlay-list span::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.55rem;
}

.pro-overlay-card .btn {
  margin-top: 2px;
  align-self: flex-start;
}

.premium-upsell {
  margin-bottom: 1rem;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(245, 166, 35, 0.22);
  background:
    radial-gradient(circle at top left, rgba(245, 166, 35, 0.18), transparent 35%),
    linear-gradient(150deg, rgba(34, 25, 10, 0.94), rgba(17, 17, 17, 0.96));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
}

.premium-upsell-copy {
  margin-bottom: 10px;
}

.premium-upsell-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--gold-light);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.premium-upsell h4 {
  margin-bottom: 4px;
  font-size: 0.92rem;
  line-height: 1.25;
}

.premium-upsell p {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.premium-upsell-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.premium-upsell-pills span {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 0.68rem;
  font-weight: 600;
}

.pro-feature input:disabled,
.pro-feature textarea:disabled,
.pro-feature .toggle input:disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-light);
}

.card-glow:hover {
  border-color: rgba(245, 166, 35, 0.4);
  box-shadow: 0 10px 40px rgba(245, 166, 35, 0.15), 0 0 15px rgba(245, 166, 35, 0.1) inset;
  transform: translateY(-8px) scale(1.02);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
}

.form-control::placeholder { color: var(--text-muted); }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ===== TOGGLE SWITCH ===== */
.toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.toggle-wrap .toggle-label {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.toggle-wrap .toggle-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border-light);
  border-radius: 24px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--text-primary);
  border-radius: 50%;
  transition: var(--transition);
}

.toggle input:checked + .toggle-slider {
  background: var(--gold);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: #000;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-content {
  padding-top: 84px;
  padding-bottom: 3rem;
  min-height: 100vh;
}

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ===== SIDEBAR LAYOUT ===== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: calc(100vh - 64px);
  margin-top: 64px;
}

.sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.sidebar-section {
  padding: 0 1rem;
  margin-bottom: 1.5rem;
}

.sidebar-section h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding: 0 0.75rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.sidebar-link:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: var(--gradient-gold-soft);
  color: var(--gold);
}

.sidebar-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.main-content {
  padding: 2rem;
  overflow-y: auto;
}

/* ===== GUILD SELECT ===== */
.guild-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0.75rem;
  margin: 0 1rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.guild-selector img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.guild-selector .guild-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guild-selector .guild-members {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== HERO (Landing) ===== */
.hero {
  padding: 8rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(245, 166, 35, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 166, 35, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
  mask-image: radial-gradient(circle at center top, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center top, black 40%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 .highlight {
  background: var(--gradient-gold);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-gold);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== FEATURES SECTION ===== */
.features-section {
  padding: 5rem 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-heading p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.feature-card {
  padding: 2rem;
  text-align: center;
}

.feature-card .icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-gold-soft);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===== PRICING SECTION ===== */
.pricing-section { padding: 5rem 0; }

.pricing-card {
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.pricing-card.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: 16px;
  right: -30px;
  transform: rotate(45deg);
  background: var(--gradient-gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 40px;
}

.pricing-card .plan-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card .price-alt {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: bold;
}

.pricing-features li.disabled {
  opacity: 0.4;
}

.pricing-features li.disabled::before {
  content: '✗';
  color: var(--text-muted);
}

/* ===== EMBED PREVIEW ===== */
.embed-preview {
  background: #2B2D31;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  max-width: 520px;
}

.embed-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.embed-content {
  flex: 1;
  min-width: 0;
}

.embed-preview .embed-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.embed-preview .embed-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.embed-preview .embed-footer {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 0.5rem;
  margin-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.embed-preview .embed-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  object-fit: cover;
}

.embed-preview .embed-image {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-top: 0.75rem;
  display: block;
}

/* ===== BUTTON CONFIGURATOR ===== */
.button-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.button-config-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: grab;
}

.button-config-item:active { cursor: grabbing; }

.button-config-item .drag-handle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.button-config-item .btn-name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
}

.button-config-item .btn-emoji {
  font-size: 1.1rem;
}

/* ===== GUILD GRID (Server selection) ===== */
@keyframes guildPopIn {
  0% { opacity: 0; transform: translateY(40px) scale(0.85); box-shadow: 0 0 0 rgba(0,0,0,0); }
  70% { transform: translateY(-5px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.guild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.guild-grid .guild-card {
  animation-name: guildPopIn;
  animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
  animation-duration: 0.6s;
}

.guild-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 1.5rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.guild-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--border);
  transition: background 0.4s ease;
}

.guild-card:hover::before {
  background: var(--gradient-gold);
}

.guild-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 2px solid var(--border);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: var(--bg-secondary);
}

.guild-card:hover img {
  border-color: var(--gold);
  transform: scale(1.15) translateY(-5px);
  box-shadow: 0 10px 25px rgba(245, 166, 35, 0.3);
}

.guild-card .guild-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.guild-card .bot-status {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 99px;
  margin-top: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.guild-card .bot-status.online {
  background: rgba(74, 222, 128, 0.15);
  color: var(--success);
  animation: pulseGlow 2s infinite;
}

.guild-card .bot-status.offline {
  background: rgba(248, 113, 113, 0.15);
  color: var(--error);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  animation: slideInRight 0.3s ease;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-success {
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--success);
}

.toast-error {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--error);
}

.toast-info {
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: var(--info);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== LOADING ===== */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}

/* ===== COLOR PICKER ===== */
.color-picker-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-picker-wrap input[type="color"] {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: none;
}

.color-picker-wrap input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-picker-wrap input[type="color"]::-webkit-color-swatch { border: none; border-radius: var(--radius-sm); }

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-premium {
  background: var(--gradient-gold);
  color: #000;
}

.badge-free {
  background: var(--bg-input);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ===== FOOTER ===== */
.footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer a { color: var(--gold); }

/* ===== PAGE HEADER ===== */
.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: -280px;
    top: 64px;
    height: calc(100vh - 64px);
    width: 280px;
    z-index: 999;
    transition: var(--transition);
  }

  .sidebar.open {
    left: 0;
    box-shadow: 50vw 0 0 rgba(0,0,0,0.5);
  }

  .main-content { padding: 1.25rem; }
  .hero { padding: 6rem 0 4rem; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-stat .number { font-size: 1.5rem; }
  .navbar { padding: 0 1rem; }
  .navbar-links { gap: 1rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  
  .pricing-card.featured { transform: scale(1); }
  .pricing-card.featured:hover { transform: scale(1.02); }

  .mobile-menu-btn {
    display: flex !important;
  }
}

@media (max-width: 600px) {
  .navbar-links a[href^="#"] {
    display: none;
  }
  .navbar-brand span {
    font-size: 1.1rem;
  }
  .hero h1 { font-size: 1.75rem; }
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.25rem;
}

/* ===== CONFIRM MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.visible .modal-box {
  transform: scale(1) translateY(0);
}

.modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: var(--gradient-gold-soft);
}

.modal-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.modal-box p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.modal-actions .btn {
  min-width: 110px;
}

/* ===== ANIMATION UTILITIES ===== */
.fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.stagger > * {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }
.stagger > *:nth-child(7) { animation-delay: 0.35s; }
.stagger > *:nth-child(8) { animation-delay: 0.4s; }
.stagger > *:nth-child(9) { animation-delay: 0.45s; }
.stagger > *:nth-child(10) { animation-delay: 0.5s; }
.stagger > *:nth-child(11) { animation-delay: 0.55s; }
.stagger > *:nth-child(12) { animation-delay: 0.6s; }
.stagger > *:nth-child(n+13) { animation-delay: 0.65s; }

/* ===== PREMIUM GLOW ===== */
.premium-glow {
  position: relative;
}

.premium-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--gradient-gold);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.premium-glow:hover::after {
  opacity: 0.2;
}

/* Tab Navigation */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.tab {
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab:hover { color: var(--text-secondary); }

.tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.dashboard-log-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.dashboard-log-entry {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border);
  font-family: Consolas, 'Courier New', monospace;
}

.dashboard-log-entry[data-level='error'] {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
}

.dashboard-log-entry[data-level='success'] {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
}

.dashboard-log-entry[data-level='info'] {
  border-color: rgba(245, 166, 35, 0.25);
}

.dashboard-log-time {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.dashboard-log-message {
  font-size: 0.8rem;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}
