.cc-page {
  background: #f4f7fb;
  color: #162033;
}

.cc-hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 58px;
  background:
    radial-gradient(circle at 84% 18%, rgba(88, 153, 255, .18), transparent 30%),
    linear-gradient(135deg, #091d43 0%, #12366e 54%, #174b8f 100%);
  color: #fff;
}

.cc-hero::after {
  content: "↔";
  position: absolute;
  right: max(5vw, 32px);
  top: 12px;
  color: rgba(255, 255, 255, .06);
  font: 700 clamp(130px, 19vw, 260px)/1 sans-serif;
  transform: rotate(-8deg);
  pointer-events: none;
}

.cc-hero-inner { position: relative; z-index: 1; }
.cc-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 24px; color: #c3d6f5; font-size: 13px; }
.cc-breadcrumb a { color: #dce9ff; text-decoration: none; }
.cc-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.cc-hero .eyebrow { margin: 0 0 8px; color: #82b8ff; font-size: 12px; font-weight: 800; letter-spacing: .2em; }
.cc-hero h1 { margin: 0; font-size: clamp(32px, 5vw, 52px); line-height: 1.15; letter-spacing: -.03em; }
.cc-hero h1::after { content: "Exchange Rate Converter"; display: block; margin-top: 8px; color: #a9c7ee; font-size: clamp(15px, 2.2vw, 20px); font-weight: 500; letter-spacing: .08em; }
.cc-hero-inner > p:not(.eyebrow) { max-width: 710px; margin: 18px 0 0; color: #d8e5f7; font-size: 16px; line-height: 1.8; }
.cc-reference-label { display: inline-flex; gap: 8px; align-items: center; margin-top: 22px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); color: #eaf2ff; font-size: 12px; }
.cc-reference-label span { width: 7px; height: 7px; border-radius: 50%; background: #7fc7ff; box-shadow: 0 0 0 4px rgba(127,199,255,.14); }

.cc-main-section { padding: 44px 0 64px; }
.cc-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(270px, .75fr); gap: 24px; align-items: start; }
.cc-card, .cc-info section { border: 1px solid #e1e8f1; border-radius: 20px; background: #fff; box-shadow: 0 16px 42px rgba(18, 43, 77, .08); }
.cc-card { padding: clamp(22px, 4vw, 38px); }
.cc-card-heading { display: flex; gap: 18px; justify-content: space-between; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid #edf1f6; }
.cc-kicker { margin: 0 0 5px; color: #4778b7; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.cc-card h2, .cc-info h2, .cc-info h3 { margin: 0; color: #13294b; }
.cc-card h2 { font-size: 26px; }
.cc-load-status { margin: 4px 0 0; color: #65728a; font-size: 13px; text-align: right; }
.cc-load-status.is-ready { color: #147a51; }
.cc-load-status.is-stale, .cc-load-status.is-error { color: #a35f08; }

.cc-currency-row { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); gap: 16px; align-items: end; margin-top: 28px; }
.cc-field { display: grid; gap: 8px; color: #4a5870; font-size: 13px; font-weight: 700; }
.cc-field select, .cc-amount-input { width: 100%; border: 1px solid #ced8e6; border-radius: 12px; background: #fbfcfe; transition: border-color .2s, box-shadow .2s, background .2s; }
.cc-field select { min-height: 50px; padding: 0 42px 0 15px; color: #17233a; font-size: 15px; font-weight: 700; line-height: 1.2; cursor: pointer; }
.cc-field select:focus, .cc-amount-input:focus-within { outline: 0; border-color: #3979c9; background: #fff; box-shadow: 0 0 0 4px rgba(57, 121, 201, .12); }
.cc-swap { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #bdd0e8; border-radius: 50%; background: #edf5ff; color: #1857a4; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.cc-swap:hover:not(:disabled) { transform: rotate(180deg); border-color: #5d91ce; background: #e2efff; }
.cc-swap:focus-visible { outline: 3px solid rgba(57,121,201,.3); outline-offset: 2px; }
.cc-swap:disabled { cursor: wait; opacity: .55; }
.cc-swap svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.cc-amount-field { margin-top: 24px; }
.cc-amount-input { display: grid; grid-template-columns: 1fr auto; align-items: center; overflow: hidden; }
.cc-amount-input input { min-width: 0; height: 56px; border: 0; outline: 0; padding: 0 16px; background: transparent; color: #11213a; font-size: 23px; font-weight: 750; }
.cc-amount-input b { margin-right: 16px; color: #42658e; font-size: 14px; }
.cc-field-error { min-height: 20px; margin: 5px 0 0; color: #b42318; font-size: 12px; }
.cc-quick { display: flex; gap: 14px; align-items: center; margin: 12px 0 24px; color: #6a778c; font-size: 12px; }
.cc-quick > div { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-quick button { min-height: 32px; padding: 0 12px; border: 1px solid #d4deeb; border-radius: 8px; background: #fff; color: #38577e; font-weight: 700; cursor: pointer; }
.cc-quick button:hover { border-color: #7da4d1; background: #f3f8ff; }

.cc-result { position: relative; padding: 24px; border-radius: 16px; background: linear-gradient(135deg, #0f2d5b, #174c8c); color: #fff; }
.cc-result > p { margin: 0 0 9px; color: #b7cdec; font-size: 12px; font-weight: 700; }
.cc-result > div { display: flex; gap: 10px; align-items: baseline; min-width: 0; padding-right: 110px; }
.cc-result strong { overflow-wrap: anywhere; font-size: clamp(30px, 5vw, 44px); line-height: 1.15; }
.cc-result > div span { color: #a9c7ee; font-size: 16px; font-weight: 800; }
.cc-result button { position: absolute; right: 20px; top: 50%; display: inline-flex; gap: 7px; align-items: center; min-height: 38px; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; padding: 0 12px; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; transform: translateY(-50%); }
.cc-result button:hover:not(:disabled) { background: rgba(255,255,255,.18); }
.cc-result button:disabled { cursor: default; opacity: .45; }

.cc-rate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.cc-rate-grid > div { min-width: 0; padding: 15px 16px; border: 1px solid #e2e9f2; border-radius: 12px; background: #f8fafc; }
.cc-rate-grid span, .cc-meta span { display: block; margin-bottom: 5px; color: #718096; font-size: 11px; }
.cc-rate-grid strong { display: block; color: #263c5c; font-size: 13px; overflow-wrap: anywhere; }
.cc-warning { margin-top: 16px; padding: 12px 14px; border: 1px solid #f1cf95; border-radius: 10px; background: #fff8e8; color: #8a5200; font-size: 13px; line-height: 1.6; }
.cc-meta { display: grid; grid-template-columns: .8fr 1fr 1.3fr; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #edf1f6; }
.cc-meta strong { color: #34465f; font-size: 12px; font-weight: 700; }
.cc-meta a { color: #1a64b8; }

.cc-info { display: grid; gap: 16px; }
.cc-info section { padding: 22px; box-shadow: 0 10px 30px rgba(18,43,77,.055); }
.cc-info-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 13px; background: #e8f2ff; color: #1c63b4; font-size: 25px; font-weight: 800; }
.cc-info h2 { font-size: 20px; }
.cc-info h3 { font-size: 16px; }
.cc-info p, .cc-info li { color: #5e6d82; font-size: 13px; line-height: 1.75; }
.cc-info p { margin: 10px 0 0; }
.cc-info ul { margin: 12px 0 0; padding-left: 19px; }
.cc-info li + li { margin-top: 8px; }
.cc-supported p { color: #2f5f96; font-weight: 750; letter-spacing: .025em; }

@media (max-width: 900px) {
  .cc-layout { grid-template-columns: 1fr; }
  .cc-info { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .cc-hero { padding: 34px 0 40px; }
  .cc-hero::after { right: -28px; top: 44px; font-size: 150px; }
  .cc-main-section { padding: 24px 0 42px; }
  .cc-card { border-radius: 16px; padding: 20px 16px; }
  .cc-card-heading { display: block; }
  .cc-load-status { margin-top: 10px; text-align: left; }
  .cc-currency-row { grid-template-columns: 1fr 42px 1fr; gap: 8px; }
  .cc-swap { width: 42px; height: 42px; margin-bottom: 4px; }
  .cc-field select { min-height: 48px; padding-left: 11px; font-size: 13px; }
  .cc-quick { display: block; }
  .cc-quick > span { display: block; margin-bottom: 8px; }
  .cc-quick > div { display: grid; grid-template-columns: repeat(4, 1fr); }
  .cc-quick button { padding: 0 4px; font-size: 11px; }
  .cc-result { padding: 20px 16px 68px; }
  .cc-result > div { padding-right: 0; }
  .cc-result button { top: auto; right: 16px; bottom: 16px; left: 16px; justify-content: center; transform: none; }
  .cc-rate-grid, .cc-meta { grid-template-columns: 1fr; }
  .cc-info { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .cc-currency-row { grid-template-columns: 1fr; }
  .cc-swap { margin: 0 auto; transform: rotate(90deg); }
  .cc-swap:hover:not(:disabled) { transform: rotate(270deg); }
}
