/* 
   WANDEATH VIP DASHBOARD — ESTILO CALIXTO/RH7
   Dark theme with red accent (#ee0000)
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #ee0000;
  --primary-alt: #cc0000;
  --red-glow: rgba(238, 0, 0, 0.2);
  --bg-black: #0a0a0a;
  --bg-card: rgba(10, 10, 10, 0.7);
  --border: rgba(255, 255, 255, 0.05);
  --text-main: #ffffff;
  --text-sec: #8c8c8c;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --radius: 12px;
  --sidebar-w: 250px;
  --topbar-h: 64px;
  --green: #22c55e;
  --red: #ef4444;
  --transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

html,
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background: #0a0a0a;
  color: var(--text-main);
  min-height: 100vh;
}

body {
  display: flex;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

input,
select {
  font-family: inherit;
}

/* Lucide icons */
[data-lucide] {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  vertical-align: middle;
  display: inline-block;
  flex-shrink: 0;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(15px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition);
}

.sidebar-brand {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 18px;
  border-bottom: 1px solid var(--border);
}

.brand-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-glow {
  position: absolute;
  width: 120px; height: 60px;
  background: radial-gradient(ellipse, rgba(238, 0, 0, 0.25), transparent 70%);
  filter: blur(20px);
  z-index: 0;
  animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  box-shadow: 0 4px 20px var(--red-glow);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.5px;
}

.brand-sub {
  font-size: .55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--primary);
}

.sidebar-nav {
  flex: 1;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-sec);
  transition: all var(--transition);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
}

.nav-item.active {
  background: rgba(238, 0, 0, 0.08);
  color: var(--primary);
  border: 1px solid rgba(238, 0, 0, 0.12);
}

.nav-item i {
  width: 18px;
  text-align: center;
  font-size: .9rem;
}

.nav-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 16px;
}

.sidebar-footer {
  padding: 18px 22px;
  border-top: 1px solid var(--border);
}

.server-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: var(--text-sec);
  font-weight: 600;
}

.sidebar-version {
  font-size: .65rem;
  color: rgba(255, 255, 255, .15);
  margin-top: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse-dot 2s infinite;
}

.status-dot.offline {
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .3;
  }
}

/* ===== MAIN ===== */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* ===== TOPBAR ===== */
.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.2rem;
}

.page-title {
  font-size: 1.1rem;
  font-weight: 800;
  flex: 1;
  letter-spacing: -.3px;
}

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

.topbar-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  background: rgba(238, 0, 0, 0.08);
  border: 1px solid rgba(238, 0, 0, 0.15);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.btn-refresh {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-sec);
  font-size: .9rem;
  transition: all var(--transition);
}

.btn-refresh:hover {
  color: var(--primary);
  border-color: rgba(238, 0, 0, .3);
}

.btn-refresh.spinning i {
  animation: spin .6s linear;
}

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

/* ===== SECTIONS ===== */
.section {
  display: none;
  padding: 28px;
  animation: fadeUp .4s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== WELCOME BANNER ===== */
.welcome-banner {
  background: rgba(238, 0, 0, 0.04);
  border: 1px solid rgba(238, 0, 0, 0.1);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.welcome-text h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.welcome-text p {
  font-size: .85rem;
  color: var(--text-sec);
}

.gradient-text {
  color: var(--primary);
  font-weight: 900;
}

.welcome-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: .7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ===== STAT CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.stat-icon.blue {
  background: rgba(59, 130, 246, .1);
  color: #3b82f6;
}

.stat-icon.green {
  background: rgba(34, 197, 94, .1);
  color: var(--green);
}

.stat-icon.red {
  background: rgba(238, 0, 0, .1);
  color: var(--primary);
}

.stat-icon.purple {
  background: rgba(168, 85, 247, .1);
  color: #a855f7;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.2;
}

.stat-label {
  font-size: .75rem;
  color: var(--text-sec);
  margin-top: 2px;
  font-weight: 600;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.card-header h2 {
  font-size: .95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header h2 i {
  color: var(--primary);
  font-size: .85rem;
}

/* ===== TABLE ===== */
.table-wrap {
  overflow-x: auto;
}

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

.data-table th {
  text-align: left;
  padding: 12px 22px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-sec);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 14px 22px;
  font-size: .85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background var(--transition);
}

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

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.badge.active {
  background: rgba(34, 197, 94, .1);
  color: var(--green);
}

.badge.blocked {
  background: rgba(238, 0, 0, .1);
  color: var(--primary);
}

/* Progress bar */
.progress-bar {
  width: 100%;
  max-width: 140px;
  height: 5px;
  background: rgba(255, 255, 255, .05);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--primary);
  transition: width .5s ease;
}

.progress-fill.warn {
  background: #f59e0b;
}

.progress-fill.danger {
  background: var(--primary);
}

.progress-text {
  font-size: .68rem;
  color: var(--text-sec);
  margin-top: 3px;
  font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: .8rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-main);
  transition: all var(--transition);
}

.btn:hover {
  background: rgba(255, 255, 255, .04);
}

.btn-sm {
  padding: 6px 12px;
  font-size: .75rem;
}

.btn-primary {
  background: var(--primary);
  border: none;
  color: #fff;
  box-shadow: 0 4px 15px var(--red-glow);
}

.btn-primary:hover {
  background: var(--primary-alt);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(238, 0, 0, 0.3);
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: .85rem;
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-sec);
  font-size: .82rem;
  transition: all var(--transition);
}

.btn-icon:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, .04);
}

/* ===== FORM ===== */
.form-card {
  max-width: 480px;
  margin: 0 auto;
}

.form-card form {
  padding: 24px;
}

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

.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
  color: var(--text-main);
  font-size: .88rem;
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(238, 0, 0, 0.08);
}

.form-group select option {
  background: #0d0d0d;
  color: var(--text-main);
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap input {
  padding-right: 48px;
}

.btn-gen-pass {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: rgba(238, 0, 0, 0.1);
  color: var(--primary);
  font-size: .82rem;
  transition: all var(--transition);
}

.btn-gen-pass:hover {
  background: rgba(238, 0, 0, 0.2);
}

.form-result {
  margin: 16px 24px 24px;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: .85rem;
  background: rgba(34, 197, 94, .06);
  border: 1px solid rgba(34, 197, 94, .15);
  color: var(--green);
}

.form-result.error {
  background: rgba(238, 0, 0, .06);
  border-color: rgba(238, 0, 0, .15);
  color: var(--primary);
}

/* ===== PLANS ===== */
.plans-header {
  text-align: center;
  margin-bottom: 32px;
}

.plans-header h2 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.plans-header p {
  color: var(--text-sec);
  font-size: .88rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.plan-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
}

.plan-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(238, 0, 0, 0.06);
}

.plan-ribbon {
  position: absolute;
  top: 14px;
  right: -30px;
  background: var(--primary);
  color: #fff;
  font-size: .55rem;
  font-weight: 800;
  padding: 4px 36px;
  transform: rotate(45deg);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.plan-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, .03);
  color: var(--text-sec);
  margin-bottom: 14px;
}

.plan-card.popular .plan-badge {
  background: var(--primary);
  color: #fff;
}

.plan-name {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 2px;
}

.plan-limit {
  font-size: .8rem;
  color: var(--text-sec);
  margin-bottom: 22px;
  font-weight: 600;
}

.plan-features {
  list-style: none;
  text-align: left;
}

.plan-features li {
  padding: 9px 0;
  font-size: .82rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-sec);
  border-bottom: 1px solid var(--border);
}

.plan-features li:last-child {
  border: none;
}

.plan-features li i {
  color: var(--primary);
  font-size: .7rem;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  z-index: 200;
  animation: fadeIn .2s ease;
}

.modal {
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 90%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .6);
  animation: scaleIn .3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 1rem;
  font-weight: 800;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, .04);
  color: var(--text-sec);
  font-size: .9rem;
  transition: all var(--transition);
}

.modal-close:hover {
  background: rgba(238, 0, 0, .1);
  color: var(--primary);
}

.modal-body {
  padding: 24px;
}

.modal-body .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}

.modal-body .detail-row:last-child {
  border: none;
}

.detail-label {
  color: var(--text-sec);
  font-weight: 600;
}

.detail-value {
  font-weight: 700;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 300;
}

.toast {
  padding: 14px 22px;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn .3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
  border: 1px solid var(--border);
}

.toast.success {
  background: rgba(34, 197, 94, .95);
  color: #fff;
  border-color: transparent;
}

.toast.error {
  background: rgba(238, 0, 0, .95);
  color: #fff;
  border-color: transparent;
}

.toast.info {
  background: rgba(10, 10, 10, .95);
  color: var(--text-main);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

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

  .main-content {
    margin-left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .topbar-tag {
    display: none;
  }

  .welcome-banner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== APP WRAP ===== */
.app-wrap { display: flex; width: 100%; min-height: 100vh; }

/* ===== LOGO IMAGES ===== */
.sidebar-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(238, 0, 0, 0.3));
}

.login-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 20px rgba(238, 0, 0, 0.4));
}

/* ===== BACKGROUND BLUR BLOBS ===== */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.blob-1 {
    width: 500px; height: 500px;
    background: rgba(238, 0, 0, 0.06);
    top: -100px; left: -100px;
    animation: blobFloat1 20s ease-in-out infinite;
}

.blob-2 {
    width: 400px; height: 400px;
    background: rgba(238, 0, 0, 0.04);
    bottom: -80px; right: -80px;
    animation: blobFloat2 25s ease-in-out infinite;
}

.blob-3 {
    width: 300px; height: 300px;
    background: rgba(180, 0, 0, 0.03);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: blobFloat3 18s ease-in-out infinite;
}

@keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(80px, 60px) scale(1.1); }
    66% { transform: translate(-40px, 100px) scale(0.9); }
}

@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-60px, -80px) scale(1.15); }
    66% { transform: translate(50px, -40px) scale(0.95); }
}

@keyframes blobFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-30%, -60%) scale(1.2); }
}

/* ===== MOUSE GLOW ===== */
#mouse-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(238, 0, 0, 0.05), transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: left 0.1s, top 0.1s;
}

/* ===== LOGIN ===== */
.login-overlay {
    position: fixed; inset: 0;
    background: #0a0a0a;
    display: grid; place-items: center;
    z-index: 500;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 36px;
    width: 90%; max-width: 400px;
    text-align: center;
}

.login-card .sidebar-brand,
.login-card .login-brand {
    justify-content: center;
    border: none; height: auto;
    margin-bottom: 28px;
    display: flex; align-items: center; gap: 12px;
    padding: 0;
}

.login-title {
    font-size: 1.2rem; font-weight: 800;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: .82rem; color: var(--text-sec);
    margin-bottom: 28px;
}

.login-card .form-group { text-align: left; }

.login-error {
    padding: 10px 14px; border-radius: 8px;
    font-size: .8rem; font-weight: 600;
    background: rgba(238,0,0,.08);
    border: 1px solid rgba(238,0,0,.15);
    color: var(--primary);
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}

/* ===== LOGOUT ===== */
.btn-logout {
    display: flex; align-items: center; gap: 8px;
    margin-top: 12px;
    padding: 8px 14px; border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-sec);
    font-size: .75rem; font-weight: 700;
    width: 100%;
    transition: all var(--transition);
}

.btn-logout:hover {
    background: rgba(238,0,0,.08);
    color: var(--primary);
    border-color: rgba(238,0,0,.15);
}

/* ===== FORMATTER ===== */
.fmt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .fmt-grid { grid-template-columns: 1fr; }
}

.fmt-body {
    padding: 20px 24px;
}

.fmt-ports label,
.fmt-servers label:first-child {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-sec);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.port-options {
    display: flex;
    gap: 10px;
}

.port-btn {
    flex: 1;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255,255,255,.02);
    color: var(--text-sec);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}

.port-btn:hover {
    border-color: rgba(238,0,0,.2);
}

.port-btn.active {
    border-color: var(--primary);
    background: rgba(238,0,0,.06);
    color: var(--text-main);
}

.port-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.2;
}

.port-proto {
    display: block;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.server-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.server-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255,255,255,.01);
    cursor: pointer;
    transition: all var(--transition);
}

.server-option:hover {
    border-color: rgba(238,0,0,.15);
}

.server-option.active,
.server-option:has(input:checked) {
    border-color: var(--primary);
    background: rgba(238,0,0,.04);
}

.server-option input[type="radio"] {
    accent-color: var(--primary);
    width: 16px; height: 16px;
}

.server-info {
    display: flex;
    flex-direction: column;
}

.server-name {
    font-size: .82rem;
    font-weight: 700;
}

.server-host {
    font-size: .72rem;
    color: var(--text-sec);
    font-family: 'Courier New', monospace;
}

.fmt-preview {
    padding: 20px 24px;
    background: rgba(0,0,0,.2);
    border-bottom: 1px solid var(--border);
}

.fmt-preview code {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: .9rem;
    font-weight: 700;
    color: var(--primary);
    word-break: break-all;
    padding: 14px 18px;
    background: rgba(238,0,0,.04);
    border: 1px solid rgba(238,0,0,.1);
    border-radius: 8px;
}

.fmt-left, .fmt-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.fmt-left .card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fmt-left .fmt-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fmt-servers {
    margin-top: auto;
}

/* ===== CREDENTIALS ===== */
.cred-body {
    padding: 16px 24px;
}

.cred-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.cred-row:last-child {
    border-bottom: none;
}

.cred-label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-sec);
    text-transform: uppercase;
    letter-spacing: .5px;
    min-width: 60px;
}

.cred-value-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cred-value {
    font-family: 'Courier New', monospace;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: .5px;
}

.cred-masked {
    letter-spacing: 2px;
    color: var(--text-sec);
}

.cred-copy-btn,
.cred-eye-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-sec);
    cursor: pointer;
    transition: all var(--transition);
}

.cred-copy-btn:hover,
.cred-eye-btn:hover {
    background: rgba(238,0,0,.06);
    border-color: rgba(238,0,0,.15);
    color: var(--primary);
}

/* ===== EXPORT BOX ===== */
.export-info {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.export-info p {
    font-size: .82rem;
    color: var(--text-sec);
}

.export-info code {
    background: rgba(238,0,0,.08);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: .78rem;
    font-weight: 700;
}

.export-box {
    padding: 16px 24px 24px;
}

.export-box textarea {
    width: 100%;
    min-height: 300px;
    background: rgba(0,0,0,.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    color: var(--text-main);
    font-family: 'Courier New', monospace;
    font-size: .82rem;
    line-height: 1.8;
    resize: vertical;
    outline: none;
}

.export-box textarea:focus {
    border-color: var(--primary);
}

/* ===== ADMIN LIST ===== */
.admin-list {
    padding: 16px 24px;
}

.admin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 8px;
    background: rgba(255,255,255,.01);
}

.admin-item .admin-email {
    font-size: .85rem;
    font-weight: 600;
}

.admin-item .admin-tag {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(238,0,0,.08);
    color: var(--primary);
}

.admin-item .btn-icon {
    flex-shrink: 0;
}

/* ===== ACTION BUTTONS (table) ===== */
.action-btns {
    display: flex;
    gap: 6px;
}

.action-btns .btn-icon {
    cursor: pointer;
}

.action-btns .btn-icon:hover {
    background: rgba(255,255,255,.06);
    color: var(--text-main);
}

.btn-icon.danger:hover {
    background: rgba(238,0,0,.1);
    color: var(--primary);
}