/* ==========================================================================
   DINA HOSTING - ULTRA PREMIUM RESPONSIVE STYLESHEET (V2.0)
   ========================================================================== */

:root {
  --primary: #0066ff;
  --primary-hover: #0052cc;
  --primary-light: rgba(0, 102, 255, 0.08);
  --primary-gradient: linear-gradient(135deg, #0066ff 0%, #00c6ff 100%);
  
  --dark-bg: #070c18;
  --dark-surface: #0e1526;
  --dark-card: #141d33;
  --dark-border: #1e2a47;

  --light-bg: #f8fafc;
  --light-card: #ffffff;
  --light-border: #e2e8f0;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 8px 25px rgba(0, 102, 255, 0.35);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--light-bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

/* ================= TOPBAR BANNER ================= */
.topbar-banner {
  background-color: var(--dark-bg);
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.topbar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-announcement {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sale-badge {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 20px;
}

.copy-promo {
  background-color: rgba(255, 255, 255, 0.12);
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.copy-promo:hover {
  background-color: var(--primary);
  color: #fff;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-links a {
  color: #94a3b8;
  font-size: 0.8rem;
}

.topbar-links a:hover {
  color: #ffffff;
}

.cpanel-link {
  color: #38bdf8 !important;
  font-weight: 600;
}

.sep {
  color: #334155;
}

/* ================= SITE HEADER ================= */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--light-border);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.header-container {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand Link */
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.brand-link:hover .brand-logo-icon {
  transform: scale(1.05);
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.2);
  flex-shrink: 0;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.brand-main-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0b1329;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.brand-accent {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 2px;
}

/* Desktop Nav Links */
.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

.nav-panel-badge {
  background-color: #f0f7ff;
  color: var(--primary);
  border: 1px solid rgba(0, 102, 255, 0.18);
  font-weight: 700;
}

.nav-panel-badge:hover {
  background: var(--primary);
  color: #ffffff;
}

.nav-item-dropdown {
  position: relative;
}

.dropdown-popover {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 320px;
  padding: 8px;
  z-index: 600;
}

.nav-item-dropdown:hover .dropdown-popover {
  display: flex;
  flex-direction: column;
  animation: fadeInPop 0.15s ease-out;
}

@keyframes fadeInPop {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.dropdown-popover a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

.dropdown-popover a:hover {
  background-color: var(--primary-light);
}

.dd-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-xs);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.dropdown-popover strong {
  display: block;
  font-size: 0.88rem;
  color: #0f172a;
}

.dropdown-popover small {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Header Right Actions */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.cart-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #ffffff;
  border: 1px solid var(--light-border);
  border-radius: 30px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
  box-shadow: var(--shadow-sm);
}

.cart-pill-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cart-badge-count {
  background: var(--primary-gradient);
  color: #ffffff;
  border-radius: 20px;
  font-size: 0.7rem;
  padding: 1px 7px;
  font-weight: 800;
}

.currency-pill {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  background-color: #f1f5f9;
  padding: 8px 12px;
  border-radius: 20px;
}

.auth-btns-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  border: 1px solid var(--light-border);
  border-radius: 30px;
  padding: 4px 12px;
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.user-display-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
}

.mobile-toggle-btn {
  display: none;
  font-size: 1.3rem;
  color: #0f172a;
  padding: 6px;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  display: none;
  background-color: #ffffff;
  border-top: 1px solid var(--light-border);
  padding: 16px 24px;
}

.mobile-nav-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-drawer a {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  padding: 8px 0;
}

.mobile-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Standard Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-xs { padding: 4px 10px; font-size: 0.75rem; border-radius: 4px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--light-border);
  color: #0f172a;
  background-color: #ffffff;
}

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

.btn-secondary {
  background-color: #f1f5f9;
  color: #0f172a;
  border: 1px solid var(--light-border);
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

.btn-danger {
  background-color: #fee2e2;
  color: var(--danger);
}

.btn-danger:hover {
  background-color: var(--danger);
  color: #fff;
}

/* ================= HERO DOMAIN SECTION ================= */
.hero-domain-section {
  padding: 50px 0 40px;
  background: radial-gradient(circle at 50% -20%, rgba(0, 102, 255, 0.12) 0%, rgba(248, 250, 252, 0) 70%);
  text-align: center;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 102, 255, 0.25);
  box-shadow: var(--shadow-sm);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: #070c18;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-subtext {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
}

/* DOMAIN BOX CARD (WHMCS REPLICA + MODERN SAAS) */
.domain-box-card {
  background-color: #ffffff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
  text-align: left;
}

.domain-box-top {
  padding: 24px 32px 18px;
  border-bottom: 1px solid var(--light-border);
}

.domain-box-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #070c18;
  margin-bottom: 6px;
}

.active-plan-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.plan-pill-highlight {
  font-weight: 700;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 2px 10px;
  border-radius: 12px;
}

.btn-text-link {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
}

/* 4 Tab Options Pills */
.domain-tabs-row {
  display: flex;
  gap: 8px;
  padding: 16px 32px;
  background-color: #fafbfc;
  border-bottom: 1px solid var(--light-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.domain-tab-pill {
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: #ffffff;
  border: 1px solid var(--light-border);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.domain-tab-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.domain-tab-pill.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(0, 102, 255, 0.3);
}

/* Domain Search Bar Wrapper */
.domain-search-wrapper {
  padding: 28px 32px;
}

.domain-input-group {
  display: flex;
  background-color: #ffffff;
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.12);
  overflow: hidden;
}

.domain-input-left {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.search-leading-icon {
  color: var(--text-subtle);
  margin-right: 12px;
  font-size: 1.1rem;
}

.domain-input-left input {
  width: 100%;
  height: 52px;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-main);
  background: transparent;
}

.domain-input-left input::placeholder {
  color: var(--text-subtle);
}

.domain-tld-box select {
  height: 52px;
  padding: 0 18px;
  background-color: #f8fafc;
  border: none;
  border-left: 1px solid var(--light-border);
  font-size: 0.95rem;
  font-weight: 700;
  color: #070c18;
  outline: none;
  cursor: pointer;
}

.btn-check-domain {
  height: 52px;
  padding: 0 32px;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-check-domain:hover {
  filter: brightness(1.1);
}

/* Quick TLD Pills */
.quick-tld-pills {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.tld-pill {
  background-color: #f1f5f9;
  border: 1px solid var(--light-border);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.tld-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
}

.tld-pill.hot-deal {
  background-color: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
  font-weight: 700;
}

/* Feedback Card */
.domain-feedback-card {
  margin-top: 20px;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  animation: slideInDown 0.25s ease;
}

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

.domain-feedback-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.domain-feedback-left i {
  font-size: 1.5rem;
  color: var(--success);
}

.domain-feedback-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #065f46;
}

.domain-feedback-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #047857;
  margin-left: 8px;
}

/* ================= HOSTING PLANS PRICING ================= */
.pricing-plans-section {
  padding: 70px 0;
}

.section-heading-box {
  text-align: center;
  margin-bottom: 48px;
}

.badge-accent {
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}

.section-heading-box h2 {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 900;
  color: #070c18;
  margin-bottom: 8px;
}

.section-heading-box p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.cycle-switcher-wrapper {
  margin-top: 24px;
}

.cycle-switch-btn-group {
  display: inline-flex;
  background-color: #e2e8f0;
  padding: 4px;
  border-radius: 30px;
}

.cycle-toggle-btn {
  padding: 8px 22px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.cycle-toggle-btn.active {
  background-color: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.savings-tag {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 4px;
}

/* Plan Cards Grid */
.plans-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.hosting-plan-card {
  background-color: #ffffff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hosting-plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.hosting-plan-card.featured-popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.featured-ribbon {
  position: absolute;
  top: -14px;
  right: 28px;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 3px 12px rgba(0, 102, 255, 0.35);
}

.plan-tag-name {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-subtle);
}

.card-top-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #070c18;
  margin: 6px 0 8px;
}

.plan-summary {
  font-size: 0.86rem;
  color: var(--text-muted);
  min-height: 42px;
}

.price-box {
  margin: 20px 0;
  display: flex;
  align-items: baseline;
}

.price-curr {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-right: 2px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: #070c18;
  line-height: 1;
}

.price-cadence {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 6px;
}

.features-checklist {
  list-style: none;
  padding: 22px 0;
  border-top: 1px solid var(--light-border);
  border-bottom: 1px solid var(--light-border);
  margin-bottom: 28px;
  flex: 1;
}

.features-checklist li {
  font-size: 0.9rem;
  color: #334155;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-cta-btn {
  font-size: 0.95rem;
  padding: 12px;
}

/* ================= VALUE PROPS SECTION ================= */
.value-props-section {
  padding: 60px 0;
  background-color: #ffffff;
  border-top: 1px solid var(--light-border);
  border-bottom: 1px solid var(--light-border);
}

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

.prop-card {
  text-align: center;
  padding: 16px;
}

.prop-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}

.bg-blue-glow { background: rgba(0, 102, 255, 0.1); color: var(--primary); }
.bg-green-glow { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.bg-purple-glow { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.prop-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #070c18;
  margin-bottom: 8px;
}

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

/* ================= FOOTER ================= */
.footer-global {
  background-color: var(--dark-bg);
  color: #94a3b8;
  padding: 32px 0;
  font-size: 0.88rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 4px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-to-top {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background-color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.btn-to-top:hover {
  background: var(--primary);
}

/* ================= PORTAL LAYOUTS ================= */
.portal-wrapper {
  padding: 40px 24px;
}

.portal-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

.portal-heading-row h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: #070c18;
}

.portal-user-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.portal-action-btns {
  display: flex;
  gap: 10px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.metric-card {
  background-color: #ffffff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.3rem;
}

.bg-blue { background: linear-gradient(135deg, #0066ff, #0052cc); }
.bg-green { background: linear-gradient(135deg, #10b981, #059669); }
.bg-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.bg-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }

.metric-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #070c18;
  line-height: 1.1;
}

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

.portal-card-box {
  background-color: #ffffff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.portal-card-title {
  padding: 18px 26px;
  border-bottom: 1px solid var(--light-border);
}

.portal-card-title h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #070c18;
}

.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th {
  text-align: left;
  padding: 12px 26px;
  background-color: #f8fafc;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--light-border);
}

.data-table td {
  padding: 16px 26px;
  border-bottom: 1px solid var(--light-border);
  color: var(--text-main);
}

.status-badge-active {
  background-color: #d1fae5;
  color: #065f46;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ================= CLIENT PORTAL HOSTING ACCESS ================= */
/* ================= WHMCS "MY DASHBOARD" CLIENT AREA REPLICA ================= */
.whmcs-dashboard-view {
  background-color: #f8fafc;
  min-height: 100vh;
}

.whmcs-client-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 0;
}

.whmcs-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.whmcs-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.whmcs-brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0b1329;
}

.whmcs-header-user-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.88rem;
}

.whmcs-cart-link {
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
}

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

.whmcs-notif-bell {
  position: relative;
  color: #64748b;
  font-size: 1.15rem;
  cursor: pointer;
}

.notif-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  background-color: #ef4444;
  border-radius: 50%;
}

.whmcs-user-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #334155;
  padding: 4px 8px;
  border-radius: 4px;
}

.whmcs-user-dropdown-btn:hover {
  background-color: #f1f5f9;
}

.whmcs-user-dropdown-btn i.fa-user-circle {
  font-size: 1.35rem;
  color: #64748b;
}

.whmcs-user-names {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.whmcs-user-names span {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
}

.whmcs-user-names small {
  font-size: 0.72rem;
  color: #64748b;
}

/* WHMCS Sub-Navbar */
.whmcs-client-navbar {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.whmcs-nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.whmcs-nav-left, .whmcs-nav-right {
  display: flex;
  align-items: center;
}

.whmcs-nav-item {
  padding: 14px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.whmcs-nav-item:hover {
  color: var(--primary);
}

.whmcs-nav-item.active {
  color: #0066ff;
  border-bottom: 3px solid #0066ff;
  font-weight: 700;
}

.whmcs-dd-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  min-width: 180px;
  z-index: 200;
}

.whmcs-nav-item:hover .whmcs-dd-menu {
  display: flex;
  flex-direction: column;
}

.whmcs-dd-menu a {
  padding: 10px 16px;
  font-size: 0.84rem;
  color: #334155;
  text-decoration: none;
}

.whmcs-dd-menu a:hover {
  background-color: #f8fafc;
  color: var(--primary);
}

.btn-whmcs-ticket {
  background-color: #0066ff;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 7px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: 12px;
}

.btn-whmcs-ticket:hover {
  background-color: #0052cc;
}

/* WHMCS Main Body */
.whmcs-main-body {
  padding: 24px 20px 48px;
}

.whmcs-page-head {
  margin-bottom: 20px;
}

.whmcs-page-head h1 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: #070c18;
  margin-bottom: 2px;
}

.whmcs-breadcrumb {
  font-size: 0.82rem;
  color: #64748b;
}

/* Warning Alert */
.whmcs-alert-banner {
  background-color: #fefce8;
  border: 1px solid #fef08a;
  color: #854d0e;
  border-radius: 4px;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 0.86rem;
  line-height: 1.4;
}

.alert-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-banner-left i {
  color: #eab308;
  font-size: 1.1rem;
}

.alert-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-btn-icon {
  background: transparent;
  border: none;
  color: #854d0e;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 2px;
}

/* 2 Columns Grid (260px Left + Main) */
.whmcs-dashboard-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.whmcs-side-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}

.whmcs-card-user-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  padding: 18px 20px 10px;
}

.whmcs-user-addr-block {
  padding: 0 20px 16px;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.5;
}

.whmcs-side-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #e2e8f0;
}

.btn-whmcs-action {
  background-color: #f8fafc;
  color: #0066ff;
  border: none;
  padding: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-whmcs-action:first-child {
  border-right: 1px solid #e2e8f0;
}

.btn-whmcs-action:hover {
  background-color: #f1f5f9;
}

.whmcs-side-card-head {
  padding: 12px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
}

.whmcs-side-card-body {
  padding: 16px 18px;
  text-align: center;
}

.whmcs-empty-contact {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-whmcs-action-blue {
  background-color: #0066ff;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.whmcs-shortcuts-list {
  display: flex;
  flex-direction: column;
}

.whmcs-shortcuts-list a {
  padding: 12px 18px;
  font-size: 0.84rem;
  color: #334155;
  border-bottom: 1px solid #f8fafc;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.15s;
}

.whmcs-shortcuts-list a:hover {
  background-color: #f8fafc;
  color: #0066ff;
}

/* 4 KPI Metric Boxes */
.whmcs-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.whmcs-kpi-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 16px 18px;
  position: relative;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.whmcs-kpi-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: #cbd5e1;
}

.kpi-top-icon {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 0.78rem;
  color: #94a3b8;
}

.kpi-number {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
  margin: 6px 0 4px;
}

.kpi-number.text-blue {
  color: #0066ff;
}

.kpi-number.text-danger {
  color: #dc2626;
}

.kpi-label {
  font-size: 0.8rem;
  color: #475569;
  font-weight: 600;
}

/* Panel Card */
.whmcs-panel-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  margin-bottom: 24px;
}

.whmcs-panel-header {
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.92rem;
  color: #0f172a;
}

.whmcs-services-list {
  display: flex;
  flex-direction: column;
}

.whmcs-service-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.86rem;
  flex-wrap: wrap;
  gap: 12px;
}

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

.service-name-domain strong {
  display: block;
  font-size: 0.9rem;
  color: #0f172a;
}

.service-name-domain a {
  font-size: 0.82rem;
  color: #64748b;
  text-decoration: none;
}

.service-name-domain a:hover {
  color: #0066ff;
  text-decoration: underline;
}

.service-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.whmcs-badge-active {
  background-color: #dcfce7;
  color: #15803d;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.whmcs-manage-btn-wrap {
  position: relative;
}

.btn-whmcs-manage {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-whmcs-manage:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
}

.whmcs-manage-dd {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  min-width: 190px;
  z-index: 100;
}

.whmcs-manage-btn-wrap:hover .whmcs-manage-dd {
  display: flex;
  flex-direction: column;
}

.whmcs-manage-dd a {
  padding: 8px 14px;
  font-size: 0.82rem;
  color: #334155;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.whmcs-manage-dd a:hover {
  background-color: #f1f5f9;
  color: #0066ff;
}

/* Bottom 2-Columns Row */
.whmcs-bottom-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.whmcs-tickets-empty-box {
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.layered-paper-icon {
  margin-bottom: 12px;
}

.whmcs-tickets-empty-box p {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 8px;
}

.whmcs-link-blue {
  color: #0066ff;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.whmcs-link-blue:hover {
  text-decoration: underline;
}

/* Domain Reg Dark Blue Card */
.whmcs-domain-reg-card {
  background: #002b80;
  color: #ffffff;
  border-radius: 4px;
  padding: 24px 20px;
  text-align: center;
}

.whmcs-domain-reg-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.domain-reg-input-wrap input {
  width: 100%;
  height: 40px;
  border-radius: 4px;
  border: none;
  padding: 0 14px;
  font-size: 0.88rem;
  color: #0f172a;
  outline: none;
  margin-bottom: 14px;
}

.domain-reg-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-domain-transfer {
  background-color: #bfdbfe;
  color: #1e40af;
  border: none;
  border-radius: 4px;
  padding: 9px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-domain-register {
  background-color: #0066ff;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 9px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-domain-register:hover {
  background-color: #0052cc;
}

.whmcs-news-body {
  padding: 16px 20px;
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.whmcs-news-body strong {
  color: #0f172a;
}

.news-date {
  font-size: 0.75rem;
  color: #94a3b8;
}

.mt-3 {
  margin-top: 14px;
}

.mb-3 {
  margin-bottom: 16px;
}

/* ================= WHMCS "PRODUCT DETAILS" REPLICA ================= */
.whmcs-pd-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.whmcs-nav-list-card {
  display: flex;
  flex-direction: column;
}

.whmcs-side-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.84rem;
  color: #0066ff;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  background-color: transparent;
}

.whmcs-side-nav-item:hover {
  background-color: #f8fafc;
  color: #0052cc;
}

.whmcs-side-nav-item.active {
  background-color: #e0edff;
  color: #0066ff;
  border-left-color: #0066ff;
  font-weight: 700;
}

.whmcs-pd-top-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

/* Product Details Plan Highlight Blue Card */
.whmcs-plan-highlight-card {
  background: #0066ff;
  color: #ffffff;
  border-radius: 4px;
  padding: 30px 20px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.whmcs-plan-cube-icon {
  margin-bottom: 12px;
}

.whmcs-plan-highlight-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 12px;
}

.whmcs-plan-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.whmcs-badge-active-green {
  background-color: #bbf7d0;
  color: #166534;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 3px;
}

.whmcs-plan-domain-bar {
  font-size: 0.84rem;
  color: #ffffff;
  font-weight: 600;
  opacity: 0.95;
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 12px;
  margin-top: 4px;
}

/* Resource Gauges Card */
.whmcs-usage-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 20px 20px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.whmcs-gauges-flex {
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-top: 6px;
}

.whmcs-gauge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.gauge-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}

.circular-progress-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circular-chart {
  width: 96px;
  height: 96px;
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 3.5;
}

.circle-fg {
  fill: none;
  stroke: #0066ff;
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dasharray 0.5s ease;
}

.gauge-val-inner {
  position: absolute;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #334155;
}

.gauge-stats-text {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
}

.whmcs-usage-footer {
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #f8fafc;
  padding-top: 10px;
}

/* Quick Shortcuts */
.whmcs-pd-section-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: #1e293b;
  margin: 26px 0 12px;
}

.whmcs-shortcuts-grid-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 20px;
  margin-bottom: 24px;
}

.shortcut-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #0066ff;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}

.shortcut-tile:hover {
  background-color: #f1f5f9;
  color: #0052cc;
}

.shortcut-tile i {
  color: #0066ff;
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
}

/* cPanel Credentials Card */
.whmcs-credentials-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 22px;
  margin-bottom: 24px;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 24px;
}

.cred-field-col label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.input-with-action {
  display: flex;
  align-items: stretch;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f8fafc;
}

.input-with-action input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 0.84rem;
  color: #0f172a;
  outline: none;
  font-family: inherit;
  min-width: 0;
}

.btn-cred-copy {
  background-color: #0066ff;
  color: #ffffff;
  border: none;
  padding: 0 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  transition: background 0.15s;
}

.btn-cred-copy:hover {
  background-color: #0052cc;
}

.btn-cred-eye {
  background-color: transparent;
  color: #94a3b8;
  border: none;
  padding: 0 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  transition: color 0.15s;
}

.btn-cred-eye:hover {
  color: #334155;
}

/* Quick Create Email Account */
.whmcs-quick-email-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 22px;
  margin-bottom: 24px;
}

.quick-email-form {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 16px;
  align-items: flex-end;
}

.email-input-group label, .password-input-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.email-prefix-suffix {
  display: flex;
  align-items: stretch;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  overflow: hidden;
}

.email-prefix-suffix input {
  flex: 1;
  border: none;
  padding: 8px 12px;
  font-size: 0.84rem;
  outline: none;
  min-width: 0;
}

.email-domain-addon {
  background-color: #f1f5f9;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 12px;
  border-left: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.password-input-group input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.84rem;
  outline: none;
}

.btn-quick-create-email {
  background-color: #0066ff;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 9px 24px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  height: 38px;
  transition: background 0.15s;
}

.btn-quick-create-email:hover {
  background-color: #0052cc;
}

/* Billing Tabs Card */
.whmcs-billing-tabs-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 30px;
}

.billing-tabs-header {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  background-color: #f8fafc;
}

.billing-tab-btn {
  border: none;
  background: transparent;
  padding: 12px 20px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #0066ff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}

.billing-tab-btn:hover {
  background-color: #f1f5f9;
}

.billing-tab-btn.active {
  color: #0066ff;
  border-bottom-color: #0066ff;
  background-color: #ffffff;
  font-weight: 700;
}

.billing-tab-content {
  padding: 22px 24px;
}

.billing-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.billing-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
}

.meta-value {
  font-size: 0.86rem;
  color: #0f172a;
  font-weight: 600;
}

.billing-payment-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

/* Footer */
.whmcs-footer {
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 24px 0;
  font-size: 0.84rem;
  color: #64748b;
}

.whmcs-footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.whmcs-footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-picker {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-scroll-top-whmcs {
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
}

@media (max-width: 900px) {
  .whmcs-dashboard-grid { grid-template-columns: 1fr; }
  .whmcs-stats-row { grid-template-columns: repeat(2, 1fr); }
  .whmcs-bottom-row-grid { grid-template-columns: 1fr; }
  .whmcs-nav-flex { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ================= AUTH VIEWS (REGISTER / LOGIN / FORGOT) ================= */
.auth-screen-wrapper {
  background: #0036a7;
  min-height: 100vh;
  padding: 36px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.auth-top-nav {
  width: 100%;
  max-width: 620px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.auth-back-link {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.auth-back-link:hover {
  opacity: 1;
  color: #ffffff;
  text-decoration: underline;
}

.auth-logo-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 1.05rem;
}

.auth-logo-badge img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
}

.auth-container-card {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  width: 100%;
  max-width: 620px;
  padding: 40px 36px;
  margin: 0 auto;
  text-align: left;
  animation: fadeInAuth 0.25s ease-out;
}

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

.auth-card-narrow {
  max-width: 440px;
  margin-top: 30px;
}

.auth-card-main-title {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 800;
  color: #070c18;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.1;
}

.auth-card-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  text-align: center;
  margin-top: -12px;
  margin-bottom: 26px;
  line-height: 1.5;
}

.auth-form-section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 24px 0 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}

.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.auth-form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.auth-field-col {
  display: flex;
  flex-direction: column;
}

.auth-field-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.auth-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
  display: block;
}

.auth-input-field {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.92rem;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.auth-input-field:focus {
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

.select-field {
  cursor: pointer;
}

.phone-input-group {
  display: flex;
  gap: 8px;
}

.phone-code-select {
  width: 96px;
  height: 42px;
  padding: 0 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.88rem;
  background: #ffffff;
  outline: none;
  cursor: pointer;
}

.phone-code-select:focus {
  border-color: #0066ff;
}

.phone-num-input {
  flex: 1;
}

.label-with-hint {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.password-hint {
  font-size: 0.78rem;
  color: #64748b;
}

.label-with-right-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.forgot-link {
  font-size: 0.84rem;
  color: #0066ff;
  font-weight: 600;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.generate-pwd-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  margin-bottom: 20px;
}

.btn-generate-pwd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #334155;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-generate-pwd:hover {
  border-color: #0066ff;
  color: #0066ff;
  background-color: #f0f7ff;
}

.pwd-notice {
  font-size: 0.8rem;
  color: #059669;
  font-weight: 600;
}

.mailing-list-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 12px;
}

.mailing-toggle-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 12px 18px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
}

/* iOS Toggle Switch */
.toggle-switch-ios {
  position: relative;
  display: inline-block;
  width: 68px;
  height: 32px;
  cursor: pointer;
}

.toggle-switch-ios input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #0066ff;
  border-radius: 20px;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
}

.toggle-thumb {
  position: absolute;
  height: 24px;
  width: 24px;
  left: 40px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-state-text {
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  margin-right: 22px;
}

.toggle-switch-ios input:not(:checked) + .toggle-track {
  background-color: #cbd5e1;
  justify-content: flex-start;
}

.toggle-switch-ios input:not(:checked) + .toggle-track .toggle-thumb {
  left: 4px;
}

.toggle-switch-ios input:not(:checked) + .toggle-track .toggle-state-text {
  color: #64748b;
  margin-right: 0;
  margin-left: 22px;
}

.remember-row {
  margin-bottom: 20px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #334155;
  cursor: pointer;
}

.checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: #0066ff;
}

.btn-auth-submit {
  width: 100%;
  height: 44px;
  background-color: #0066ff;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.25);
  transition: all 0.2s ease;
}

.btn-auth-submit:hover {
  background-color: #0052cc;
}

.auth-bottom-links {
  text-align: center;
  margin-top: 20px;
  font-size: 0.88rem;
  color: #64748b;
}

.auth-bottom-links a {
  color: #0066ff;
  font-weight: 600;
  text-decoration: none;
}

.auth-bottom-links a:hover {
  text-decoration: underline;
}

.border-top-divider {
  border-top: 1px solid #e2e8f0;
  padding-top: 20px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .portal-grid-2col { grid-template-columns: 1fr; }
  .auth-form-row { grid-template-columns: 1fr; }
  .auth-form-row-3 { grid-template-columns: 1fr; }
  .auth-container-card { padding: 30px 20px; }
  .spotlight-header { flex-direction: column; align-items: flex-start; }
  .btn-spotlight-cp { width: 100%; justify-content: center; }
}

/* ================= MODALS & BACKDROPS ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(7, 12, 24, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  width: 100%;
  overflow: hidden;
  animation: zoomModal 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomModal {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.auth-modal-box { max-width: 480px; }
.invoice-modal-box { max-width: 540px; }

.modal-box-header {
  padding: 20px 26px;
  border-bottom: 1px solid var(--light-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-box-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-box-title h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #070c18;
}

.modal-btn-close {
  font-size: 1.2rem;
  color: var(--text-subtle);
}

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

.modal-box-body {
  padding: 26px;
}

.modal-box-footer {
  padding: 16px 26px;
  background-color: #f8fafc;
  border-top: 1px solid var(--light-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Cart Table in Modal */
.cart-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.cart-items-table th {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--light-border);
  color: var(--text-muted);
}

.cart-items-table td {
  padding: 12px;
  border-bottom: 1px solid var(--light-border);
}

.coupon-row {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.coupon-row input {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
}

.summary-breakdown {
  background-color: #f8fafc;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.grand-total-line {
  font-size: 1.2rem;
  color: #070c18;
  border-top: 1px solid var(--light-border);
  padding-top: 8px;
  margin-top: 4px;
}

/* Auth Modal Tabs */
.auth-pill-tabs {
  display: flex;
  background-color: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 22px;
}

.auth-pill-tab {
  flex: 1;
  padding: 9px;
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.auth-pill-tab.active {
  background-color: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.form-field-group {
  margin-bottom: 16px;
}

.form-field-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #334155;
}

.form-input {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Invoice Info Panel */
.invoice-number {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.invoice-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.invoice-info-panel {
  background-color: #f8fafc;
  border: 1px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.modal-cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Empty cart state */
.empty-cart-state {
  text-align: center;
  padding: 36px 20px;
}

.empty-cart-state i {
  font-size: 3.5rem;
  color: var(--text-subtle);
  margin-bottom: 16px;
}

.empty-cart-state h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.empty-cart-state p {
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* Toast Hub */
.toast-hub {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: #070c18;
  color: #ffffff;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideToast 0.2s ease;
}

@keyframes slideToast {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-success { color: var(--success); }
.text-primary { color: var(--primary); }
.brand-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.2);
}

/* ================= COMPREHENSIVE RESPONSIVE DESIGN ================= */
@media (max-width: 1200px) {
  .container { padding: 0 20px; }
  .nav-links-desktop { gap: 12px; }
  .nav-link { font-size: 0.84rem; padding: 5px 8px; }
  .plans-cards-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 1040px) {
  .nav-links-desktop { display: none; }
  .mobile-toggle-btn { display: flex; align-items: center; justify-content: center; }
  .auth-btns-group { display: none; }
  .hero-headline { font-size: clamp(1.8rem, 4.5vw, 2.3rem); }
  .domain-box-card { margin: 0 auto; width: 100%; }
  .plans-cards-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .props-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar-banner { display: none; }
  .site-header { padding: 12px 0; }
  .brand-main-title { font-size: 1.25rem; }
  .brand-tag { font-size: 0.58rem; }
  .cart-text { display: none; }
  .cart-pill-btn { padding: 8px 12px; }
  
  .hero-domain-section { padding: 32px 0 28px; }
  .hero-chip { font-size: 0.72rem; padding: 4px 12px; }
  .hero-headline { font-size: 1.65rem; margin-bottom: 8px; }
  .hero-subtext { font-size: 0.92rem; margin-bottom: 24px; padding: 0 8px; }
  
  .domain-box-card { border-radius: var(--radius-lg); }
  .domain-box-top { padding: 18px 16px 14px; }
  .domain-box-info h3 { font-size: 1.2rem; }
  .active-plan-indicator { font-size: 0.82rem; }
  
  .domain-tabs-row {
    padding: 12px 14px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .domain-tab-pill { font-size: 0.78rem; padding: 6px 14px; }
  
  .domain-search-wrapper { padding: 18px 16px; }
  .domain-input-group { flex-direction: column; border-radius: var(--radius-md); }
  .domain-input-left { width: 100%; border-bottom: 1px solid var(--light-border); padding: 0 12px; }
  .domain-input-left input { height: 48px; font-size: 0.95rem; }
  .domain-tld-box { width: 100%; border-bottom: 1px solid var(--light-border); }
  .domain-tld-box select { width: 100%; border-left: none; height: 46px; }
  .btn-check-domain { width: 100%; height: 48px; justify-content: center; font-size: 0.95rem; }
  
  .quick-tld-pills { justify-content: center; gap: 6px; }
  .tld-pill { font-size: 0.72rem; padding: 4px 10px; }
  
  .pricing-plans-section { padding: 45px 0; }
  .section-heading-box { margin-bottom: 32px; }
  .section-heading-box h2 { font-size: 1.7rem; }
  .section-heading-box p { font-size: 0.92rem; }
  
  .hosting-plan-card { padding: 28px 20px; }
  .price-amount { font-size: 2.5rem; }
  
  .footer-row { flex-direction: column; text-align: center; gap: 16px; }
  .modal-cta-row { flex-direction: column; }
  
  .cart-modal-box, .auth-modal-box {
    padding: 22px 18px;
    width: 94%;
    max-height: 88vh;
    overflow-y: auto;
  }

  .whmcs-pd-grid, .whmcs-pd-top-grid, .credentials-grid, .quick-email-form {
    grid-template-columns: 1fr;
  }
  .whmcs-shortcuts-grid-card {
    grid-template-columns: repeat(2, 1fr);
  }
  .billing-meta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

