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

:root {
  --bg-main: #080b11;
  --bg-surface: #0f141f;
  --bg-surface-elevated: #161e2e;
  --bg-input: #0b0f17;
  
  --border-subtle: #1e293b;
  --border-active: #38bdf8;
  --border-gold: #f59e0b;
  
  --primary: #0284c7;
  --primary-light: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.15);
  
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.15);
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.15);
  --accent-rose: #f43f5e;
  --accent-rose-glow: rgba(244, 63, 94, 0.15);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow-blue: 0 0 20px rgba(56, 189, 248, 0.2);
  --shadow-glow-amber: 0 0 20px rgba(245, 158, 11, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-sans);
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* Typography Helpers */
.font-mono {
  font-family: var(--font-mono);
}

/* Container */
.sk-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 16px;
  flex: 1;
}

/* Navigation Header */
.sk-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 31, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 16px;
}

.sk-header-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sk-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.sk-brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 175px;
  display: block;
  object-fit: contain;
}

.sk-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sk-wallet-badge {
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px 6px 4px 12px;
  gap: 8px;
}

.sk-wallet-amount {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #38bdf8;
}

.sk-wallet-btn {
  background: #0284c7;
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.sk-wallet-btn:hover {
  background: #0369a1;
}

.sk-menu-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.sk-menu-btn:hover {
  border-color: var(--primary-light);
}

/* Nav Drawer */
.sk-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.sk-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sk-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 290px;
  height: 100%;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  z-index: 201;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}
.sk-drawer.active {
  transform: translateX(-290px);
}

.sk-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.sk-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.sk-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.sk-nav-link svg {
  flex-shrink: 0;
  color: var(--text-dim);
  transition: color 0.15s;
}
.sk-nav-link:hover, .sk-nav-link.active {
  background: var(--bg-surface-elevated);
  color: #fff;
}
.sk-nav-link:hover svg, .sk-nav-link.active svg {
  color: var(--primary-light);
}

/* Cards & Layout */
.sk-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.sk-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sk-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

/* Buttons */
.sk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  border: none;
  outline: none;
}
.sk-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sk-btn-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
}
.sk-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0369a1, #075985);
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.4);
}

.sk-btn-success {
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
}
.sk-btn-success:hover:not(:disabled) {
  background: linear-gradient(135deg, #047857, #065f46);
  box-shadow: 0 0 14px rgba(5, 150, 105, 0.4);
}

.sk-btn-amber {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
}
.sk-btn-amber:hover:not(:disabled) {
  background: linear-gradient(135deg, #b45309, #92400e);
}

.sk-btn-danger {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
}
.sk-btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #be123c, #9f1239);
}

.sk-btn-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}
.sk-btn-outline:hover:not(:disabled) {
  background: var(--bg-surface-elevated);
  border-color: var(--primary-light);
  color: #fff;
}

.sk-btn-block {
  width: 100%;
}

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

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

.sk-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: #fff;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}
.sk-input:focus {
  border-color: var(--primary-light);
}

/* Badges & Tags */
.sk-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sk-badge-blue {
  background: var(--primary-glow);
  color: var(--primary-light);
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.sk-badge-green {
  background: var(--accent-emerald-glow);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.sk-badge-amber {
  background: var(--accent-amber-glow);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.sk-badge-rose {
  background: var(--accent-rose-glow);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Modal System */
.sk-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.sk-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.sk-modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-md);
  transform: scale(0.95);
  transition: transform 0.2s ease;
}
.sk-modal-backdrop.active .sk-modal-card {
  transform: scale(1);
}

/* Toast Notifications */
#skToastContainer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}

.sk-toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.25s ease-out;
}
.sk-toast.success { border-color: var(--accent-emerald); }
.sk-toast.error { border-color: var(--accent-rose); }
.sk-toast.info { border-color: var(--primary-light); }

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

/* Footer */
.sk-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 20px 16px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  background: var(--bg-surface);
  margin-top: auto;
}
.sk-footer a {
  color: var(--text-muted);
  text-decoration: none;
}
.sk-footer a:hover {
  color: var(--primary-light);
}
