/* NKR Admin++ Web & Cloudflare Workers Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat+Alternates:wght@700;800;900&family=Roboto:wght@400;500;700&family=Rubik:wght@500;700&display=swap');

:root {
  --color-purple-80: #D0BCFF;
  --color-purple-grey-80: #CCC2DC;
  --color-pink-80: #EFB8C8;
  --color-purple-40: #6650a4;
  --color-purple-grey-40: #625b71;
  --color-pink-40: #7D5260;
  
  --color-black: #000113;
  --color-light-blue-white: #F1F5F9;
  --color-blue-gray: #334155;
  --color-electric-violet: #7D26FE;
  --color-purple: #742DF6;
  --color-light-purple: #BCA1E7;
  --color-royal-purple: #64419F;
  --color-light-grey: #B1B1B1;
  --color-blue-dark: #1c1d30;
  --color-light-blue: rgba(78, 110, 255, 0.3);
  --color-shape-blue: #BFDBFE;

  --color-bg: #1c1d30;
  --color-card-bg: #272840;
  --color-card-bg-light: #333454;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #94A3B8;
  --color-text-muted: #64748B;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 15px;
  --radius-xl: 25px;
  
  --font-body: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-brand: 'Montserrat Alternates', 'Rubik', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  -khtml-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

input, textarea {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

img, svg, .app-card, .sidebar, .login-card, .admin-card-item {
  -webkit-user-drag: none !important;
  user-drag: none !important;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: var(--color-purple-grey-40);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-purple-80);
}

/* =========================================
   ROOT / SHOWCASE LANDING SCREEN
   ========================================= */
.landing-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(125, 38, 254, 0.15) 0%, #161726 60%, #11121d 100%);
  padding: 24px 16px;
  overflow: hidden;
}

.landing-card {
  width: 100%;
  max-width: 440px;
  background: rgba(30, 31, 52, 0.85);
  border: 1px solid rgba(208, 188, 255, 0.18);
  border-radius: 24px;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(125, 38, 254, 0.12);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  overflow: hidden;
}

.landing-glow-shape {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 160px;
  background: radial-gradient(circle, rgba(125, 38, 254, 0.35) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.landing-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.landing-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(125, 38, 254, 0.4));
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(102, 80, 164, 0.35);
  border: 1px solid rgba(208, 188, 255, 0.25);
  color: #D0BCFF;
}

.pulsing-glow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.landing-title {
  font-family: var(--font-brand);
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.nkr-text-gradient {
  background: linear-gradient(135deg, #BFDBFE 0%, #D0BCFF 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 900;
  text-shadow: 0 0 20px rgba(125, 38, 254, 0.4);
}

.landing-sub {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  max-width: 360px;
  margin-bottom: 12px;
}

.landing-footer-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

/* =========================================
   LOGIN SCREEN
   ========================================= */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  background: linear-gradient(180deg, #161726 0%, #1c1d30 100%);
  padding: 0;
}

.login-card {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background: #1c1d30;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .login-card {
    min-height: auto;
    border-radius: 24px;
    margin: 40px auto;
    border: 1px solid rgba(208, 188, 255, 0.15);
    background: linear-gradient(180deg, rgba(30, 31, 52, 0.95) 0%, rgba(25, 26, 44, 0.98) 100%);
    backdrop-filter: blur(20px);
  }
}

.login-top-section {
  position: relative;
  width: 100%;
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 30px;
}

.login-shape-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 260px;
  z-index: 1;
}

.login-shape-bg svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 10px 20px rgba(125, 38, 254, 0.25));
}

.app-branding-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.app-branding-text {
  display: flex;
  flex-direction: column;
}

.app-brand-title {
  font-family: var(--font-brand);
  font-size: 24px;
  font-weight: 800;
  color: #000113;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.app-brand-subtitle {
  font-family: var(--font-brand);
  font-size: 17px;
  font-weight: 700;
  color: #1e1b4b;
}

.gojo-cat-container {
  position: absolute;
  bottom: 0;
  width: 190px;
  height: 150px;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.login-content {
  padding: 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-field {
  width: 100%;
  height: 52px;
  background-color: rgba(51, 65, 85, 0.4);
  border: 1.5px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font-size: 15px;
  color: #ffffff;
  outline: none;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.input-field:focus {
  border-color: var(--color-purple-80);
  background-color: rgba(51, 65, 85, 0.7);
  box-shadow: 0 0 0 3px rgba(208, 188, 255, 0.15);
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--color-purple-80);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
}

.password-toggle-btn:hover {
  background-color: rgba(208, 188, 255, 0.1);
}

.btn-primary {
  width: 100%;
  height: 50px;
  background-color: var(--color-blue-gray);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background-color: #475569;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.register-prompt {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #94A3B8;
}

.register-link {
  color: var(--color-purple-80);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.register-link:hover {
  text-decoration: underline;
}

.login-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  font-size: 12px;
  color: #D6DCE4;
  opacity: 0.8;
  margin-top: auto;
}

.nkr-tag {
  color: #FACC15;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* =========================================
   APP SHELL & RESPONSIVE LAYOUT
   ========================================= */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background-color: var(--color-bg);
  position: relative;
}

/* Sidebar for PC / Drawer for Mobile */
.sidebar {
  width: 280px;
  background-color: var(--color-blue-dark);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  html, body {
    height: 100vh;
    overflow: hidden;
  }
  .app-container {
    height: 100vh;
    overflow: hidden;
  }
  .sidebar {
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    flex-shrink: 0;
  }
}

@media (max-width: 767px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99;
  }
  .sidebar-backdrop.active {
    display: block;
  }
}

.sidebar-header {
  position: relative;
  height: 200px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 20px;
  z-index: 2;
}

.sidebar-header-shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.sidebar-header-shape svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-brand-box {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-lottie-box {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 130px;
  z-index: 2;
  pointer-events: none;
}

.sidebar-menu {
  position: relative;
  z-index: 5;
  flex: 1;
  padding: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  color: var(--color-purple-grey-80);
  background-color: var(--color-surface, #16131e);
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background-color: #241e30;
  color: var(--color-purple-80);
}

.nav-item.active {
  background-color: #2e263d;
  color: var(--color-purple-80);
  border-left: 4px solid var(--color-purple-80);
}

.nav-item-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.sidebar-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(0, 0, 0, 0.1);
}

/* Switch UI */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(148, 163, 184, 0.3);
  transition: 0.3s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--color-electric-violet);
}
input:checked + .slider:before {
  transform: translateX(20px);
}

/* =========================================
   MAIN CONTENT AREA
   ========================================= */
.main-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-y: auto;
  padding-bottom: 90px; /* Space for bottom nav on mobile */
}

@media (min-width: 768px) {
  .main-viewport {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 30px;
  }
}

/* Top App Bar */
.top-app-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 40;
}

.search-box-pill {
  flex: 1;
  display: flex;
  align-items: center;
  height: 52px;
  background-color: var(--color-card-bg);
  border-radius: 50px;
  padding: 0 8px 0 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-toggle-btn {
  background: none;
  border: none;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  margin-right: 6px;
}
.menu-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 15px;
  font-family: var(--font-body);
}

.search-input::placeholder {
  color: var(--color-text-secondary);
}

.search-action-btn {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.profile-avatar-pill {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #000000;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}
.profile-avatar-pill:hover {
  transform: scale(1.05);
}

/* Main View Views */
.view-content-wrapper {
  padding: 12px 14px 130px 14px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .view-content-wrapper {
    padding: 16px 110px 40px 24px;
    max-width: 1300px;
  }
}

/* =========================================
   CARDS & COMMON COMPONENTS
   ========================================= */
.app-card {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-title-bar {
  height: 60px;
  background-color: var(--color-card-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-title {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 800;
  color: var(--color-purple-80);
  letter-spacing: -0.3px;
}

.badge-pill {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-pink { background-color: var(--color-pink-80); color: #000; }
.badge-purple { background-color: var(--color-purple); }
.badge-red { background-color: #ef4444; }
.badge-yellow { background-color: #eab308; color: #000; }
.badge-magenta { background-color: #ec4899; }
.badge-green { background-color: #22c55e; }

/* =========================================
   ADMIN & USER LISTS
   ========================================= */
.admin-card-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background-color: var(--color-card-bg);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.admin-card-item:hover {
  background-color: var(--color-card-bg-light);
  transform: translateY(-1px);
}

.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #000;
  flex-shrink: 0;
  margin-right: 14px;
}

.card-item-details {
  flex: 1;
  min-width: 0;
}

.card-item-name {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-item-sub {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.card-item-uid {
  font-size: 11px;
  color: var(--color-text-muted);
  font-family: monospace;
}

.card-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}

.btn-icon-danger {
  background: none;
  border: none;
  color: var(--color-pink-80);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}
.btn-icon-danger:hover {
  background-color: rgba(239, 184, 200, 0.15);
}

/* =========================================
   KEY GENERATOR VIEW
   ========================================= */
.key-gen-header {
  text-align: center;
  padding: 10px 0;
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.keys-output-card {
  background: linear-gradient(180deg, #161726 0%, #1e1f38 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(125, 38, 254, 0.3);
  padding: 16px;
  position: relative;
  min-height: 220px;
  max-height: 320px;
  display: flex;
  flex-direction: column;
}

.keys-output-title {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-purple-80);
  margin-bottom: 10px;
}

.keys-output-content {
  flex: 1;
  background-color: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: monospace;
  font-size: 13px;
  color: #38bdf8;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  user-select: text;
}

.keys-output-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.action-fab {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-purple-40);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, background-color 0.2s;
}
.action-fab:hover {
  background-color: var(--color-purple);
  transform: scale(1.05);
}

.key-config-card {
  background-color: var(--color-electric-violet);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-top: 14px;
  box-shadow: 0 6px 20px rgba(125, 38, 254, 0.3);
}

.config-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.config-label {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  min-width: 60px;
}

.select-dropdown {
  height: 46px;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

.input-num {
  height: 46px;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 0 12px;
  font-size: 15px;
  outline: none;
  flex: 1;
}

.counter-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.counter-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.3);
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.counter-btn:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.gen-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: var(--color-light-blue);
  border-radius: 8px;
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
}

.btn-generate {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #7D26FE 0%, #4f46e5 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: var(--font-brand);
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(125, 38, 254, 0.4);
  transition: all 0.2s ease;
}
.btn-generate:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* =========================================
   SHELL SERVERS VIEW
   ========================================= */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.game-card-btn {
  background-color: var(--color-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.game-card-btn:hover, .game-card-btn.active {
  background-color: var(--color-card-bg-light);
  border-color: var(--color-purple-80);
  transform: translateY(-2px);
}
.game-card-btn.full-width {
  grid-column: span 2;
}

.game-title {
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.game-servers-count {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.server-navigator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: var(--color-card-bg);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.server-nav-btn {
  background: none;
  border: none;
  color: var(--color-text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.server-display-title {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 800;
  color: var(--color-purple-80);
}

.shell-code-editor-box {
  border-radius: var(--radius-md);
  padding: 10px;
  margin-bottom: 12px;
}
.shell-code-editor-box.on {
  background-color: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.shell-code-editor-box.off {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13px;
}

.code-textarea {
  width: 100%;
  height: 140px;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px;
  color: #ffffff;
  font-family: monospace;
  font-size: 13px;
  outline: none;
  resize: vertical;
}

/* =========================================
   FLOATING ACTION BUTTONS (FAB)
   ========================================= */
.floating-actions-container {
  position: fixed;
  right: 20px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 60;
}

@media (min-width: 768px) {
  .floating-actions-container {
    bottom: 32px;
    right: 32px;
  }
}

@media (max-width: 767px) {
  .floating-actions-container {
    right: 16px;
    bottom: 90px;
    gap: 10px;
  }
  .main-fab {
    width: 48px;
    height: 48px;
  }
}

.main-fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--color-purple-40);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.9;
}
.main-fab:hover {
  opacity: 1;
  transform: scale(1.1);
  background-color: var(--color-purple);
}
.main-fab.danger {
  background-color: #ef4444;
}
.main-fab.success {
  background-color: #22c55e;
}

/* =========================================
   BOTTOM NAVIGATION BAR (MOBILE)
   ========================================= */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 76px;
  background: rgba(30, 31, 52, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
  z-index: 70;
}

@media (min-width: 768px) {
  .bottom-nav-bar {
    display: none !important;
  }
}

.bottom-nav-btn {
  background: none;
  border: none;
  color: var(--color-purple-grey-40);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 12px;
  transition: all 0.25s ease;
  position: relative;
}

.bottom-nav-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav-btn.active {
  color: var(--color-purple-80);
}

.bottom-nav-btn.active svg {
  transform: translateY(-4px) scale(1.15);
  fill: var(--color-purple-80);
  filter: drop-shadow(0 4px 8px rgba(208, 188, 255, 0.5));
}

.bottom-nav-btn span {
  font-size: 11px;
  font-weight: 600;
}

/* =========================================
   MODALS & DIALOGS
   ========================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.active {
  display: flex;
}

.modal-dialog {
  background-color: var(--color-blue-dark);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(208, 188, 255, 0.2);
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: modalPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: 20px;
  padding: 4px;
}

.modal-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  background-color: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary {
  height: 42px;
  padding: 0 18px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-accent {
  height: 42px;
  padding: 0 20px;
  background-color: var(--color-purple);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* =========================================
   LOTTIE LOADING OVERLAY
   ========================================= */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 300;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.loading-overlay.active {
  display: flex;
}

.loading-lottie-box {
  width: 220px;
  height: 220px;
}

.loading-text {
  margin-top: 16px;
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-purple-80);
  text-align: center;
}

/* Shimmer Loading Animation */
.shimmer-card {
  height: 76px;
  background: linear-gradient(90deg, rgba(51, 65, 85, 0.4) 0%, rgba(208, 188, 255, 0.15) 50%, rgba(51, 65, 85, 0.4) 100%);
  background-size: 200% 100%;
  animation: shimmerAnim 1.5s infinite;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

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

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 24px;
  background: rgba(30, 31, 52, 0.95);
  border: 1px solid var(--color-purple-80);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 50px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes toastIn {
  0% { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
