/* auth.css — account modal, paywall preview, premium badges, toast */

/* ---------- Sidebar ---------- */
.cc-access-item .category-name { color: #68f4af; }
.cc-access-item.is-member .category-name { color: inherit; }
.cc-gem { margin-left: 6px; font-size: 10px; }

/* ---------- Locked preview inside a page ---------- */
.cc-premium-pill {
  margin-left: auto;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.cc-paywall {
  flex: 1;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 40px 20px;
  border: 2px dashed #c7c2e8;
  border-radius: 20px;
  background: repeating-linear-gradient(135deg, #f8f7ff 0 14px, #f2f0fc 14px 28px);
}
.cc-paywall-icon { font-size: 54px; line-height: 1; }
.cc-paywall-title { font-size: 24px; font-weight: 700; color: #333; text-transform: uppercase; }
.cc-paywall-text { font-size: 17px; color: #555; max-width: 460px; line-height: 1.5; }

/* ---------- Buttons ---------- */
.cc-btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-radius: 10px;
  padding: 12px 28px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.cc-btn:disabled { opacity: 0.6; cursor: wait; }
.cc-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
}
.cc-btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(102, 126, 234, 0.45); }
.cc-btn-secondary { background: #f5f5f5; color: #000; border-color: #d0d0d0; }
.cc-btn-secondary:hover { background: #e8e8e8; }
.cc-btn-link { background: none; color: #5a4fcf; padding: 6px 10px; text-transform: none; font-weight: 600; }
.cc-btn-link:hover { text-decoration: underline; }
.cc-btn-block { width: 100%; }

/* ---------- Modal ---------- */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cc-modal[hidden] { display: none; }
.cc-modal-box {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 2px solid #333;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.cc-modal-head {
  background: #000;
  color: #fff;
  padding: 15px 18px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cc-modal-close { background: none; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.cc-modal-body { padding: 22px; }
.cc-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.cc-tab {
  flex: 1;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 9px 0;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #333;
  cursor: pointer;
}
.cc-tab.active { background: #4285f4; border-color: #4285f4; color: #fff; }
.cc-field { margin-bottom: 14px; }
.cc-field label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; color: #333; margin-bottom: 6px; }
.cc-field input {
  width: 100%;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
}
.cc-field input:focus { outline: none; border-color: #4285f4; background: #fff; }
.cc-hint { font-size: 13px; color: #666; line-height: 1.45; margin: 0 0 14px; }
.cc-step { background: #f3f0ff; border: 1px solid #d9d1ff; color: #4b3fb8; border-radius: 8px; padding: 10px 12px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.cc-note { background: #fff8e1; border: 1px solid #f3dd9b; color: #6b5300; border-radius: 8px; padding: 10px 12px; font-size: 14px; line-height: 1.45; margin-bottom: 16px; }
.cc-error { background: #fdecea; border: 1px solid #f5c2bd; color: #b3261e; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.cc-success { background: #e8f5e9; border: 1px solid #b9dfbd; color: #1e6b2a; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.cc-row-center { text-align: center; margin-top: 10px; }
.cc-account-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #eee; font-size: 15px; }
.cc-account-line span:first-child { font-weight: 700; text-transform: uppercase; font-size: 12px; color: #666; padding-top: 2px; }
.cc-account-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* ---------- Toast ---------- */
.cc-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3100;
  background: #111;
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
}
.cc-toast[hidden] { display: none; }

/* ---------- Profile popup + Test Results ---------- */
.cc-modal-box { transition: max-width 0.25s ease; }
.cc-modal-box.cc-modal-wide { max-width: 640px; }
.cc-modal-body { max-height: calc(100vh - 120px); overflow-y: auto; }
.cc-plan { font-weight: 700; }
.cc-plan-premium { color: #5a4fcf; }
.cc-results-btn { display: flex; justify-content: space-between; align-items: center; }
.cc-count { background: #000; color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.cc-account-actions .cc-note { margin-bottom: 0; }
.cc-back { padding-left: 0; margin-bottom: 12px; }
.cc-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 40px 20px; background: #f5f5f5; border: 2px dashed #d6d6d6; border-radius: 16px; }
.cc-empty-icon { font-size: 44px; line-height: 1; }
.cc-empty-title { font-size: 19px; font-weight: 700; color: #333; }
.cc-empty .cc-hint { margin: 0; }
.cc-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cc-result-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: #f5f5f5; border: 0.5px solid #d0d0d0; border-radius: 12px; padding: 16px 18px; }
.cc-result-test { font-size: 12px; font-weight: 700; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }
.cc-result-summary { font-size: 19px; font-weight: 700; color: #222; line-height: 1.3; }
.cc-result-date { font-size: 13px; color: #888; }
.cc-result-card .cc-btn-link { padding-left: 0; }
