/* ================================================================
   Pamir Web Host - Account Portal (integrated with main site)
   Layout: account bar + tab nav sits beneath the site header.
   No sidebar. Uses the site's existing font (Inter) and palette.
   ================================================================ */

/* Account bar (below site header) */
.pwp-account-bar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 62px; /* matches site header height */
  z-index: 40;
}
.pwp-account-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 48px;
  flex-wrap: wrap;
}
.pwp-account-bar-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
  flex-shrink: 0;
}
.pwp-account-bar-name {
  font-weight: 500;
  color: #94a3b8;
}

/* Tab navigation */
.pwp-account-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}
.pwp-account-tabs::-webkit-scrollbar { display: none; }

.pwp-account-tab {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  height: 47px;
  font-size: 13.5px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.pwp-account-tab:hover {
  color: #0ea5e9;
  border-bottom-color: #bae6fd;
}
.pwp-account-tab--active {
  color: #0284c7;
  font-weight: 600;
  border-bottom-color: #0284c7;
}

/* Page content wrapper */
.pwp-page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 1.5rem 60px;
}

/* Section header (page title + subtitle) */
.pwp-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.pwp-section-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}
.pwp-section-sub {
  font-size: 14px;
  color: #64748b;
  margin-top: 3px;
}

/* Breadcrumbs */
.pwp-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.pwp-breadcrumbs a { color: #0284c7; text-decoration: none; }
.pwp-breadcrumbs a:hover { text-decoration: underline; }
.pwp-bc-sep { color: #cbd5e1; }

/* Flash messages */
.pwp-flash {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.pwp-flash--success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.pwp-flash--error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.pwp-flash--info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.pwp-flash--warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }

/* Card */
.pwp-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.pwp-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Stat grid */
.pwp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.pwp-stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}
.pwp-stat-label  { font-size: 12px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .05em; }
.pwp-stat-value  { font-size: 28px; font-weight: 800; color: #0f172a; margin: 4px 0 2px; line-height: 1; }
.pwp-stat-sub    { font-size: 12px; color: #94a3b8; }

/* Quick action grid */
.pwp-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.pwp-quick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}
.pwp-quick-btn:hover { background: #eff6ff; border-color: #bfdbfe; color: #0284c7; }

/* Table */
.pwp-table-wrap { overflow-x: auto; }
.pwp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.pwp-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 9px 12px;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}
.pwp-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}
.pwp-table tbody tr:last-child td { border-bottom: none; }
.pwp-table tbody tr:hover td { background: #f8fafc; }
.pwp-td-muted  { color: #94a3b8; font-size: 13px; }
.pwp-td-mono   { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 12.5px; }
.pwp-td-bold   { font-weight: 700; }

/* Badges */
.pwp-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.pwp-badge--green  { background: #dcfce7; color: #166534; }
.pwp-badge--red    { background: #fee2e2; color: #991b1b; }
.pwp-badge--amber  { background: #fef3c7; color: #92400e; }
.pwp-badge--blue   { background: #dbeafe; color: #1e40af; }
.pwp-badge--slate  { background: #f1f5f9; color: #64748b; }

/* Buttons */
.pwp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  background: #0284c7;
  color: #fff;
  white-space: nowrap;
}
.pwp-btn:hover { background: #0369a1; }
.pwp-btn--outline {
  background: #fff;
  color: #334155;
  border: 1px solid #e2e8f0;
}
.pwp-btn--outline:hover { background: #f8fafc; border-color: #cbd5e1; }
.pwp-btn--danger  { background: #dc2626; color: #fff; }
.pwp-btn--danger:hover  { background: #b91c1c; }
.pwp-btn--sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }

/* Forms */
.pwp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.pwp-form-row  { display: flex; flex-direction: column; gap: 5px; }
.pwp-label     { font-size: 13px; font-weight: 600; color: #374151; }
.pwp-input, .pwp-textarea, .pwp-select {
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  font-size: 13.5px;
  color: #0f172a;
  background: #fff;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.pwp-input:focus, .pwp-textarea:focus, .pwp-select:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2,132,199,0.12);
}
.pwp-textarea { resize: vertical; min-height: 90px; }

/* Detail grid */
.pwp-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 20px; }
.pwp-detail-item {}
.pwp-detail-label { font-size: 11.5px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.pwp-detail-value { font-size: 14px; color: #0f172a; font-weight: 500; }

/* Empty state */
.pwp-empty { padding: 32px 16px; text-align: center; }
.pwp-empty-title { font-size: 15px; font-weight: 700; color: #334155; margin-bottom: 6px; }
.pwp-empty-sub   { font-size: 13px; color: #94a3b8; }

/* Toggle switch */
.pwp-toggle { position: relative; display: inline-block; width: 38px; height: 22px; }
.pwp-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.pwp-toggle-slider {
  position: absolute; inset: 0;
  background: #d1d5db; border-radius: 22px; cursor: pointer;
  transition: background 0.2s;
}
.pwp-toggle input:checked + .pwp-toggle-slider { background: #0284c7; }
.pwp-toggle-slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%;
  transition: transform 0.2s;
}
.pwp-toggle input:checked + .pwp-toggle-slider::before { transform: translateX(16px); }

/* Nameserver grid */
.pwp-ns-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }

/* Ticket thread */
.pwp-thread { display: flex; flex-direction: column; gap: 16px; }
.pwp-thread-msg { max-width: 72%; }
.pwp-thread-msg--client { align-self: flex-end; }
.pwp-thread-msg--staff  { align-self: flex-start; }
.pwp-thread-bubble {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.6;
}
.pwp-thread-msg--client .pwp-thread-bubble { background: #0284c7; color: #fff; border-bottom-right-radius: 3px; }
.pwp-thread-msg--staff  .pwp-thread-bubble { background: #f1f5f9; color: #334155; border-bottom-left-radius: 3px; }
.pwp-thread-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.pwp-thread-author { font-size: 12.5px; font-weight: 600; color: #64748b; }
.pwp-thread-date   { font-size: 11.5px; color: #94a3b8; }
.pwp-thread-body   { font-size: 14px; color: #334155; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

/* ONE-PAGE CHECKOUT */

.co-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 24px;
}
.co-step { display: flex; align-items: center; gap: 10px; flex: 1; }
.co-step-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: #e2e8f0; color: #64748b;
  font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.18s, color 0.18s;
}
.co-step-label { font-size: 13px; font-weight: 500; color: #64748b; transition: color 0.18s; }
.co-step--active .co-step-num    { background: #0284c7; color: #fff; }
.co-step--active .co-step-label  { color: #0f172a; font-weight: 600; }
.co-step--done   .co-step-num    { background: #059669; color: #fff; }
.co-step--done   .co-step-label  { color: #64748b; }
.co-step-connector { flex: 0 0 32px; height: 2px; background: #e2e8f0; margin: 0 4px; }

.co-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px; margin-top: 12px;
}
.co-product-card {
  border: 2px solid #e2e8f0; border-radius: 10px;
  padding: 18px 16px 14px; cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  background: #fff; position: relative;
  display: flex; flex-direction: column; gap: 8px;
}
.co-product-card:hover { border-color: #0284c7; box-shadow: 0 4px 18px rgba(2,132,199,0.10); transform: translateY(-2px); }
.co-product-card--featured { border-color: #0284c7; }
.co-featured-badge {
  position: absolute; top: -1px; right: 14px;
  background: #0284c7; color: #fff;
  font-size: 10.5px; font-weight: 700;
  padding: 2px 9px; border-radius: 0 0 6px 6px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.co-product-name { font-weight: 700; font-size: 14.5px; color: #0f172a; line-height: 1.3; }
.co-product-features { list-style: none; padding: 0; margin: 0; flex: 1; }
.co-product-features li {
  font-size: 12.5px; color: #64748b; padding: 2px 0 2px 16px; position: relative;
}
.co-product-features li::before { content: '✓'; position: absolute; left: 0; color: #059669; font-weight: 700; font-size: 11px; }
.co-product-price { display: flex; align-items: baseline; gap: 3px; margin-top: 4px; }
.co-price-from  { font-size: 11px; color: #94a3b8; }
.co-price-value { font-size: 18px; font-weight: 800; color: #0f172a; }
.co-price-per   { font-size: 11.5px; color: #64748b; }
.co-free-domain-note { font-size: 11.5px; color: #047857; background: #ecfdf5; border-radius: 5px; padding: 3px 7px; }
.co-select-btn  { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: #0284c7; margin-top: 4px; }

.co-config-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.co-back-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 1px solid #e2e8f0; border-radius: 7px;
  padding: 6px 12px; font-size: 13px; font-weight: 500; color: #64748b;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.14s, border-color 0.14s;
}
.co-back-btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.co-form-section { margin-bottom: 20px; }

.co-cycle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; }
.co-cycle-opt {
  border: 2px solid #e2e8f0; border-radius: 8px; padding: 12px 14px;
  cursor: pointer; transition: border-color 0.14s, background 0.14s;
  display: flex; flex-direction: column; gap: 4px;
}
.co-cycle-opt:hover      { border-color: #0284c7; background: #eff6ff; }
.co-cycle-opt--selected  { border-color: #0284c7; background: #eff6ff; }
.co-cycle-name  { font-size: 13px; font-weight: 600; color: #334155; }
.co-cycle-price { font-size: 15px; font-weight: 700; color: #0369a1; }

.co-domain-hint { margin-top: 6px; font-size: 12.5px; color: #047857; background: #ecfdf5; border-radius: 6px; padding: 6px 10px; }

.co-summary-table { border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; margin-bottom: 18px; }
.co-summary-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #e2e8f0; gap: 10px; }
.co-summary-row:last-child { border-bottom: none; }
.co-summary-row--total { background: #f8fafc; }
.co-summary-label { font-size: 13.5px; color: #64748b; }
.co-summary-value { font-size: 13.5px; font-weight: 600; color: #0f172a; text-align: right; }
.co-total-price   { font-size: 18px; font-weight: 800; color: #0369a1; }

.co-disclaimer { font-size: 12.5px; color: #64748b; line-height: 1.6; background: #f8fafc; border-radius: 8px; padding: 10px 14px; border: 1px solid #e2e8f0; }
.co-disclaimer a { color: #0284c7; }

/* Responsive */
@media (max-width: 1024px) {
  .pwp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pwp-quick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .pwp-account-bar-inner { gap: 0; flex-direction: column; align-items: flex-start; min-height: unset; padding: 8px 1rem 0; }
  .pwp-account-bar-title { padding: 8px 0 4px; }
  .pwp-account-tabs { width: 100%; }
  .pwp-page-wrap { padding: 16px 1rem 40px; }
  .pwp-ns-grid  { grid-template-columns: 1fr; }
  .pwp-form-grid { grid-template-columns: 1fr; }
  .co-product-grid { grid-template-columns: repeat(2, 1fr); }
  .co-steps { padding: 12px 14px; }
  .co-step-label { display: none; }
}
@media (max-width: 480px) {
  .pwp-stats-grid  { grid-template-columns: 1fr; }
  .pwp-quick-grid  { grid-template-columns: 1fr 1fr; }
  .pwp-thread-msg  { max-width: 100%; }
  .co-product-grid { grid-template-columns: 1fr; }
  .co-cycle-grid   { grid-template-columns: 1fr; }
}

/* DASHBOARD - Modern SaaS redesign */

/* Hero */
.dash-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.dash-greeting {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 4px;
}
.dash-greeting-sub { font-size: 14px; color: #93c5fd; }

/* Account figures inside the hero */
.dash-hero-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 22px;
  flex: 0 1 640px;
  min-width: 0;
}
.dash-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,0.14);
  text-decoration: none;
  min-width: 0;
}
.dash-hero-stat-val { font-size: 24px; font-weight: 800; color: #fff; line-height: 1.1; }
.dash-hero-stat-val--money { font-size: 19px; }
.dash-hero-stat-lbl { font-size: 12px; font-weight: 600; color: #bfdbfe; }
.dash-hero-stat-sub { font-size: 11px; color: rgba(255,255,255,0.5); }
.dash-hero-stat-sub--warn { color: #fbbf24; font-weight: 600; }
.dash-hero-stat-sub--bad  { color: #f87171; font-weight: 700; }
.dash-hero-stat:hover .dash-hero-stat-val { color: #7dd3fc; }

/* Quick actions */
.dash-section-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #94a3b8;
  margin-bottom: 10px;
}
.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.dash-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  transition: background 0.14s, border-color 0.14s, box-shadow 0.14s, transform 0.12s;
}
.dash-quick-card:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  box-shadow: 0 2px 10px rgba(2,132,199,0.1);
  transform: translateY(-1px);
}
.dash-quick-icon {
  width: 40px; height: 40px;
  background: #f1f5f9;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.14s;
}
.dash-quick-card:hover .dash-quick-icon { background: #dbeafe; }
.dash-quick-title { font-size: 11.5px; font-weight: 700; color: #334155; line-height: 1.2; }
.dash-quick-desc  { font-size: 10.5px; color: #94a3b8; line-height: 1.3; }

/* Two-column layout */
.dash-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}
.dash-col-main { min-width: 0; }
.dash-col-side  { min-width: 0; }

/* Widget card */
.dash-widget {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
}
.dash-widget:last-child { margin-bottom: 0; }
.dash-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid #f1f5f9;
  gap: 12px;
}
.dash-widget-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-widget-title-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}
.dash-widget-actions { display: flex; align-items: center; gap: 8px; }

/* Service rows */
.dash-service-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid #f8fafc;
  flex-wrap: wrap;
  transition: background 0.12s;
}
.dash-service-row:last-child { border-bottom: none; }
.dash-service-row:hover { background: #fafbfc; }
.dash-service-icon {
  width: 36px; height: 36px;
  background: #f1f5f9;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dash-service-info { flex: 1; min-width: 0; }
.dash-service-name   { font-size: 13.5px; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-service-domain { font-size: 12px; color: #94a3b8; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-service-meta   { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dash-service-due    { font-size: 11.5px; color: #64748b; white-space: nowrap; }
.dash-service-btns   { display: flex; gap: 6px; flex-shrink: 0; }
.dash-svc-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  transition: background 0.13s, color 0.13s;
  white-space: nowrap;
}
.dash-svc-btn:hover { background: #eff6ff; color: #0284c7; border-color: #bfdbfe; }
.dash-svc-btn--primary { background: #0284c7; color: #fff; border-color: #0284c7; }
.dash-svc-btn--primary:hover { background: #0369a1; color: #fff; }

/* Billing rows */
.dash-billing-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #f8fafc;
  transition: background 0.12s;
  flex-wrap: wrap;
}
.dash-billing-row:last-child { border-bottom: none; }
.dash-billing-row:hover { background: #fafbfc; }
.dash-billing-num    { font-size: 12px; font-weight: 700; color: #64748b; font-family: ui-monospace, monospace; white-space: nowrap; min-width: 72px; }
.dash-billing-desc   { flex: 1; min-width: 0; }
.dash-billing-date   { font-size: 11.5px; color: #94a3b8; white-space: nowrap; }
.dash-billing-amount { font-size: 14px; font-weight: 800; color: #0f172a; white-space: nowrap; }
.dash-billing-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Ticket rows */
.dash-ticket-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #f8fafc;
  transition: background 0.12s;
  flex-wrap: wrap;
}
.dash-ticket-row:last-child { border-bottom: none; }
.dash-ticket-row:hover { background: #fafbfc; }
.dash-ticket-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dash-ticket-dot--open     { background: #3b82f6; }
.dash-ticket-dot--reply    { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.18); }
.dash-ticket-dot--answered { background: #10b981; }
.dash-ticket-dot--closed   { background: #d1d5db; }
.dash-ticket-info { flex: 1; min-width: 0; }
.dash-ticket-subject { font-size: 13px; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; text-decoration: none; }
.dash-ticket-subject:hover { color: #0284c7; }
.dash-ticket-meta  { font-size: 11.5px; color: #94a3b8; margin-top: 1px; }

/* Support summary stats */
.dash-support-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}
.dash-support-stat { padding: 14px 10px; text-align: center; }
.dash-support-stat + .dash-support-stat { border-left: 1px solid #f1f5f9; }
.dash-support-stat-num { font-size: 20px; font-weight: 800; color: #0f172a; }
.dash-support-stat-lbl { font-size: 10.5px; color: #94a3b8; font-weight: 500; margin-top: 2px; }

/* Renewal items */
.dash-renewal-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 18px;
  border-bottom: 1px solid #f8fafc;
}
.dash-renewal-item:last-child { border-bottom: none; }
.dash-renewal-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-renewal-icon--domain  { background: #dbeafe; }
.dash-renewal-icon--hosting { background: #dcfce7; }
.dash-renewal-info { flex: 1; min-width: 0; }
.dash-renewal-name { font-size: 12.5px; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-renewal-days { font-size: 11px; font-weight: 600; margin-top: 2px; }
.dash-renewal-days--urgent  { color: #dc2626; }
.dash-renewal-days--warning { color: #d97706; }
.dash-renewal-days--normal  { color: #0284c7; }
.dash-renew-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  background: #eff6ff;
  color: #0284c7;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
  transition: background 0.13s;
  flex-shrink: 0;
}
.dash-renew-btn:hover { background: #dbeafe; }

/* Announcements */
.dash-announcement { padding: 14px 20px; border-bottom: 1px solid #f8fafc; }
.dash-announcement:last-child { border-bottom: none; }
.dash-ann-title   { font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 2px; line-height: 1.3; }
.dash-ann-date    { font-size: 11px; color: #94a3b8; margin-bottom: 5px; }
.dash-ann-preview {
  font-size: 12.5px; color: #64748b; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Affiliate widget */
.dash-aff-stats   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px 20px; }
.dash-aff-stat-lbl { font-size: 10.5px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }
.dash-aff-stat-val { font-size: 18px; font-weight: 800; color: #0f172a; margin-top: 3px; }

/* Account status sidebar */
.dash-profile-wrap { padding: 14px 20px; border-bottom: 1px solid #f1f5f9; }
.dash-profile-row  { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.dash-profile-lbl  { font-size: 12.5px; font-weight: 600; color: #334155; }
.dash-profile-pct  { font-size: 12.5px; font-weight: 800; color: #0284c7; }
.dash-profile-track { height: 5px; background: #f1f5f9; border-radius: 99px; overflow: hidden; }
.dash-profile-fill  { height: 100%; background: linear-gradient(90deg, #0284c7, #0ea5e9); border-radius: 99px; transition: width 0.7s ease; }
.dash-status-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; border-bottom: 1px solid #f8fafc; gap: 10px;
}
.dash-status-row:last-child { border-bottom: none; }
.dash-status-key { font-size: 12.5px; color: #64748b; font-weight: 500; }
.dash-status-val { font-size: 12.5px; font-weight: 700; color: #0f172a; text-align: right; }

/* Empty states (dashboard) */
.dash-empty { padding: 30px 20px; text-align: center; }
.dash-empty-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: #f8fafc;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.dash-empty-title { font-size: 14px; font-weight: 700; color: #334155; margin-bottom: 5px; }
.dash-empty-sub   { font-size: 13px; color: #94a3b8; margin-bottom: 14px; line-height: 1.5; }

/* Responsive */
@media (max-width: 1100px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-col-side { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .dash-col-side .dash-widget { margin-bottom: 0; }
  .dash-col-side .dash-widget:last-child { margin-bottom: 0; }
}
@media (max-width: 900px) {
  .dash-hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); flex-basis: 100%; }
  .dash-quick-grid { grid-template-columns: repeat(4, 1fr); }
  .dash-hero { padding: 22px 20px; }
  .dash-greeting { font-size: 22px; }
}
@media (max-width: 640px) {
  .dash-quick-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-col-side   { grid-template-columns: 1fr; }
  .dash-hero { flex-direction: column; gap: 20px; }
  .dash-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); flex-basis: auto; }
  .dash-service-btns { display: none; }
}
@media (max-width: 480px) {
  .dash-quick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .dash-profile-fill { transition: none; }
}


/* ================================================================
   Page header + account bar actions (shared by all portal pages)
   ================================================================ */
.pwp-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.pwp-page-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}
.pwp-page-sub {
  font-size: 14px;
  color: #64748b;
  margin: 5px 0 0;
}
.pwp-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pwp-account-bar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.pwp-account-signout {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  white-space: nowrap;
}
.pwp-account-signout:hover { color: #dc2626; }

@media (max-width: 780px) {
  .pwp-account-bar-actions { margin-left: 0; padding-bottom: 8px; }
  .pwp-page-title { font-size: 20px; }
}

/* ================================================================
   Portal sign-in / password reset
   ================================================================ */
.pwp-login-body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(900px 480px at 8% -12%, #dbeafe 0%, rgba(219, 234, 254, 0) 62%),
    radial-gradient(760px 480px at 102% -6%, #e0f2fe 0%, rgba(224, 242, 254, 0) 58%),
    #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 18px;
  color: #0f172a;
}
.pwp-auth { width: 100%; max-width: 940px; margin: 0 auto; }
.pwp-auth--narrow { max-width: 470px; }
.pwp-auth-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 32px 64px -32px rgba(15, 23, 42, .38), 0 10px 24px -16px rgba(15, 23, 42, .18);
}
.pwp-auth-card--single { grid-template-columns: 1fr; }

.pwp-auth-aside {
  position: relative;
  padding: 36px 32px;
  color: #dbe3ee;
  background: linear-gradient(165deg, #0b1727 0%, #13294b 52%, #0b3f66 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  isolation: isolate;
}
.pwp-auth-aside::before,
.pwp-auth-aside::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}
.pwp-auth-aside::before {
  width: 260px; height: 260px;
  right: -90px; top: -80px;
  background: radial-gradient(circle, rgba(56, 189, 248, .38), rgba(56, 189, 248, 0) 70%);
}
.pwp-auth-aside::after {
  width: 320px; height: 320px;
  left: -120px; bottom: -150px;
  background: radial-gradient(circle, rgba(45, 212, 191, .22), rgba(45, 212, 191, 0) 70%);
}
.pwp-auth-brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .7);
}
.pwp-auth-brand img { height: 26px; width: auto; display: block; }
.pwp-auth-brand--plain {
  background: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 22px;
}
.pwp-auth-h {
  font-size: 23px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
  margin: 6px 0 0;
}
.pwp-auth-p { font-size: 13.5px; line-height: 1.6; color: #a7b6ca; margin: 0; }
.pwp-auth-list {
  list-style: none;
  margin: auto 0 0;
  padding: 18px 0 0;
  display: grid;
  gap: 12px;
}
.pwp-auth-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: #cfdaea; }
.pwp-auth-list strong { color: #fff; font-weight: 650; }
.pwp-auth-list .ico {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(56, 189, 248, .16);
  color: #7dd3fc;
}
.pwp-auth-foot {
  font-size: 11.5px;
  color: #8399b3;
  border-top: 1px solid rgba(148, 163, 184, .22);
  padding-top: 14px;
}
.pwp-auth-foot a { color: #bae6fd; text-decoration: none; }
.pwp-auth-foot a:hover { text-decoration: underline; }

.pwp-auth-main {
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.pwp-login-title {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #0f172a;
  margin: 0 0 6px;
}
.pwp-login-sub { font-size: 13.5px; line-height: 1.55; color: #64748b; margin: 0 0 22px; }
.pwp-login-form { display: flex; flex-direction: column; gap: 15px; }
.pwp-login-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pwp-field { display: flex; flex-direction: column; gap: 6px; }
.pwp-field label { font-size: 12.5px; font-weight: 650; color: #334155; }
.pwp-input-wrap { position: relative; display: flex; align-items: center; }
.pwp-input-wrap > svg.lead {
  position: absolute;
  left: 13px;
  color: #94a3b8;
  pointer-events: none;
}
.pwp-input-wrap .pwp-input {
  width: 100%;
  height: 44px;
  padding-left: 38px;
  padding-right: 38px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 13.5px;
  color: #0f172a;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.pwp-input-wrap .pwp-input::placeholder { color: #a8b3c2; }
.pwp-input-wrap .pwp-input:focus {
  outline: none;
  background: #fff;
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .16);
}
.pwp-eye {
  position: absolute;
  right: 7px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  padding: 6px;
  border-radius: 8px;
  color: #94a3b8;
  cursor: pointer;
}
.pwp-eye:hover { background: #eef2f7; color: #475569; }
.pwp-eye:focus-visible { outline: 2px solid #38bdf8; outline-offset: 1px; }

.pwp-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: -2px;
}
.pwp-auth-hint { font-size: 12px; color: #94a3b8; }
.pwp-auth-forgot { font-size: 12.5px; font-weight: 700; color: #0284c7; text-decoration: none; white-space: nowrap; }
.pwp-auth-forgot:hover { text-decoration: underline; }

.pwp-login-submit {
  width: 100%;
  justify-content: center;
  height: 46px;
  margin-top: 4px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 14px 26px -16px rgba(2, 132, 199, .95);
}
.pwp-login-note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
  font-size: 12.5px;
  color: #64748b;
  text-align: center;
}
.pwp-login-note a { color: #0284c7; font-weight: 700; text-decoration: none; }
.pwp-login-note a:hover { text-decoration: underline; }

.pwp-auth-alert {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 18px;
}
.pwp-auth-alert--error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.pwp-auth-alert--warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.pwp-auth-alert a { color: inherit; font-weight: 700; }
.pwp-auth-success { display: flex; flex-direction: column; }
.pwp-auth-success-ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #bbf7d0;
  margin-bottom: 16px;
}

.pwp-auth-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 12px;
  color: #94a3b8;
  text-decoration: none;
}
.pwp-auth-back:hover { color: #475569; }
.pwp-auth-copy { text-align: center; font-size: 11.5px; color: #94a3b8; margin: 18px 0 0; }

@media (max-width: 860px) {
  .pwp-auth-card { grid-template-columns: 1fr; }
  .pwp-auth-aside { padding: 24px 22px; gap: 10px; }
  .pwp-auth-h { font-size: 19px; }
  .pwp-auth-list { display: none; }
  .pwp-auth-foot { display: none; }
  .pwp-auth-main { padding: 26px 22px 30px; }
  .pwp-login-title { font-size: 21px; }
}


/* The account bar is the portal's mobile navigation; on desktop the site
   header already renders the account nav, so avoid stacking two nav bars. */
.pwp-account-bar { display: none; }
@media (max-width: 1023px) {
  .pwp-account-bar { display: block; }
}

.sco-dtype-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.sco-dtype-actions .pwp-btn { font-size: 13px; padding: 8px 14px; }
.sco-dtype-status { font-size: 12.5px; line-height: 1.45; }
.sco-dtype-status--ok { color: #059669; }
.sco-dtype-status--err { color: #dc2626; }

/* Ticket attachment picker (ticket reply + new ticket) */
.tk-upload { margin-top:12px; padding:14px; border:1.5px dashed #cbd5e1; border-radius:10px; background:#f8fafc; }
.tk-upload input[type="file"] { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.tk-upload-btn { display:inline-flex; align-items:center; gap:7px; padding:8px 14px; background:#fff; border:1.5px solid #e2e8f0; border-radius:8px; font-size:13px; font-weight:700; color:#475569; cursor:pointer; }
.tk-upload-btn:hover { border-color:#0ea5e9; color:#0369a1; }
.tk-upload-hint { font-size:11.5px; color:#94a3b8; margin-top:8px; }
.tk-file-list { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.tk-file-pill { display:inline-flex; align-items:center; gap:6px; padding:5px 10px; background:#fff; border:1px solid #e2e8f0; border-radius:20px; font-size:12px; color:#334155; max-width:240px; }
.tk-file-pill b { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tk-file-pill.invalid { border-color:#fecaca; background:#fef2f2; color:#b91c1c; }
