:root {
  --ccxec-bg: #111315;
  --ccxec-panel: #1a1d20;
  --ccxec-panel-2: #23272b;
  --ccxec-border: rgba(255,255,255,.16);
  --ccxec-text: #f7f7f5;
  --ccxec-muted: #b8bec5;
}

.ccxec-global-source-bar,
.ccxec-landing,
.ccxec-studio,
.ccxec-tier-panel {
  box-sizing: border-box;
  font-family: "Century Gothic", CenturyGothic, AppleGothic, Arial, sans-serif;
}

.ccxec-global-source-bar *,
.ccxec-landing *,
.ccxec-studio *,
.ccxec-tier-panel * { box-sizing: border-box; }

.ccxec-global-source-bar {
  position: relative;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  padding: 10px 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(0,0,0,.75);
  background:
    linear-gradient(110deg, rgba(255,255,255,.07), transparent 25%, rgba(255,255,255,.035) 55%, transparent),
    #151719;
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}

.ccxec-global-source-bar__title {
  flex: 0 0 auto;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-decoration: none !important;
  white-space: nowrap;
}

.ccxec-global-source-bar__buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(145px, 1fr));
  gap: 8px;
  width: min(760px, 70vw);
}

.ccxec-global-source-button,
.ccxec-source-button,
.ccxec-build-button {
  color: #fff !important;
  text-decoration: none !important;
}

.ccxec-global-source-button {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--ccxec-accent) 76%, #fff 24%);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 32%, rgba(0,0,0,.25)),
    color-mix(in srgb, var(--ccxec-accent) 68%, #191b1d 32%);
  box-shadow: inset 0 1px rgba(255,255,255,.28), inset 0 -2px rgba(0,0,0,.3), 0 3px 9px rgba(0,0,0,.3);
  font-weight: 800;
  letter-spacing: .4px;
  text-shadow: 0 1px 2px #000;
  transition: transform .15s ease, filter .15s ease;
}

.ccxec-global-source-button:hover,
.ccxec-source-button:hover,
.ccxec-build-button:hover { transform: translateY(-1px); filter: brightness(1.12); }
.ccxec-global-source-button small { font-size: 10px; opacity: .82; white-space: nowrap; }

.ccxec-landing {
  width: min(1440px, calc(100% - 24px));
  margin: 18px auto 42px;
  color: var(--ccxec-text);
}

.ccxec-landing__hero {
  padding: clamp(30px, 5vw, 72px);
  border: 1px solid var(--ccxec-border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 75% 20%, rgba(176,138,82,.18), transparent 30%),
    linear-gradient(145deg, #252a2f, #101214 68%);
  box-shadow: 0 22px 55px rgba(0,0,0,.28);
  text-align: center;
}

.ccxec-eyebrow,
.ccxec-classification { color: #d8bd82; font-size: 12px; font-weight: 800; letter-spacing: 2px; }
.ccxec-landing h1 { margin: 12px 0; color: #fff; font-size: clamp(34px, 5vw, 68px); line-height: 1; }
.ccxec-landing__intro { max-width: 900px; margin: 0 auto; color: var(--ccxec-muted); font-size: 17px; }

.ccxec-source-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  max-width: 920px;
  margin: 28px auto 18px;
}

.ccxec-source-button {
  display: grid;
  min-height: 66px;
  place-items: center;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--ccxec-accent) 76%, #fff 24%);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.23), transparent 34%, rgba(0,0,0,.25)),
    color-mix(in srgb, var(--ccxec-accent) 70%, #181a1c 30%);
  box-shadow: inset 0 1px rgba(255,255,255,.3), inset 0 -3px rgba(0,0,0,.28), 0 8px 20px rgba(0,0,0,.3);
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 2px 3px #000;
}

.ccxec-seo-links { margin: 15px 0 0; color: var(--ccxec-muted); }
.ccxec-seo-links a, .ccxec-text-link { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }

.ccxec-source-section {
  margin-top: 22px;
  padding: clamp(20px, 3vw, 40px);
  border: 1px solid var(--ccxec-border);
  border-left: 5px solid var(--ccxec-accent);
  border-radius: 14px;
  background: linear-gradient(135deg, #202428, #121416);
}

.ccxec-source-section__copy {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.ccxec-source-number { color: var(--ccxec-accent); font-size: 44px; font-weight: 900; }
.ccxec-source-section h2 { margin: 0 0 5px; color: #fff; font-size: clamp(24px, 3vw, 38px); }
.ccxec-source-section p { margin: 0; color: var(--ccxec-muted); }

.ccxec-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.ccxec-product-card { overflow: hidden; border: 1px solid var(--ccxec-border); border-radius: 10px; background: #171a1d; box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.ccxec-product-card__image { display: block; aspect-ratio: 1/1; background: #0d0f10; }
.ccxec-product-card__image img { width: 100%; height: 100%; object-fit: contain; }
.ccxec-product-card__body { padding: 14px; }
.ccxec-product-card h3 { min-height: 48px; margin: 0 0 9px; font-size: 16px; line-height: 1.35; }
.ccxec-product-card h3 a { color: #fff !important; text-decoration: none !important; }
.ccxec-product-card__from { min-height: 42px; color: var(--ccxec-muted) !important; font-size: 12px; }
.ccxec-build-button { display: block; padding: 11px 10px; border: 1px solid var(--ccxec-accent); border-radius: 7px; background: color-mix(in srgb, var(--ccxec-accent) 52%, #17191b 48%); text-align: center; font-size: 12px; font-weight: 900; }
.ccxec-security-strip { margin-top: 20px; padding: 16px; border: 1px solid #806c38; border-radius: 9px; background: #292516; color: #f8e4aa; }

.ccxec-tier-panel {
  width: 100%;
  margin: 15px 0;
  overflow: hidden;
  border: 1px solid var(--ccxec-border);
  border-top: 4px solid var(--ccxec-accent);
  border-radius: 10px;
  background: #171a1d;
  color: #fff;
}
.ccxec-tier-panel__head { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; background: #22262a; }
.ccxec-tier-panel__head span { color: var(--ccxec-accent); font-size: 11px; font-weight: 900; letter-spacing: 1.4px; }
.ccxec-tier-panel table { width: 100%; margin: 0; border-collapse: collapse; color: #fff; font-size: 12px; }
.ccxec-tier-panel th, .ccxec-tier-panel td { padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; }
.ccxec-tier-panel tbody tr.is-active { background: color-mix(in srgb, var(--ccxec-accent) 35%, transparent); }
.ccxec-tier-panel__note { margin: 0; padding: 10px 12px; color: var(--ccxec-muted); font-size: 11px; }

.ccxec-studio {
  clear: both;
  margin: 22px 0;
  padding: 20px;
  border: 1px solid var(--ccxec-border);
  border-top: 5px solid var(--ccxec-accent);
  border-radius: 14px;
  background: linear-gradient(145deg, #202428, #101214 70%);
  color: #fff;
}
.ccxec-studio__header { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.ccxec-studio__header h2 { margin: 5px 0; color: #fff; }
.ccxec-studio__header p { margin: 0; color: var(--ccxec-muted); }
.ccxec-source-chip { padding: 9px 12px; border: 1px solid var(--ccxec-accent); border-radius: 999px; background: rgba(0,0,0,.3); color: #fff; font-size: 12px; font-weight: 900; white-space: nowrap; }
.ccxec-security-warning { display: flex; gap: 10px; margin: 17px 0; padding: 12px; border: 1px solid #7e6934; border-radius: 8px; background: #292516; color: #f6e4ad; font-size: 12px; }
.ccxec-step { display: grid; grid-template-columns: 44px 1fr; gap: 12px; margin: 12px 0; padding: 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: rgba(255,255,255,.035); }
.ccxec-step__number { color: var(--ccxec-accent); font-size: 23px; font-weight: 900; }
.ccxec-step h3 { margin: 0 0 13px; color: #fff; }
.ccxec-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.ccxec-field-grid label, .ccxec-upload-field { color: #fff; font-size: 12px; font-weight: 700; }
.ccxec-field-grid input, .ccxec-field-grid select, .ccxec-field-grid textarea { width: 100%; margin-top: 5px; color: #111; }
.ccxec-field-wide { grid-column: 1/-1; }
.ccxec-option-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.ccxec-option-card { position: relative; display: flex; min-height: 52px; align-items: center; gap: 9px; padding: 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: #202327; cursor: pointer; }
.ccxec-option-card:has(input:checked) { border-color: var(--ccxec-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ccxec-accent) 42%, transparent); }
.ccxec-option-card__metal { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--ccxec-accent) 25%, #333 72%); box-shadow: inset 0 0 4px #000; }
.ccxec-upload-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.ccxec-upload-field { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 13px; border: 1px dashed var(--ccxec-accent); border-radius: 8px; background: rgba(0,0,0,.2); }
.ccxec-upload-field__icon { grid-row: 1/4; align-self: center; color: var(--ccxec-accent); font-size: 28px; }
.ccxec-upload-field small, .ccxec-file-name { color: var(--ccxec-muted); font-weight: 400; }
.ccxec-upload-field input { grid-column: 2; max-width: 100%; color: #fff; }
.ccxec-acknowledgement { display: flex; gap: 8px; margin-top: 15px; padding: 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: #16191b; color: #fff; font-size: 12px; }
.ccxec-yith-unmatched:empty { display:none; }

@media (max-width: 980px) {
  .ccxec-global-source-bar { align-items: stretch; flex-direction: column; gap: 7px; }
  .ccxec-global-source-bar__title { text-align: center; }
  .ccxec-global-source-bar__buttons { width: 100%; }
  .ccxec-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ccxec-source-section__copy { grid-template-columns: auto 1fr; }
  .ccxec-source-section__copy .ccxec-text-link { grid-column: 2; }
}

@media (max-width: 640px) {
  .ccxec-global-source-bar { padding: 8px 10px; }
  .ccxec-global-source-bar__buttons { grid-template-columns: 1fr; }
  .ccxec-global-source-button { min-height: 38px; }
  .ccxec-source-buttons, .ccxec-product-grid, .ccxec-option-grid, .ccxec-upload-grid, .ccxec-field-grid { grid-template-columns: 1fr; }
  .ccxec-source-section__copy { grid-template-columns: 1fr; }
  .ccxec-source-section__copy .ccxec-text-link { grid-column: auto; }
  .ccxec-source-number { font-size: 28px; }
  .ccxec-studio { padding: 12px; }
  .ccxec-studio__header { align-items: flex-start; flex-direction: column; }
  .ccxec-step { grid-template-columns: 34px 1fr; padding: 11px; }
  .ccxec-field-wide { grid-column: auto; }
}
