*,
*::before,
*::after {
    box-sizing: border-box;
}

body.delivery-page {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: #e8f4ff;
    background: radial-gradient(circle at 20% 20%, #1b2a6b 0%, #0a1028 45%, #050814 100%);
    line-height: 1.5;
}

.delivery-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.delivery-bg__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.delivery-bg__icons {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    font-size: 2rem;
}

.delivery-bg__icons .icon-key,
.delivery-bg__icons .icon-download {
    position: absolute;
}

.icon-key { top: 12%; left: 8%; }
.icon-download { top: 28%; right: 10%; }
.icon-key--2 { bottom: 18%; right: 14%; }
.icon-download--2 { bottom: 8%; left: 12%; }

.delivery-shell {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2.5rem;
}

.delivery-brand {
    text-align: center;
    margin-bottom: 1.25rem;
}

.delivery-brand--compact {
    margin-bottom: 0.75rem;
}

.delivery-logo {
    width: min(200px, 76vw);
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.delivery-logo--sm {
    width: min(150px, 58vw);
}

.delivery-brand__tag {
    margin: 0.35rem 0 0;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: #7ecbff;
    text-transform: uppercase;
}

.delivery-card {
    background: rgba(8, 18, 48, 0.82);
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 18px;
    padding: 1.35rem 1.15rem;
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.08) inset,
        0 18px 40px rgba(0, 0, 0, 0.45),
        0 0 32px rgba(0, 212, 255, 0.08);
    backdrop-filter: blur(8px);
}

.delivery-card--wide {
    max-width: 560px;
    margin: 0 auto;
}

.delivery-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.45rem, 4vw, 1.85rem);
    text-align: center;
    color: #fff;
    text-shadow: 0 0 16px rgba(0, 212, 255, 0.35);
}

.delivery-title--sm {
    font-size: 1.25rem;
    text-align: left;
}

.delivery-intro {
    margin: 0 0 1.1rem;
    text-align: center;
    color: #b8d9f5;
    font-size: 0.98rem;
}

.delivery-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.delivery-input-wrap {
    position: relative;
}

.delivery-input {
    width: 100%;
    padding: 0.95rem 3rem 0.95rem 1rem;
    border-radius: 12px;
    border: 2px solid #00d4ff;
    background: rgba(2, 10, 30, 0.85);
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.18);
}

.delivery-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.25), 0 0 24px rgba(0, 212, 255, 0.25);
}

.delivery-input__icon {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.85;
}

.delivery-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0.95rem 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    color: #081224;
    background: linear-gradient(90deg, #00e5ff 0%, #ff9f43 100%);
    box-shadow: 0 8px 0 #c56d12, 0 14px 28px rgba(255, 159, 67, 0.25);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    text-decoration: none;
}

.delivery-btn:hover {
    transform: translateY(-1px);
}

.delivery-btn:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0 #c56d12, 0 8px 16px rgba(255, 159, 67, 0.2);
}

.delivery-btn--secondary,
.delivery-btn--ghost {
    margin-top: 0.75rem;
    background: transparent;
    color: #9fe8ff;
    border: 1px solid rgba(0, 212, 255, 0.45);
    box-shadow: none;
}

.delivery-btn--ghost:active,
.delivery-btn--secondary:active {
    transform: none;
}

.delivery-error,
.delivery-alert {
    margin: 0;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    font-size: 0.92rem;
}

.delivery-error {
    color: #ffb4b4;
    background: rgba(255, 70, 70, 0.12);
    border: 1px solid rgba(255, 120, 120, 0.35);
}

.delivery-choices {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0.75rem 0 0.25rem;
}

.delivery-choices__intro {
    margin: 0;
    font-size: 0.92rem;
    color: #b8e8ff;
}

.delivery-choice-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.35);
    background: rgba(2, 10, 30, 0.65);
    color: #e8f7ff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.delivery-choice-btn:hover,
.delivery-choice-btn.is-selected {
    border-color: rgba(0, 229, 255, 0.75);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.18);
}

.delivery-choice-btn__title {
    font-weight: 600;
    font-size: 0.95rem;
}

.delivery-choice-btn__subtitle {
    font-size: 0.82rem;
    color: #8ecae6;
}

.delivery-alert {
    color: #ffd9a8;
    background: rgba(255, 159, 67, 0.12);
    border: 1px solid rgba(255, 159, 67, 0.35);
    margin-bottom: 0.85rem;
}

.delivery-alert--info {
    color: #b8e7ff;
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.25);
}

.delivery-whatsapp {
    margin-top: 1.1rem;
    text-align: center;
}

.delivery-whatsapp--link-only {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.delivery-whatsapp__btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #25d366;
    color: #053319;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.delivery-whatsapp__btn:hover {
    transform: translateY(-1px);
    color: #021a0d;
}

.delivery-whatsapp__btn-icon {
    flex-shrink: 0;
}

.delivery-footer {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.82rem;
    color: #7daee0;
}

.summary-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.marketplace-badge {
    display: inline-flex;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.marketplace-badge--trendyol {
    background: rgba(242, 122, 26, 0.18);
    color: #ffb27a;
    border: 1px solid rgba(242, 122, 26, 0.45);
}

.marketplace-badge--hepsiburada {
    background: rgba(255, 96, 0, 0.18);
    color: #ffc099;
    border: 1px solid rgba(255, 96, 0, 0.45);
}

.summary-meta {
    display: grid;
    gap: 0.55rem;
    margin: 0 0 1rem;
}

.summary-meta div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-meta dt {
    margin: 0;
    color: #8ebce6;
    font-size: 0.88rem;
}

.summary-meta dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
}

.summary-products-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    color: #d7ecff;
}

.product-grid {
    display: grid;
    gap: 0.75rem;
}

.product-card-form {
    margin: 0;
}

.product-card {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 14px;
    padding: 0.9rem;
    background: rgba(4, 14, 38, 0.75);
    color: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.product-card:hover {
    border-color: rgba(0, 212, 255, 0.65);
    transform: translateY(-1px);
}

.product-card--static {
    cursor: default;
}

.product-card--email {
    cursor: default;
}

.product-card--email:hover {
    transform: none;
}

.product-card__email {
    margin: 0.35rem 0 0.6rem;
    font-weight: 700;
    color: #f3fbff;
}

.product-card__head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.product-card__head h3 {
    margin: 0;
    font-size: 0.98rem;
}

.product-card__meta {
    margin: 0.45rem 0 0;
    color: #9ec7ea;
    font-size: 0.88rem;
}

.product-card__cta {
    display: inline-block;
    margin-top: 0.55rem;
    color: #66e7ff;
    font-size: 0.88rem;
    font-weight: 600;
}

.product-card--license {
    cursor: default;
}

.product-card--license:hover {
    transform: none;
    border-color: rgba(0, 212, 255, 0.25);
}

.product-card__license-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    color: #081224;
    background: linear-gradient(90deg, #00e5ff 0%, #ff9f43 100%);
    box-shadow: 0 4px 14px rgba(0, 229, 255, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.product-card__license-btn:hover {
    transform: translateY(-1px);
}

.product-card__license-btn:active {
    transform: translateY(1px);
}

.product-card__note {
    margin: 0.55rem 0 0;
    color: #ffc89a;
    font-size: 0.85rem;
}

.product-badge {
    white-space: nowrap;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.product-badge--waiting,
.product-badge--partial {
    background: rgba(0, 212, 255, 0.12);
    color: #8be9ff;
}

.product-badge--delivered {
    background: rgba(76, 217, 100, 0.15);
    color: #9ef0ad;
}

.product-badge--preparing {
    background: rgba(255, 193, 7, 0.15);
    color: #ffe082;
}

.product-badge--unmapped {
    background: rgba(255, 99, 132, 0.15);
    color: #ffb3c1;
}

.delivery-success {
    margin: 0 0 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(76, 217, 100, 0.1);
    border: 1px solid rgba(76, 217, 100, 0.25);
    color: #bdf5c8;
    font-size: 0.92rem;
}

.license-keys {
    display: grid;
    gap: 0.65rem;
    margin: 0.85rem 0;
}

.license-key-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.license-key {
    flex: 1;
    display: block;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: #fff;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.88rem;
    word-break: break-all;
}

.copy-btn {
    flex-shrink: 0;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.35);
    background: rgba(0, 212, 255, 0.08);
    color: #9fe8ff;
    cursor: pointer;
    font-size: 0.82rem;
}

.install-content {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.install-content h2 {
    margin: 0 0 0.65rem;
    font-size: 1rem;
}

.install-content__body {
    color: #d3e9fb;
    font-size: 0.92rem;
}

.install-content__body a {
    color: #7fe4ff;
}

.license-notice {
    margin: 0.85rem 0 0;
    font-size: 0.85rem;
    color: #ffc89a;
}

.product-step-panel {
    margin-bottom: 1rem;
}

.product-step-panel[hidden],
.product-grid[hidden] {
    display: none !important;
}

.delivery-email-prompt {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    color: #f3fbff;
}

.delivery-email-hint {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: #b8daf0;
}

.delivery-email-form .form-field {
    margin-bottom: 0.85rem;
}

.delivery-email-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: #d3e9fb;
}

.delivery-email-form input[type="email"] {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.25);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 1rem;
}

.delivery-email-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.delivery-email-info {
    margin-bottom: 1rem;
    white-space: normal;
}

.product-card__note {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: #ffc89a;
}

@media (max-width: 480px) {
    .delivery-shell {
        padding-top: 1rem;
    }

    .license-key-row {
        flex-direction: column;
        align-items: stretch;
    }

    .copy-btn {
        width: 100%;
    }
}
