/* components.css - Premium Reusable Components */

/* ==========================================
   BUTTONS (Fitts's Law compliant, min 44px touch target)
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  min-height: 44px; /* Touch target */
  padding: 0 1.25rem;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #FFFFFF;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(135, 22, 24, 0.2);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--surface-color);
  color: var(--text-primary);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background-color: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-outline:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.btn-danger {
  background-color: var(--error);
  color: #FFFFFF;
}
.btn-danger:hover {
  background-color: var(--error-text);
  transform: translateY(-1px);
}

/* Button Sizes */
.btn-sm {
  min-height: 44px;
  padding: 0 0.875rem;
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

.btn-lg {
  min-height: 52px;
  padding: 0 1.75rem;
  font-size: var(--text-base);
}

.btn-icon-only {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}
.btn-icon-only.btn-sm {
  width: 36px;
  height: 36px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn:focus-visible {
  outline: 2.5px solid var(--primary-color);
  outline-offset: 2px;
}

.btn-primary:focus-visible {
  outline-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(135, 22, 24, 0.2);
}

.btn-secondary:focus-visible {
  outline-color: var(--text-primary);
}

.btn-outline:focus-visible {
  outline-color: var(--primary-color);
}

.btn-danger:focus-visible {
  outline-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Ghost / text-only button */
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--surface-color);
}

.btn-ghost:focus-visible {
  outline-color: var(--text-primary);
}

/* Link-style button */
.btn-link {
  background: transparent;
  color: var(--primary-color);
  border: none;
  padding: 0;
  min-height: auto;
  font-weight: 600;
  font-size: inherit;
  display: inline;
  white-space: normal;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.btn-link:focus-visible {
  outline: 2.5px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Spinner (used by btn-loading) */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-rotate 0.6s linear infinite;
}

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

/* ==========================================
   SKELETON LOADERS
   Prevents CLS by reserving layout space
   during dynamic content AJAX fetches.
   ========================================== */
@keyframes skeleton-shimmer {
  0%   { background-position: -800px 0; }
  100% { background-position: 800px 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-color) 25%,
    var(--border-color) 37%,
    var(--surface-color) 63%
  );
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.5s infinite linear;
  border-radius: var(--radius-sm);
  display: block;
}

/* Skeleton card that mirrors a plan-card shape */
.skeleton-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.skeleton-title   { height: 24px; width: 60%; }
.skeleton-text    { height: 14px; width: 90%; }
.skeleton-text-sm { height: 14px; width: 70%; }
.skeleton-price   { height: 48px; width: 50%; margin: 0.5rem 0; }
.skeleton-btn     { height: 44px; width: 100%; border-radius: var(--radius-md); margin-top: auto; }

/* Generic vps-loading-state used across hosting pages */
.vps-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
  gap: 0.75rem;
}
.vps-loading-state .spinner-border {
  width: 2rem;
  height: 2rem;
  border-width: 3px;
  border-color: var(--primary-color) transparent transparent transparent;
  border-radius: 50%;
  animation: spinner-rotate 0.75s linear infinite;
  border-style: solid;
}

/* ==========================================
   MODAL MOBILE SAFE-AREA INSETS
   Prevents action buttons from being hidden
   behind iOS/Android browser bottom bars.
   ========================================== */
.modal-wrap,
.modal-overlay {
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-footer,
.modal-actions {
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
}

/* ==========================================
   INPUTS & FORM FIELDS
   ========================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  position: relative;
}

/* Reserve space for validation messages to prevent layout jumps */
.form-error-msg {
  min-height: 1.25rem;
  font-size: var(--text-xs);
  color: var(--error, #dc2626);
  margin-top: 0.25rem;
  line-height: 1.4;
  display: block;
}

.form-label {
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.input-container {
  position: relative;
  width: 100%;
}

.input-field {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.input-field:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--primary-glow);
  background-color: var(--bg-color);
}

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

/* Input States */
.input-field.is-invalid {
  border-color: var(--error);
}
.input-field.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
}

.input-field:disabled {
  background-color: var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Input Icon Enhancements */
.input-with-icon .input-field {
  padding-left: 2.75rem;
}
.input-icon-left {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Floating Label Style Group */
.form-floating {
  position: relative;
}
.form-floating .input-field {
  min-height: 56px;
  padding: 1.25rem 1rem 0.5rem;
}
.form-floating label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  font-size: var(--text-base);
  color: var(--text-muted);
  transition: transform var(--transition-fast), font-size var(--transition-fast), color var(--transition-fast);
  pointer-events: none;
}
.form-floating .input-field:focus ~ label,
.form-floating .input-field:not(:placeholder-shown) ~ label {
  transform: translateY(-130%) scale(0.85);
  transform-origin: top left;
  color: var(--primary-color);
}

/* ==========================================
   CARDS (Sleek layout tiles)
   ========================================== */
.card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}

/* Card Modifiers — use as a single system for all card variants */
.card--compact { padding: 1.25rem; }
.card--tight   { padding: 1.5rem; }
.card--loose   { padding: 2.5rem; }

.card--clickable {
  cursor: pointer;
}
.card--clickable:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card--featured {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-premium);
}

.card--glass {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  backdrop-filter: blur(var(--glass-backdrop-blur));
  -webkit-backdrop-filter: blur(var(--glass-backdrop-blur));
  box-shadow: var(--shadow-premium);
}

.card--no-padding { padding: 0; }

/* Legacy interactive card (keep for backward compat) */
.card-interactive:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  cursor: pointer;
}

/* Feature Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  align-items: center;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-card-title {
  font-size: var(--text-lg);
  font-weight: 700;
}
.feature-card-desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ==========================================
   LOADING INDICATORS
   ========================================== */
.loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.loader-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: loader-spin 0.6s linear infinite;
}

.loader--sm .loader-spinner {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

.loader--lg .loader-spinner {
  width: 28px;
  height: 28px;
  border-width: 3px;
}

.loader--page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1rem;
}

.loader--page .loader-spinner {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

.loader--overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader--overlay .loader-spinner {
  width: 40px;
  height: 40px;
  border-width: 3px;
  background: var(--bg-color);
  border-radius: 50%;
  padding: 4px;
  background-clip: content-box;
}

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

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--surface-color) 25%, var(--border-color) 50%, var(--surface-color) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton--text {
  height: 1rem;
  width: 100%;
  margin-bottom: 0.5rem;
}

.skeleton--title {
  height: 1.5rem;
  width: 60%;
  margin-bottom: 0.75rem;
}

.skeleton--avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.skeleton--card {
  height: 200px;
  border-radius: var(--radius-lg);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================
   EMPTY STATE
   ========================================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  gap: 0.75rem;
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.empty-state-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.empty-state-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.5;
}

.empty-state-action {
  margin-top: 0.75rem;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.container-narrow {
  max-width: 800px;
}
.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.mobile-drawer-actions .btn-secondary {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.mobile-drawer-actions .btn-secondary:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  transform: none;
}
.mobile-drawer-actions .btn-primary {
  background-color: #fff;
  color: var(--primary-color);
  border-color: #fff;
}
.mobile-drawer-actions .btn-primary:hover {
  background-color: rgba(255,255,255,0.9);
  color: var(--primary-hover);
  transform: none;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
}
.newsletter-input,
.newsletter-btn {
  min-height: 40px;
}
.newsletter-input {
  font-size: var(--text-sm);
}

/* ==========================================
   GUARANTEE CARD
   ========================================== */
.guarantee-card {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-color) 100%);
  border-color: var(--primary-color);
  position: relative;
  overflow: hidden;
}
.guarantee-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}
.guarantee-card > * { position: relative; z-index: 1; }
.guarantee-icon {
  font-size: var(--text-price-lg);
  margin-bottom: 1rem;
  display: block;
}
.guarantee-card .section-title { margin-bottom: 0.5rem; }

/* ==========================================
   TESTIMONIAL CARD
   ========================================== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}
.testimonial-stars svg {
  width: 16px;
  height: 16px;
  color: var(--warning);
  fill: var(--warning);
}
.testimonial-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: justify;
  width: 100%;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-name {
  font-weight: 700;
  color: var(--text-primary);
}
.testimonial-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--text-xs);
  color: var(--success);
  margin-top: 0.25rem;
}

/* ==========================================
   PRICING SHARED FEATURES
   ========================================== */
.pricing-shared {
  text-align: center;
  padding: 2.5rem 2rem;
  margin-top: 2rem;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}
.pricing-shared h4 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 1rem;
}
.pricing-shared-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}
.pricing-shared-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.pricing-shared-item svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
}

/* ==========================================
   POPULAR DOMAIN EXTENSIONS
   ========================================== */
.tld-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* ==========================================
   TRUST FEATURE CARDS — Premium SaaS
   ========================================== */
.trust-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 2rem 2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1), border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: var(--bg-color);
}

.trust-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary-light) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 250ms ease;
}
.trust-card:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
.trust-card:hover,
.trust-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium), 0 12px 40px rgba(135, 22, 24, 0.08);
  border-color: var(--primary-color);
}
.trust-card:hover::before,
.trust-card:focus-within::before { opacity: 1; }

/* Top accent strip */
.trust-accent {
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 4px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--primary-color);
  opacity: 0.6;
  z-index: 2;
  transition: opacity 250ms ease, height 250ms ease;
}
.trust-card--shield .trust-accent { opacity: 0.4; }
.trust-card--backup .trust-accent { opacity: 0.25; }
.trust-card:hover .trust-accent,
.trust-card:focus-within .trust-accent {
  opacity: 1;
  height: 5px;
}

/* Premium badge */
.trust-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary-color);
  font-size: var(--text-xs);
  font-weight: 600;
  position: relative;
  z-index: 1;
  margin-bottom: 1.25rem;
}
.trust-card--shield .trust-badge { background: var(--surface-hover); color: var(--text-secondary); }
.trust-card--backup .trust-badge { background: var(--primary-light); opacity: 0.75; }

/* Icon container */
.trust-icon-wrap {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.trust-icon-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid var(--primary-color);
  opacity: 0.15;
  transition: transform 250ms ease, opacity 250ms ease;
}
.trust-card:hover .trust-icon-ring,
.trust-card:focus-within .trust-icon-ring {
  transform: scale(1.15);
  opacity: 0.3;
}
.trust-icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-light) 60%, rgba(135, 22, 24, 0.08) 100%);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 250ms ease, background 250ms ease, color 250ms ease, box-shadow 250ms ease;
  box-shadow: 0 4px 12px rgba(135, 22, 24, 0.08);
}
.trust-card:hover .trust-icon,
.trust-card:focus-within .trust-icon {
  transform: scale(1.08);
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 6px 20px rgba(135, 22, 24, 0.2);
}

/* Typography */
.trust-card h3 {
  font-size: var(--text-card-title);
  font-weight: 800;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
  margin-bottom: 0.625rem;
}
.trust-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--lh-body);
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: justify;
}

/* Micro detail */
.trust-micro {
  font-size: var(--text-xs);
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  margin-top: 0.75rem;
}

/* Bottom CTA */
.trust-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  z-index: 1;
  margin-top: 1.25rem;
  padding: 0.25rem 0;
  transition: color 250ms ease;
  border-bottom: 1px solid transparent;
}
.trust-cta-arrow {
  display: inline-block;
  transition: transform 250ms ease;
}
.trust-card:hover .trust-cta,
.trust-card:focus-within .trust-cta {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}
.trust-card:hover .trust-cta-arrow,
.trust-card:focus-within .trust-cta-arrow {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
  .trust-card { padding: 2rem 1.5rem 1.75rem; }
  .trust-icon-wrap { width: 72px; height: 72px; }
  .trust-icon { width: 60px; height: 60px; }
  .trust-card h3 { font-size: var(--text-lg); }
}

/* TLD Grid Pricing Card */
.tld-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  min-height: 200px;
}
.tld-badge {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.tld-price {
  font-size: var(--text-card-title);
  font-weight: 700;
  color: var(--primary-color);
}
.tld-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.tld-pricing {
  margin-top: 2rem;
}
.tld-period {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-secondary);
}
.tld-price--promo {
  color: var(--success);
}

/* ==========================================
   BADGES & CHIPS
   ========================================== */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-xs);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.badge-success {
  background-color: var(--success-light);
  color: var(--success-text);
}

.badge-warning {
  background-color: var(--warning-light);
  color: var(--warning-text);
}

.badge-error {
  background-color: var(--error-light);
  color: var(--error-text);
}

.badge-dark {
  background-color: var(--text-primary);
  color: var(--bg-color);
}

/* ==========================================
   ACCORDIONS (Smooth animated lists)
   ========================================== */
.accordion-item {
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 0;
}
.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0.5rem;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
}
.accordion-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
  color: var(--text-secondary);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out, padding var(--transition-normal);
  padding: 0 0.5rem;
}
.accordion-content {
  padding-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--lh-body);
}

/* Active Accordions */
.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--primary-color);
}
.accordion-item.active .accordion-body {
  max-height: 500px; /* Large enough threshold */
}

/* ==========================================
   TABS (Sliding Navigation indicators)
   ========================================== */
.tab-group {
  width: 100%;
}
.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  gap: 1.5rem;
}
.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.75rem 0;
  position: relative;
  transition: color var(--transition-fast);
}
.tab-btn:hover {
  color: var(--text-primary);
}
.tab-btn.active {
  color: var(--primary-color);
  font-weight: 600;
}
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
  animation: fadeIn var(--transition-normal) forwards;
}

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

/* ==========================================
   TABLES
   ========================================== */
.table-container {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background-color: var(--bg-color);
}

/* ==========================================
   SECURITY PAGE
   ========================================== */
.sec-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  transition: box-shadow var(--transition-medium), border-color var(--transition-medium);
}
.sec-card:hover {
  box-shadow: var(--shadow-premium);
  border-color: var(--primary-color);
}
.sec-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sec-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.sec-compare {
  padding: 2.5rem 2rem;
}
.sec-compare--without {
  border-color: var(--border-color);
  background: var(--surface-color);
}
.sec-compare--with {
  border-color: var(--primary-color);
  background: var(--bg-color);
  position: relative;
}
.sec-compare-badge {
  position: absolute;
  top: 0;
  right: 1.5rem;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-full);
}
.sec-compare-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.sec-compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sec-compare-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.sec-compare-list svg {
  flex-shrink: 0;
}

/* ==========================================
   PREMIUM CATALOG PAGE
   ========================================== */
.premium-grid {
  gap: 2rem;
}
.premium-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow var(--transition-medium), border-color var(--transition-medium), transform var(--transition-medium);
}
.premium-card:hover {
  box-shadow: var(--shadow-premium);
  border-color: var(--warning);
  transform: translateY(-4px);
}
.premium-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.premium-card-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.premium-card-badge--gold {
  background: rgba(234, 179, 8, 0.12);
  color: #b8860b;
}
.premium-card-badge--blue {
  background: var(--primary-light);
  color: var(--primary-color);
}
.premium-card-badge--green {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}
.premium-est-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--success);
}
.premium-domain {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  letter-spacing: -0.02em;
}
.premium-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.premium-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.premium-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--border-color);
}
.premium-meta-row span {
  color: var(--text-muted);
}
.premium-meta-row strong {
  color: var(--text-color);
  font-weight: 600;
}
.premium-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.premium-price-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.premium-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}
.premium-price-amount {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--primary-color);
}
.premium-price-period {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ==========================================
   WHOIS PAGE
   ========================================== */
.whois-search-wrap {
  margin-bottom: 1.5rem;
}
.whois-search-box {
  max-width: 100%;
}
.whois-samples {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.whois-sample-pill {
  padding: 0.25rem 0.75rem;
  text-decoration: none;
  font-size: var(--text-sm);
}
.whois-output {
  min-height: 120px;
}

/* ==========================================
   BULK SEARCH PAGE
   ========================================== */
.bulk-card {
  padding: 2rem;
  margin-bottom: 2rem;
}
.bulk-textarea-wrap {
  position: relative;
}
.bulk-textarea {
  min-height: 200px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  resize: vertical;
  padding: 1rem;
  width: 100%;
  line-height: 1.6;
}
.bulk-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.bulk-count {
  margin-left: auto;
}
.bulk-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.bulk-progress-wrapper {
  display: none;
  margin-bottom: 2rem;
}
.bulk-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.bulk-progress-track {
  width: 100%;
  height: 6px;
  background-color: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.bulk-progress-value {
  width: 0%;
  height: 100%;
  background-color: var(--primary-color);
  transition: width 0.2s ease-out;
}
.bulk-empty-row td {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.bulk-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
}
.bulk-empty svg { opacity: 0.4; }
.bulk-empty p { font-size: var(--text-sm); }

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th, .table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  font-size: var(--text-base);
}

.table th {
  background-color: var(--surface-color);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.table tbody tr {
  transition: background-color var(--transition-fast);
}

.table tbody tr:hover {
  background-color: var(--surface-color);
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 2rem;
}
.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-fast);
}
.page-link:hover:not(.disabled) {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background-color: var(--surface-color);
}
.page-link.active {
  background-color: var(--primary-color);
  color: #FFFFFF;
  border-color: var(--primary-color);
}
.page-link.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ==========================================
   TOOLTIPS
   ========================================== */
.tooltip-container {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background-color: var(--text-primary);
  color: var(--bg-color);
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  white-space: nowrap;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-md);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--text-primary) transparent transparent transparent;
}

.tooltip-container:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================
   MODALS
   ========================================== */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}

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

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  transition: background-color var(--transition-fast);
}
.modal-close:hover {
  background-color: var(--surface-color);
  color: var(--text-primary);
}

/* ==========================================
   DOMAIN CONFIGURATION MODAL (Redesigned)
   ========================================== */
.domain-config-modal {
  max-width: 720px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.domain-config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.domain-config-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.domain-config-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
}

.domain-config-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.domain-config-scroll-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.domain-config-content {
  display: flex;
  flex-direction: column;
}

.domain-config-left {
  padding: 1.25rem 1.5rem;
}

.domain-config-right {
  padding: 1.25rem;
  border-left: 1px solid var(--border-color);
  background: var(--surface-color);
}

/* Stepper UI */
.domain-config-stepper {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.step-indicator.active {
  color: var(--primary-color);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--surface-color);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  transition: all var(--transition-fast);
}

.step-indicator.active .step-num {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.step-divider {
  flex: 1;
  height: 2px;
  background: var(--border-color);
  margin: 0 1rem;
  border-radius: var(--radius-full);
}

@media (max-width: 600px) {
  .domain-config-stepper .hide-mobile {
    display: none;
  }
  .step-divider {
    margin: 0 0.5rem;
  }
}

.wizard-step {
  animation: wizardFadeIn 0.3s ease-out forwards;
}

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

/* Sections */
.domain-config-section {
  margin-bottom: 1.5rem;
}
.domain-config-section:last-child {
  margin-bottom: 0;
}

.domain-config-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  margin-bottom: 0.625rem;
}

.domain-config-optional-badge {
  font-size: var(--text-micro);
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--surface-color);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: auto;
}

/* Nameserver hint */
.domain-config-ns-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.08);
  margin-bottom: 0.75rem;
  font-size: var(--text-xs);
  color: var(--success, #10b981);
  font-weight: 500;
}

.domain-config-ns-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.domain-config-ns-field {
  position: relative;
}

.domain-config-ns-badge {
  position: absolute;
  top: 50%;
  right: 0.625rem;
  transform: translateY(-50%);
  font-size: var(--text-micro);
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  background: var(--surface-color);
  color: var(--text-muted);
  pointer-events: none;
}

/* Hosting Grid */
.domain-config-hosting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  /* Removed max-height so it flows natively inside scroll-area */
}

@media (max-width: 640px) {
  .domain-config-hosting-grid {
    grid-template-columns: 1fr;
  }
}

.hosting-option-card {
  cursor: pointer;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  transition: all var(--transition-fast);
  background: var(--bg-color);
}

.hosting-option-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-color);
}

.hosting-option-card.selected {
  border-color: var(--primary-color);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.hosting-option-card--popular {
  border-color: var(--primary-color);
  border-style: dashed;
}

.hosting-option-card--popular .hosting-option-icon {
  background: var(--primary-light);
  color: var(--primary-color);
}

.hosting-option-card-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
}

.hosting-option-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hosting-option-card.selected .hosting-option-icon {
  background: var(--primary-color);
  color: #fff;
}

.hosting-option-info {
  flex: 1;
  min-width: 0;
}

.hosting-option-name {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.hosting-option-desc {
  display: block;
  font-size: var(--text-xxs);
  color: var(--text-muted);
  margin-top: 0.0625rem;
}

.hosting-option-price {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--primary-color);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Price Summary (Right Column) */
.domain-config-summary {
  position: sticky;
  top: 0;
}

.domain-config-summary-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.domain-config-breakdown {
  margin-bottom: 0.75rem;
}

.domain-config-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.375rem 0;
  font-size: var(--text-sm);
}

.domain-config-breakdown-row span:first-child {
  color: var(--text-secondary);
}

.domain-config-breakdown-row span:last-child {
  font-weight: 600;
  color: var(--text-primary);
}

.domain-config-breakdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.5rem 0;
}

.domain-config-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  margin-bottom: 0.75rem;
}

.domain-config-total-label {
  font-weight: 700;
  color: var(--text-primary);
}

.domain-config-total-value {
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--primary-color);
}

.domain-config-summary-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding-top: 0.5rem;
}

/* Sticky CTA Footer */
.domain-config-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
  background: var(--bg-color);
}

.domain-config-cta {
  min-width: 160px;
  justify-content: center;
  gap: 0.5rem;
}

/* Responsive: Stack on mobile and tablet */
@media (max-width: 768px) {
  .domain-config-modal {
    max-width: 100%;
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .domain-config-content {
    grid-template-columns: 1fr;
  }

  .domain-config-right {
    border-left: none;
    border-top: 1px solid var(--border-color);
    /* By default stack summary below on mobile, or keep it on top with order: -1 depending on preference.
       The user wants "stack summary below configuration" on tablet/mobile, so removing order: -1 */
    order: 0;
  }

  .domain-config-ns-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   TOAST NOTIFICATIONS (Alert anchors)
   ========================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1100;
  max-width: 360px;
  width: 100%;
}

.toast {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: start;
  gap: 0.75rem;
  transform: translateY(120%);
  opacity: 0;
  animation: slideUp var(--transition-normal) forwards;
}

.toast-success { border-left-color: var(--success); }
.toast-warning { border-left-color: var(--warning); }
.toast-error   { border-left-color: var(--error); }

.toast-content {
  flex-grow: 1;
}
.toast-title {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
}
.toast-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 0.125rem;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

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

/* ==========================================
   CART SLIDEOUT DRAWER (Global sidebar cart)
   ========================================== */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background-color: var(--bg-color);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  border-left: 1px solid var(--border-color);
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--surface-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  animation: fadeIn var(--transition-fast) forwards;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
}

.cart-item-name {
  font-weight: 600;
  color: var(--text-primary);
}

.cart-item-price {
  font-size: var(--text-sm);
  color: var(--primary-color);
  font-weight: 500;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}
.cart-item-remove:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}

/* Empty Cart State */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  gap: 1rem;
  text-align: center;
}
.cart-empty svg {
  width: 64px;
  height: 64px;
  color: var(--border-hover);
}

/* ==========================================
   LOADING & SKELETONS
   ========================================== */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(135, 22, 24, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

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

.skeleton {
  background: linear-gradient(90deg, var(--surface-color) 25%, var(--border-color) 50%, var(--surface-color) 75%);
  background-size: 200% 100%;
  animation: loading-skeleton 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}
.skeleton-title {
  height: 1.5rem;
  width: 60%;
  margin-bottom: 1rem;
}
.skeleton-rect {
  height: 100px;
}

@keyframes loading-skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================
   ALERTS
   ========================================== */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  line-height: 1.5;
  border: 1px solid;
  animation: fadeIn var(--transition-fast) forwards;
}
.alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}
.alert-content { flex-grow: 1; }
.alert-title {
  font-weight: 600;
  margin-bottom: 0.125rem;
}
.alert-desc { opacity: 0.85; }
.alert-info {
  background-color: #EFF6FF;
  border-color: #BFDBFE;
  color: #1E40AF;
}
.alert-success {
  background-color: var(--success-light);
  border-color: #86EFAC;
  color: var(--success-text);
}
.alert-warning {
  background-color: var(--warning-light);
  border-color: #FDE68A;
  color: var(--warning-text);
}
.alert-error {
  background-color: var(--error-light);
  border-color: #FECACA;
  color: var(--error-text);
}
[data-theme="dark"] .alert-info {
  background-color: #0F172A;
  border-color: #1E3A5F;
  color: #93C5FD;
}
[data-theme="dark"] .alert-success { border-color: #064E3B; }
[data-theme="dark"] .alert-warning { border-color: #78350F; }
[data-theme="dark"] .alert-error { border-color: #7F1D1D; }
.alert-dismiss {
  background: none; border: none; cursor: pointer;
  color: inherit; opacity: 0.5; flex-shrink: 0;
  padding: 0.25rem; border-radius: var(--radius-sm);
  transition: opacity var(--transition-fast);
}
.alert-dismiss:hover { opacity: 1; }

/* ==========================================
   BREADCRUMBS
   ========================================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.breadcrumb-item:hover { color: var(--text-primary); }
.breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 600;
  pointer-events: none;
}
.breadcrumb-separator {
  color: var(--border-hover);
  display: flex;
  align-items: center;
}

/* ==========================================
   STEPPER
   ========================================== */
.stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
  width: 100%;
}
.stepper::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}
.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-color);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  font-size: var(--text-sm);
}
.step-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  text-align: center;
}
.step.active .step-circle {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: #FFF;
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.step.active .step-label { color: var(--text-primary); }
.step.completed .step-circle {
  border-color: var(--success);
  background-color: var(--success);
  color: #FFF;
}

/* ==========================================
   EMPTY STATE
   ========================================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  min-height: 300px;
}
.empty-state-icon {
  width: 64px;
  height: 64px;
  color: var(--border-hover);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-state-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.empty-state-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 360px;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.empty-state-action { min-width: 160px; }

/* ==========================================
   PASSWORD STRENGTH & TOGGLE
   ========================================== */
.password-input-wrap { position: relative; }
.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}
.password-toggle:hover { color: var(--text-primary); }
.password-strength { margin-top: 0.5rem; }
.password-strength-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--border-color);
  overflow: hidden;
}
.password-strength-fill {
  height: 100%; width: 0%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}
.password-strength-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 0.25rem;
  transition: color 0.3s;
}

/* ==========================================
   BUTTON LOADING STATE
   ========================================== */
.btn-loading {
  pointer-events: none;
  position: relative;
}
.btn-loading .btn-text { opacity: 0; }
.btn-loading .spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.btn-loading.btn-sm .spinner {
  width: 16px; height: 16px; border-width: 2px;
}

/* ==========================================
   FORM VALIDATION MESSAGES
   ========================================== */
.field-help {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 0.375rem;
}
.field-error {
  font-size: var(--text-xs);
  color: var(--error);
  margin-top: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.field-success {
  font-size: var(--text-xs);
  color: var(--success);
  margin-top: 0.375rem;
}
.input-field.is-valid {
  border-color: var(--success);
}
.input-field.is-valid:focus {
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}

/* ==========================================
   PRICING CARDS
   ========================================== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.pricing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.pricing-card.featured {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-premium);
}
.pricing-card.featured:hover {
  box-shadow: 0 32px 60px -12px rgba(135,22,24,0.18);
}
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.pricing-header {
  text-align: center;
  width: 100%;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}
.pricing-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  text-align: center;
}
.pricing-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-align: center;
  width: 100%;
}
.pricing-price {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.1em;
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 0.75rem;
}
.pricing-currency {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1;
}
.pricing-period {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 400;
}
.pricing-original {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: var(--text-base);
  font-weight: 500;
  margin-left: 0.5rem;
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  flex: 1;
  margin-bottom: 2rem;
}
.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-align: left;
}
.pricing-feature-item .check-icon { color: var(--success); flex-shrink: 0; }
.pricing-feature-item .muted-icon { color: var(--text-muted); flex-shrink: 0; }
.pricing-feature-item.unavailable {
  color: var(--text-muted);
  text-decoration: line-through;
}
.pricing-cta { width: 100%; }

/* ==========================================
   SECTION HEADER
   ========================================== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-light);
  color: var(--primary-color);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: 1rem;
}
.section-title {
  font-size: var(--text-section-title);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
}
.section-header-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* ==========================================
   AVATAR
   ========================================== */
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--text-sm);
  color: #FFF;
  background-color: var(--primary-color);
  flex-shrink: 0;
  overflow: hidden;
}
.avatar-sm { width: 32px; height: 32px; font-size: var(--text-xs); }
.avatar-lg { width: 48px; height: 48px; font-size: var(--text-base); }
.avatar-xl { width: 64px; height: 64px; font-size: var(--text-lg); }
.avatar-image { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials { line-height: 1; }
.avatar-group { display: flex; }
.avatar-group .avatar {
  border: 2px solid var(--bg-color);
  margin-left: -8px;
}
.avatar-group .avatar:first-child { margin-left: 0; }

/* ==========================================
   PROGRESS BAR
   ========================================== */
.progress {
  width: 100%;
  height: 8px;
  background-color: var(--surface-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}
.progress-sm { height: 4px; }
.progress-lg { height: 12px; }

/* ==========================================
   DIVIDER
   ========================================== */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: var(--text-xs);
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* ==========================================
   STAT CARD
   ========================================== */
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: center;
}
.stat-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}
.stat-value {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ==========================================
   TAG / CHIP
   ========================================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  white-space: nowrap;
}
.tag-dismiss {
  background: none; border: none; cursor: pointer;
  color: currentColor; opacity: 0.5;
  display: flex; align-items: center; padding: 0;
  transition: opacity var(--transition-fast);
}
.tag-dismiss:hover { opacity: 1; }

/* ==========================================
   LIST GROUP
   ========================================== */
.list-group {
  list-style: none;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.list-group-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: background-color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.list-group-item:last-child { border-bottom: none; }
.list-group-item:hover { background-color: var(--surface-color); }
.list-group-item.active {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-weight: 600;
}

/* ==========================================
   NOTIFICATION BADGE
   ========================================== */
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: var(--text-micro);
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border-radius: var(--radius-full);
  background-color: var(--primary-color);
  color: #FFF;
  white-space: nowrap;
}
.notif-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--error);
  border: 2px solid var(--bg-color);
}

/* ==========================================
   CODE BLOCK
   ========================================== */
.code-block {
  background-color: #0d0d0d;
  border: 1px solid #222;
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #222;
  color: #808080;
  font-size: var(--text-xs);
}
.code-dots { display: flex; gap: 0.375rem; }
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot-red { background-color: #ff5f56; }
.code-dot-yellow { background-color: #ffbd2e; }
.code-dot-green { background-color: #27c93f; }
.code-content {
  padding: 1rem;
  color: #a9b7c6;
  line-height: 1.6;
  overflow-x: auto;
}
.code-keyword { color: #cc7832; }
.code-string { color: #6a8759; }
.code-comment { color: #808080; }
.code-value { color: #9876aa; }

/* ==========================================
   KEYBOARD KEY
   ========================================== */
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.125rem 0.375rem;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 1px 0 var(--border-color);
  min-width: 24px;
}

/* ==========================================
   HIGHLIGHT BOX
   ========================================== */
.highlight-box {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.highlight-box-icon {
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 1px;
}
.highlight-box-content { flex: 1; }
.highlight-box-title {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.highlight-box-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================
   RESPONSIVE UTILITIES
   ========================================== */
@media (max-width: 1024px) {
  .hide-tablet { display: none !important; }
}
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
}
@media (min-width: 769px) {
  .show-mobile { display: none !important; }
}

/* ==========================================
   CART COUNT BADGE
   ========================================== */
.cart-count-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  display: none;
  width: 18px;
  height: 18px;
  font-size: var(--text-micro);
  justify-content: center;
  align-items: center;
  padding: 0;
  border-radius: 50%;
}

/* ==========================================
   SECTION SPACING VARIANTS
   ========================================== */
.section-sm {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.section-lg {
  padding-top: 8rem;
  padding-bottom: 8rem;
}
@media (max-width: 768px) {
  .section-sm {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .section-lg {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* ==========================================
   BILLING TOGGLE
   ========================================== */
.billing-toggle-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.375rem;
  margin-bottom: 4rem;
}
.billing-toggle-btn {
  background: none; border: none;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.billing-toggle-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(135, 22, 24, 0.25);
}
.billing-toggle-btn.active .billing-save-badge {
  background: #ffffff;
  color: var(--primary-color);
}

/* ==========================================
   AUTH LAYOUT
   ========================================== */
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-brand-panel {
  background: linear-gradient(145deg, var(--primary-color) 0%, #5c0e10 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.auth-brand-panel::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.auth-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -60px;
  width: 480px;
  height: 480px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.auth-panel-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 800;
  font-size: var(--text-lg);
  text-decoration: none;
  position: relative;
  z-index: 1;
}
.auth-panel-content {
  position: relative;
  z-index: 1;
}
.auth-panel-headline {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.auth-panel-sub {
  color: rgba(255,255,255,0.72);
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: 360px;
}
.auth-panel-stats {
  display: flex;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}
.auth-stat { color: #fff; }
.auth-stat-num {
  font-size: var(--text-card-title);
  font-weight: 800;
  line-height: 1;
}
.auth-stat-lbl {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
}
.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
  background: var(--bg-color);
  position: relative;
}
.auth-form-inner {
  width: 100%;
  max-width: 400px;
}
.auth-form-title {
  font-size: var(--text-card-title);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.auth-form-sub {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}
.auth-form-sub a {
  color: var(--primary-color);
  font-weight: 600;
}
.social-login-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 48px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  margin-bottom: 0.75rem;
  text-decoration: none;
}
.social-login-btn:hover {
  background: var(--surface-color);
  border-color: var(--border-hover);
}
.forgot-link {
  font-size: var(--text-xs);
  color: var(--primary-color);
  font-weight: 600;
  text-align: right;
  display: block;
  margin-top: -0.5rem;
  margin-bottom: 1.25rem;
}
.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  position: relative;
  z-index: 1;
}
.feature-checklist li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: rgba(255,255,255,0.85);
  font-size: var(--text-sm);
  font-weight: 500;
}
.feature-checklist li svg {
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
}
.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.terms-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  margin-top: 1.25rem;
  line-height: 1.6;
}
.terms-note a { color: var(--primary-color); }
.auth-back-link {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand-panel { display: none; }
  .auth-form-panel { min-height: 100vh; }
  .name-row { grid-template-columns: 1fr; }
}

/* ==========================================
   HOW IT WORKS (Stepper)
   ========================================== */
.how-it-works {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
}
.hiw-step {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
  max-width: 260px;
}
.hiw-step-number {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hiw-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  font-size: var(--text-xl);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--primary-glow);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}
.hiw-icon {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 32px;
  height: 32px;
  background: var(--bg-color);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  padding: 5px;
  color: var(--primary-color);
  z-index: 3;
  box-shadow: var(--shadow-sm);
}
.hiw-step h4 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.hiw-step p {
  font-size: var(--text-sm);
  line-height: 1.6;
}
.hiw-connector {
  flex: 0 0 3rem;
  height: 2px;
  background: var(--border-color);
  align-self: center;
  margin-top: -2.5rem;
  position: relative;
}
.hiw-connector::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-hover);
}
@media (max-width: 991px) {
  .how-it-works {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .hiw-step {
    max-width: 100%;
    padding: 0;
  }
  .hiw-connector {
    flex: 0 0 24px;
    width: 2px;
    height: 24px;
    margin-top: 0;
  }
  .hiw-connector::after { display: none; }
}

/* ==========================================
   WORLD MAP (Leaflet)
   ========================================== */
#world-map {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-container {
  max-width: 900px;
  margin: 0 auto;
}
.custom-marker {
  background: none !important;
  border: none !important;
}
.marker-pin {
  width: 20px;
  height: 20px;
  border-radius: 50% 50% 50% 0;
  background: var(--primary-color);
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  position: relative;
}
.marker-pin::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 5px;
  left: 5px;
}
.leaflet-popup-content-wrapper {
  background: var(--surface-color) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
}
.leaflet-popup-tip { background: var(--surface-color) !important; }
.leaflet-popup-content { font-family: var(--font-sans); font-size: var(--text-sm); }
.marker-label {
  background: var(--bg-color) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  padding: 2px 8px !important;
  font-family: var(--font-sans);
  font-size: var(--text-xxs) !important;
  font-weight: 600 !important;
  white-space: nowrap;
  box-shadow: var(--shadow-sm) !important;
}
.marker-label::before { border-top-color: var(--bg-color) !important; }
.location-tag {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
}
.flag-emoji {
  font-size: var(--text-lg);
  margin-right: 0.375rem;
}

/* ==========================================
   CHECKOUT LAYOUT
   ========================================== */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
}
.checkout-main {
  min-width: 0;
}
.checkout-sidebar {
  min-width: 0;
}
@media (max-width: 1024px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .checkout-sidebar {
    order: -1;
  }
}

/* ==========================================
   GLOBAL RESPONSIVE IMPROVEMENTS
   ========================================== */

/* --- Card padding mobile --- */
@media (max-width: 768px) {
  .card {
    padding: 1.25rem;
  }
  .card-header {
    padding-bottom: 0.75rem;
  }
  .card-body {
    padding-top: 0.75rem;
  }
}

/* --- Newsletter form mobile stacking --- */
@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
    gap: 0.625rem;
  }
  .newsletter-input {
    width: 100%;
    min-height: 44px;
  }
  .newsletter-btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
}

/* --- Feature cards mobile --- */
@media (max-width: 768px) {
  .feature-card {
    padding: 1.25rem;
  }
}

/* --- Pricing card mobile --- */
@media (max-width: 768px) {
  .pricing-card {
    padding: 1.25rem;
  }
}

/* --- Auth layout mobile --- */
@media (max-width: 768px) {
  .auth-brand-panel {
    display: none;
  }
  .auth-form-panel {
    padding: 1.5rem;
  }
  .auth-form-panel .auth-header {
    text-align: center;
  }
}

/* --- Cart drawer mobile --- */
@media (max-width: 480px) {
  .cart-drawer {
    max-width: 100%;
    width: 100%;
  }
}

/* --- How it works steps mobile --- */
@media (max-width: 768px) {
  .hiw-steps {
    flex-direction: column;
    gap: 1.5rem;
  }
  .hiw-step {
    max-width: 100%;
    text-align: center;
  }
}

/* --- Trust cards mobile --- */
@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .trust-card {
    padding: 1.25rem;
  }
}

/* --- Premium grid mobile --- */
@media (max-width: 768px) {
  .premium-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- Forms mobile --- */
@media (max-width: 768px) {
  .form-floating {
    min-height: 48px;
  }
  .form-floating .form-control {
    min-height: 48px;
    padding-top: 0.75rem;
  }
  .name-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* --- Buttons touch target on mobile --- */
@media (max-width: 768px) {
  .btn {
    min-height: 44px;
  }
  .btn-sm {
    min-height: 44px;
  }
}

/* --- Pagination mobile --- */
@media (max-width: 480px) {
  .pagination {
    gap: 0.25rem;
  }
  .pagination .page-link {
    padding: 0.5rem 0.625rem;
    font-size: var(--text-sm);
  }
}

/* --- Section padding mobile --- */
@media (max-width: 768px) {
  .section-sm {
    padding: 2.5rem 0;
  }
  .section-lg {
    padding: 4rem 0;
  }
}

/* --- VPS inquiry form grid mobile stacking --- */
@media (max-width: 768px) {
  #stepPanel2 > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* --- Card hover only on pointer devices --- */
@media (hover: hover) and (pointer: fine) {
  .plan-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
  }
  .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
  .trust-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
  .pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
}
@media (hover: none) {
  .plan-card:hover,
  .feature-card:hover,
  .trust-card:hover,
  .pricing-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* --- Knowledgebase article layout mobile --- */
@media (max-width: 768px) {
  .kb-article-layout {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* --- Checkout form grid mobile stacking --- */
@media (max-width: 768px) {
  .step1-form-grid {
    grid-template-columns: 1fr !important;
  }
}
