/* Apple-style Minimalist Design System & Glassmorphism */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Default: Dark Mode (Premium Liquid Glass) */
  --bg-color: #07090C;
  --bg-gradient: radial-gradient(circle at 15% 50%, rgba(255, 107, 0, 0.08), transparent 25%),
                 radial-gradient(circle at 85% 30%, rgba(48, 209, 88, 0.05), transparent 25%),
                 radial-gradient(circle at 50% 50%, #10141a 0%, #07090C 100%);
  --header-bg: rgba(7, 9, 12, 0.75);
  --header-shadow: 0 4px 24px rgba(0,0,0,0.2);
  --ticker-bg: rgba(0, 0, 0, 0.2);
  --card-bg: rgba(20, 24, 31, 0.65);
  --input-bg: rgba(30, 35, 45, 0.4);
  --text-main: #fcfcfd;
  --text-secondary: #8e939d;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-highlight: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(255, 107, 0, 0.4);
  --accent-blue: #FF6B00;
  --accent-green: #30D158;
  --accent-red: #FF453A;
  --shadow-color: rgba(0, 0, 0, 0.6);
  --glass-glow: rgba(255, 255, 255, 0.02);
}

.light-theme {
  --bg-color: #F2F2F7;
  --bg-gradient: radial-gradient(circle at 50% 50%, #ffffff 0%, #F2F2F7 100%);
  --header-bg: rgba(255, 255, 255, 0.92);
  --header-shadow: 0 4px 24px rgba(0,0,0,0.06);
  --ticker-bg: rgba(0, 0, 0, 0.04);
  --card-bg: rgba(255, 255, 255, 0.95);
  --input-bg: rgba(0, 0, 0, 0.04);
  --text-main: #1d1d1f;
  --text-secondary: #6e6e73;
  --border-color: rgba(0, 0, 0, 0.12);
  --border-highlight: rgba(0, 0, 0, 0.06);
  --border-focus: rgba(255, 107, 0, 0.5);
  --accent-blue: #FF6B00;
  --accent-green: #34C759;
  --accent-red: #FF3B30;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --glass-glow: rgba(255, 107, 0, 0.04);
}

/* Light theme form elements */
.light-theme .form-input,
.light-theme .form-select,
.light-theme select {
  background: rgba(0, 0, 0, 0.04);
  color: #1d1d1f;
  border-color: rgba(0, 0, 0, 0.12);
}
.light-theme .form-input::placeholder {
  color: #9e9ea0;
}
.light-theme .form-input:focus {
  border-color: #FF6B00;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
}

/* Light theme exchange card */
.light-theme .exchange-card,
.light-theme .exchange-section {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}
.light-theme .exchange-label {
  color: #6e6e73;
}
.light-theme .currency-selector {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1d1d1f;
}
.light-theme .currency-selector:hover {
  background: rgba(0, 0, 0, 0.07);
}

/* Light theme chat */
.light-theme .chat-msg.user {
  background: #FF6B00;
  color: #ffffff;
}
.light-theme .chat-msg.admin {
  background: rgba(10, 132, 255, 0.1);
  border: 1px solid rgba(10, 132, 255, 0.15);
  color: #1d1d1f;
}
.light-theme .chat-input-area {
  background: rgba(0, 0, 0, 0.03);
  border-top-color: rgba(0, 0, 0, 0.08);
}

/* Light theme buttons */
.light-theme .btn-secondary {
  border-color: rgba(0, 0, 0, 0.12);
  color: #1d1d1f;
}
.light-theme .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Light theme modals & notices */
.light-theme .kyc-notice-box {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}
.light-theme .modal-content {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}

/* Light theme reviews */
.light-theme .review-item {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

/* Light theme footer */
.light-theme footer {
  background: rgba(0, 0, 0, 0.03);
  border-top-color: rgba(0, 0, 0, 0.08);
}
.light-theme footer a {
  color: #6e6e73;
}
.light-theme footer a:hover {
  color: #FF6B00;
}

/* Light theme cookie banner */
.light-theme .cookie-consent {
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: #1d1d1f;
}

/* Light theme status badges */
.light-theme .status-badge {
  background: rgba(52, 199, 89, 0.1);
  border-color: rgba(52, 199, 89, 0.2);
}
.light-theme .my-orders-badge {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1d1d1f;
}

.light-theme .hero h1 {
  background: linear-gradient(135deg, #1d1d1f 30%, #86868b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.light-theme .hero-stat-value {
  color: var(--text-main);
}
.light-theme .hero-stat-label {
  color: var(--text-secondary);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(134, 134, 139, 0.3);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(134, 134, 139, 0.5);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Header & Ticker */
.ticker-wrap {
  width: 100%;
  background: var(--ticker-bg);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
}

.ticker {
  display: flex;
  white-space: nowrap;
  animation: ticker-animation 40s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 24px;
}

.ticker-item span.up {
  color: var(--accent-green);
  margin-left: 4px;
}

.ticker-item span.down {
  color: var(--accent-red);
  margin-left: 4px;
}

@keyframes ticker-animation {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  box-shadow: var(--header-shadow);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-blue);
  border-radius: 50%;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}

nav a:hover, nav a.active {
  color: var(--text-main);
}

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

.mobile-only-nav {
  display: none;
}

.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  background: var(--input-bg);
  color: var(--text-main);
}

.my-orders-badge {
  display: inline-flex;
  align-items: center;
  position: relative;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 107, 0, 0.1);
  color: var(--accent-blue);
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.my-orders-badge:hover {
  background: rgba(255, 107, 0, 0.2);
}

.notification-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-red, #ff3b30);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 2px 5px;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--bg-dark);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7), 0 0 0 2px var(--bg-dark); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(255, 59, 48, 0), 0 0 0 2px var(--bg-dark); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0), 0 0 0 2px var(--bg-dark); }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(48, 209, 88, 0.1);
  color: var(--accent-green);
  padding: 6px 12px;
  border-radius: 20px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* Glass Cards - Liquid Glass Style */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-top: 1px solid var(--border-highlight);
  border-radius: 28px;
  box-shadow: 0 24px 48px -12px var(--shadow-color), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 32px 56px -12px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.08);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--glass-glow) 0%, transparent 60%);
  pointer-events: none;
}

/* Hero Section */
.hero {
  text-align: center;
  padding-top: 60px; padding-bottom: 40px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 30%, #a0a5b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* main Layout */
.main-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  padding: 20px 0 80px;
}

@media (max-width: 968px) {
  .main-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Calculator Style */
.calc-card {
  padding: 32px;
}

.calc-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

.calc-step {
  display: none;
  max-width: 600px;
  margin: 0 auto;
}

.calc-step.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

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

.input-group {
  position: relative;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.input-group:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.15);
}

.input-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0px;
  margin-bottom: 6px;
}

.input-amount-wrapper {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.input-amount {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  font-weight: 600;
  outline: none;
  width: 100%;
}

/* Custom Select Menu */
.currency-select {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.currency-select:hover {
  background: var(--input-bg);
}

.currency-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.currency-arrow {
  color: var(--text-secondary);
  font-size: 12px;
  transition: transform 0.2s ease;
}

.currency-select.open .currency-arrow {
  transform: rotate(180deg);
}

/* Input group needs positioning context for dropdown */
.input-group {
  position: relative;
  z-index: 10;
}

/* Dropdown Options List — iOS Frosted Glass */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 20px;
  width: 270px;
  background: rgba(18, 20, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  z-index: 9999;
  display: none;
  margin-top: 8px;
  overflow-y: auto;
  max-height: 350px;
  backdrop-filter: saturate(180%) blur(25px);
  -webkit-backdrop-filter: saturate(180%) blur(25px);
}

/* When dropdown is open, raise the entire input-group above siblings */
.input-group:has(.dropdown-menu.show) {
  z-index: 9999;
}

.light-theme .dropdown-menu {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0,0,0,0.04) inset;
  backdrop-filter: saturate(180%) blur(25px);
  -webkit-backdrop-filter: saturate(180%) blur(25px);
}

.dropdown-menu.show {
  display: block;
  animation: dropdownOpen 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dropdownOpen {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-search {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  background: rgba(18, 20, 26, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
  border-radius: 16px 16px 0 0;
}

.light-theme .dropdown-search {
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-search input {
  width: 100%;
  background: rgba(118, 118, 128, 0.2);
  border: none;
  border-radius: 10px;
  padding: 9px 14px 9px 34px;
  color: var(--text-main);
  outline: none;
  font-size: 14px;
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 16px;
}

.dropdown-search input::placeholder {
  color: var(--text-secondary);
  font-weight: 400;
}

.dropdown-search input:focus {
  background-color: rgba(118, 118, 128, 0.3);
  box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.35);
}

.light-theme .dropdown-search input {
  background-color: rgba(118, 118, 128, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 16px;
}

.light-theme .dropdown-search input:focus {
  background-color: rgba(118, 118, 128, 0.18);
  box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.3);
}

.dropdown-select {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(30, 35, 45, 0.5);
  border: 1px solid var(--border-color);
  border-top: 1px solid var(--border-highlight);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.05);
}

.dropdown-select:hover {
  background: rgba(40, 45, 55, 0.7);
  border-color: var(--border-highlight);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 1px 1px rgba(255,255,255,0.1);
}

.dropdown-select:active {
  transform: scale(0.98);
}

.dropdown-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dropdown-option:hover {
  background: rgba(255, 255, 255, 0.05);
}

.light-theme .dropdown-option:hover {
  background: rgba(0, 0, 0, 0.03);
}

.dropdown-option-info {
  display: flex;
  flex-direction: column;
}

.dropdown-option-code {
  font-weight: 600;
  font-size: 14px;
}

.dropdown-option-name {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Swap Button */
.swap-btn-container {
  display: flex;
  justify-content: center;
  margin: -6px 0 10px;
  position: relative;
  z-index: 10;
}

.swap-btn {
  background: var(--input-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2), inset 0 1px 1px rgba(255,255,255,0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.swap-btn:hover {
  transform: rotate(180deg) scale(1.15);
  background: #FF6B00;
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.5);
}

.swap-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Form Details */
.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding-left: 4px;
}

.form-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-top: 1px solid var(--border-highlight);
  border-radius: 16px;
  padding: 16px 20px;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 500;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input:focus {
  border-color: var(--border-focus);
  background: rgba(30, 35, 45, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.15), inset 0 2px 4px rgba(0,0,0,0.1);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 24px;
  padding: 0 4px;
}

.checkbox-field input {
  margin-top: 3px;
  cursor: pointer;
}

.checkbox-field a {
  color: var(--accent-blue);
  text-decoration: none;
}

.checkbox-field a:hover {
  text-decoration: underline;
}

/* Info Row */
.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  padding: 0 4px;
}

.info-row span.highlight {
  color: var(--text-main);
  font-weight: 600;
}

/* Buttons */
.btn-primary {
  width: 100%;
  background: linear-gradient(180deg, #FF7B1A 0%, #FF6B00 100%);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 1px solid rgba(255,255,255,0.25);
  padding: 18px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(255, 107, 0, 0.2), inset 0 1px 1px rgba(255,255,255,0.2);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 107, 0, 0.3), inset 0 1px 1px rgba(255,255,255,0.3);
}

.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 4px 8px rgba(255, 107, 0, 0.2);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-top: 1px solid var(--border-highlight);
  color: var(--text-main);
  padding: 14px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 12px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2), inset 0 1px 1px rgba(255,255,255,0.1);
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* Pay Instructions Step */
.payment-box {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.pay-amount {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin: 10px 0;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.requisite-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 12px;
  margin-top: 14px;
  font-family: monospace;
  font-size: 15px;
}

.copy-icon {
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.copy-icon:hover {
  color: var(--text-main);
}

/* Timer styles */
.timer-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  color: var(--accent-red);
  font-weight: 600;
  margin-bottom: 20px;
}

.timer-icon {
  animation: shake 1.5s infinite;
}

@keyframes shake {
  0% { transform: rotate(0); }
  10% { transform: rotate(5deg); }
  20% { transform: rotate(-5deg); }
  30% { transform: rotate(5deg); }
  40% { transform: rotate(-5deg); }
  50% { transform: rotate(0); }
  100% { transform: rotate(0); }
}

/* Processing state animation */
.loader-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  text-align: center;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--border-color);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 24px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(48, 209, 88, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  margin-bottom: 24px;
  font-size: 40px;
}

.sidebar-rates {
  padding: 24px;
  transition: padding 0.3s ease;
}

.sidebar-rates.chat-active {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#panel-chat {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
}

.rate-table th {
  text-align: left;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.rate-table td {
  padding: 14px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
}

.rate-table tr:last-child td {
  border-bottom: none;
}

.rate-pair {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.rate-trend-up {
  color: var(--accent-green);
  font-weight: 500;
}

.rate-trend-down {
  color: var(--accent-red);
  font-weight: 500;
}

/* FAQ Accordion */
.faq-section {
  padding-top: 60px; padding-bottom: 60px;
  border-top: 1px solid var(--border-color);
}

.faq-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.faq-item {
  padding: 20px 24px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), margin-top 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  margin-top: 12px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), margin-top 0.3s ease;
}

.faq-chevron {
  font-size: 12px;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(90deg);
}

/* Footer Banners */
footer {
  margin-top: auto;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.3);
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 280px;
}

.footer-brand p {
  margin-top: 12px;
  line-height: 1.5;
  font-size: 13px;
}

.footer-links-grid {
  display: flex;
  gap: 80px;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 30px;
  }
  .footer-links-grid {
    gap: 40px;
  }
}

.footer-col h4 {
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 15px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--text-main);
}

.footer-banners {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
}

/* Mock Monitorings Badges */
.monitor-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.1s ease;
}

.monitor-badge:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.monitor-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
}

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

/* Policy / Document Pages */
.doc-page {
  padding: 40px 0 80px;
  max-width: 800px;
  margin: 0 auto;
}

.doc-card {
  padding: 48px;
}

@media (max-width: 768px) {
  .doc-card {
    padding: 24px;
  }
}

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  transition: color 0.15s ease;
}

.doc-back:hover {
  color: var(--text-main);
}

.doc-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}

.doc-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text-main);
}

.doc-content p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.doc-content ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.doc-content li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.6;
}

/* Toast Notification */
.toast {
  position: fixed;
  /* above the chat button and above modal windows, so a message is never hidden behind them */
  bottom: 96px;
  right: 24px;
  max-width: calc(100vw - 48px);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1000001;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  backdrop-filter: blur(20px);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.toast.toast-error {
  border-color: rgba(255, 69, 58, 0.4);
}

.toast-success-icon {
  color: var(--accent-green);
}

/* Partner Program styles */
.partner-tabs {
  display: flex;
  background: var(--input-bg);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.partner-tab {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
  color: var(--text-secondary);
}

.partner-tab.active {
  background: var(--card-bg);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.partner-pane {
  display: none;
}

.partner-pane.active {
  display: block;
}

.partner-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-box {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

/* Floating Support Chat Widget (Apple UI Style) */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  animation: pulseChatButton 2.5s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulseChatButton {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(255, 107, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

@media (hover: hover) and (pointer: fine) {
  .chat-toggle:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 28px rgba(255, 107, 0, 0.4);
  }
}

.chat-toggle:active {
  transform: scale(0.97);
}

.chat-window {
  width: 350px;
  height: 450px;
  position: absolute;
  bottom: 72px;
  right: 0;
  display: none; /* toggled by JS */
  flex-direction: column;
  box-shadow: 0 12px 36px var(--shadow-color);
  animation: chatOpen 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: bottom right;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.chat-window.embedded {
  position: static;
  width: 100%;
  height: 100%;
  flex: 1;
  box-shadow: none;
  border: none;
  background: transparent;
  animation: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  flex-direction: column;
}

.chat-window.embedded .chat-close {
  display: none;
}

@keyframes chatOpen {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.chat-header {
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s ease;
}

.chat-close:hover {
  color: var(--text-main);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.5;
  word-break: break-word;
}

.chat-msg.system {
  background: rgba(142, 142, 147, 0.12);
  border: 1px solid rgba(142, 142, 147, 0.2);
  color: var(--text-secondary);
  align-self: center;
  max-width: 90%;
  text-align: center;
  font-size: 12px;
  border-radius: 12px;
}

.chat-msg.user {
  background: var(--accent-blue);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg.admin {
  background: rgba(10, 132, 255, 0.15);
  border: 1px solid rgba(10, 132, 255, 0.1);
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-input-area {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.1);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
}

.chat-input-area input {
  flex: 1;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
}

.chat-input-area input:focus {
  border-color: var(--border-focus);
}

.chat-input-area button {
  background: var(--accent-blue);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.chat-input-area button:hover {
  opacity: 0.9;
}

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 16px 24px;
  margin-bottom: 8px;
  max-height: 120px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), margin 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.wizard-progress.collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.35;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.wizard-step.active,
.wizard-step.completed {
  opacity: 1;
}

.wizard-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.wizard-step.active .wizard-step-circle {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
  box-shadow: 0 0 16px rgba(255, 107, 0, 0.4);
}

.wizard-step.completed .wizard-step-circle {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: white;
}

.wizard-step-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.wizard-step.active .wizard-step-label {
  color: var(--accent-blue);
}

.wizard-step.completed .wizard-step-label {
  color: var(--accent-green);
}

.wizard-step-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 8px;
  margin-bottom: 20px;
  min-width: 24px;
  transition: background 0.3s ease;
}

.wizard-step-line.completed {
  background: var(--accent-green);
}

.light-theme .wizard-step-circle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
}

.light-theme .wizard-step-line {
  background: rgba(0, 0, 0, 0.08);
}

/* ===== ORDER STATUS TRACKER ===== */
.order-status-tracker {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 8px 24px;
  gap: 0;
}

.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.3;
  transition: all 0.4s ease;
}

.status-step.active {
  opacity: 1;
}

.status-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.4s ease;
}

.status-step.active .status-step-icon {
  background: rgba(255, 107, 0, 0.15);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.3);
}

.status-step.completed .status-step-icon {
  background: rgba(48, 209, 88, 0.15);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.status-step span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.status-step.active span {
  color: var(--accent-blue);
}

.status-step.completed span {
  color: var(--accent-green);
}

.status-step-connector {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  min-width: 16px;
  max-width: 40px;
  margin: 0 4px;
  margin-bottom: 20px;
  transition: background 0.4s ease;
}

.status-step-connector.completed {
  background: var(--accent-green);
}

/* ===== ORDER HISTORY ===== */
.order-history-card {
  margin-top: 32px;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px;
}

.order-history-card .sidebar-title {
  align-self: flex-start;
  margin-bottom: 24px;
}

.order-history-lookup {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.order-history-lookup .form-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
}

.order-history-lookup .btn-primary {
  width: auto;
  white-space: nowrap;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  margin-top: 0 !important;
}

#order-history-list {
  width: 100%;
  max-width: 640px;
  margin-top: 24px;
}

@media (max-width: 576px) {
  .order-history-lookup {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .order-history-lookup .btn-primary {
    width: 100%;
  }
}

.order-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}

.order-history-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.order-history-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-history-pair {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.order-history-date {
  font-size: 12px;
  color: var(--text-secondary);
}

.order-history-status {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.order-history-status.pending {
  background: rgba(255, 159, 10, 0.15);
  color: #FF9F0A;
}

.order-history-status.paid {
  background: rgba(255, 107, 0, 0.15);
  color: #FF6B00;
}

.order-history-status.completed {
  background: rgba(48, 209, 88, 0.15);
  color: #30D158;
}

.order-history-status.canceled {
  background: rgba(255, 69, 58, 0.15);
  color: #FF453A;
}

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

.btn-repeat {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 107, 0, 0.3);
  background: rgba(255, 107, 0, 0.1);
  color: var(--accent-blue);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-repeat:hover {
  background: rgba(255, 107, 0, 0.2);
}

/* ===== CHAT FILE UPLOAD ===== */
.chat-upload-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
}

.chat-upload-btn:hover {
  color: var(--accent-blue);
  background: rgba(255, 107, 0, 0.1);
}

.chat-msg img {
  max-width: 200px;
  border-radius: 8px;
  margin-top: 6px;
  cursor: pointer;
}

/* Light theme adjustments */
.light-theme .order-history-item {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

.light-theme .status-step-icon {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .status-step-connector {
  background: rgba(0, 0, 0, 0.06);
}

/* Animated checkmark for receipt upload */
.receipt-success-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: receiptScaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.receipt-success-icon {
  width: 48px;
  height: 48px;
  background: rgba(48, 209, 88, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  margin-bottom: 12px;
  box-shadow: 0 0 20px rgba(48, 209, 88, 0.2);
  animation: receiptPopSuccess 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

@keyframes receiptScaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes receiptPopSuccess {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.receipt-success-checkmark {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: receiptDrawCheckmark 0.4s ease-out 0.4s forwards;
}

@keyframes receiptDrawCheckmark {
  to { stroke-dashoffset: 0; }
}

/* ===== BYBIT STYLE P2P SIMULATOR STYLES ===== */
.p2p-wrapper {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 20px;
  box-sizing: border-box;
}

.p2p-toggle-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.02);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  width: fit-content;
}

.p2p-toggle-btn {
  background: transparent;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.p2p-toggle-btn.active {
  background: var(--card-bg);
  color: var(--text-main);
  box-shadow: 0 4px 12px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.p2p-container {
  display: flex;
  gap: 32px;
}

@media (max-width: 968px) {
  .p2p-container {
    flex-direction: column;
  }
}

.p2p-left {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.p2p-right {
  flex: 0.8;
  height: 600px;
}

.p2p-card {
  background: #18191b;
  border: 1px solid #2b2c2f;
  border-radius: 20px;
  padding: 24px;
  box-sizing: border-box;
}

.p2p-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.p2p-desc {
  font-size: 13.5px;
  color: #8e8e93;
  margin-bottom: 24px;
  line-height: 1.5;
}

.p2p-card-accent {
  border-left: 4px solid #ff9f0a;
  background: rgba(255, 159, 10, 0.05);
  padding: 16px 20px;
  border-radius: 0 16px 16px 0;
  margin-bottom: 24px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #ff9f0a;
}

.p2p-card-accent-green {
  border-left: 4px solid #30d158;
  background: rgba(48, 209, 88, 0.05);
  padding: 16px 20px;
  border-radius: 0 16px 16px 0;
  margin-bottom: 24px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #30d158;
}

.p2p-details-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.p2p-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.02);
  padding-bottom: 10px;
}

.p2p-detail-item:last-child {
  border: none;
}

.p2p-detail-label {
  color: #8e8e93;
}

.p2p-detail-value {
  color: #ffffff;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.p2p-copy-btn {
  background: none;
  border: none;
  color: #FF6B00;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: opacity 0.15s;
}

.p2p-copy-btn:hover {
  opacity: 0.8;
}

.p2p-btn-orange {
  background: #ff9f0a;
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.p2p-btn-orange:hover {
  background: #e08b08;
}

.p2p-btn-orange:disabled {
  background: #2c2c2e;
  color: #8e8e93;
  cursor: not-allowed;
}

.p2p-btn-yellow {
  background: #30d158;
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.p2p-btn-yellow:hover {
  background: #24b547;
}

.p2p-btn-grey {
  background: #2c2c2e;
  color: #8e8e93;
  border: 1px solid #3a3a3c;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  margin-top: 12px;
}

.p2p-btn-grey:hover {
  background: #3a3a3c;
  color: #ffffff;
}

.p2p-chat-window {
  background: #151618;
  border: 1px solid #2b2c2f;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.p2p-chat-header {
  background: #1c1d20;
  border-bottom: 1px solid #2b2c2f;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.p2p-chat-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.p2p-chat-avatar {
  width: 36px;
  height: 36px;
  background: #2f3035;
  color: #ffffff;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.p2p-chat-name {
  font-weight: 600;
  font-size: 14.5px;
  color: #ffffff;
}

.p2p-chat-status {
  font-size: 11px;
  color: #8e8e93;
  margin-top: 2px;
}

.p2p-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.p2p-msg {
  max-width: 80%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.p2p-msg.left {
  align-self: flex-start;
}

.p2p-msg.right {
  align-self: flex-end;
}

.p2p-msg-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  word-break: break-word;
}

.p2p-msg.left .p2p-msg-bubble {
  background: #232427;
  color: #ffffff;
  border-bottom-left-radius: 4px;
}

.p2p-msg.right .p2p-msg-bubble {
  background: #FF6B00;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.p2p-msg-time {
  font-size: 9.5px;
  color: #8e8e93;
  align-self: flex-end;
  padding: 0 4px;
}

.p2p-msg.left .p2p-msg-time {
  align-self: flex-start;
}

.p2p-msg.system {
  align-self: center;
  text-align: center;
  max-width: 90%;
}

.p2p-msg.system .p2p-msg-bubble {
  background: #1c1d20;
  color: #8e8e93;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.03);
}

.p2p-chat-input-area {
  background: #1c1d20;
  border-top: 1px solid #2b2c2f;
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.p2p-chat-input {
  flex: 1;
  background: #262628;
  border: 1px solid #2b2c2f;
  border-radius: 10px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
}

.p2p-chat-input:focus {
  border-color: #FF6B00;
}

.p2p-chat-btn {
  background: none;
  border: none;
  color: #8e8e93;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.p2p-chat-btn:hover {
  color: #FF6B00;
}

.p2p-chat-send-btn {
  background: #FF6B00;
  border: none;
  color: #ffffff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.p2p-chat-send-btn:hover {
  background: #147ce5;
}

.p2p-stepper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.p2p-step-item {
  display: flex;
  gap: 12px;
}

.p2p-step-number {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2c2c2e;
  color: #8e8e93;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.p2p-step-item.active .p2p-step-number {
  background: #ff9f0a;
  color: #ffffff;
}

.p2p-step-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.p2p-step-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
}

.p2p-step-desc {
  font-size: 12.5px;
  color: #8e8e93;
  line-height: 1.4;
}

.p2p-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: receiptScaleIn 0.3s ease;
}

.p2p-modal {
  background: #18191b;
  border: 1px solid #2b2c2f;
  border-radius: 20px;
  padding: 24px;
  width: 320px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.p2p-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.p2p-modal-desc {
  font-size: 13.5px;
  color: #8e8e93;
  margin-bottom: 20px;
  line-height: 1.5;
}

.p2p-feedback-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.p2p-feedback-btn {
  flex: 1;
  background: #232427;
  border: 1px solid #2b2c2f;
  padding: 12px;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}

.p2p-feedback-btn:hover {
  background: #2e3034;
}

/* ===== KYC MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}
.kyc-modal {
  background: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: 480px;
  width: 90%;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 40px var(--shadow-color);
  animation: kycFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes kycFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.kyc-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.kyc-step-bar {
  flex: 1;
  height: 4px;
  background: var(--input-bg);
  border-radius: 2px;
  transition: background 0.3s ease;
}
.kyc-step-bar.active {
  background: linear-gradient(90deg, var(--accent-blue), #5e5ce6);
}

/* ===== NETWORK SELECTOR ===== */
.network-selector {
  margin-bottom: 20px;
}
.network-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.network-cards::-webkit-scrollbar {
  display: none;
}
.network-card {
  flex: 0 0 auto;
  width: 90px;
  height: 80px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.network-card:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px var(--glass-glow);
}
.network-card.selected {
  border-color: var(--accent-blue);
  background: rgba(255, 107, 0, 0.1);
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.2);
}

/* ===== SBP FORM ===== */
.sbp-form {
  margin-bottom: 20px;
}
.payout-method-toggle {
  display: flex;
  background: var(--input-bg);
  border-radius: 20px;
  padding: 4px;
  margin-bottom: 16px;
}
.payout-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.payout-btn:hover {
  color: var(--text-main);
}
.payout-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2), inset 0 1px 1px rgba(255,255,255,0.05);
}

/* ===== ORDER TIMER ===== */
.order-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 32px 0;
  position: relative;
  width: 120px;
  height: 120px;
}
.timer-svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}
.timer-bg {
  fill: none;
  stroke: var(--input-bg);
  stroke-width: 6;
}
.timer-progress {
  fill: none;
  stroke: var(--accent-blue);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke 0.5s ease;
}
.timer-text {
  position: absolute;
  font-family: monospace;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
}
.timer-green .timer-progress { stroke: var(--accent-green); }
.timer-yellow .timer-progress { stroke: #FF9F0A; }
.timer-red .timer-progress { stroke: var(--accent-red); }

/* ===== REVIEWS WIDGET ===== */
.reviews-section {
  padding: 40px 0;
  text-align: center;
}
.reviews-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.reviews-average {
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-main), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.reviews-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.reviews-carousel::-webkit-scrollbar {
  display: none;
}
.review-card {
  flex: 0 0 auto;
  width: 280px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 20px;
  text-align: left;
  scroll-snap-align: center;
  backdrop-filter: blur(20px);
}

/* ===== VIP BADGE ===== */
.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FF9F0A, #FF453A);
  padding: 4px 10px;
  border-radius: 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 159, 10, 0.4);
}
.vip-badge.high-level {
  animation: vipPulse 2s infinite;
}
@keyframes vipPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 159, 10, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(255, 159, 10, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 159, 10, 0); }
}

/* ===== CARD ROTATION PROGRESS ===== */
.card-rotation-bar {
  height: 8px;
  background: var(--input-bg);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 12px;
}
.card-volume-fill {
  height: 100%;
  background: var(--accent-green);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.5s ease;
}
.card-volume-fill.yellow { background: #FF9F0A; }
.card-volume-fill.red { background: var(--accent-red); }

/* --- Polished Styles Added --- */

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 100px;
  font-size: 13px;
  color: #FFB347;
  margin-bottom: 16px;
  animation: fadeInDown 0.6s ease-out;
}

.gradient-text {
  background: linear-gradient(135deg, #FFB347, #FF6B00, #FF4500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  justify-content: center;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.trust-section {
  padding-top: 60px; padding-bottom: 60px;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  min-width: 140px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.trust-badge:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 0, 0.3);
}

.trust-icon {
  font-size: 28px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 0, 0.1);
  border-radius: 16px;
}

.trust-badge span {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-align: center;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B00, #FF4500);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chat-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(255, 107, 0, 0.6);
}

.chat-fab:active {
  transform: scale(0.95);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1024px) {
  html, body {
    overflow-x: hidden;
  }

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

  .header-actions {
    display: none;
  }

  .mobile-only-nav {
    display: list-item;
  }
  .mobile-only-nav a {
    color: var(--text-main);
    font-weight: 600;
  }

  .header-wrapper {
    padding-left: 16px; padding-right: 16px;
  }
  
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0a0a0a;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                padding 0.35s ease;
    z-index: 1000;
  }
  
  nav.nav-open {
    max-height: 80vh;
    opacity: 1;
    overflow-y: auto;
    pointer-events: auto;
    padding: 16px 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 24px;
  }
  
  nav ul li a {
    display: block;
    font-size: 17px;
    font-weight: 500;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    transition: color 0.2s ease;
  }

  nav ul li:last-child a {
    border-bottom: none;
  }

  nav ul li a:hover,
  nav ul li a.active {
    color: var(--accent-blue);
  }

  .light-theme nav {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  }

  .light-theme nav ul li a {
    border-bottom-color: rgba(0, 0, 0, 0.06);
  }

  .hero-stats {
    flex-direction: row;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
  }
  .hero-stat-value {
    font-size: 20px;
  }
  .hero-stat-label {
    font-size: 11px;
  }

  .trust-badges {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }
  .trust-badge {
    min-width: 0;
    padding: 16px 12px;
    gap: 8px;
  }
  .trust-badge span {
    font-size: 11px;
    text-align: center;
  }
  .trust-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
  }

  .container {
    padding-left: 16px; padding-right: 16px;
  }
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* My Orders Modal Styles */
.my-orders-modal-content {
  max-width: 600px;
}
.my-orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  cursor: pointer;
}
.order-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}
.order-card-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.order-card-id {
  font-size: 14px;
  color: var(--text-muted);
}
.order-card-route {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.order-card-amount {
  font-size: 14px;
  color: var(--text-light);
}
.order-card-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.status-new { background: rgba(255, 159, 10, 0.2); color: #ff9f0a; }
.status-pending { background: rgba(255, 107, 0, 0.2); color: #FF6B00; }
.status-paid { background: rgba(255, 107, 0, 0.2); color: #FF6B00; }
.status-in_progress { background: rgba(255, 107, 0, 0.2); color: #FF6B00; }
.status-completed { background: rgba(48, 209, 88, 0.2); color: #30d158; }
.status-cancelled { background: rgba(255, 69, 58, 0.2); color: #ff453a; }

.status-expired { background: rgba(255, 159, 10, 0.2); color: #ff9f0a; }

/* Fox Glow & Nav Enhancements */
.nav-link.active {
  color: var(--accent-blue);
  position: relative;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-blue);
  border-radius: 2px;
  box-shadow: 0 2px 8px var(--glass-glow);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 15% 20%, rgba(255, 107, 0, 0.03) 0%, transparent 40%),
              radial-gradient(circle at 85% 80%, rgba(255, 107, 0, 0.03) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

/* Section Tabs (Coin/Bank) responsive */
@media (max-width: 768px) {
  .section-tabs {
    gap: 2px !important;
    padding: 2px !important;
  }
  .section-tab {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 400px) {
  .section-tabs {
    gap: 1px !important;
  }
  .section-tab {
    padding: 3px 6px !important;
    font-size: 10px !important;
  }
}

/* Chat greeting bubble animation */
@keyframes chatBubbleIn {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-quick-replies::-webkit-scrollbar { display: none; }

/* Auth Header Buttons */
.header-btn-login {
  background: transparent;
  border: 1px solid rgba(255,107,0,0.5);
  color: #FF6B00;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.header-btn-login:hover {
  background: rgba(255,107,0,0.1);
}

.header-btn-register {
  background: #FF6B00;
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.header-btn-register:hover {
  background: #e65c00;
}

#header-auth-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.auth-user-profile:hover {
  background: rgba(255,255,255,0.1);
}

.auth-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FF6B00;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Header harmonization — desktop only */
@media (min-width: 769px) {
  .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }
}
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Two-column layout (e-change.io style) */
.exchange-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .exchange-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.exchange-col {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  min-width: 0;
  width: 100%;
  position: relative;
  overflow: visible;
}

.recipient-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .recipient-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.recipient-grid .form-field {
  margin-bottom: 0;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-icon .field-icon {
  position: absolute;
  left: 12px;
  color: var(--text-secondary);
  font-size: 16px;
  pointer-events: none;
}
.input-with-icon .form-input {
  padding-left: 36px;
}

/* Fix for Webkit autofill in dark mode */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px #1a1a1c inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

.flex-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-top: 1px solid var(--border-highlight);
  border-radius: 16px;
  padding-right: 16px;
  position: relative;
  transition: all 0.2s;
}
.flex-input-wrapper:focus-within {
  border-color: var(--orange-main);
  box-shadow: 0 0 0 1px var(--orange-main);
}
.flex-input-wrapper .form-input {
  flex: 1;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  margin: 0;
}
.flex-input-wrapper .field-icon {
  position: absolute;
  left: 16px;
  color: var(--text-secondary);
}
.flex-input-wrapper .form-input.has-icon {
  padding-left: 44px;
}

@media (max-width: 400px) {
  #chat-widget-panel {
    width: calc(100vw - 32px) !important;
    right: 16px !important;
    bottom: 80px !important;
  }
}

/* Extra Mobile Proportions for Calculator */
@media (max-width: 576px) {
  .calc-card {
    padding: 20px 16px;
  }
  .input-group {
    padding: 12px 14px;
    margin-bottom: 12px;
  }
  .input-amount {
    font-size: 20px;
  }
  .currency-select {
    padding: 8px 10px;
    font-size: 13px;
    white-space: nowrap;
    gap: 6px;
  }
  .currency-icon {
    width: 20px;
    height: 20px;
  }
  /* Middle bar: rate and buttons */
  .middle-bar {
    margin: 16px 0 24px 0 !important;
  }
  .middle-bar > div {
    gap: 8px !important;
  }
  #rate-text {
    font-size: 11px !important;
    white-space: nowrap !important;
  }
  .swap-btn {
    width: 36px !important;
    height: 36px !important;
  }
  #btn-reset {
    font-size: 0 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    justify-content: center !important;
    gap: 0 !important;
  }
  #btn-reset svg {
    margin: 0 !important;
    width: 18px !important;
    height: 18px !important;
  }
  
  /* Chat widget shouldn't overlap important buttons */
  #chat-widget-btn {
    bottom: 20px !important;
    right: 16px !important;
    width: 50px !important;
    height: 50px !important;
  }
}

@media (max-width: 576px) {
  body {
    padding-bottom: 60px;
  }
}

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


@keyframes stepLoadingBar { 0% { left: -40%; } 100% { left: 100%; } }
@keyframes stepBlink { 0%, 100% { opacity: 1; box-shadow: 0 0 0px rgba(255,255,255,0); } 50% { opacity: 0.7; box-shadow: 0 0 8px rgba(255,255,255,0.4); } }

/* Variant 3 Processing View */
.v3-scanline {
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #FF7B1A, transparent);
  animation: scan-line 2.5s infinite linear;
}

@keyframes scan-line {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.v3-spinner {
  width: 50px; height: 50px;
  margin: 0 auto 24px auto;
  border: 3px solid rgba(255, 123, 26, 0.1);
  border-top: 3px solid #FF7B1A;
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}


/* header: keep badges on one line */
.my-orders-badge, .status-badge { white-space: nowrap; flex: none; }

/* phones: the cookie notice and the chat greeting must not cover the exchange form */
@media (max-width: 640px) {
  #cookie-banner { padding: 10px 14px !important; }
  #cookie-banner p { font-size: 12px !important; line-height: 1.35; min-width: 0 !important; flex-basis: 100% !important; }
  #cookie-banner button { padding: 8px 16px !important; font-size: 13px !important; }
  #chat-greeting { display: none !important; }
}

/* header with six menu items: tighter spacing on mid-size screens */
@media (min-width: 1025px) and (max-width: 1500px) {
  header nav ul { gap: 14px; }
  header nav a { font-size: 14px; }
  header .header-actions { gap: 10px; }
}
@media (min-width: 1025px) and (max-width: 1280px) {
  header .status-badge { display: none; }
}
