@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,700;0,9..144,900;1,9..144,300&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --yn-bg: #f5f7ff;
    --yn-bg-alt: #eef2ff;
    --yn-surface: #ffffff;
    --yn-text: #0f1c3f;
    --yn-text-muted: #64748b;
    --yn-text-faint: #94a3b8;
    --yn-blue: #293d75;
    --yn-orange: rgb(217, 78, 33);
    --yn-blue-mid: #1e40af;
    --yn-blue-soft: rgba(29, 78, 216, 0.07);
    --yn-gold: #d97706;
    --yn-border: rgba(15, 28, 63, 0.08);
    --yn-border-mid: rgba(15, 28, 63, 0.12);
    --yn-shadow-sm: 0 2px 8px rgba(15, 28, 63, 0.06);
    --yn-shadow-md: 0 8px 32px rgba(15, 28, 63, 0.09);
    --yn-shadow-lg: 0 16px 56px rgba(15, 28, 63, 0.13);
}

/* ─── Reset & layout ─────────────────────────────────────── */
#order-standard_cart .cart-body {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
}

#order-standard_cart .row {
    margin: 0;
}

.cpd-page {
    min-height: 100vh;
    background: #f0f4ff;
    background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, .12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(14, 165, 233, .07) 0%, transparent 60%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 100px;
}

.cpd-wrap {
    width: 100%;
    max-width: 680px;
}

/* ─── Hero ─────────────────────────────────────────── */
.cpd-hero {
    text-align: center;
    margin-bottom: 48px;
}

.cpd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, .08);
    border: 1px solid rgba(99, 102, 241, .18);
    border-radius: 100px;
    padding: 5px 14px;
    margin-bottom: 22px;
    font-size: 12px;
    font-weight: 600;
    color: rgb(41 61 117);
    letter-spacing: .03em;
}

.cpd-hero-badge span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgb(41 61 117);
    display: inline-block;
    animation: cpd-pulse 2s ease-in-out infinite;
}

@keyframes cpd-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: .4;
        transform: scale(.75);
    }
}

.cpd-hero-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(32px, 3.8vw, 54px);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -1.5px;
    color: var(--yn-text);
    font-optical-sizing: none;
    font-variation-settings: 'opsz' 9;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}

.cpd-hero-title em {
    font-style: italic;
    font-weight: 300;
    color: var(--yn-orange);
}

.cpd-hero-sub {
    font-size: 16px;
    color: #64748b;
    line-height: 1.65;
    max-width: 440px;
    margin: 0 auto;
}

/* ─── Arama kartı ─────────────────────────────────── */
.cpd-search-card {
    background: #fff;
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .06), 0 4px 6px -1px rgba(15, 23, 42, .05), 0 20px 40px -8px rgba(99, 102, 241, .12);
    margin-bottom: 12px;
}

.cpd-search-row {
    display: flex;
    align-items: stretch;
    border-radius: 14px;
    overflow: hidden;
    background: #f8faff;
    border: 1.5px solid #e0e7ff;
    transition: border-color .2s, box-shadow .2s;
}

.cpd-search-row:focus-within {
    border-color: rgb(41 61 117);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .1);
    background: #fff;
}

.cpd-search-icon {
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: #a5b4fc;
    font-size: 18px;
    flex-shrink: 0;
    transition: color .2s;
}

.cpd-search-row:focus-within .cpd-search-icon {
    color: rgb(41 61 117);
}

.cpd-search-input {
    flex: 1;
    min-width: 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    height: 56px !important;
    padding: 0 4px !important;
    color: #0f172a !important;
    outline: none;
}

.cpd-search-input::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

.cpd-search-btn {
    flex-shrink: 0;
    margin: 5px;
    border-radius: 10px !important;
    border: none !important;
    background: rgb(41 61 117);
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 0 24px !important;
    height: 46px !important;
    cursor: pointer !important;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(99, 102, 241, .35);
    transition: opacity .15s, box-shadow .15s, transform .1s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cpd-search-btn:hover {
    opacity: .9;
    box-shadow: 0 4px 16px rgba(99, 102, 241, .45);
    transform: translateY(-1px);
}

.cpd-search-btn:active {
    transform: translateY(0);
}

.cpd-search-btn .btn-spinner {
    display: none;
}

.cpd-search-btn.loading .btn-arrow {
    display: none;
}

.cpd-search-btn.loading .btn-spinner {
    display: inline-block;
    animation: cpd-spin .8s linear infinite;
}

@keyframes cpd-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── TLD row ─────────────────────────────────────── */
.cpd-tld-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 4px;
    flex-wrap: wrap;
}

.cpd-tld-hint {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.cpd-tld-quick {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.cpd-tld-quick-btn {
    font-size: 12px;
    font-weight: 600;
    color: rgb(41 61 117);
    background: rgba(99, 102, 241, .07);
    border: 1px solid rgba(99, 102, 241, .15);
    border-radius: 6px;
    padding: 3px 9px;
    cursor: pointer;
    transition: all .12s;
}

.cpd-tld-quick-btn:hover {
    background: rgb(41 61 117);
    color: #fff;
    border-color: rgb(41 61 117);
}

/* ─── Paneller ────────────────────────────────────── */
.cpd-panel {
    border-radius: 14px;
    padding: 14px 18px;
    display: none;
    margin-top: 10px;
    animation: cpd-fadein .18s ease;
}

@keyframes cpd-fadein {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.cpd-panel.panel-tld {
    background: #fff;
    border: 1.5px solid #e0e7ff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, .08);
}

.cpd-panel.panel-error {
    background: #fff5f5;
    border: 1.5px solid #fecaca;
}

.cpd-panel-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cpd-panel.panel-tld .cpd-panel-label {
    color: rgb(41 61 117);
}

.cpd-panel.panel-error .cpd-panel-label {
    color: #dc2626;
}

.cpd-tld-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cpd-tld-chip {
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid #e0e7ff;
    background: #f8faff;
    color: rgb(41 61 117);
    cursor: pointer;
    transition: all .12s;
}

.cpd-tld-chip:hover {
    background: rgb(41 61 117);
    color: #fff;
    border-color: rgb(41 61 117);
    transform: translateY(-1px);
}

/* ─── Extra kartlar (incart, subdomain) ───────────── */
.cpd-extra-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.cpd-extra-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .04);
    transition: border-color .15s, box-shadow .15s;
}

.cpd-extra-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 16px rgba(99, 102, 241, .08);
}

.cpd-extra-card.card-active {
    border-color: #a5b4fc;
    box-shadow: 0 4px 20px rgba(99, 102, 241, .13);
}

.cpd-extra-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.cpd-extra-label {
    display: flex !important;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    cursor: pointer;
    font-weight: normal !important;
    margin: 0;
    user-select: none;
}

.cpd-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: rgb(41 61 117);
    transition: background .15s, transform .15s;
}

.cpd-extra-card.card-active .cpd-card-icon {
    background: linear-gradient(135deg, rgb(41 61 117), #818cf8);
    color: #fff;
    transform: scale(1.05);
}

.cpd-card-text {
    flex: 1;
    min-width: 0;
}

.cpd-card-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.cpd-card-desc {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.cpd-card-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}

.cpd-card-radio::after {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transition: opacity .12s;
}

.cpd-extra-card.card-active .cpd-card-radio {
    border-color: rgb(41 61 117);
    background: rgb(41 61 117);
}

.cpd-extra-card.card-active .cpd-card-radio::after {
    opacity: 1;
}

.cpd-card-body {
    padding: 0 18px 16px;
    border-top: 1px solid #f1f5f9;
    background: #fafbff;
    display: none;
}

.cpd-card-body.open {
    display: block;
}

.cpd-card-input-row {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #e0e7ff;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    margin-top: 12px;
    transition: border-color .15s, box-shadow .15s;
}

.cpd-card-input-row:focus-within {
    border-color: rgb(41 61 117);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .1);
}

.cpd-card-addon {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #eef2ff;
    color: #818cf8;
    font-size: 12px;
    font-weight: 700;
    border-right: 1.5px solid #e0e7ff;
    white-space: nowrap;
    flex-shrink: 0;
}

.cpd-card-input-row .form-control {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    flex: 1;
    min-width: 0;
    font-size: 14px !important;
    height: 44px !important;
    padding: 0 12px !important;
    color: #0f172a !important;
}

.cpd-card-input-row .form-control::placeholder {
    color: #94a3b8 !important;
}

.cpd-card-sel {
    flex: 0 0 110px !important;
    width: 110px !important;
    height: 44px !important;
    border: none !important;
    border-left: 1.5px solid #e0e7ff !important;
    border-radius: 0 !important;
    background: #eef2ff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 0 8px !important;
    color: #4338ca !important;
    cursor: pointer !important;
}

.cpd-card-submit {
    flex-shrink: 0;
    border-radius: 0 !important;
    border: none !important;
    border-left: 1.5px solid rgba(99, 102, 241, .2) !important;
    padding: 0 18px !important;
    height: 44px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    white-space: nowrap;
    background: linear-gradient(135deg, rgb(41 61 117), #4f46e5) !important;
    color: #fff !important;
}

/* ─── Free domain notu ────────────────────────────── */
.cpd-free-note {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.cpd-free-note i {
    color: #a5b4fc;
}

/* ─── Sonuç alanı ─────────────────────────────────── */
#DomainSearchResults {
    margin-top: 28px;
}

#searchDomainInfo {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .05);
    margin-bottom: 14px;
}

#primaryLookupSearching {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

#primaryLookupSearching .fa-spin {
    color: rgb(41 61 117);
}

.domain-checker-available {
    color: #059669;
    font-weight: 700;
}

.domain-checker-unavailable {
    color: #dc2626;
    font-weight: 700;
}

#primaryLookupResult .headline {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

/* Alternatif aksiyonlar — görünürlüğü JS/WHMCS yönetir, burada sadece stil */
/* ── Unavailable domain actions ───────────────────────────────────── */
#cpdUnavailActions {
    max-width: 480px;
    margin: 18px auto 4px;
    padding-top: 16px;
    border-top: 1px solid var(--yn-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cpd-alt-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--yn-border-mid);
    background: var(--yn-surface);
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    box-shadow: var(--yn-shadow-sm);
    text-align: left;
    color: var(--yn-text);
}

.cpd-alt-btn .btn-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
}

.cpd-alt-btn .btn-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 17px;
    transition: transform .15s ease;
}

.cpd-alt-btn .btn-title {
    flex: 1;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.cpd-alt-btn .btn-arrow {
    font-size: 16px;
    opacity: .35;
    transition: transform .15s ease, opacity .15s ease;
    flex-shrink: 0;
}

.cpd-alt-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--yn-shadow-md);
}

.cpd-alt-btn:hover .btn-icon-badge {
    transform: scale(1.06);
}

.cpd-alt-btn:hover .btn-arrow {
    transform: translateX(2px);
    opacity: .75;
}

.cpd-alt-btn:active {
    transform: none;
    box-shadow: var(--yn-shadow-sm);
}

/* Transfer */
.cpd-alt-btn.btn-transfer {
    border-color: #bfdbfe;
}

.cpd-alt-btn.btn-transfer .btn-icon-badge {
    background: #eff6ff;
    color: #2563eb;
}

.cpd-alt-btn.btn-transfer:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}

/* Own-domain */
.cpd-alt-btn.btn-owndomain {
    border-color: #ddd6fe;
}

.cpd-alt-btn.btn-owndomain .btn-icon-badge {
    background: #f5f3ff;
    color: #7c3aed;
}

.cpd-alt-btn.btn-owndomain:hover {
    border-color: #c4b5fd;
    background: #faf8ff;
}

#btnDomainContinue {
    margin-top: 24px;
    padding: 14px 48px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    letter-spacing: .02em;
    background: linear-gradient(135deg, rgb(41 61 117), #4f46e5) !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, .35);
}

@media (max-width: 480px) {
    .cpd-hero-title {
        font-size: 26px;
    }

    .cpd-search-btn {
        padding: 0 16px !important;
        font-size: 13px !important;
    }

    .cpd-search-btn span:not(.btn-arrow):not(.btn-spinner) {
        display: none;
    }
}