/* =====================================================
   VILLN.CASH - Neumorphic Design with Theme Toggle
   ===================================================== */

:root {
  /* Light Theme */
  --primary: #ff6600;
  --primary-dark: #cc5200;
  --primary-light: #ff8833;
  
  --bg: #e0e5ec;
  --surface: #e0e5ec;
  --card-bg: #e0e5ec;
  
  --text: #2d3436;
  --text-muted: #636e72;
  
  --shadow-light: #ffffff;
  --shadow-dark: #a3b1c6;
  
  --neu-distance: 8px;
  --neu-blur: 16px;
  
  --success: #00b894;
  --warning: #fdcb6e;
  --danger: #d63031;
  
  --border: rgba(0, 0, 0, 0.1);
  --radius: 20px;
  
  --input-bg: #e0e5ec;
  --input-shadow-inset: inset 4px 4px 8px #a3b1c6, inset -4px -4px 8px #ffffff;
}

[data-theme="dark"] {
  --bg: #1a1d29;
  --surface: #1a1d29;
  --card-bg: #1a1d29;
  
  --text: #e4e6eb;
  --text-muted: #9ca3af;
  
  --shadow-light: #23262f;
  --shadow-dark: #0f1015;
  
  --border: rgba(255, 255, 255, 0.1);
  
  --input-bg: #1a1d29;
  --input-shadow-inset: inset 4px 4px 8px #0f1015, inset -4px -4px 8px #23262f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease, color 0.3s ease;
}

/* =====================================================
   HEADER
   ===================================================== */

.header {
  background: var(--surface);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
}

/* Theme-based logo visibility */
.logo-light {
  display: block;
}

.logo-dark {
  display: none;
}

[data-theme="dark"] .logo-light {
  display: none;
}

[data-theme="dark"] .logo-dark {
  display: block;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Theme Toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
  color: var(--text);
  position: relative;
}

.theme-toggle:hover {
  box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
}

.theme-toggle:active {
  box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
}

.sun-icon,
.moon-icon {
  position: absolute;
  transition: all 0.3s ease;
}

.sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.moon-icon {
  opacity: 0;
  transform: rotate(180deg) scale(0.5);
}

[data-theme="dark"] .sun-icon {
  opacity: 0;
  transform: rotate(-180deg) scale(0.5);
}

[data-theme="dark"] .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.desktop-nav {
  display: flex;
  gap: 0.75rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: var(--surface);
  padding: 1rem;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mobile-menu.active {
  display: flex;
}

/* =====================================================
   MAIN CONTAINER
   ===================================================== */

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

.view {
  display: none;
}

.view.active {
  display: block;
}

/* =====================================================
   CENTERED CONTAINER
   ===================================================== */

.centered-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 1rem;
}

.card-compact {
  max-width: 400px;
  width: 100%;
  padding: 1.75rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}

/* Step Indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: var(--text-muted);
  font-weight: 700;
  transition: all 0.3s ease;
}

.step-dot.active {
  width: 16px;
  height: 16px;
  background: linear-gradient(145deg, var(--primary-light), var(--primary));
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
  color: white;
}

.step-dot.completed {
  width: 16px;
  height: 16px;
  background: linear-gradient(145deg, #00d2a0, var(--success));
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
  font-size: 10px;
  color: white;
}

.step-line {
  width: 40px;
  height: 3px;
  background: var(--surface);
  border-radius: 2px;
  box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
}

.step-line.active {
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  box-shadow: none;
}

.view-title {
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.view-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.1rem;
  font-size: 0.85rem;
}

/* =====================================================
   LANDING VIEW
   ===================================================== */

.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 12px 12px 20px var(--shadow-dark), -12px -12px 20px var(--shadow-light);
}

.card-primary {
  background: linear-gradient(145deg, var(--surface), var(--card-bg));
  position: relative;
  overflow: hidden;
}

.card-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
  filter: drop-shadow(2px 2px 4px var(--shadow-dark));
}

.card h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  text-align: center;
  font-weight: 700;
}

.card-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
}

.pricing-box {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
}

.pricing-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.pricing-line .arrow {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
  transition: all 0.3s ease;
}

.feature:hover {
  box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(2px 2px 4px var(--shadow-dark));
}

.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* =====================================================
   API KEY VIEW
   ===================================================== */

.apikey-display-compact {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
  position: relative;
}

.apikey-display-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 12px 12px 0 0;
}

.apikey-value {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  word-break: break-all;
  text-align: center;
  margin-bottom: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.5;
}

.apikey-actions {
  display: flex;
  gap: 0.6rem;
}

.btn-action-inline {
  flex: 1;
  background: var(--surface);
  border: none;
  color: var(--text);
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
}

.btn-action-inline svg {
  width: 15px;
  height: 15px;
}

.btn-action-inline:hover {
  box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
}

.btn-action-inline:active {
  box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
}

.btn-action-inline.copied {
  background: linear-gradient(145deg, #00d2a0, var(--success));
  color: white;
  box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
}

.action-icon {
  font-size: 1rem;
}

.warning-compact {
  background: var(--surface);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
  border-left: 2px solid var(--warning);
}

.warning-icon-small {
  font-size: 1rem;
  flex-shrink: 0;
}

.warning-compact p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* =====================================================
   PAYMENT VIEW
   ===================================================== */

.timer-compact {
  position: relative;
  height: 24px;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto 1.1rem;
  max-width: 100%;
  box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}

.timer-bg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  width: 100%;
  transition: width 1s linear;
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
}

.timer-bg.warning {
  background: linear-gradient(90deg, var(--warning), #ffeaa7);
}

.timer-bg.danger {
  background: linear-gradient(90deg, var(--danger), #ff7675);
}

.timer-info {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  height: 100%;
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.timer-label {
  font-size: 0.78rem;
}

.timer-value {
  font-size: 1rem;
  font-family: 'Courier New', monospace;
}

.qr-compact {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

#qr-code {
  background: white;
  padding: 0.75rem;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
}

#qr-code img {
  display: block;
  width: 140px !important;
  height: 140px !important;
}

.address-display-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.address-text {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 600;
}

.send-instruction {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0 0 1rem 0;
}

.address-compact {
  background: var(--surface);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}

.address-value {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
  line-height: 1.3;
}

.btn-icon-compact {
  background: var(--surface);
  border: none;
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
}

.btn-icon-compact:hover {
  box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
}

.btn-icon-compact:active {
  box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
}

.btn-icon-compact.copied {
  background: linear-gradient(145deg, #00d2a0, var(--success));
  color: white;
}

.alert-compact {
  background: var(--surface);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 1.1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
  box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
  border-left: 2px solid var(--warning);
}

.btn-full {
  width: 100%;
  padding: 0.85rem;
  font-size: 0.9rem;
}

.check-counter-compact {
  margin-top: 0.6rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.72rem;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
  border: none;
  border-radius: 12px;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-block;
  background: var(--surface);
  color: var(--text);
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
}

.btn:hover:not(:disabled) {
  box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
}

.btn:active:not(:disabled) {
  box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
}

.btn-primary {
  background: linear-gradient(145deg, var(--primary-light), var(--primary));
  color: white;
  box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
}

.btn-primary:active:not(:disabled) {
  box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  box-shadow: none;
  color: var(--text-muted);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface);
  color: var(--text);
  box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
}

.btn-danger {
  background: linear-gradient(145deg, #ff7675, var(--danger));
  color: white;
}

.btn-sm {
  padding: 0.625rem 1rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  width: 100%;
}

.btn-block {
  width: 100%;
  display: block;
  text-align: left;
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =====================================================
   FORMS
   ===================================================== */

.input {
  width: 100%;
  background: var(--input-bg);
  border: none;
  color: var(--text);
  padding: 1rem;
  border-radius: 12px;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
  box-shadow: var(--input-shadow-inset);
}

.input:focus {
  outline: none;
  box-shadow: var(--input-shadow-inset), 0 0 0 3px rgba(255, 102, 0, 0.2);
}

.input::placeholder {
  color: var(--text-muted);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* =====================================================
   DASHBOARD
   ===================================================== */

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

.dashboard-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.btn-icon {
  background: var(--surface);
  border: none;
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
}

.btn-icon:hover {
  box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
}

.btn-icon:active {
  box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

.card-balance {
  background: linear-gradient(145deg, var(--primary-light), var(--primary));
  border-radius: var(--radius);
  text-align: center;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
  color: white;
}

.balance-label {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  opacity: 0.95;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.balance-number {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-warning {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--warning);
}

.card-header {
  margin-bottom: 1rem;
}

.card-header h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

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

/* Sessions */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--surface);
  padding: 0.5rem;
  border-radius: 12px;
  box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  background: var(--surface);
  color: var(--primary);
  font-weight: 600;
  box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
}

.tab-content {
  display: none;
}

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

.sessions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.session-item {
  background: var(--surface);
  border-radius: 12px;
  padding: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
}

.session-item:hover {
  box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}

.session-item:active {
  box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
}

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

.session-id {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.session-status {
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.1), inset -2px -2px 4px rgba(255, 255, 255, 0.1);
}

.session-status.pending {
  background: var(--warning);
  color: white;
}

.session-status.confirmed {
  background: var(--success);
  color: white;
}

.session-status.expired {
  background: var(--danger);
  color: white;
}

.session-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.session-detail {
  font-size: 0.78rem;
}

.session-detail-label {
  color: var(--text-muted);
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.session-detail-value {
  color: var(--text);
  font-weight: 600;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
  font-size: 1rem;
}

.payment-result {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
}

.result-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
}

.result-icon {
  font-size: 1.3rem;
}

.result-field {
  margin-bottom: 1rem;
}

.result-field label {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.copy-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}

.copy-text {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  word-break: break-all;
}

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

.copy-btn {
  background: var(--surface);
  border: none;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
}

.copy-btn:hover {
  box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
}

.copy-btn:active {
  box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
}

.copy-btn.copied {
  background: linear-gradient(145deg, #00d2a0, var(--success));
  color: white;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.result-value {
  background: var(--surface);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  font-family: 'Courier New', monospace;
  box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}

.result-value.small {
  font-size: 0.85rem;
}

/* =====================================================
   MODALS
   ===================================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: var(--card-bg);
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}

.modal-large {
  max-width: 700px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem;
  border-bottom: 2px solid var(--border);
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.close {
  color: var(--text-muted);
  font-size: 1.75rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: 0.3s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close:hover {
  color: var(--primary);
  background: var(--surface);
  box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
}

.modal-body {
  padding: 1.15rem;
}

.faq-section, .doc-section {
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
}

.faq-section h3, .doc-section h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.faq-section p, .doc-section p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.doc-section pre {
  background: var(--bg);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin: 0.75rem 0;
  box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}

.doc-section code {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--primary);
}

.doc-section pre code {
  color: var(--text);
}

/* =====================================================
   TOAST
   ===================================================== */

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
  z-index: 2000;
  transform: translateY(150%);
  transition: transform 0.3s ease;
  max-width: 400px;
}

.toast.show {
  transform: translateY(0);
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid var(--danger);
}

.toast.info {
  border-left: 4px solid var(--primary);
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
  background: var(--surface);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-muted);
  margin-top: auto;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
}

.contract-address {
  font-family: 'Courier New', monospace;
  color: var(--primary);
  font-weight: 600;
}

.btn-copy-ca {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: 0.5rem;
  padding: 0.25rem;
  transition: 0.2s;
}

.btn-copy-ca:hover {
  color: var(--primary);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .main-container {
    padding: 1rem;
  }

  .centered-container {
    min-height: calc(100vh - 180px);
    padding: 0.5rem;
  }

  .card-compact {
    padding: 1.75rem;
  }

  .landing-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 2rem;
  }

  .card h2 {
    font-size: 1.5rem;
  }

  .view-title {
    font-size: 1.5rem;
  }

  .apikey-value {
    font-size: 0.95rem;
  }

  .balance-number {
    font-size: 2.5rem;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .session-details {
    grid-template-columns: 1fr;
  }

  .toast {
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
  }

  .timer-info {
    padding: 0 1rem;
  }

  .timer-label {
    font-size: 0.85rem;
  }

  .timer-value {
    font-size: 1.1rem;
  }

  .address-value {
    font-size: 0.75rem;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 1.25rem;
  }

  .card-icon {
    font-size: 2.5rem;
  }

  .card-compact {
    padding: 1.5rem;
  }

  .view-title {
    font-size: 1.35rem;
  }

  .view-subtitle {
    font-size: 0.9rem;
  }

  .pricing-line {
    flex-direction: column;
    gap: 0.5rem;
  }

  .pricing-line .arrow {
    transform: rotate(90deg);
  }

  .btn-full {
    padding: 0.875rem;
    font-size: 1rem;
  }

  .apikey-value {
    font-size: 0.9rem;
  }

  .timer-compact {
    height: 45px;
  }

  .timer-info {
    padding: 0 0.875rem;
  }

  #qr-code {
    padding: 0.75rem;
  }
}
