/* =============================================
   UNBAN.LIVE - Services/Verification Styles
   ============================================= */

/* Page Header */
.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Balance Banner */
.balance-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

.balance-banner.low-balance {
  border-color: var(--warning);
  background: rgba(245, 158, 11, 0.05);
}

.balance-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.balance-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
}

.balance-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.balance-icon.warning {
  background: var(--warning);
}

.balance-details {
  display: flex;
  flex-direction: column;
}

.balance-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.balance-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.balance-banner .btn {
  white-space: nowrap;
}

/* Pricing Cards */
.pricing-section {
  margin-bottom: 40px;
}

.pricing-section h2 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.pricing-card.selected {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.05);
}

.pricing-card.popular {
  border-color: var(--secondary);
}

.pricing-card.popular::before {
  content: 'BEST VALUE';
  position: absolute;
  top: 12px;
  right: -32px;
  background: var(--gradient-primary);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 4px 40px;
  transform: rotate(45deg);
  letter-spacing: 0.05em;
}

.pricing-card.selected::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-card.selected .check-icon {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-card.selected .check-icon svg {
  width: 14px;
  height: 14px;
  color: white;
}

.pricing-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.pricing-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.pricing-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.pricing-price {
  margin-bottom: 24px;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-period {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
}

/* Platform Selection */
.platforms-section {
  margin-bottom: 40px;
}

.platforms-section h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.platforms-section > p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.platforms-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.platform-select-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.platform-select-btn:hover {
  border-color: var(--primary);
}

.platform-select-btn.selected {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.1);
}

.platform-select-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.platform-select-btn.disabled:hover {
  border-color: var(--border-color);
}

.platform-select-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.5rem;
}

.platform-select-icon.tiktok { background: linear-gradient(135deg, #25F4EE, #FE2C55); }
.platform-select-icon.instagram { background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737); }
.platform-select-icon.facebook { background: #1877F2; }
.platform-select-icon.snapchat { background: #FFFC00; color: #000; }
.platform-select-icon.twitter { background: #000; }
.platform-select-icon.youtube { background: #FF0000; }
.platform-select-icon.reddit { background: #FF4500; }
.platform-select-icon.twitch { background: #9146FF; }
.platform-select-icon.threads { background: #000; }

.platform-select-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.platform-select-btn.selected .platform-select-name {
  color: var(--primary-light);
}

/* Order Summary */
.order-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.order-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}

.order-header h2 {
  font-size: 1.125rem;
  font-weight: 600;
}

.order-body {
  padding: 24px;
}

.order-summary {
  margin-bottom: 24px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.order-row:last-child {
  border-bottom: none;
}

.order-row-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.order-row-value {
  font-weight: 600;
  color: var(--text-primary);
}

.order-row.total {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 2px solid var(--border-color);
  border-bottom: none;
}

.order-row.total .order-row-label {
  font-weight: 600;
  color: var(--text-primary);
}

.order-row.total .order-row-value {
  font-size: 1.25rem;
  color: var(--success);
}

/* Selected Platform Badge */
.selected-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-input);
  border-radius: 20px;
  font-size: 0.875rem;
}

.selected-platform-badge .mini-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* Account Input Section */
.account-input-section {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.account-input-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.account-input-label svg {
  color: var(--primary);
}

.account-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.account-input:focus {
  outline: none;
  border-color: var(--primary);
}

.account-input::placeholder {
  color: var(--text-muted);
}

.account-hint {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Insufficient Balance Warning */
.insufficient-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.insufficient-warning svg {
  width: 24px;
  height: 24px;
  color: var(--warning);
  flex-shrink: 0;
}

.insufficient-warning-content h4 {
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.insufficient-warning-content p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.insufficient-warning-content .btn {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

/* Order Button */
.order-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-actions .btn-primary {
  padding: 16px;
  font-size: 1rem;
}

.order-actions .btn-primary .btn-loading {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

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

.order-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.order-note svg {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 4px;
}

/* Success Modal */
.order-success-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.order-success-modal.active {
  opacity: 1;
  visibility: visible;
}

.order-success-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  max-width: 420px;
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.order-success-modal.active .order-success-content {
  transform: scale(1);
}

.order-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: rgba(139, 92, 246, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successPulse 0.6s ease;
}

@keyframes successPulse {
  0% { transform: scale(0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.order-success-icon svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
}

.order-success-content h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.order-success-content > p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.order-details-box {
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.order-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.875rem;
}

.order-detail-row span:first-child {
  color: var(--text-muted);
}

.order-detail-row span:last-child {
  font-weight: 600;
  color: var(--text-primary);
}

.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(245, 158, 11, 0.15);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--warning);
  text-transform: uppercase;
}

.order-status-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--warning);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.order-success-actions {
  display: flex;
  gap: 12px;
}

.order-success-actions .btn {
  flex: 1;
}

/* Empty State */
.no-selection {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.no-selection svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.no-selection p {
  font-size: 0.9375rem;
}

/* Responsive */
@media (max-width: 768px) {
  .balance-banner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .balance-info {
    flex-direction: column;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .platforms-select-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .order-success-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .platforms-select-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
