/* ===== KIRO — ثيم بنفسجي فخم ===== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #08060f;
  --bg-card: #130d20;
  --bg-elevated: #1b1230;
  --border: rgba(182, 128, 255, 0.2);
  --accent: #b96aff;
  --accent-dark: #7a32e8;
  --accent-glow: rgba(185, 106, 255, 0.35);
  --purple-mid: #973fff;
  --purple-light: #eed7ff;
  --gold: #f3bb4f;
  --gold-glow: rgba(243, 187, 79, 0.32);
  --text: #fbf8ff;
  --text-muted: #b7aec7;
  --danger: #f87171;
  --success: #34d399;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: 0.2s ease;
}

body {
  font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif;
  background:
    radial-gradient(1200px 700px at 88% -10%, rgba(185, 106, 255, 0.22), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(243, 187, 79, 0.11), transparent 60%),
    linear-gradient(180deg, #07050d 0%, #0a0812 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* ===== الهيدر ===== */
.page-with-header { padding-top: 64px; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(8, 6, 15, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}
.brand-logo { height: 40px; width: auto; display: block; object-fit: contain; filter: drop-shadow(0 0 10px rgba(185, 106, 255, 0.3)); }
.brand-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(130deg, var(--gold) 0%, #ffeac0 20%, var(--purple-light) 52%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.main-nav a {
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.lang {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: var(--bg-card);
}
.lang-toggle {
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
}
.lang-toggle:hover {
  color: var(--text);
}
.login-lang {
  position: fixed;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 10;
}
html[dir="ltr"] .header-inner,
html[dir="ltr"] .main-nav,
html[dir="ltr"] .header-actions {
  direction: ltr;
}
html[dir="ltr"] .main-nav a {
  text-align: left;
}
html[dir="ltr"] .hero-support-link {
  direction: ltr;
}
.user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  background: var(--bg-card);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}
.user-pill-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 62%, var(--gold) 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow), 0 0 16px var(--gold-glow);
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--accent); }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.82rem; font-weight: 600; }
.btn[disabled],
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* ===== صفحة تسجيل الدخول ===== */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.2rem;
}

.login-box {
  width: min(520px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(79, 247, 231, 0.2);
  padding: 1.9rem 1.3rem;
  text-align: center;
  background:
    radial-gradient(240px 140px at 80% -20%, rgba(185, 106, 255, 0.22), transparent 72%),
    radial-gradient(220px 120px at 0% 0%, rgba(79, 247, 231, 0.14), transparent 72%),
    linear-gradient(155deg, rgba(10, 12, 21, 0.95), rgba(22, 13, 36, 0.96));
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.42);
}

.logo-area {
  display: flex;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(185, 106, 255, 0.35));
}

.logo-placeholder {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(185, 106, 255, 0.2);
  color: #fff;
  font-weight: 800;
}

.login-box h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.1;
}

.login-subtitle {
  margin: 0.7rem auto 1.25rem;
  max-width: 420px;
  color: var(--text-muted);
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  padding: 0.55rem 0.95rem;
  text-decoration: none;
  font-weight: 800;
  color: #fff;
  border: 1px solid rgba(114, 137, 218, 0.45);
  background:
    linear-gradient(135deg, rgba(88, 101, 242, 0.96), rgba(114, 137, 218, 0.94));
  box-shadow: 0 14px 28px rgba(88, 101, 242, 0.3);
  transition: var(--transition);
}

.btn-discord:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ===== المحتوى الرئيسي ===== */
.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.main-content-center { text-align: center; padding-top: 3rem; }

.landing-main {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.hero-home {
  max-width: 980px;
  margin: 2rem auto 3.5rem;
  text-align: center;
  position: relative;
}
.hero-home::before {
  content: '';
  position: absolute;
  inset: -28px -18px;
  border-radius: 26px;
  border: 1px solid rgba(79, 247, 231, 0.1);
  background: radial-gradient(closest-side, rgba(79, 247, 231, 0.08), rgba(79, 247, 231, 0));
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(79, 247, 231, 0.24);
  background: rgba(14, 32, 36, 0.72);
  color: #6ef8ec;
  font-weight: 700;
  font-size: 0.96rem;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2.2rem, 7vw, 5rem);
  line-height: 1.05;
  font-weight: 800;
  color: #f6f9ff;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 1rem;
}
.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  max-width: 820px;
  margin: 0 auto 1.8rem;
}
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-support-link {
  color: #d7fff9;
  text-decoration: none;
  font-weight: 700;
  padding: 0.72rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(79, 247, 231, 0.2);
  background: rgba(16, 33, 39, 0.5);
  transition: var(--transition);
}
.hero-support-link:hover {
  color: #ffffff;
  border-color: rgba(79, 247, 231, 0.45);
  box-shadow: 0 10px 26px rgba(79, 247, 231, 0.16);
}

.home-servers {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.features-showcase {
  margin: 2rem auto 3rem;
}
.store-preview {
  margin: 0 auto 2.25rem;
  padding: 1.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(280px 160px at 80% 0%, rgba(79, 247, 231, 0.1), transparent 70%),
    linear-gradient(140deg, rgba(10, 14, 21, 0.8), rgba(28, 18, 44, 0.84));
}
.store-preview-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.features-head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 1.5rem;
}
.features-title {
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  line-height: 1.15;
  margin: 0 0 0.45rem;
  color: #f7fbff;
  font-weight: 800;
}
.features-subtitle {
  color: var(--text-muted);
  font-size: 1.02rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.feature-card {
  background:
    radial-gradient(220px 140px at 20% 0%, rgba(79, 247, 231, 0.08), transparent 70%),
    linear-gradient(165deg, rgba(11, 13, 23, 0.92), rgba(16, 12, 27, 0.92));
  border: 1px solid rgba(79, 247, 231, 0.14);
  border-radius: 18px;
  padding: 1.35rem 1.15rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 247, 231, 0.36);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), 0 0 18px rgba(79, 247, 231, 0.14);
}
.feature-card--highlight {
  border-color: rgba(79, 247, 231, 0.45);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.44), 0 0 26px rgba(79, 247, 231, 0.16);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  background: rgba(11, 44, 43, 0.65);
  border: 1px solid rgba(79, 247, 231, 0.25);
  margin-bottom: 0.9rem;
}
.feature-card h3 {
  font-size: 1.8rem;
  line-height: 1.18;
  margin: 0 0 0.55rem;
  color: #f4f8ff;
}
.feature-card p {
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  font-size: 0.96rem;
}
.feature-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.feature-card li {
  position: relative;
  padding-right: 1.55rem;
  color: #dae6f2;
  font-size: 0.92rem;
}
.feature-card li::before {
  content: '✓';
  position: absolute;
  right: 0;
  top: 0;
  color: #43f3ce;
  font-weight: 700;
}

.store-main {
  padding-top: 2.8rem;
}
.store-hero {
  text-align: center;
  margin: 0 auto 2rem;
  max-width: 860px;
}
.store-note {
  margin-top: 0.85rem;
  color: #8adfd4;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.plan-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(79, 247, 231, 0.18);
  background:
    radial-gradient(220px 140px at 18% 0%, rgba(79, 247, 231, 0.1), transparent 70%),
    linear-gradient(170deg, rgba(10, 12, 21, 0.92), rgba(20, 16, 34, 0.94));
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  min-height: 430px;
}
.plan-card--featured {
  border-color: rgba(79, 247, 231, 0.42);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 24px rgba(79, 247, 231, 0.12);
}
.plan-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: linear-gradient(135deg, #4ff7e7, #23bcae);
  color: #051418;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}
.plan-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(82, 61, 128, 0.42);
  border: 1px solid rgba(185, 106, 255, 0.3);
  margin-bottom: 0.7rem;
}
.plan-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.7rem;
}
.plan-desc {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  min-height: 54px;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.45rem;
}
.plan-features li {
  position: relative;
  padding-right: 1.45rem;
  color: #d9e5f0;
}
.plan-features li::before {
  content: '●';
  position: absolute;
  right: 0;
  color: #4ff7e7;
}
.plan-price-wrap {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.plan-price {
  font-size: 2.3rem;
  font-weight: 800;
}
.plan-period {
  color: var(--text-muted);
}
.plan-btn {
  margin-top: 0.75rem;
  width: 100%;
}

.checkout-main {
  padding-top: 2.6rem;
}
.checkout-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
}
.checkout-summary,
.checkout-form-side {
  background: rgba(10, 12, 21, 0.88);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.15rem;
}
.checkout-back {
  color: #d9fff8;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.4rem;
}
.checkout-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}
.checkout-subtitle {
  margin: 0 0 0.9rem;
  color: var(--text-muted);
}
.order-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-elevated);
  padding: 1rem;
}
.order-plan-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border);
}
.order-plan-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 247, 231, 0.12);
  font-size: 1.3rem;
}
.order-plan-head h3 {
  margin: 0;
  font-size: 1.24rem;
}
.order-plan-head p {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.order-lines {
  padding-top: 0.7rem;
  display: grid;
  gap: 0.4rem;
}
.order-lines div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d4dfeb;
}
.order-total-line {
  margin-top: 0.2rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
}
.order-total-line b {
  font-size: 1.35rem;
}
.coupon-row {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}
.coupon-row input {
  width: 100%;
  padding: 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.coupon-hint {
  color: var(--text-muted);
  display: block;
  margin-top: 0.5rem;
}
.checkout-block {
  margin-bottom: 1rem;
}
.checkout-label {
  display: block;
  margin-bottom: 0.45rem;
  color: #f1f5ff;
  font-weight: 700;
}
.checkout-form select {
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.payment-methods {
  display: grid;
  gap: 0.55rem;
}
.payment-method-item {
  display: block;
  cursor: pointer;
}
.payment-method-item input {
  display: none;
}
.payment-method-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 16, 30, 0.9);
  transition: var(--transition);
}
.payment-chips {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.payment-chips small {
  border-radius: 8px;
  padding: 0.2rem 0.45rem;
  background: rgba(79, 247, 231, 0.12);
  border: 1px solid rgba(79, 247, 231, 0.2);
  color: #84fff2;
}
.payment-method-item input:checked + .payment-method-content {
  border-color: rgba(79, 247, 231, 0.45);
  box-shadow: 0 0 0 3px rgba(79, 247, 231, 0.12);
}
.terms-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0.9rem 0 1rem;
}
.terms-row input {
  width: 18px;
  height: 18px;
}
.checkout-submit {
  width: 100%;
}
.checkout-login-box {
  text-align: center;
}
.checkout-login-box h2 {
  margin-bottom: 0.4rem;
}
.checkout-login-box p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.success-card {
  max-width: 720px;
  margin: 4rem auto 0;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(10, 12, 21, 0.92), rgba(20, 16, 34, 0.94));
  padding: 2rem 1.25rem;
}
.success-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin: 0 auto 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #052517;
  background: linear-gradient(135deg, #5bfad3, #1ecb9f);
  font-weight: 800;
}
.success-details {
  margin: 1rem auto 1.1rem;
  max-width: 460px;
  display: grid;
  gap: 0.35rem;
}
.success-details p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.page-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-subtitle { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1rem; }

.empty-message {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.empty-hint {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}
.main-content-center .btn-lg { margin-top: 0.5rem; }

.coming-card {
  max-width: 640px;
  margin: 5.5rem auto 0;
  padding: 2.2rem 1.4rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    radial-gradient(240px 140px at 20% 0%, rgba(79, 247, 231, 0.12), transparent 70%),
    linear-gradient(150deg, rgba(11, 13, 22, 0.88), rgba(26, 18, 48, 0.88));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}
.coming-title {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1;
  margin: 0 0 0.75rem;
  font-weight: 800;
  color: #f9fbff;
}
.coming-note {
  color: var(--text-muted);
  margin: 0 0 1.4rem;
  font-size: 1rem;
}

/* ===== شبكة السيرفرات ===== */
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
  justify-items: center;
}
.server-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  width: 100%;
  max-width: 220px;
}
.server-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px var(--accent-glow);
}
.server-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 0.75rem;
  object-fit: cover;
}
.server-name { font-weight: 700; font-size: 1rem; }

/* ===== صفحة الأوامر ===== */
.commands-page .page-title { margin-bottom: 0.25rem; }
.commands-hero-card {
  margin-bottom: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  background:
    radial-gradient(220px 120px at 90% -15%, rgba(79, 247, 231, 0.14), transparent 72%),
    linear-gradient(150deg, rgba(11, 13, 22, 0.92), rgba(22, 14, 34, 0.92));
}
.commands-prefix-line {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
}
.prefix-code {
  background: var(--bg-elevated);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-family: monospace;
  color: var(--accent);
}
.commands-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
.commands-main { min-width: 0; }

.cmd-category { margin-bottom: 2rem; }
.cmd-category-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--purple-light);
}
.cmd-list { display: flex; flex-direction: column; gap: 0.5rem; }
.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.cmd-item .cmd-name {
  font-family: monospace;
  font-weight: 600;
  color: var(--accent);
}
.cmd-item .cmd-name.special { color: var(--purple-light); }
.cmd-item .cmd-desc { color: var(--text-muted); font-size: 0.9rem; }

.commands-sidebar { position: sticky; top: 80px; }
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.sidebar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--purple-light);
}
.features-list {
  list-style: none;
}
.features-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.features-list li:last-child { border-bottom: none; }
.feat-icon { font-size: 1rem; }

/* ===== صفحة السيرفر — تخطيط + سايدبار يمين ===== */
.server-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  align-items: start;
}
.server-main { min-width: 0; }

.server-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.server-icon-lg { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.server-header h1 { font-size: 1.5rem; font-weight: 800; margin: 0; }

.tabs {
  display: none;
}
.tabs a {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.tabs a:hover { color: var(--accent); border-color: var(--accent); }
.tabs a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.section h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.section p { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.9rem; }
.section-anchor { scroll-margin-top: 80px; }

.perm-group { margin-bottom: 1rem; }
.perm-group label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; font-weight: 600; }
.perm-group input,
.perm-group select {
  width: 100%;
  padding: 0.7rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
}
.perm-group input:focus,
.perm-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.perm-group small { display: block; margin-top: 0.3rem; color: var(--text-muted); font-size: 0.8rem; }

.cmd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.cmd-table th,
.cmd-table td {
  padding: 0.65rem 0.75rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
}
.cmd-table th {
  background: var(--bg-elevated);
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.cmd-table tr:last-child td { border-bottom: none; }
.cmd-table .cmd-name { font-family: monospace; color: var(--accent); font-weight: 600; }
.cmd-table .cmd-aliases { color: var(--text-muted); font-size: 0.85rem; }
.special-cmd {
  display: inline-block;
  background: var(--bg-elevated);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--purple-light);
}
.commands-intro { margin-bottom: 0.75rem; }

/* الترحيب والمغادرة */
.welcome-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.block-title { font-weight: 700; font-size: 1rem; color: var(--text); }
.toggle-wrap {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.toggle-wrap input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}
.toggle-wrap input:checked + .toggle-slider {
  background: var(--accent);
  border-color: var(--accent);
}
.toggle-wrap input:checked + .toggle-slider::before {
  transform: translateX(22px);
  background: #fff;
}
.perm-group textarea {
  width: 100%;
  padding: 0.7rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  resize: vertical;
}
.radio-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
}
.radio-group input { margin: 0; }
.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.inline-check input { margin: 0; }
.vars-hint { margin-top: 0.35rem; }
.vars-hint code { background: var(--bg-elevated); padding: 0.15rem 0.35rem; border-radius: 4px; font-size: 0.8rem; color: var(--purple-light); }

/* فاصل بسيط داخل الفورمات */
.perm-divider {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}
.section-subtitle {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.section-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(11, 8, 19, 0.5);
}
.table-scroll .cmd-table {
  min-width: 920px;
}

.auto-react-builder {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: linear-gradient(150deg, rgba(18, 12, 30, 0.86), rgba(10, 8, 19, 0.86));
}
.auto-react-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.75rem;
}
.auto-react-toggle {
  margin-inline-start: auto;
}
.auto-react-text {
  margin-bottom: 0.75rem;
}
.auto-react-emoji-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}
.auto-react-emoji-head small {
  color: var(--text-muted);
}
.auto-react-emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.5rem;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(11, 8, 19, 0.6);
}
.auto-react-emoji-btn {
  border: 1px solid rgba(185, 106, 255, 0.2);
  border-radius: 10px;
  background: rgba(21, 14, 34, 0.8);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.45rem;
  cursor: pointer;
  text-align: start;
  transition: var(--transition);
}
.auto-react-emoji-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.auto-react-emoji-btn span {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.auto-react-emoji-btn:hover {
  border-color: rgba(185, 106, 255, 0.45);
}
.auto-react-emoji-btn.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(185, 106, 255, 0.2);
  background: rgba(38, 23, 62, 0.92);
}
.auto-react-selected {
  margin-top: 0.75rem;
}
.auto-react-selected-list {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 40px;
}
.auto-react-selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(185, 106, 255, 0.3);
  background: rgba(25, 16, 40, 0.75);
}
.auto-react-selected-chip img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.auto-react-selected-chip small {
  color: #f3ebff;
  font-size: 0.78rem;
}
.auto-react-selected-chip.text-only {
  color: #f3ebff;
  font-size: 0.82rem;
}
.auto-react-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.separator-builder-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem;
  margin-bottom: 0.9rem;
  background: linear-gradient(150deg, rgba(18, 12, 30, 0.86), rgba(10, 8, 19, 0.86));
}
.separator-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.separator-config-grid.one-col {
  grid-template-columns: 1fr;
}
.separator-config-grid label {
  margin: 0;
}
.separator-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}
.separator-upload-row small {
  color: var(--text-muted);
}

.separator-channel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}
.separator-channel-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.separator-channel-list {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  background: rgba(11, 8, 19, 0.5);
}
.separator-channel-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(185, 106, 255, 0.18);
  border-radius: 10px;
  background: rgba(18, 14, 30, 0.7);
  font-size: 0.9rem;
}
.separator-channel-item input {
  margin: 0;
}
.separator-channel-name {
  color: #efeaff;
  font-weight: 600;
}
.separator-channel-meta {
  margin-inline-start: auto;
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* الرقابة التلقائية */
.auto-mod-master {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  background: linear-gradient(140deg, rgba(20, 15, 33, 0.9), rgba(15, 11, 27, 0.9));
}
.auto-mod-master h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}
.auto-mod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.auto-mod-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem;
  background: linear-gradient(150deg, rgba(17, 12, 29, 0.92), rgba(12, 9, 21, 0.9));
}
.auto-mod-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.auto-mod-head h4 {
  font-size: 0.96rem;
  font-weight: 700;
  margin: 0;
}
.auto-mod-card p {
  font-size: 0.84rem;
  margin-bottom: 0.65rem;
  color: var(--text-muted);
}
.auto-mod-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.auto-mod-inputs.one-col {
  grid-template-columns: 1fr;
}
.auto-mod-inputs label {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.auto-mod-inputs input,
.auto-mod-inputs select,
.auto-mod-inputs textarea {
  margin-top: 0.3rem;
}
.auto-mod-card textarea {
  width: 100%;
  min-height: 98px;
  resize: vertical;
}
.auto-mod-actions {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem;
  margin-bottom: 1rem;
  background: rgba(14, 11, 24, 0.78);
}
.auto-mod-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.8rem;
}

/* اختصارات الأوامر */
.cmd-shortcuts-list { margin-bottom: 1rem; }
.cmd-shortcut-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.cmd-shortcut-row:last-child { border-bottom: none; }
.cmd-shortcut-info { display: flex; flex-direction: column; gap: 0.25rem; }
.cmd-shortcut-name { font-family: monospace; font-weight: 700; color: var(--accent); }
.cmd-shortcut-desc { font-size: 0.9rem; color: var(--text-muted); }
.cmd-shortcut-input-wrap label { display: block; margin-bottom: 0.35rem; font-size: 0.85rem; font-weight: 600; }
.cmd-shortcut-input-wrap input { width: 100%; padding: 0.5rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); }
@media (max-width: 640px) {
  .cmd-shortcut-row { grid-template-columns: 1fr; }
}

/* إدارة الأوامر */
.cmd-manage-category {
  margin-bottom: 1.1rem;
}
.cmd-manage-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(13, 10, 22, 0.86), rgba(17, 12, 27, 0.9));
  overflow: hidden;
}
.cmd-manage-row {
  border-bottom: 1px solid var(--border);
}
.cmd-manage-row:last-child {
  border-bottom: none;
}
.cmd-manage-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
}
.cmd-manage-toggle {
  margin: 0;
}
.cmd-manage-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.cmd-manage-editor {
  border-top: 1px solid var(--border);
  padding: 0.95rem;
  background: rgba(10, 8, 18, 0.78);
}
.cmd-manage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.cmd-manage-editor .cmd-shortcut-input-wrap small {
  color: var(--text-muted);
}
.cmd-manage-editor .cmd-role-select {
  width: 100%;
  min-height: 128px;
  padding: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}
.cmd-manage-editor .cmd-channel-select {
  width: 100%;
  min-height: 128px;
  padding: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}
.cmd-editor-actions {
  margin-top: 0.8rem;
  display: flex;
  justify-content: flex-end;
}
.cmd-important-note {
  color: #f5c8b7 !important;
}
.cmd-owner-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
@media (max-width: 820px) {
  .cmd-manage-main {
    grid-template-columns: 1fr auto;
  }
  .cmd-manage-toggle {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .cmd-manage-grid {
    grid-template-columns: 1fr;
  }
}

/* صلاحيات كل أمر */
.cmd-perms-list {
  margin-bottom: 1rem;
}
.cmd-perm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.cmd-perm-row:last-child {
  border-bottom: none;
}
.cmd-perm-row select[multiple] {
  width: 100%;
  min-height: 120px;
  padding: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}
.no-roles-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* sections as تبويبات منفصلة */
.section-hidden {
  display: none;
}

/* الرولات التلقائية */
.roles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.role-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}
.role-checkbox input {
  margin: 0;
}

.welcome-image-preview {
  margin-top: 0.5rem;
}
.welcome-image-preview img {
  max-width: 140px;
  max-height: 140px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  object-fit: cover;
}
.card-preview-canvas {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 1100 / 430;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 0.75rem;
}
.card-preview-canvas.card-preview-fallback {
  background: linear-gradient(135deg, #071224, #10254a, #1f1033);
}
.card-preview-avatar {
  position: absolute;
  left: 18%;
  top: 66%;
  transform: translate(-50%, -50%);
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 4px solid rgba(255, 208, 91, 0.95);
  background: rgba(25, 35, 62, 0.9);
  cursor: move;
  user-select: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.card-preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.card-preview-name {
  position: absolute;
  left: 36%;
  top: 78%;
  transform: translate(-50%, -50%);
  padding: 0.25rem 0.75rem;
  background: rgba(7, 12, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  cursor: move;
  user-select: none;
  white-space: nowrap;
}
.card-layout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.card-layout-grid small {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}
@media (max-width: 720px) {
  .card-layout-grid {
    grid-template-columns: 1fr;
  }
}

/* اللوقات في الداشبورد */
.logs-table select,
.logs-table input[type="color"],
.logs-table input[type="text"],
.logs-table input[type="number"] {
  width: 100%;
  padding: 0.35rem 0.4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}
.logs-table input[type="color"] {
  padding: 0;
  height: 32px;
}
.toggle-sm {
  transform: scale(0.9);
}

/* السايدبار صفحة السيرفر */
.server-sidebar { position: sticky; top: 80px; }
.server-list-sidebar { margin-bottom: 1rem; }
.sidebar-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.server-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.server-avatar-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  transition: var(--transition);
}
.server-avatar-wrap:hover { border-color: var(--accent); }
.server-avatar-wrap.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); }
.server-avatar { width: 100%; height: 100%; object-fit: cover; display: block; }

.selected-server { text-align: center; }
.selected-server-icon { width: 48px; height: 48px; border-radius: 50%; margin-bottom: 0.5rem; object-fit: cover; }
.selected-server-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.server-subnav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 60vh;
  overflow: auto;
  padding-inline-end: 0.2rem;
}
.server-subnav a {
  padding: 0.58rem 0.72rem;
  color: #d0c8e0;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  border: 1px solid rgba(185, 106, 255, 0.15);
  background:
    linear-gradient(140deg, rgba(19, 13, 32, 0.95), rgba(24, 16, 40, 0.92));
  transition: var(--transition);
}
.server-subnav a:hover {
  color: #fff;
  border-color: rgba(185, 106, 255, 0.45);
  transform: translateY(-1px);
}
.server-subnav a.active {
  color: #fff;
  font-weight: 700;
  border-color: rgba(243, 187, 79, 0.7);
  background:
    linear-gradient(135deg, rgba(130, 58, 233, 0.96), rgba(185, 106, 255, 0.92));
  box-shadow: 0 10px 22px rgba(130, 58, 233, 0.3);
}
.subnav-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.subnav-emoji {
  font-size: 1rem;
  opacity: 0.95;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 0.75rem 1.5rem;
  background: var(--success);
  color: #0a0a0f;
  border-radius: var(--radius-sm);
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* صفحة بوتاتي */
.my-bots-main {
  padding-top: 2.2rem;
}
.my-bots-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 1.1rem;
}
.my-stat-card {
  border: 1px solid rgba(31, 194, 184, 0.24);
  border-radius: 12px;
  padding: 0.95rem 1.05rem;
  background:
    radial-gradient(circle at 100% -30%, rgba(31, 194, 184, 0.18), transparent 55%),
    linear-gradient(155deg, rgba(8, 16, 30, 0.9), rgba(17, 9, 28, 0.86));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
}
.my-stat-label {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.my-stat-value {
  font-size: 1.42rem;
  line-height: 1;
  color: var(--text);
}
.my-stat-value small {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-inline-start: 0.35rem;
}
.my-bots-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.25rem;
}
.my-bots-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.my-bots-tab {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  background: rgba(13, 11, 21, 0.7);
  transition: 0.2s ease;
}
.my-bots-tab:hover {
  color: var(--text);
  border-color: rgba(31, 194, 184, 0.45);
}
.my-bots-tab.is-active {
  color: #062926;
  border-color: rgba(31, 194, 184, 0.35);
  background: linear-gradient(135deg, rgba(31, 194, 184, 0.96), rgba(79, 235, 211, 0.9));
}
.my-bots-toolbar-actions {
  display: flex;
  align-items: center;
}
.my-bots-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 1.15rem;
}
.my-bots-premium-card {
  border: 1px solid rgba(31, 194, 184, 0.2);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% -25%, rgba(147, 51, 234, 0.24), transparent 48%),
    linear-gradient(165deg, rgba(11, 15, 26, 0.98), rgba(10, 10, 18, 0.98));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
  position: relative;
}
.my-bots-card-banner {
  position: relative;
  height: 162px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.my-bots-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(0.95) contrast(1.03);
}
.my-bots-banner-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 240px at 90% -30%, rgba(157, 78, 221, 0.35), transparent 60%),
    radial-gradient(420px 200px at 5% 0%, rgba(31, 194, 184, 0.28), transparent 72%),
    linear-gradient(145deg, rgba(15, 20, 32, 0.95), rgba(12, 11, 24, 0.92));
}
.my-bots-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 8, 15, 0.85), rgba(7, 8, 15, 0.2) 46%, rgba(7, 8, 15, 0.06));
}
.my-bots-card-menu-btn {
  position: absolute;
  inset-inline-end: 0.9rem;
  top: 0.8rem;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  background: rgba(9, 12, 20, 0.82);
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.my-bots-card-menu-btn:hover {
  border-color: rgba(31, 194, 184, 0.45);
}
.my-bots-card-menu {
  position: absolute;
  top: 3.15rem;
  inset-inline-end: 0.9rem;
  width: 220px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 7, 12, 0.96);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.46);
  padding: 0.42rem;
  display: none;
  z-index: 5;
}
.my-bots-card-menu.is-open {
  display: grid;
}
.my-bots-card-menu a,
.my-bots-card-menu button {
  width: 100%;
  text-align: start;
  text-decoration: none;
  border: 0;
  background: transparent;
  color: #eef2ff;
  padding: 0.58rem 0.65rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}
.my-bots-card-menu a:hover,
.my-bots-card-menu button:hover {
  background: rgba(31, 194, 184, 0.16);
}
.my-bots-card-avatar {
  position: absolute;
  inset-inline-start: 1rem;
  bottom: -31px;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: rgba(14, 18, 26, 0.95);
  box-shadow: 0 14px 20px rgba(0, 0, 0, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}
.my-bots-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.my-bots-card-avatar span {
  font-size: 1.85rem;
}
.my-bots-card-body {
  padding: 1.45rem 1rem 1rem;
}
.my-bots-status-line {
  margin-top: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.my-bots-status-pill,
.my-bots-runtime-pill {
  border-radius: 999px;
  padding: 0.25rem 0.62rem;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.my-bots-status-pill.is-active {
  background: rgba(16, 185, 129, 0.14);
  color: #99f6e4;
  border-color: rgba(16, 185, 129, 0.35);
}
.my-bots-status-pill.is-inactive {
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.32);
}
.my-bots-runtime-pill.is-ready {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.1);
}
.my-bots-runtime-pill.is-missing {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(248, 113, 113, 0.11);
}
.my-bots-card-title {
  margin: 0.8rem 0 0.1rem;
  font-size: 1.58rem;
  line-height: 1.2;
}
.my-bots-card-subtitle {
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  font-size: 1rem;
}
.my-bots-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.my-bots-metric {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.62rem 0.7rem;
}
.my-bots-metric span {
  display: block;
  font-size: 0.79rem;
  color: var(--text-muted);
  margin-bottom: 0.18rem;
}
.my-bots-metric strong {
  font-size: 1.06rem;
}
.my-bots-remaining {
  margin-top: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.62rem 0.7rem;
  background: rgba(255, 255, 255, 0.03);
}
.my-bots-remaining-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.my-bots-remaining-head strong {
  font-size: 0.94rem;
}
.my-bots-remaining-head span {
  color: var(--text-muted);
  font-size: 0.84rem;
}
.my-bots-remaining-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.my-bots-remaining-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #4ade80, #22d3ee);
}
.my-bots-card-server {
  margin-top: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.62rem 0.7rem;
  background: rgba(255, 255, 255, 0.03);
}
.my-bots-card-server span {
  display: block;
  color: var(--text-muted);
  font-size: 0.79rem;
  margin-bottom: 0.16rem;
}
.my-bots-card-server strong {
  font-size: 0.98rem;
}
.my-bots-inline-actions {
  margin-top: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.my-bots-alert {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-weight: 600;
}
.my-bots-alert--ok {
  background: rgba(16, 101, 72, 0.26);
  border-color: rgba(52, 211, 153, 0.35);
  color: #99f6e4;
}
.my-bots-alert--err {
  background: rgba(105, 25, 32, 0.26);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}
.my-bots-alert--warn {
  background: rgba(140, 90, 12, 0.22);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fde68a;
}
.my-bot-status-ok {
  color: #99f6e4;
}
.my-bot-status-bad {
  color: #fecaca;
}
.my-bots-modal-open {
  overflow: hidden;
}
.my-bots-modal {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 1.05rem;
}
.my-bots-modal[hidden] {
  display: none !important;
}
.my-bots-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 2, 8, 0.66);
  backdrop-filter: blur(2px);
}
.my-bots-modal-panel {
  position: relative;
  width: min(900px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(31, 194, 184, 0.32);
  background:
    radial-gradient(circle at 90% -15%, rgba(31, 194, 184, 0.2), transparent 45%),
    linear-gradient(165deg, rgba(9, 13, 24, 0.98), rgba(7, 8, 16, 0.98));
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.48);
  padding: 1rem;
}
.my-bots-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.95rem;
}
.my-bots-modal-header h3 {
  margin: 0;
  font-size: 1.35rem;
}
.my-bots-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 18, 0.72);
  color: var(--text);
  cursor: pointer;
}
.my-bots-edit-form {
  display: grid;
  gap: 0.9rem;
}
.my-bots-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.my-bots-field {
  display: grid;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.my-bots-field input,
.my-bots-field select {
  width: 100%;
  padding: 0.63rem 0.76rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(8, 6, 14, 0.72);
  color: var(--text);
  font-family: inherit;
}
.my-bots-field input:focus,
.my-bots-field select:focus,
.my-bots-invite-preview textarea:focus {
  outline: none;
  border-color: rgba(31, 194, 184, 0.55);
  box-shadow: 0 0 0 2px rgba(31, 194, 184, 0.16);
}
.my-bots-field small {
  color: var(--text-muted);
  font-size: 0.79rem;
}
.my-bots-edit-options {
  display: grid;
  gap: 0.46rem;
}
.my-bots-checkbox {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  color: var(--text);
}
.my-bots-checkbox input[type="checkbox"] {
  accent-color: var(--accent);
}
.my-bots-invite-preview {
  display: grid;
  gap: 0.35rem;
}
.my-bots-invite-preview label {
  color: var(--text-muted);
  font-size: 0.87rem;
}
.my-bots-invite-preview textarea {
  width: 100%;
  resize: vertical;
  min-height: 76px;
  padding: 0.63rem 0.76rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(8, 6, 14, 0.78);
  color: var(--text);
  font-family: inherit;
}
.my-bots-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

@media (max-width: 1024px) {
  .my-bots-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .my-bots-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .my-bots-edit-grid { grid-template-columns: 1fr; }
  .my-bots-toolbar { flex-direction: column; align-items: stretch; }
  .my-bots-toolbar-actions { justify-content: flex-start; }
  .commands-layout,
  .server-layout { grid-template-columns: 1fr; }
  .commands-sidebar,
  .server-sidebar { position: static; }
  .server-sidebar { order: -1; }
  .server-subnav { max-height: none; }
  .auto-mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-home::before { inset: -14px -4px; }
  .features-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .checkout-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; gap: 0.5rem; }
  .main-nav { order: 3; width: 100%; }
  .my-bots-stats { grid-template-columns: 1fr; }
  .my-bots-cards { grid-template-columns: 1fr; gap: 0.9rem; }
  .my-bots-card-banner { height: 142px; }
  .my-bots-card-avatar {
    width: 64px;
    height: 64px;
    bottom: -28px;
  }
  .my-bots-card-title { font-size: 1.4rem; }
  .my-bots-metrics-grid { grid-template-columns: 1fr; }
  .my-bots-inline-actions .btn { width: 100%; }
  .my-bots-modal {
    padding: 0.5rem;
    align-items: flex-end;
  }
  .my-bots-modal-panel {
    width: 100%;
    max-height: calc(100vh - 1rem);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }
  .my-bots-modal-actions .btn { width: 100%; }
  .my-bots-card-menu {
    width: min(250px, calc(100vw - 2.5rem));
  }
  .server-grid { grid-template-columns: 1fr; }
  .auto-mod-grid { grid-template-columns: 1fr; }
  .auto-mod-inputs { grid-template-columns: 1fr; }
  .auto-mod-master { align-items: flex-start; }
  .auto-react-top { grid-template-columns: 1fr; }
  .auto-react-toggle { margin-inline-start: 0; }
  .auto-react-emoji-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 240px; }
  .separator-config-grid { grid-template-columns: 1fr; }
  .separator-channel-list { grid-template-columns: 1fr; max-height: 260px; }
  .separator-channel-head { flex-direction: column; align-items: flex-start; }
  .server-subnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .server-subnav a { font-size: 0.85rem; }
  .hero-actions { flex-direction: column; }
  .hero-support-link,
  .hero-actions .btn { width: 100%; max-width: 260px; }
  .coming-card { margin-top: 3.5rem; }
  .coupon-row { grid-template-columns: 1fr; }
  .checkout-summary,
  .checkout-form-side { padding: 0.9rem; }
}

/* ===== Premium Store Redesign (Pricing Page) ===== */
.luxe-store-page {
  --luxe-bg-1: #070312;
  --luxe-bg-2: #140926;
  --luxe-surface: rgba(22, 14, 40, 0.72);
  --luxe-surface-strong: rgba(27, 17, 49, 0.9);
  --luxe-border: rgba(210, 141, 255, 0.24);
  --luxe-soft-border: rgba(255, 255, 255, 0.08);
  --luxe-text: #f8f2ff;
  --luxe-muted: #bcaed9;
  --luxe-accent: #e172ff;
  --luxe-accent-2: #67f4ff;
  --luxe-gold: #ffce7b;
  background:
    radial-gradient(900px 420px at 88% 4%, rgba(225, 114, 255, 0.24), transparent 58%),
    radial-gradient(600px 320px at 8% 0%, rgba(103, 244, 255, 0.12), transparent 56%),
    linear-gradient(180deg, #05020c 0%, #0b0616 55%, #0f071b 100%);
}

.luxe-pricing-main {
  max-width: 1440px;
  padding-top: 1rem;
  padding-bottom: 2.6rem;
}

.luxe-shell {
  position: relative;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 28px;
  border: 1px solid var(--luxe-border);
  background:
    radial-gradient(860px 260px at 70% 0%, rgba(225, 114, 255, 0.12), transparent 75%),
    linear-gradient(148deg, rgba(10, 8, 20, 0.95), rgba(17, 10, 31, 0.95));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 40px rgba(225, 114, 255, 0.08);
  overflow: hidden;
}

.luxe-shell::before,
.luxe-shell::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.luxe-shell::before {
  inset: 0;
  background:
    repeating-linear-gradient(
      -28deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 2px,
      transparent 2px,
      transparent 22px
    );
  opacity: 0.5;
}

.luxe-shell::after {
  width: 280px;
  height: 280px;
  inset-inline-end: -130px;
  top: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 114, 255, 0.32), rgba(225, 114, 255, 0));
  filter: blur(12px);
}

.luxe-sidebar {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  min-height: 100%;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid var(--luxe-soft-border);
  background:
    radial-gradient(220px 120px at 0% 0%, rgba(225, 114, 255, 0.16), transparent 80%),
    linear-gradient(170deg, rgba(14, 10, 26, 0.95), rgba(16, 10, 27, 0.9));
  z-index: 1;
}

.luxe-brand-panel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--luxe-soft-border);
}

.luxe-brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 206, 123, 0.7), rgba(255, 206, 123, 0)),
    linear-gradient(140deg, #8f41ff, #d95bff);
  box-shadow: 0 12px 24px rgba(148, 64, 255, 0.36);
}

.luxe-brand-title {
  display: block;
  font-size: 1.15rem;
  line-height: 1.15;
}

.luxe-brand-subtitle {
  margin: 0.18rem 0 0;
  color: var(--luxe-muted);
  font-size: 0.86rem;
}

.luxe-side-nav {
  display: grid;
  gap: 0.48rem;
  align-content: start;
}

.luxe-side-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.78rem;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--luxe-muted);
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}

.luxe-side-link:hover {
  color: var(--luxe-text);
  border-color: rgba(225, 114, 255, 0.3);
  background: rgba(225, 114, 255, 0.12);
}

.luxe-side-link.is-active {
  color: #fff;
  border-color: rgba(255, 206, 123, 0.42);
  background:
    radial-gradient(200px 80px at 100% 0%, rgba(255, 206, 123, 0.22), transparent 70%),
    linear-gradient(135deg, rgba(151, 68, 255, 0.9), rgba(225, 114, 255, 0.85));
  box-shadow: 0 10px 24px rgba(152, 66, 255, 0.33);
}

.luxe-sidebar-footer {
  display: grid;
  gap: 0.7rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--luxe-soft-border);
}

.luxe-user-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.58rem 0.66rem;
  border-radius: 12px;
  border: 1px solid var(--luxe-soft-border);
  background: rgba(255, 255, 255, 0.03);
}

.luxe-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.luxe-user-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--luxe-text);
}

.luxe-user-card small {
  color: var(--luxe-muted);
  font-size: 0.78rem;
}

.luxe-login-note {
  margin: 0;
  color: var(--luxe-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.luxe-side-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 206, 123, 0.42);
  background:
    linear-gradient(135deg, rgba(241, 137, 255, 0.93), rgba(149, 68, 255, 0.94));
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  transition: 0.2s ease;
}

.luxe-side-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.luxe-main {
  min-width: 0;
  display: grid;
  gap: 1rem;
  z-index: 1;
}

.luxe-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.luxe-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--luxe-soft-border);
  background: var(--luxe-surface);
}

.luxe-search span {
  font-size: 1.06rem;
  opacity: 0.95;
}

.luxe-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--luxe-text);
  font-family: inherit;
  font-size: 0.95rem;
}

.luxe-search input::placeholder {
  color: #a799c7;
}

.luxe-top-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.luxe-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.42rem 0.86rem;
  border-radius: 999px;
  border: 1px solid rgba(103, 244, 255, 0.34);
  color: #c8fbff;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  background: rgba(12, 31, 38, 0.48);
  transition: 0.2s ease;
}

.luxe-chip:hover {
  color: #fff;
  border-color: rgba(103, 244, 255, 0.62);
}

.luxe-chip--solid {
  border-color: rgba(255, 206, 123, 0.46);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(151, 68, 255, 0.94), rgba(241, 137, 255, 0.94));
  box-shadow: 0 12px 24px rgba(151, 68, 255, 0.32);
}

.luxe-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.92fr;
  gap: 1rem;
}

.luxe-welcome-card,
.luxe-chart-card,
.luxe-catalog,
.luxe-empty {
  border: 1px solid var(--luxe-soft-border);
  border-radius: 20px;
  background:
    radial-gradient(500px 240px at 85% -10%, rgba(225, 114, 255, 0.16), transparent 70%),
    linear-gradient(165deg, rgba(18, 12, 34, 0.9), rgba(14, 10, 25, 0.92));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.33);
}

.luxe-welcome-card {
  padding: 1.2rem;
}

.luxe-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.2rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(103, 244, 255, 0.34);
  background: rgba(13, 34, 37, 0.56);
  color: #91fbff;
  font-size: 0.77rem;
  font-weight: 800;
}

.luxe-welcome-card h1 {
  margin: 0.65rem 0 0.45rem;
  font-size: clamp(1.5rem, 2.9vw, 2.35rem);
  line-height: 1.2;
  color: #fff;
}

.luxe-welcome-card p {
  margin: 0;
  color: var(--luxe-muted);
}

.luxe-stats-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.68rem;
}

.luxe-stat-card {
  padding: 0.66rem 0.72rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.luxe-stat-card span {
  display: block;
  color: var(--luxe-muted);
  font-size: 0.76rem;
  margin-bottom: 0.2rem;
}

.luxe-stat-card strong {
  font-size: 1.06rem;
  color: var(--luxe-text);
}

.luxe-alert {
  margin-top: 0.8rem;
  padding: 0.58rem 0.72rem;
  border-radius: 11px;
  border: 1px solid rgba(248, 113, 113, 0.32);
  background: rgba(124, 28, 40, 0.28);
  color: #fecaca;
  font-size: 0.87rem;
}

.luxe-chart-card {
  display: grid;
  align-content: start;
  gap: 0.62rem;
  padding: 1rem;
}

.luxe-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.luxe-chart-head h2 {
  margin: 0;
  font-size: 1.06rem;
  color: #fff;
}

.luxe-chart-head span {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.2rem 0.55rem;
  font-size: 0.77rem;
  color: var(--luxe-muted);
}

.luxe-chart-svg {
  width: 100%;
  height: 190px;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(transparent 96%, rgba(255, 255, 255, 0.06) 96%) top / 100% 20% repeat-y,
    linear-gradient(90deg, transparent 96%, rgba(255, 255, 255, 0.06) 96%) left / 14% 100% repeat-x,
    rgba(7, 6, 16, 0.8);
}

.luxe-chart-foot {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--luxe-muted);
}

.luxe-chart-foot strong {
  color: var(--luxe-text);
}

.luxe-empty {
  padding: 1.5rem 1.2rem;
  text-align: center;
}

.luxe-empty h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.luxe-empty p {
  color: var(--luxe-muted);
  max-width: 680px;
  margin: 0 auto;
}

.luxe-catalog {
  padding: 1rem;
}

.luxe-catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.luxe-catalog-head h2 {
  margin: 0;
  font-size: 1.4rem;
  color: #fff;
}

.luxe-catalog-head p {
  margin: 0.2rem 0 0;
  color: var(--luxe-muted);
  font-size: 0.9rem;
}

.luxe-visible-count {
  border-radius: 999px;
  border: 1px solid rgba(103, 244, 255, 0.32);
  background: rgba(14, 34, 36, 0.52);
  color: #b8fcff;
  min-height: 34px;
  padding: 0.32rem 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.luxe-filters {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.luxe-filter-btn {
  min-height: 36px;
  padding: 0.35rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--luxe-soft-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--luxe-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.luxe-filter-btn:hover {
  color: #fff;
  border-color: rgba(225, 114, 255, 0.42);
}

.luxe-filter-btn.is-active {
  color: #fff;
  border-color: rgba(255, 206, 123, 0.48);
  background:
    linear-gradient(135deg, rgba(151, 68, 255, 0.9), rgba(225, 114, 255, 0.9));
}

.luxe-plan-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.8rem;
}

.luxe-plan-card {
  display: grid;
  gap: 0.68rem;
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--luxe-soft-border);
  background:
    radial-gradient(240px 120px at 0% -20%, rgba(103, 244, 255, 0.1), transparent 70%),
    linear-gradient(165deg, rgba(11, 9, 22, 0.9), rgba(15, 10, 26, 0.95));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  animation: luxe-fade-up 0.55s ease both;
  animation-delay: var(--stagger, 0ms);
}

.luxe-plan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 114, 255, 0.44);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.36), 0 0 18px rgba(225, 114, 255, 0.15);
}

.luxe-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.luxe-plan-icon-shell {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px solid rgba(225, 114, 255, 0.35);
  background: rgba(20, 12, 38, 0.82);
}

.luxe-plan-badge,
.luxe-plan-tier {
  border-radius: 999px;
  min-height: 28px;
  padding: 0.17rem 0.58rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
}

.luxe-plan-badge {
  border: 1px solid rgba(255, 206, 123, 0.48);
  color: #ffe6be;
  background: rgba(82, 51, 10, 0.45);
}

.luxe-plan-tier {
  border: 1px solid rgba(103, 244, 255, 0.36);
  color: #bbfcff;
  background: rgba(13, 36, 39, 0.52);
  text-transform: capitalize;
}

.luxe-plan-name {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.25;
  color: #fff;
}

.luxe-plan-desc {
  margin: 0;
  color: var(--luxe-muted);
  font-size: 0.88rem;
  min-height: 2.4em;
}

.luxe-plan-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.luxe-plan-features li {
  position: relative;
  padding-inline-start: 1rem;
  color: #ded5ef;
  font-size: 0.84rem;
}

.luxe-plan-features li::before {
  content: '•';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  color: var(--luxe-accent-2);
}

.luxe-plan-features-more {
  color: #b5f6ff !important;
  font-weight: 700;
}

.luxe-plan-price-row {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.65rem;
}

.luxe-plan-price-row small {
  display: block;
  color: var(--luxe-muted);
  margin-top: 0.08rem;
  font-size: 0.76rem;
}

.luxe-plan-price {
  font-size: 1.48rem;
  line-height: 1;
  color: var(--luxe-text);
}

.luxe-plan-btn {
  min-height: 36px;
  padding: 0.45rem 0.78rem;
  border-radius: 10px;
  border: 1px solid rgba(225, 114, 255, 0.45);
  background:
    linear-gradient(135deg, rgba(225, 114, 255, 0.95), rgba(137, 66, 250, 0.95));
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  transition: 0.2s ease;
}

.luxe-plan-btn:hover {
  filter: brightness(1.07);
}

@keyframes luxe-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1260px) {
  .luxe-shell {
    grid-template-columns: 248px minmax(0, 1fr);
  }
  .luxe-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .luxe-shell {
    grid-template-columns: 1fr;
  }
  .luxe-sidebar {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .luxe-side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .luxe-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .luxe-pricing-main {
    padding-top: 0.7rem;
  }
  .luxe-shell {
    padding: 0.72rem;
    border-radius: 20px;
  }
  .luxe-topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .luxe-top-actions {
    justify-content: flex-start;
  }
  .luxe-search {
    min-height: 44px;
  }
  .luxe-chart-svg {
    height: 168px;
  }
}

@media (max-width: 560px) {
  .luxe-side-nav {
    grid-template-columns: 1fr;
  }
  .luxe-stats-grid {
    grid-template-columns: 1fr;
  }
  .luxe-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .luxe-filter-btn {
    width: 100%;
  }
  .luxe-plan-grid {
    grid-template-columns: 1fr;
  }
  .luxe-plan-price-row {
    flex-direction: column;
    align-items: stretch;
  }
  .luxe-plan-btn {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .luxe-plan-card {
    animation: none;
  }
}
