/* ==========================================================================
   Secure Your AI - Premium Dark Glassmorphic Design System
   ========================================================================== */

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

:root {
  /* Color Tokens */
  --bg-dark: #080B11;
  --bg-card: rgba(18, 24, 38, 0.65);
  --bg-card-hover: rgba(26, 35, 54, 0.8);
  --bg-surface: #0E1420;
  --bg-input: #141C2D;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.25);
  
  --text-main: #F0F4FC;
  --text-muted: #8E9BB4;
  --text-dim: #5F6C85;
  
  /* Brand Gradients */
  --primary-cyan: #00F0FF;
  --primary-violet: #7000FF;
  --primary-blue: #0066FF;
  
  --grad-primary: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-violet) 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
  --grad-accent: linear-gradient(90deg, #00F0FF 0%, #0066FF 50%, #7000FF 100%);
  
  /* Status Colors */
  --color-critical: #FF3B5C;
  --color-high: #FF9F1C;
  --color-medium: #FFD166;
  --color-safe: #06D6A0;
  --color-info: #118AB2;

  /* Elevation & Shadows */
  --glass-blur: blur(16px);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(112, 0, 255, 0.06) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.4);
}

/* ==========================================================================
   Navigation Bar & Top Header
   ========================================================================== */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 2rem;
  background: rgba(8, 11, 17, 0.85);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Prominent Plan Mode Test Strip */
.plan-test-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 24, 38, 0.7);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glow);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.strip-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.plan-toggle-buttons {
  display: flex;
  gap: 0.5rem;
  background: rgba(8, 12, 20, 0.8);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.plan-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
}

.plan-btn:hover {
  color: #FFF;
  background: rgba(255, 255, 255, 0.05);
}

.plan-btn.active {
  color: #080B11;
  background: var(--primary-cyan);
  font-weight: 700;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.plan-btn.active.pro {
  background: #C084FC;
  box-shadow: 0 0 15px rgba(192, 132, 252, 0.4);
}

.plan-btn.active.enterprise {
  background: #38BDF8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.strip-quota-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  background: rgba(0, 240, 255, 0.1);
  color: var(--primary-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 20px;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
  background: rgba(20, 28, 45, 0.6);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
}

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

.nav-link.active {
  color: #FFF;
  background: var(--grad-primary);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.plan-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(112, 0, 255, 0.15);
  color: #C084FC;
  border: 1px solid rgba(112, 0, 255, 0.3);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #080B11;
  background: var(--grad-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Main App Container & Layout
   ========================================================================== */

.app-container {
  flex: 1;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

/* View Sections */
.tab-content {
  display: none;
  animation: fadeIn 0.35s ease forwards;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Section / Banner */
.hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-accent);
}

.hero-text h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 650px;
}

.stats-pills {
  display: flex;
  gap: 1.5rem;
}

.stat-item {
  background: rgba(14, 20, 32, 0.8);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  text-align: center;
}

.stat-item .num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-cyan);
}

.stat-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Dual Pane Live Scanner Workspace
   ========================================================================== */

.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

.pane-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  height: 580px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(14, 20, 32, 0.5);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
}

.pane-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pane-actions {
  display: flex;
  gap: 0.5rem;
}

.pane-body {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

textarea.input-area {
  width: 100%;
  height: 100%;
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  resize: none;
  outline: none;
  transition: border-color 0.25s ease;
}

textarea.input-area:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.redacted-preview {
  width: 100%;
  height: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
  color: var(--text-main);
}

/* Highlighted Tokens in Redacted View */
.token-redacted {
  background: rgba(255, 59, 92, 0.2);
  color: var(--color-critical);
  border: 1px solid rgba(255, 59, 92, 0.4);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  margin: 0 2px;
}

.token-api-key {
  background: rgba(112, 0, 255, 0.25);
  color: #C084FC;
  border: 1px solid rgba(112, 0, 255, 0.5);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

.token-email {
  background: rgba(0, 240, 255, 0.2);
  color: var(--primary-cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

.pane-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 20, 32, 0.4);
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
}

/* ==========================================================================
   Compliance Risk Audit Scorecard
   ========================================================================== */

.scorecard-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
}

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

.score-panel {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gauge-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(var(--color-critical) 0% 75%, rgba(255, 255, 255, 0.05) 75% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: 0 0 30px rgba(255, 59, 92, 0.2);
}

.gauge-inner {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-inner .val {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.gauge-inner .txt {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.risk-tag {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.risk-tag.critical {
  background: rgba(255, 59, 92, 0.15);
  color: var(--color-critical);
  border: 1px solid rgba(255, 59, 92, 0.3);
}

.findings-list {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.finding-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  background: rgba(20, 28, 45, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.finding-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.finding-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.finding-icon.critical {
  background: rgba(255, 59, 92, 0.15);
  color: var(--color-critical);
}

.finding-icon.high {
  background: rgba(255, 159, 28, 0.15);
  color: var(--color-high);
}

.finding-icon.safe {
  background: rgba(6, 214, 160, 0.15);
  color: var(--color-safe);
}

.finding-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.finding-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Monetization & Billing Suite (Bitcoin & Lightning Pricing Tiers)
   ========================================================================== */

.pricing-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.pricing-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.toggle-billing {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(20, 28, 45, 0.8);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  margin-top: 1.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.pricing-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.35s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 15px 35px rgba(0, 240, 255, 0.1);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(112, 0, 255, 0.15) 0%, rgba(18, 24, 38, 0.8) 100%);
  border: 2px solid var(--primary-violet);
  box-shadow: 0 0 35px rgba(112, 0, 255, 0.25);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: #080B11;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plan-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 40px;
  margin-bottom: 1.5rem;
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 2rem;
}

.plan-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
  flex: 1;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.features-list li.disabled {
  color: var(--text-dim);
  text-decoration: line-through;
}

.features-list li i {
  color: var(--primary-cyan);
}

/* ==========================================================================
   API Console & Developer Suite
   ========================================================================== */

.api-section {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
}

.code-block {
  background: #080C14;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #7DD3FC;
  overflow-x: auto;
  position: relative;
  margin-top: 1rem;
}

.copy-code-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FFF;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
}

/* ==========================================================================
   Modals & Notifications
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 11, 17, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #121826;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 540px;
  padding: 2rem;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

/* Payment Method Tabs in Checkout Modal */
.payment-method-nav {
  display: flex;
  gap: 0.5rem;
  background: rgba(8, 12, 20, 0.8);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.payment-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
}

.payment-tab-btn:hover {
  color: #FFF;
}

.payment-tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #FFF;
  border: 1px solid var(--border-color);
}

.payment-tab-btn.btc.active {
  background: rgba(247, 147, 26, 0.15);
  color: #F7931A;
  border: 1px solid rgba(247, 147, 26, 0.4);
  box-shadow: 0 0 15px rgba(247, 147, 26, 0.2);
}

/* Bitcoin Checkout Container */
.btc-checkout-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
}

.btc-network-selector {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.btc-net-btn {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(20, 28, 45, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btc-net-btn.active {
  background: rgba(247, 147, 26, 0.2);
  color: #F7931A;
  border-color: #F7931A;
  font-weight: 700;
}

.btc-qr-wrapper {
  background: #FFFFFF;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 2px solid #F7931A;
  box-shadow: 0 0 25px rgba(247, 147, 26, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 170px;
}

.btc-qr-wrapper img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.btc-amount-banner {
  background: rgba(247, 147, 26, 0.08);
  border: 1px solid rgba(247, 147, 26, 0.25);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  width: 100%;
  text-align: center;
}

.btc-sats-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #F7931A;
  font-family: var(--font-mono);
}

.btc-fiat-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.btc-copy-group {
  display: flex;
  width: 100%;
  gap: 0.5rem;
}

.btc-copy-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-main);
  outline: none;
}

.btc-timer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btc-status-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  width: 100%;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255, 159, 28, 0.1);
  color: #FF9F1C;
  border: 1px solid rgba(255, 159, 28, 0.3);
}

.btc-status-banner.confirmed {
  background: rgba(6, 214, 160, 0.15);
  color: var(--color-safe);
  border-color: rgba(6, 214, 160, 0.4);
}

.btc-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF9F1C;
  animation: pulseBtc 1.5s infinite;
}

@keyframes pulseBtc {
  0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(247, 147, 26, 0.7); }
  70% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 0 8px rgba(247, 147, 26, 0); }
  100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(247, 147, 26, 0); }
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

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

.modal-title {
  font-size: 1.3rem;
  font-weight: 800;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Notification Toast */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(18, 24, 38, 0.95);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--primary-cyan);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Admin Portal & Management Suite Styles
   ========================================================================== */

.admin-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.admin-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-cyan);
}

.admin-stat-card.purple::before {
  background: var(--primary-violet);
}

.admin-stat-card.green::before {
  background: var(--color-safe);
}

.admin-stat-card.orange::before {
  background: var(--color-high);
}

.admin-stat-val {
  font-size: 2rem;
  font-weight: 800;
  color: #FFF;
}

.admin-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-card-section {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
}

.admin-table-container {
  width: 100%;
  overflow-x: auto;
  margin-top: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.admin-table th {
  background: rgba(14, 20, 32, 0.8);
  padding: 0.9rem 1.2rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

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

.status-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  text-transform: uppercase;
}

.status-badge.active {
  background: rgba(6, 214, 160, 0.15);
  color: var(--color-safe);
  border: 1px solid rgba(6, 214, 160, 0.3);
}

.status-badge.warning {
  background: rgba(255, 159, 28, 0.15);
  color: var(--color-high);
  border: 1px solid rgba(255, 159, 28, 0.3);
}

.status-badge.revoked {
  background: rgba(255, 59, 92, 0.15);
  color: var(--color-critical);
  border: 1px solid rgba(255, 59, 92, 0.3);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-sm.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-sm.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-sm.btn-success {
  background: rgba(6, 214, 160, 0.2);
  color: var(--color-safe);
  border: 1px solid rgba(6, 214, 160, 0.4);
}

.btn-sm.btn-danger {
  background: rgba(255, 59, 92, 0.2);
  color: var(--color-critical);
  border: 1px solid rgba(255, 59, 92, 0.4);
}

.log-terminal {
  background: #060910;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.log-entry {
  display: flex;
  gap: 1rem;
  line-height: 1.4;
}

.log-time {
  color: var(--text-dim);
}

.log-tag {
  font-weight: 700;
}

.log-tag.critical { color: var(--color-critical); }
.log-tag.warning { color: var(--color-high); }
.log-tag.info { color: var(--primary-cyan); }

.plan-select-header {
  background: rgba(20, 28, 45, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

/* ==========================================================================
   SEO Semantic Footer & Compliance Badges
   ========================================================================== */

.site-footer {
  margin-top: 4rem;
  background: rgba(8, 12, 19, 0.95);
  border-top: 1px solid var(--border-color);
  padding: 4rem 2rem 2rem 2rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 360px;
}

.footer-col h4 {
  color: #FFF;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.compliance-badges {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.comp-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================================
   User Profile & Authentication System Styles
   ========================================================================== */

.user-profile-menu-wrap {
  position: relative;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.75rem 0.3rem 0.4rem;
  border-radius: 9999px;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-profile-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-cyan);
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
  color: #080B11;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-email-label {
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: 240px;
  background: #0D1322;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  padding: 0.75rem;
  z-index: 1000;
}

.user-dropdown-header {
  padding: 0.3rem 0.4rem 0.5rem;
}

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.auth-modal-card {
  max-width: 480px;
}

.auth-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

