/* Global Body Style */
body {
    background-color: #050505 !important;
    color: #fff !important;
}

/* Modern Glassmorphism Alerts */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Error Alert */
.alert-danger, .alert-error {
    background: rgba(239, 68, 68, 0.1); /* Red-500 with opacity */
    color: #fca5a5; /* Red-300 */
    border-color: rgba(239, 68, 68, 0.2);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.1);
}

/* Success Alert */
.alert-success {
    background: rgba(34, 197, 94, 0.1); /* Green-500 with opacity */
    color: #86efac; /* Green-300 */
    border-color: rgba(34, 197, 94, 0.2);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.1);
}

/* Warning Alert */
.alert-warning {
    background: rgba(234, 179, 8, 0.1); /* Yellow-500 with opacity */
    color: #fde047; /* Yellow-300 */
    border-color: rgba(234, 179, 8, 0.2);
    box-shadow: 0 4px 20px rgba(234, 179, 8, 0.1);
}

/* Info Alert */
.alert-info {
    background: rgba(59, 130, 246, 0.1); /* Blue-500 with opacity */
    color: #93c5fd; /* Blue-300 */
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

/* Linkleri Alert Rengiyle Uyumlu Yap */
.alert a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
}
.alert a:hover {
    opacity: 0.8;
}

.credit-usage-label.active {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    opacity: 0.7;
}

/* 
   ----------------------------------------
   Custom Checkbox Design (Dark/Glass Theme)
   ----------------------------------------
*/
input[type="checkbox"]:not(.sr-only) {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem; /* Sabit boyut garantisi */
    min-height: 1.25rem; /* Sabit boyut garantisi */
    flex-shrink: 0; /* Flex içinde sıkışmayı önler */
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hover State */
input[type="checkbox"]:not(.sr-only):hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(168, 85, 247, 0.5); /* Purple-500 opacity */
}

/* Checked State */
input[type="checkbox"]:not(.sr-only):checked {
    background-color: #a855f7; /* Purple-500 */
    border-color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

/* Checkmark Icon */
input[type="checkbox"]:not(.sr-only):checked::after {
    content: '';
    width: 0.35rem;
    height: 0.7rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
    opacity: 1;
}

/* Focus State */
input[type="checkbox"]:not(.sr-only):focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15);
}

/* 
   ----------------------------------------
   Testimonial Marquee Animation (Swiper Replacement)
   ----------------------------------------
*/
.testimonial-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
    /* Masking for fade effect on edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonial-marquee-content {
    display: flex;
    width: max-content;
    animation: testimonial-marquee 40s linear infinite;
    gap: 0; /* Gap is handled by padding in items */
}

.testimonial-marquee-content.reverse {
    animation: testimonial-marquee-reverse 45s linear infinite;
}

.testimonial-marquee-item {
    flex-shrink: 0;
    /* Width is defined in HTML classes */
}

/* Pause animation on hover */
.testimonial-marquee-container:hover .testimonial-marquee-content {
    animation-play-state: paused;
}

@keyframes testimonial-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes testimonial-marquee-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Card Shine Effect */
.card-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
    background: none;
    transition: background 0.1s;
    mix-blend-mode: overlay;
}

/* 
   ----------------------------------------
   Logo Marquee Animation (Referanslar)
   ----------------------------------------
*/
.animate-marquee-scroll {
    display: flex;
    animation: marquee-scroll 30s linear infinite;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pause on hover */
.group:hover .animate-marquee-scroll {
    animation-play-state: paused;
}

.before-checkout-section .tab-content {
    display: none;
}

.before-checkout-section .tab-content.active {
    display: block;
}

.before-checkout-section .step-item {
    cursor: pointer;
    transition: opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.before-checkout-section .step-item:not(.active) {
    opacity: 0.55;
    cursor: not-allowed;
}

.before-checkout-section .step-item.current {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

.before-checkout-section .step-item.current .step-number {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

.before-checkout-section .domain-info-text {
    display: none;
}

.before-checkout-section .domain-info-text.active {
    display: flex;
}

.before-checkout-section .domain-extra-item {
    position: relative;
}

.before-checkout-section .domain-extra-item.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.before-checkout-section .domain-extra-item.active {
    border-color: rgba(168, 85, 247, 0.55) !important;
    background-color: rgba(168, 85, 247, 0.08) !important;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.12);
}

.before-checkout-section .domain-extra-check {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.before-checkout-section .domain-extra-item.active .domain-extra-check {
    opacity: 1;
    transform: scale(1);
}

.before-checkout-section .payment-option.active {
    border-color: rgba(168, 85, 247, 0.55) !important;
    background-color: rgba(168, 85, 247, 0.08) !important;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.12);
}

.before-checkout-section .hosting-option.active {
    border-color: rgba(168, 85, 247, 0.55) !important;
    background-color: rgba(168, 85, 247, 0.08) !important;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.12);
}


.prose {
    white-space: pre-wrap;
}

.help-div-pricing {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.help-div-pricing-trigger {
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    user-select: none;
}

.help-div-pricing-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(var(--primary-rgb), 0.35);
    color: #fff;
    transform: scale(1.05);
}

.help-div-pricing-trigger:active {
    transform: scale(0.98);
}

.help-div-pricing-trigger:focus {
    outline: none;
}

.help-div-pricing-trigger:focus-visible {
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.18);
    border-color: rgba(var(--primary-rgb), 0.45);
}

.help-div-pricing-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 9999;
    width: max-content;
    max-width: min(520px, calc(100vw - 2rem));
    padding: 14px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.85);
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
}

.help-div-pricing-tooltip::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: rgba(0, 0, 0, 0.9);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.help-div-pricing:hover .help-div-pricing-tooltip,
.help-div-pricing:focus-within .help-div-pricing-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.help-div-pricing.is-open .help-div-pricing-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.help-div-pricing-tooltip a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
}

.help-div-pricing-tooltip iframe,
.help-div-pricing-tooltip video {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    aspect-ratio: 16 / 9;
}

@media (max-width: 640px) {
    .mobile-feature-card .help-div-pricing {
        position: static;
    }

    .help-div-pricing-tooltip {
        left: 0;
        transform: translateX(0) translateY(8px) scale(0.98);
        right: 0;
        margin: 0 auto;
    }
    .help-div-pricing:hover .help-div-pricing-tooltip,
    .help-div-pricing:focus-within .help-div-pricing-tooltip {
        transform: translateX(0) translateY(0) scale(1);
    }
    .help-div-pricing.is-open .help-div-pricing-tooltip {
        transform: translateX(0) translateY(0) scale(1);
    }
    .help-div-pricing-tooltip::before {
        left: 14px;
        transform: rotate(45deg);
    }

    .mobile-feature-card .help-div-pricing-tooltip {
        top: 50%;
        left: 50%;
        right: auto;
        margin: 0;
        transform: translate(-50%, -50%) scale(0.98);
        max-width: calc(100% - 2rem);
    }

    .mobile-feature-card .help-div-pricing.is-open .help-div-pricing-tooltip {
        transform: translate(-50%, -50%) scale(1);
    }

    .mobile-feature-card .help-div-pricing-tooltip::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .help-div-pricing-trigger,
    .help-div-pricing-tooltip {
        transition: none;
    }
}
