/* ============================================
   SUMART — Credit Page Styles
   assets/css/credit.css
   ============================================ */

/* ── Credit Score Ring ── */
.credit-hero {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 32px 36px;
}

.score-ring-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  flex-shrink: 0;
}

.score-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring-track {
  fill: none;
  stroke: rgba(255,255,255,0.07);
  stroke-width: 12;
}

.score-ring-fill {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-ring-fill.good   { stroke: url(#scoreGrad); }

.score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number {
  font-family: 'Syne', sans-serif;
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--azure), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.score-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.score-rating {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  margin-top: 2px;
}

/* ── Credit Hero Info ── */
.credit-hero-info { flex: 1; }

.credit-hero-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.credit-hero-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.score-range-bar {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg,
    #e54ed4 0%,
    #a24ced 20%,
    #308df1 40%,
    #50cdf9 60%,
    #73ea72 80%,
    #fdec83 100%
  );
  margin-bottom: 6px;
}

.score-range-pointer {
  position: absolute;
  top: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--azure);
  box-shadow: 0 0 12px rgba(80,205,249,0.5);
  transform: translateX(-50%);
  transition: left 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
}

/* ── Credit Factor Cards ── */
.factors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.factor-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.factor-icon { font-size: 22px; }

.factor-name {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.factor-value {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.factor-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
}

.status-great  { background: rgba(115,234,114,0.15); color: var(--green); }
.status-good   { background: rgba(80,205,249,0.15);  color: var(--azure); }
.status-fair   { background: rgba(253,236,131,0.15); color: var(--yellow); }
.status-poor   { background: rgba(229,78,212,0.15);  color: var(--pink); }

.factor-bar-track {
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: hidden;
}

.factor-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1.4s cubic-bezier(0.4,0,0.2,1);
}

/* ── Credit Accounts ── */
.accounts-list { padding: 24px; }

.account-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.account-item:last-of-type { border-bottom: none; }

.account-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.account-info { flex: 1; }

.account-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.account-detail {
  font-size: 11px;
  color: var(--text-muted);
}

.account-balance {
  text-align: right;
}

.account-balance-num {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
}

.account-util {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Recommendations ── */
.recs-list { padding: 24px; }

.rec-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.rec-item:last-child { border-bottom: none; }

.rec-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.rec-body { flex: 1; }

.rec-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
}

.rec-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.rec-impact {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 2px;
}

.impact-high   { background: rgba(115,234,114,0.15); color: var(--green); }
.impact-medium { background: rgba(80,205,249,0.15);  color: var(--azure); }
.impact-low    { background: rgba(253,236,131,0.15); color: var(--yellow); }

/* ── Credit Lower Grid ── */
.credit-lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .factors-grid { grid-template-columns: repeat(2, 1fr); }
  .credit-hero { flex-direction: column; align-items: flex-start; gap: 24px; }
  .credit-lower-grid { grid-template-columns: 1fr; }
}

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