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

/* ==========================================================================
   ENTERPRISE CRYPTO WEB3 DARK THEME FOR SWAGGER UI
   Tier 4 Banking Grade | MPC / Non-Custodial Architecture
   ========================================================================== */

:root {
  --crypto-bg-black: #06080e;
  --crypto-bg-card: #0b0f19;
  --crypto-bg-surface: #101626;
  --crypto-bg-elevated: #161e33;

  /* Neon Web3 Accents */
  --crypto-cyan: #38bdf8;
  --crypto-cyan-glow: rgba(56, 189, 248, 0.35);
  --crypto-purple: #a855f7;
  --crypto-purple-glow: rgba(168, 85, 247, 0.35);
  --crypto-indigo: #6366f1;
  --crypto-indigo-glow: rgba(99, 102, 241, 0.35);
  --crypto-emerald: #10b981;
  --crypto-emerald-glow: rgba(16, 185, 129, 0.35);
  --crypto-amber: #f59e0b;
  --crypto-amber-glow: rgba(245, 158, 11, 0.35);
  --crypto-rose: #ef4444;
  --crypto-rose-glow: rgba(239, 68, 68, 0.35);

  /* Cyber Borders & Text */
  --crypto-border: rgba(99, 102, 241, 0.25);
  --crypto-border-subtle: rgba(255, 255, 255, 0.08);
  --crypto-border-active: rgba(168, 85, 247, 0.6);
  --crypto-text-bright: #ffffff;
  --crypto-text: #f1f5f9;
  --crypto-text-muted: #94a3b8;
  --crypto-text-dim: #64748b;
}

/* Base Body & Layout */
body {
  background-color: var(--crypto-bg-black) !important;
  background-image: 
    linear-gradient(to right, rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(124, 58, 237, 0.18), transparent 70%),
    radial-gradient(ellipse 70% 50% at 85% 90%, rgba(56, 189, 248, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 70%, rgba(16, 185, 129, 0.06), transparent 50%) !important;
  background-size: 36px 36px, 36px 36px, 100% 100%, 100% 100%, 100% 100% !important;
  color: var(--crypto-text) !important;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  min-height: 100vh;
  margin: 0;
}

/* Modern Neon Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #06080e;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7c3aed, #3b82f6);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
}

/* Swagger Root Container */
.swagger-ui {
  color: var(--crypto-text) !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
}

.swagger-ui .wrapper {
  max-width: 1520px !important;
  margin: 0 auto !important;
  padding: 24px 20px 80px !important;
}

/* Top Branding Bar */
.swagger-ui .topbar {
  background: linear-gradient(180deg, #070a12 0%, #0d121e 100%) !important;
  border-bottom: 1px solid rgba(124, 58, 237, 0.4) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.9), 0 0 25px rgba(124, 58, 237, 0.15) !important;
  padding: 14px 0 !important;
}

.swagger-ui .topbar a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* Top Crypto Info Header Card */
.swagger-ui .info {
  background: linear-gradient(135deg, rgba(16, 22, 38, 0.85) 0%, rgba(9, 12, 22, 0.95) 100%) !important;
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
  border-radius: 24px !important;
  padding: 36px 40px !important;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(124, 58, 237, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  margin-bottom: 35px !important;
  position: relative !important;
  overflow: hidden !important;
  backdrop-filter: blur(16px) !important;
}

.swagger-ui .info::before {
  content: '⚡ TIER 4 CRYPTO MPC GATEWAY ⚡';
  position: absolute;
  top: 16px;
  right: 28px;
  font-family: 'Oxanium', monospace;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 2.5px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 12px;
  border-radius: 9999px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.swagger-ui .info .title {
  font-family: 'Oxanium', sans-serif !important;
  font-size: 34px !important;
  font-weight: 900 !important;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #a855f7 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 12px !important;
}

.swagger-ui .info .title small {
  background: linear-gradient(135deg, #7c3aed, #3b82f6) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 3px 10px !important;
  border-radius: 8px !important;
  vertical-align: middle !important;
  margin-left: 14px !important;
  border: 1px solid rgba(168, 85, 247, 0.4) !important;
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.5) !important;
}

.swagger-ui .info .description p,
.swagger-ui .info .description {
  color: #94a3b8 !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.swagger-ui .info a {
  color: #38bdf8 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}
.swagger-ui .info a:hover {
  color: #a855f7 !important;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.6) !important;
}

/* Base URL / Server Selector */
.swagger-ui .servers {
  background: rgba(11, 15, 25, 0.8) !important;
  border: 1px solid rgba(99, 102, 241, 0.2) !important;
  border-radius: 14px !important;
  padding: 12px 18px !important;
  margin-top: 18px !important;
}
.swagger-ui .servers > label select {
  background: #07090e !important;
  color: #38bdf8 !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border: 1px solid rgba(99, 102, 241, 0.4) !important;
  border-radius: 10px !important;
  padding: 8px 14px !important;
  outline: none !important;
}

/* Authorize Button (Crypto Vault Key) */
.swagger-ui .btn.authorize {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
  font-family: 'Oxanium', sans-serif !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  border: 1px solid rgba(168, 85, 247, 0.5) !important;
  border-radius: 12px !important;
  padding: 9px 22px !important;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}
.swagger-ui .btn.authorize:hover {
  background: linear-gradient(135deg, #9333ea 0%, #6366f1 100%) !important;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.7) !important;
  transform: translateY(-1px) !important;
}
.swagger-ui .btn.authorize svg {
  fill: #ffffff !important;
}

/* Tag Headers / Sections */
.swagger-ui .opblock-tag-section {
  margin-bottom: 24px !important;
}

.swagger-ui .opblock-tag {
  font-family: 'Oxanium', sans-serif !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(99, 102, 241, 0.25) !important;
  padding: 16px 8px !important;
  letter-spacing: 0.5px !important;
}

.swagger-ui .opblock-tag small {
  color: #64748b !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  margin-left: 12px !important;
}

/* Operation Blocks - General */
.swagger-ui .opblock {
  background: var(--crypto-bg-card) !important;
  border: 1px solid var(--crypto-border-subtle) !important;
  border-radius: 14px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: hidden !important;
}
.swagger-ui .opblock:hover {
  border-color: rgba(99, 102, 241, 0.4) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(99, 102, 241, 0.15) !important;
  transform: translateY(-1px) !important;
}

.swagger-ui .opblock .opblock-summary {
  padding: 12px 18px !important;
}

.swagger-ui .opblock .opblock-summary-method {
  font-family: 'Oxanium', monospace !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 1px !important;
  border-radius: 8px !important;
  min-width: 78px !important;
  text-align: center !important;
  padding: 6px 12px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.swagger-ui .opblock .opblock-summary-path {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #e2e8f0 !important;
}
.swagger-ui .opblock .opblock-summary-path a {
  color: inherit !important;
}
.swagger-ui .opblock .opblock-summary-description {
  color: #94a3b8 !important;
  font-size: 12px !important;
}

/* ==========================================================================
   HTTP METHODS COLOR THEMING (NEON CRYPTO PALETTE)
   ========================================================================== */

/* GET - Neon Emerald (Tether/FTCGO Lightning Green) */
.swagger-ui .opblock.opblock-get {
  border-color: rgba(16, 185, 129, 0.3) !important;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.05) 0%, rgba(11, 15, 25, 0.95) 100%) !important;
}
.swagger-ui .opblock.opblock-get .opblock-summary-method {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(16, 185, 129, 0.5) !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4) !important;
}
.swagger-ui .opblock.opblock-get:hover {
  border-color: rgba(16, 185, 129, 0.6) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(16, 185, 129, 0.2) !important;
}

/* POST - Electric Indigo / Ethereum Blue */
.swagger-ui .opblock.opblock-post {
  border-color: rgba(99, 102, 241, 0.3) !important;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.05) 0%, rgba(11, 15, 25, 0.95) 100%) !important;
}
.swagger-ui .opblock.opblock-post .opblock-summary-method {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(99, 102, 241, 0.5) !important;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4) !important;
}
.swagger-ui .opblock.opblock-post:hover {
  border-color: rgba(99, 102, 241, 0.6) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(99, 102, 241, 0.2) !important;
}

/* PUT - Cyber Amber Gold (FTCGO Gold) */
.swagger-ui .opblock.opblock-put {
  border-color: rgba(245, 158, 11, 0.3) !important;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.05) 0%, rgba(11, 15, 25, 0.95) 100%) !important;
}
.swagger-ui .opblock.opblock-put .opblock-summary-method {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4) !important;
}
.swagger-ui .opblock.opblock-put:hover {
  border-color: rgba(245, 158, 11, 0.6) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.2) !important;
}

/* DELETE - Cyber Crimson Red */
.swagger-ui .opblock.opblock-delete {
  border-color: rgba(239, 68, 68, 0.3) !important;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, rgba(11, 15, 25, 0.95) 100%) !important;
}
.swagger-ui .opblock.opblock-delete .opblock-summary-method {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4) !important;
}
.swagger-ui .opblock.opblock-delete:hover {
  border-color: rgba(239, 68, 68, 0.6) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(239, 68, 68, 0.2) !important;
}

/* PATCH - Solana Neon Violet */
.swagger-ui .opblock.opblock-patch {
  border-color: rgba(168, 85, 247, 0.3) !important;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.05) 0%, rgba(11, 15, 25, 0.95) 100%) !important;
}
.swagger-ui .opblock.opblock-patch .opblock-summary-method {
  background: linear-gradient(135deg, #9333ea 0%, #a855f7 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(168, 85, 247, 0.5) !important;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4) !important;
}

/* Expanded Operation Body */
.swagger-ui .opblock-body {
  background: #080b12 !important;
  border-top: 1px solid var(--crypto-border-subtle) !important;
  padding: 24px !important;
}

.swagger-ui .opblock-description-wrapper p,
.swagger-ui .opblock-external-docs-wrapper p,
.swagger-ui .opblock-title_normal p {
  color: #94a3b8 !important;
  font-size: 13px !important;
}

/* Parameters Table */
.swagger-ui table.parameters {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  background: rgba(11, 15, 25, 0.6) !important;
}
.swagger-ui table.parameters thead th {
  color: #38bdf8 !important;
  font-family: 'Oxanium', sans-serif !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2) !important;
  padding: 12px 14px !important;
}
.swagger-ui table.parameters tbody tr td {
  padding: 12px 14px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}
.swagger-ui .parameter__name {
  font-family: 'JetBrains Mono', monospace !important;
  color: #f1f5f9 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
}
.swagger-ui .parameter__type {
  color: #a855f7 !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
}

/* Try it out & Execute Buttons */
.swagger-ui .btn.try-out__btn {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #c7d2fe !important;
  border: 1px solid rgba(99, 102, 241, 0.4) !important;
  border-radius: 8px !important;
  font-family: 'Oxanium', sans-serif !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  letter-spacing: 1px !important;
  transition: all 0.2s ease !important;
}
.swagger-ui .btn.try-out__btn:hover {
  background: rgba(99, 102, 241, 0.3) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4) !important;
}

.swagger-ui .btn.execute {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  font-family: 'Oxanium', sans-serif !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  border-radius: 10px !important;
  border: 1px solid rgba(16, 185, 129, 0.6) !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4) !important;
  transition: all 0.2s ease !important;
  padding: 10px 24px !important;
}
.swagger-ui .btn.execute:hover {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.7) !important;
  transform: translateY(-1px) !important;
}

.swagger-ui .btn.btn-clear {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  border-radius: 8px !important;
  font-family: 'Oxanium', sans-serif !important;
  font-weight: 700 !important;
  font-size: 11px !important;
}

/* Input Fields & Textareas */
.swagger-ui input[type=text],
.swagger-ui input[type=password],
.swagger-ui select,
.swagger-ui textarea {
  background: #090c14 !important;
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
  color: #f1f5f9 !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}
.swagger-ui input[type=text]:focus,
.swagger-ui textarea:focus {
  border-color: #a855f7 !important;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4) !important;
  outline: none !important;
}

/* Responses Section */
.swagger-ui .responses-wrapper {
  margin-top: 20px !important;
}
.swagger-ui .responses-inner h4,
.swagger-ui .responses-inner h5 {
  color: #e2e8f0 !important;
  font-family: 'Oxanium', sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
}

.swagger-ui .response-col_status {
  font-family: 'JetBrains Mono', monospace !important;
  font-weight: 800 !important;
  font-size: 13px !important;
}
.swagger-ui .response-col_status .response-undocumented {
  color: #94a3b8 !important;
}

/* Response Code Blocks & Syntax */
.swagger-ui .highlight-code,
.swagger-ui pre {
  background: #07090f !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  color: #38bdf8 !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 12px !important;
  padding: 14px !important;
}

.swagger-ui .microlight {
  font-family: 'JetBrains Mono', monospace !important;
  color: #cbd5e1 !important;
}

/* Models / Schemas Section */
.swagger-ui section.models {
  background: var(--crypto-bg-card) !important;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
  border-radius: 16px !important;
  margin-top: 30px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
}
.swagger-ui section.models h4 {
  font-family: 'Oxanium', sans-serif !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2) !important;
  padding: 16px 20px !important;
}
.swagger-ui section.models .model-container {
  background: #090c14 !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 10px !important;
  margin: 10px 16px !important;
  padding: 12px 16px !important;
}
.swagger-ui .model-title {
  color: #a855f7 !important;
  font-family: 'Oxanium', monospace !important;
  font-weight: 800 !important;
  font-size: 14px !important;
}

/* Auth Modal Dialog */
.swagger-ui .dialog-ux .modal-ux {
  background: #0a0e18 !important;
  border: 1px solid rgba(168, 85, 247, 0.4) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(124, 58, 237, 0.3) !important;
}
.swagger-ui .dialog-ux .modal-ux-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 16px 24px !important;
}
.swagger-ui .dialog-ux .modal-ux-header h3 {
  font-family: 'Oxanium', sans-serif !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 18px !important;
}
.swagger-ui .dialog-ux .modal-ux-content {
  padding: 24px !important;
  color: #94a3b8 !important;
}
