/* ================================================================
   Pamir Web Host - Distraction-free Checkout Shell
   Standalone page: custom header + footer, no site nav.
   ================================================================ */

/* Body / reset */
.co-shell-body {
  background: #f1f5f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', system-ui, sans-serif;
  margin: 0;
}

/* Header */
.co-shell-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.co-shell-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.co-shell-logo img {
  height: 32px;
  width: auto;
  display: block;
}
.co-shell-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  flex: 1;
  padding-left: 16px;
  border-left: 1px solid #e2e8f0;
}
.co-shell-title svg { color: #059669; flex-shrink: 0; }
.co-shell-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.co-shell-user {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}
.co-shell-exit {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition: color 0.13s, border-color 0.13s, background 0.13s;
}
.co-shell-exit:hover { color: #334155; border-color: #cbd5e1; background: #f8fafc; }

/* Guest auth header buttons */
.co-hdr-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}
.co-hdr-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.13s, color 0.13s, border-color 0.13s;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.co-hdr-auth-btn--outline {
  background: #fff;
  color: #334155;
  border-color: #cbd5e1;
}
.co-hdr-auth-btn--outline:hover { background: #f1f5f9; border-color: #94a3b8; }
.co-hdr-auth-btn--solid {
  background: #0284c7;
  color: #fff;
  border-color: #0284c7;
}
.co-hdr-auth-btn--solid:hover { background: #0369a1; border-color: #0369a1; }

/* Inline auth drop-down panel */
.co-auth-panel {
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  max-width: 100%;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 2px solid #0284c7;
  box-shadow: 0 12px 40px rgba(15,23,42,0.14);
  z-index: 200;
  animation: coSlideDown 0.18s ease-out;
}
@keyframes coSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.co-auth-panel-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
}
.co-auth-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 20px;
  position: relative;
}
.co-auth-tab {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.13s, border-color 0.13s;
  margin-bottom: -1px;
}
.co-auth-tab:hover { color: #334155; }
.co-auth-tab--active { color: #0284c7; border-bottom-color: #0284c7; }
.co-auth-panel-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: color 0.13s, background 0.13s;
  display: flex;
  align-items: center;
}
.co-auth-panel-close:hover { color: #334155; background: #f1f5f9; }

/* Auth pane layout */
.co-auth-pane { }
.co-auth-err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #dc2626;
  margin-bottom: 16px;
}
.co-auth-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.co-auth-fields-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.co-auth-row-2 {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.co-auth-field { display: flex; flex-direction: column; gap: 5px; }
.co-auth-field .pwp-label { font-size: 12.5px; }
.co-req { color: #dc2626; }
.co-auth-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 13px;
  padding: 12px 0;
  grid-column: 1 / -1;
}
.co-auth-spinner {
  animation: spin 1s linear infinite;
}
.co-auth-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}
.co-auth-submit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.13s;
  box-shadow: 0 2px 8px rgba(2,132,199,0.22);
}
.co-auth-submit:hover { opacity: 0.9; }
.co-auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.co-auth-forgot, .co-auth-note {
  font-size: 12.5px;
  color: #64748b;
}
.co-auth-forgot { color: #0284c7; text-decoration: none; font-weight: 600; }
.co-auth-forgot:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .co-hdr-auth-btn span, .co-hdr-auth-btn svg + * { display: none; }
  .co-hdr-auth-btn { padding: 6px 10px; }
  .co-auth-row-2 { grid-template-columns: 1fr; }
  .co-auth-fields-wrap { grid-template-columns: 1fr; }
}

/* Main content */
.co-shell-main {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 1.5rem 48px;
}

/* Payment success */
.co-pay-wrap {
  max-width: 680px;
  margin: 0 auto;
}
.co-pay-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: #dcfce7;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.co-pay-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}
.co-pay-card-head {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.co-pay-card-body { padding: 20px; }

.co-pay-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.co-pay-method-opt {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 12px;
  cursor: pointer;
  transition: border-color 0.13s, background 0.13s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.co-pay-method-opt:hover { border-color: #0284c7; background: #eff6ff; }
.co-pay-method-opt--selected { border-color: #0284c7; background: #eff6ff; }
.co-pay-method-name { font-size: 12.5px; font-weight: 600; color: #334155; }

.co-pay-instructions {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 13.5px;
  color: #1e293b;
  line-height: 1.7;
  margin-top: 12px;
}
.co-pay-instructions strong { display: block; margin-bottom: 6px; font-size: 14px; }
.co-pay-instr-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}
.co-pay-instr-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}
.co-pay-instr-table tr { border-bottom: 1px solid #f1f5f9; }
.co-pay-instr-table tr:last-child { border-bottom: none; }
.co-pay-instr-key {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
  padding: 7px 12px 7px 0;
  white-space: nowrap;
  width: 38%;
}
.co-pay-instr-val {
  font-size: 13px;
  color: #0f172a;
  font-weight: 600;
  padding: 7px 0;
  word-break: break-all;
}
.co-pay-instr-val--hl { color: #059669; font-size: 14px; }
.co-pay-instr-note {
  font-size: 12.5px;
  color: #475569;
  margin: 8px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid #f1f5f9;
}
.co-pay-instr-notify {
  font-size: 12.5px;
  color: #64748b;
  margin: 8px 0 0;
}
.co-pay-instr-notify a { color: #0284c7; font-weight: 600; text-decoration: underline; }

.co-pay-invoice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
  gap: 10px;
}
.co-pay-invoice-row:last-child { border-bottom: none; }
.co-pay-invoice-label { color: #64748b; }
.co-pay-invoice-value { font-weight: 600; color: #0f172a; text-align: right; }

.co-pay-amount {
  font-size: 28px;
  font-weight: 800;
  color: #0369a1;
  text-align: center;
  padding: 12px 0;
}
.co-pay-amount-sub { font-size: 13px; color: #64748b; margin-top: 2px; text-align: center; }

.co-pay-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Footer */
.co-shell-footer {
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.co-shell-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #94a3b8;
}
.co-shell-footer-links { display: flex; gap: 14px; }
.co-shell-footer-links a { color: #94a3b8; text-decoration: none; }
.co-shell-footer-links a:hover { color: #64748b; }
.co-shell-trust {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #059669;
  font-weight: 600;
}

/* Gateway payment icons */
.co-gw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.co-gw-opt {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 10px 10px;
  cursor: pointer;
  transition: border-color 0.13s, background 0.13s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  background: #fff;
}
.co-gw-opt:hover { border-color: #0284c7; background: #eff6ff; }
.co-gw-opt--selected { border-color: #0284c7; background: #eff6ff; }
.co-gw-icon {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: #f1f5f9;
  display: flex; align-items: center; justify-content: center;
}
.co-gw-label { font-size: 11.5px; font-weight: 600; color: #334155; }

/* Promo row */
.co-promo-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 16px;
}
.co-promo-row .pwp-input { flex: 1; }
.co-promo-msg { font-size: 12.5px; margin-top: 5px; }
.co-promo-msg--ok  { color: #059669; }
.co-promo-msg--err { color: #dc2626; }

/* Domain type tabs */
.co-dtype-tabs { display: flex; gap: 0; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.co-dtype-tab {
  flex: 1; text-align: center;
  padding: 9px 12px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  background: #f8fafc; color: #64748b;
  border: none; outline: none;
  transition: background 0.13s, color 0.13s;
  border-right: 1px solid #e2e8f0;
}
.co-dtype-tab:last-child { border-right: none; }
.co-dtype-tab--active { background: #0284c7; color: #fff; }

/* Responsive */
@media (max-width: 640px) {
  .co-shell-title { display: none; }
  .co-shell-header-inner { gap: 12px; }
  .co-shell-main { padding: 20px 1rem 32px; }
  .co-pay-method-grid { grid-template-columns: 1fr 1fr; }
  .co-shell-footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  .co-gw-grid { grid-template-columns: repeat(3, 1fr); }
}
