/* Giriş pop-up'ı, ürün tasarım sayfası, renk seçici ve mobil uygulama sayfası. */

/* Welcome / login dialog */
.welcome-dialog { width: min(820px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 22px; overflow: auto; box-shadow: 0 30px 90px rgba(0, 22, 55, .3); }
.welcome-dialog::backdrop { background: rgba(2, 20, 45, .6); backdrop-filter: blur(4px); }
.welcome-dialog .dialog-close { position: absolute; top: 12px; right: 16px; z-index: 1; border: 0; background: none; color: #718096; font-size: 26px; cursor: pointer; }
.welcome-grid { display: grid; grid-template-columns: 1.15fr .85fr; }
.welcome-login { padding: 34px 34px 26px; background: #fff; }
.welcome-login h2 { margin: 16px 0 6px; color: var(--navy); font-size: 24px; text-align: center; }
.welcome-login > p { margin: 0 0 8px; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: center; }
.welcome-login label { display: block; margin: 12px 0 5px; font-size: 10px; font-weight: 600; }
.welcome-login input[type="email"], .welcome-login input[type="password"] { width: 100%; padding: 11px 12px; border: 1px solid #d9e0e9; border-radius: 8px; outline: 0; font: inherit; font-size: 12px; }
.welcome-login input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 169, 214, .14); }
.welcome-login .welcome-remember { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.welcome-foot { margin: 14px 0 4px; color: var(--muted); font-size: 11px; text-align: center; }
.welcome-foot a { color: #078fc3; font-weight: 700; }
.link-button { display: block; margin: 0 auto; border: 0; background: none; color: var(--muted); font: inherit; font-size: 10px; text-decoration: underline; cursor: pointer; }
.welcome-app { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 34px 28px; background: linear-gradient(160deg, var(--navy), #0d3d78); color: #fff; }
.welcome-app .eyebrow { align-self: flex-start; background: rgba(255, 255, 255, .12); color: #81dcf2; }
.welcome-app h3 { margin: 12px 0 4px; font-size: 22px; }
.welcome-app p { margin: 0; color: #c6d3e2; font-size: 11px; line-height: 1.7; }
.welcome-app .btn { justify-content: center; background: #fff; color: var(--navy); text-align: center; }
.welcome-app-help { margin-top: 12px; color: #81dcf2; font-size: 10px; font-weight: 600; }

/* Design page */
.design-layout { align-items: start; }
.design-summary { position: sticky; top: 130px; }
.design-summary h1 { margin: 10px 0 14px; color: var(--navy); font-size: 26px; }
.preview-card.compact { height: 220px; }
.variant-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 0; }
.variant-facts div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafcfe; }
.variant-facts .wide-fact { grid-column: 1 / -1; }
.variant-facts dt { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.variant-facts dd { margin: 3px 0 0; color: var(--navy); font-size: 11px; font-weight: 600; line-height: 1.5; }
.design-price { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding: 15px; border-radius: 12px; background: #f3f9fc; }
.design-price small, .design-price strong, .design-price span { display: block; }
.design-price small, .design-price span { color: var(--muted); font-size: 9px; }
.design-price strong { margin: 2px 0; color: var(--navy); font-size: 20px; }
.design-price .btn { flex: none; font-size: 10px; }
.design-builder h2 { margin: 0 0 4px; color: var(--navy); font-size: 22px; }
.shared-fields { margin-top: 6px; }
.optional { color: var(--muted); font-weight: 500; }
.field-help { margin: 2px 0 10px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.design-form textarea.design-notes { height: 110px; }
.char-count { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; text-align: right; }

/* Multi colour picker */
.color-list { margin: 16px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafcfe; }
.color-list legend { padding: 0 6px; font-size: 10px; font-weight: 600; }
.color-presets { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.color-presets button { width: 26px; height: 26px; border: 2px solid #fff; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px #cfd8e3; cursor: pointer; }
.color-presets button:hover:not(:disabled) { transform: scale(1.12); box-shadow: 0 0 0 2px var(--cyan); }
.color-presets button:disabled { opacity: .35; cursor: not-allowed; }
.color-rows { display: grid; gap: 8px; }
.color-row { display: grid; grid-template-columns: 44px 1fr 34px; align-items: center; gap: 8px; }
.product-config .color-row input[type="color"] { width: 44px; height: 40px; padding: 3px; border-radius: 8px; cursor: pointer; }
.color-row.is-code input[type="color"] { background: repeating-linear-gradient(45deg, #eef2f7, #eef2f7 5px, #fff 5px, #fff 10px); }
.color-row.is-code input[type="color"]::-webkit-color-swatch { opacity: 0; }
.color-row button { height: 34px; border: 1px solid #e3e9f1; border-radius: 8px; background: #fff; color: #8a94a6; font-size: 18px; cursor: pointer; }
.color-row button:hover { border-color: var(--coral); color: var(--coral); }
.color-empty { margin: 0; color: var(--muted); font-size: 10px; }
.color-add { margin-top: 10px; padding: 9px 12px; border: 1px dashed #9bb7cc; border-radius: 8px; background: #fff; color: #078fc3; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.color-add:disabled { color: var(--muted); cursor: not-allowed; }

/* Mobile app page */
.app-download-hero { display: grid; grid-template-columns: 1fr 260px; align-items: center; gap: 40px; margin-bottom: 30px; }
.app-download-hero h1 { margin: 16px 0 10px; color: var(--navy); font-size: 38px; letter-spacing: -1.5px; }
.app-download-hero p { max-width: 640px; color: var(--muted); line-height: 1.8; }
.app-download-hero img { width: 100%; max-width: 260px; justify-self: end; }
.app-download-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.app-download-actions span { color: var(--muted); font-size: 10px; }
.app-checksum { font-size: 9px; word-break: break-all; }
.app-download-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.app-download-grid h2 { margin: 0 0 10px; color: var(--navy); font-size: 20px; }
.app-download-grid p { color: var(--muted); font-size: 11px; line-height: 1.8; }
.app-steps { margin: 0; padding-left: 20px; }
.app-steps li { margin-bottom: 10px; font-size: 11px; line-height: 1.7; }
.app-note { padding: 12px; border-radius: 10px; background: #fff7df; color: #7a4b00 !important; }

@media (max-width: 850px) {
    .welcome-grid, .app-download-hero, .app-download-grid { grid-template-columns: 1fr; }
    .welcome-login { padding: 30px 20px 20px; }
    .welcome-app { padding: 24px 20px; }
    .design-summary { position: static; }
    .app-download-hero img { display: none; }
    .app-download-hero h1 { font-size: 30px; }
}
@media (max-width: 480px) {
    .variant-facts { grid-template-columns: 1fr; }
    .design-price { flex-direction: column; align-items: flex-start; }
}

/* Sabit üst menünün altında kalmaması için kaydırma hedefleri. */
.design-page #design-results, .design-page #entitlement-summary { scroll-margin-top: 150px; }
