:root {
  /* Color System */
  --primary-500: #667eea;
  --primary-400: #7d90ed; /* Lighter blue for select buttons */
  --primary-600: #5a6fd8;
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #74b9ff, #0984e3);
  --success-500: #00b894;
  --success-600: #00a085;
  --error-100: #fee;
  --error-500: #c33;
  --error-600: #a22;
  --gray-50: #f8f9fa;
  --gray-100: #f8faff;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-800: #2d3436;
  --white: #ffffff;
  --black: #000000;
  
  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-modal: 10000;
  --z-tooltip: 100000;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--gray-800);
  background-color: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container Styles */
.cm-container {
  max-width: 100%;
  margin: 0 auto;
  font-family: var(--font-family);
  background: var(--gray-50);
  min-height: 100vh;
}

/* Header Styles */
.cm-header {
  background: var(--primary-gradient);
  color: var(--white);
  padding: var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cm-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* Checker Component */
.cm-checker {
  background: var(--white);
  margin: var(--space-6);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-normal);
}

.cm-checker:hover {
  box-shadow: var(--shadow-lg);
}

.cm-input-group {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
  .cm-input-group {
    flex-direction: column;
    gap: var(--space-2);
  }
}

.cm-input {
  flex: 1;
  padding: var(--space-4);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-family: inherit;
  transition: all var(--transition-fast);
  background-color: var(--white);
}

.cm-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.cm-input:disabled {
  background-color: var(--gray-100);
  color: var(--gray-300);
  cursor: not-allowed;
}

.cm-input::placeholder {
  color: var(--gray-300);
}

/* Button Styles */
.cm-btn {
  padding: var(--space-4) var(--space-6);
  background: var(--primary-500);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  font-family: inherit;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  position: relative;
  overflow: hidden;
}

.cm-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left var(--transition-slow);
}

.cm-btn:hover::before {
  left: 100%;
}

.cm-btn:hover:not(:disabled) {
  background: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.cm-btn:active:not(:disabled) {
  transform: translateY(0);
}

.cm-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.cm-btn:disabled {
  background: var(--gray-300);
  color: var(--gray-200);
  cursor: not-allowed;
  transform: none;
}

/* Status Messages */
.cm-status {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  margin: var(--space-4) 0;
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--font-weight-medium);
}

.cm-status::before {
  font-family: 'Segoe UI Symbol', sans-serif;
}

.cm-status.error {
  background: var(--error-100);
  color: var(--error-500);
  border: 1px solid var(--error-500);
}

.cm-status.error::before {
  content: '⚠️';
}

.cm-status.success {
  background: #f0fff4;
  color: #2d7d32;
  border: 1px solid #4caf50;
}

.cm-status.success::before {
  content: '✅';
}

/* Service Cards */
.cm-service-card {
  background: var(--white);
  margin: var(--space-4) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.cm-service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cm-service-header {
  background: var(--secondary-gradient);
  color: var(--white);
  padding: var(--space-5);
  position: relative;
}

/* Pricing Grid */
.cm-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-4);
  padding: var(--space-5);
}

.cm-price-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.cm-price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.cm-price-card:hover {
  border-color: var(--primary-500);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cm-price-card:hover::before {
  transform: scaleX(1);
}

.cm-price-card.selected {
  border-color: var(--primary-500);
  background: var(--gray-100);
  transform: scale(1.02);
}

.cm-price-card.selected::before {
  transform: scaleX(1);
}

.cm-price-name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--gray-800);
  margin-bottom: var(--space-2);
}

.cm-price-amount {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: var(--font-weight-bold);
  color: var(--primary-500);
  margin-bottom: var(--space-2);
  line-height: 1.2;
}

.cm-price-period {
  font-size: var(--font-size-sm);
  color: var(--gray-300);
  margin-bottom: var(--space-3);
}

/* Renew Button - Changed to lighter blue */
.cm-renew-btn {
  width: 100%;
  padding: var(--space-3);
  background: var(--primary-400); /* Changed to lighter blue */
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.cm-renew-btn:hover:not(:disabled) {
  background: var(--primary-500); /* Slightly darker on hover */
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.cm-renew-btn:active:not(:disabled) {
  transform: translateY(0);
}

.cm-renew-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(125, 144, 237, 0.3); /* Updated to match lighter blue */
}

.cm-renew-btn:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
  transform: none;
}

/* Modal Styles */
.cm-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  backdrop-filter: blur(4px);
  animation: fadeIn var(--transition-fast);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cm-modal-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: min(400px, 90vw);
  width: 100%;
  text-align: center;
  position: relative;
  animation: slideUp var(--transition-normal);
}

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

.cm-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  font-size: var(--font-size-xl);
  cursor: pointer;
  color: var(--gray-300);
  transition: color var(--transition-fast);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cm-modal-close:hover {
  color: var(--gray-800);
  background: var(--gray-100);
}

/* Loading Animation */
.cm-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--gray-200);
  border-top: 3px solid var(--primary-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.mb-4 {
  margin-bottom: var(--space-4);
}

.mt-4 {
  margin-top: var(--space-4);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .cm-price-card,
  .cm-service-card,
  .cm-checker,
  .cm-btn {
    transition: none !important;
    transform: none !important;
  }
  
  .cm-header::before,
  .cm-btn::before,
  .cm-price-card::before {
    animation: none !important;
    display: none !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --gray-200: #000000;
    --gray-300: #333333;
    --primary-500: #0000ff;
    --success-500: #008000;
  }
  
  .cm-service-card,
  .cm-price-card {
    border-width: 3px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --gray-50: #1a1a1a;
    --gray-100: #2d2d2d;
    --gray-200: #404040;
    --gray-300: #666666;
    --gray-800: #e0e0e0;
    --white: #2d2d2d;
  }
  
  .cm-checker,
  .cm-service-card,
  .cm-price-card,
  .cm-modal-content {
    background: var(--white);
  }
  
  body {
    color: var(--gray-800);
    background-color: var(--gray-50);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cm-container {
    margin: 0;
  }
  
  .cm-checker {
    margin: var(--space-2);
    padding: var(--space-4);
    border-radius: var(--radius-md);
  }
  
  .cm-header {
    padding: var(--space-6);
  }
  
  .cm-pricing-grid {
    grid-template-columns: 1fr;
    padding: var(--space-3);
    gap: var(--space-3);
  }
  
  .cm-modal-content {
    padding: var(--space-6);
    margin: var(--space-4);
  }
}

/* Print Styles */
@media print {
  .cm-btn,
  .cm-renew-btn,
  .cm-modal {
    display: none !important;
  }
  
  .cm-checker,
  .cm-service-card,
  .cm-price-card {
    box-shadow: none !important;
    border: 1px solid var(--gray-300) !important;
    break-inside: avoid;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}
/* Binance Checkout Styles - Modern Design */
.binance-checkout-page {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
}

.binance-header {
    text-align: center;
    margin-bottom: 24px;
}

.binance-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* Card Styles */
.binance-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.binance-card.error-card {
    text-align: center;
    padding: 24px;
}

.binance-card.error-card h3 {
    color: #dc2626;
    margin-bottom: 8px;
}

/* Countdown */
.bz-countdown {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.bz-countdown > div:first-child {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
}

.bz-countdown .timer {
    font-size: 32px;
    font-weight: 700;
    color: #059669;
    font-feature-settings: "tnum";
}

/* Card Headers */
.bz-bar {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 16px;
    color: white;
    margin: 0;
}

.bz-bar.blue {
    background: #2563eb;
}

.bz-bar.green {
    background: #059669;
}

/* Order Section */
.bz-order {
    padding: 20px;
}

.order-id {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 8px;
}

.product {
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 16px;
}

.bz-safe {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f0f9ff;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e0f2fe;
}

.bz-safe .ico {
    font-size: 20px;
    flex-shrink: 0;
}

.bz-safe .t1 {
    font-weight: 600;
    color: #0369a1;
    font-size: 15px;
    margin-bottom: 4px;
}

.bz-safe .t2 {
    color: #64748b;
    font-size: 14px;
    line-height: 1.4;
}

/* Amount Section */
.bz-amount .row {
    padding: 24px 20px;
    text-align: center;
}

.bz-amount .big {
    font-size: 32px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 8px;
}

.bz-amount .tag {
    font-size: 14px;
    color: #64748b;
}

/* Payment Section */
.bz-pay {
    padding: 20px;
}

/* Binance Pay Button - Enhanced */
.binance-pay-main-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #1e1e1e;
    background-image: linear-gradient(90deg, transparent 0%, transparent 20%, #d4a900 50%, transparent 80%, transparent 100%);
    background-size: 400% 100%;
    animation: binance-glow 8s linear infinite;
    color: #ffcc00;
    border: 2px solid #d4a900;
    border-radius: 16px;
    padding: 20px 32px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    width: 100%;
    justify-content: center;
}

.binance-pay-main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 169, 0, 0.3);
}

.binance-pay-main-btn img {
    height: 32px;
    width: 32px;
    border-radius: 6px;
}

@keyframes binance-glow {
    0% { background-position: 200% 0%; }
    100% { background-position: -200% 0%; }
}

/* Manual Payment */
.bz-pay.blk {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
}

.idrow, .amrow {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.idrow > div:first-child, .amrow > div:first-child {
    flex: 1;
}

.id {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.val {
    font-size: 16px;
    font-weight: 500;
    color: #1e293b;
}

.copy-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.copy-btn:hover {
    background: #2563eb;
}

/* Steps */
.bz-steps {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.bz-steps h4 {
    margin: 0 0 16px 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
}

.bz-steps .s {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 0;
}

.bz-steps .s .n {
    background: #3b82f6;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.bz-steps .s div:last-child {
    color: #475569;
    font-size: 14px;
    line-height: 1.4;
}

.bz-steps .s strong {
    color: #1e293b;
}

/* Status Section */
.bz-status {
    text-align: center;
    padding: 20px;
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 12px;
}

.bz-status > div:first-child {
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 8px;
}

/* QR Code Placeholder */
.qr-code-placeholder {
    width: 200px;
    height: 200px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #64748b;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .binance-checkout-page {
        padding: 16px;
    }
    
    .bz-countdown .timer {
        font-size: 28px;
    }
    
    .binance-pay-main-btn {
        padding: 16px 24px;
        font-size: 16px;
    }
    
    .id, .val {
        font-size: 16px;
    }
}

/* Payment Status Colors */
#binanceStatus.paid {
    color: #059669;
    font-weight: 600;
}

#binanceStatus.expired {
    color: #dc2626;
    font-weight: 600;
}

#binanceStatus.pending {
    color: #d97706;
    font-weight: 600;
}

/* ==== RENEWAL / SERIAL CHECKER — DESKTOP 3-COLS, HARD OVERRIDE ==== */
@media (min-width: 1024px) {
  .cm-checker {
    max-width: 1100px;
    margin: 44px auto !important;
    padding: 36px 48px !important;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: var(--white);
  }

  /* Force 3 cards per row on desktop */
  .cm-pricing-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    padding: 32px !important;
  }

  /* Comfortable card spacing on desktop */
  .cm-price-card {
    padding: 28px !important;
  }
}

/* Keep the lighter blue for Select */
.cm-renew-btn { background: var(--primary-400); }
.cm-renew-btn:hover { background: var(--primary-500); }

