/* RECNO iOS Glassmorphism Design System */
:root {
  --bg-midnight: #0d1117;
  --bg-midnight-card: rgba(18, 24, 34, 0.85);
  --bg-glass-elevated: rgba(255, 255, 255, 0.05);
  --bg-glass-hover: rgba(255, 255, 255, 0.1);
  --color-ember: #ff6b35;
  --color-ember-glow: rgba(255, 107, 53, 0.35);
  --color-ember-light: #ff8552;
  --color-text-main: #f0f6fc;
  --color-text-muted: #8b949e;
  --color-text-dim: #6e7681;
  --color-success: #10b981;
  --color-danger: #ef4444;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-ember: rgba(255, 107, 53, 0.3);
  --radius-ios-card: 24px;
  --radius-ios-btn: 16px;
  --radius-ios-badge: 12px;
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  --shadow-glass: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 8px 32px var(--color-ember-glow);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* Elegant Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(13, 17, 23, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-ember);
}

body {
  background-color: var(--bg-midnight);
  color: var(--color-text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Animated Lighting Orbs */
.bg-glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.glow-1 {
  width: 380px;
  height: 380px;
  background: var(--color-ember);
  top: -100px;
  right: -100px;
  animation: pulse-glow 8s infinite alternate ease-in-out;
}

.glow-2 {
  width: 320px;
  height: 320px;
  background: #b33917;
  bottom: 5%;
  left: -120px;
  animation: pulse-glow 10s infinite alternate ease-in-out 2s;
}

@keyframes pulse-glow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.35; }
  100% { transform: scale(1.15) translate(20px, 30px); opacity: 0.6; }
}

/* Application Shell */
.app-container {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 16px 40px 16px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* iOS Dynamic Top Bar Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: var(--bg-midnight-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: var(--shadow-glass);
}

.brand-logo {
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ffffff 30%, var(--color-ember) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

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

.btn-header {
  background: var(--bg-glass-elevated);
  border: 1px solid var(--border-glass);
  color: var(--color-text-main);
  padding: 8px 14px;
  border-radius: var(--radius-ios-badge);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-header:hover, .btn-header:active {
  background: var(--bg-glass-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-header.primary {
  background: linear-gradient(135deg, var(--color-ember), #d94315);
  border: none;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

/* Main Hero Section */
.hero-card {
  background: var(--bg-midnight-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-ios-card);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-ember), transparent);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid var(--border-ember);
  color: var(--color-ember-light);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

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

.status-badge.out-of-stock {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.status-badge.out-of-stock .status-dot {
  background-color: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}

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

.hero-title {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.4px;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Primary Action Button */
.btn-action-hero {
  width: 100%;
  background: linear-gradient(135deg, var(--color-ember) 0%, #d94315 100%);
  color: #ffffff;
  border: none;
  padding: 16px 20px;
  border-radius: var(--radius-ios-btn);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.btn-action-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px var(--color-ember-glow);
}

.btn-action-hero:active {
  transform: translateY(1px);
}

.btn-action-hero:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-dim);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* Feature & Notice Alerts */
.system-alert-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fca5a5;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.15);
  animation: pulse-alert 3s infinite alternate ease-in-out;
}

@keyframes pulse-alert {
  0% { border-color: rgba(239, 68, 68, 0.35); }
  100% { border-color: rgba(239, 68, 68, 0.7); box-shadow: 0 8px 30px rgba(239, 68, 68, 0.3); }
}

.live-notice-card {
  background: rgba(255, 107, 53, 0.06);
  border: 1px solid var(--border-ember);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notice-icon {
  font-size: 20px;
  line-height: 1;
}

.notice-text {
  font-size: 13px;
  color: var(--color-text-main);
  line-height: 1.45;
  font-weight: 500;
}

/* Protocols Showcase Section */
.section-title {
  font-size: 17px;
  font-weight: 700;
  margin: 10px 0 12px 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-main);
}

.protocols-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.protocol-card {
  background: var(--bg-midnight-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-ios-card);
  padding: 20px;
  position: relative;
  transition: all 0.25s ease;
}

.protocol-card.highlight {
  border-color: var(--border-ember);
  background: linear-gradient(145deg, rgba(255, 107, 53, 0.08) 0%, rgba(18, 24, 34, 0.75) 100%);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.15);
}

.protocol-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.protocol-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-ember-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 107, 53, 0.12);
  padding: 4px 10px;
  border-radius: 8px;
}

.protocol-name {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.protocol-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.protocol-subtext {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--color-text-dim);
  line-height: 1.45;
}

/* Info List Bullet Section */
.info-box {
  background: var(--bg-midnight-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-ios-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-bullet {
  width: 26px;
  height: 26px;
  min-width: 26px;
  background: var(--bg-glass-elevated);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--color-ember-light);
}

.info-content {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.info-content strong {
  color: var(--color-text-main);
  font-weight: 600;
}

/* Modals & Dialog System */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-midnight);
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  width: 100%;
  max-width: 460px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text-main);
}

.modal-close {
  background: var(--bg-glass-elevated);
  border: 1px solid var(--border-glass);
  color: var(--color-text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--bg-glass-hover);
  color: #fff;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 16px;
}

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

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 14px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-color: var(--color-ember);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.btn-form {
  width: 100%;
  background: linear-gradient(135deg, var(--color-ember), #d94315);
  color: #fff;
  border: none;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: all 0.2s ease;
}

.btn-form:hover {
  transform: translateY(-1px);
}

/* Custom Tabs */
.tabs-header {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 20px;
  gap: 4px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--bg-midnight-card);
  color: var(--color-text-main);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Custom Captcha Slider Box */
.captcha-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  margin-bottom: 20px;
}

.captcha-question {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-ember-light);
  margin-bottom: 12px;
}

/* Profile / Key Display Box */
.profile-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 14px;
}

.stat-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-ember-light);
  margin-top: 4px;
}

.key-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed var(--border-ember);
  border-radius: 16px;
  padding: 14px;
  word-break: break-all;
  font-family: monospace;
  font-size: 12px;
  color: #a7f3d0;
  max-height: 90px;
  overflow-y: auto;
  margin-bottom: 14px;
}

/* Progress bar for traffic */
.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-ember), #f59e0b);
  border-radius: 10px;
  transition: width 0.4s ease;
}

/* =========================================================
   FULL-SCREEN DEDICATED ADMIN DASHBOARD (NO CROPPED MODALS)
   ========================================================= */
.admin-fullscreen-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #090c10;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.admin-fullscreen-page.active {
  opacity: 1;
  pointer-events: auto;
}

.admin-nav-header {
  padding: 16px 24px;
  background: rgba(18, 24, 34, 0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}

.admin-container {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  padding: 24px 16px 60px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.admin-stat-card {
  background: var(--bg-midnight-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: var(--shadow-glass);
}

.admin-stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--color-ember-light);
  margin-top: 6px;
}

.admin-user-card {
  background: var(--bg-midnight-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 18px 20px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease;
}

.admin-user-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-user-nick {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.badge-small {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

.badge-small.active { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-small.banned { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }

/* Footer Section */
.app-footer {
  text-align: center;
  padding: 20px 0 10px 0;
  font-size: 12px;
  color: var(--color-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.admin-trigger-link {
  color: var(--color-text-dim);
  text-decoration: none;
  font-size: 11px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.admin-trigger-link:hover {
  opacity: 1;
  color: var(--color-ember-light);
}

/* Anti-Spam Banned Screen */
.ban-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-midnight);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.ban-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-ios-card);
  padding: 32px 24px;
  max-width: 360px;
}

.ban-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.ban-title {
  font-size: 20px;
  font-weight: 800;
  color: #fca5a5;
  margin-bottom: 8px;
}

.ban-desc {
  font-size: 13px;
  color: #f87171;
  line-height: 1.5;
}

@media (max-width: 380px) {
  .hero-title { font-size: 22px; }
  .logo-text { font-size: 21px; }
  .btn-action-hero { font-size: 15px; padding: 14px 16px; }
}
