/* Newsletter Modal Base */
.newsletter-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    max-width: 90vw;
    background: rgba(15, 16, 19, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 40px;
    padding: 20px 80px 20px 60px;
    /* Reduced vertical padding */
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    height: 200px;
    /* Reduced initial height */
}

.newsletter-modal.step-2-active,
.newsletter-modal.step-3-active {
    height: 340px;
    /* Reduced to remove extra space */
}

.newsletter-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.newsletter-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    padding: 40px 80px 40px 60px;
    /* Reduced vertical padding */
    display: flex;
    align-items: center;
}

.newsletter-step.visible {
    opacity: 1;
    visibility: visible;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.newsletter-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 300;
    text-align: left;
}

/* Arrows */
.newsletter-next-btn,
.newsletter-submit-btn,
.newsletter-prev-btn {
    position: absolute;
    width: 95px;
    height: 70px;
    background: #e2e2e2;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.newsletter-next-btn,
.newsletter-submit-btn {
    right: -50px;
    border-radius: 35px 0 0 35px;
    justify-content: flex-start;
    padding-left: 25px;
}

.newsletter-prev-btn {
    left: -50px;
    border-radius: 0 35px 35px 0;
    justify-content: flex-end;
    padding-right: 25px;
}

.newsletter-next-btn i,
.newsletter-submit-btn i,
.newsletter-prev-btn i {
    color: #000;
    font-size: 1.2rem;
}

.newsletter-next-btn:hover,
.newsletter-submit-btn:hover {
    right: -42px;
    background: #ffffff;
}

.newsletter-prev-btn:hover {
    left: -42px;
    background: #ffffff;
}

/* Form Styling */
.newsletter-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.newsletter-header h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 600;
}

.newsletter-header p {
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    line-height: 1.5 !important;
}

.newsletter-email-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.newsletter-email-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-code-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    color: #fff;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 2rem;
    letter-spacing: 12px;
    text-indent: 12px;
    /* Dengeleyici boşluk, metni tam ortalar */
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
    font-weight: 600;
}

.newsletter-code-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.newsletter-privacy {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.newsletter-checkbox {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin-top: 3px;
    flex-shrink: 0;
}

.newsletter-checkbox:checked {
    background: #fff;
    border-color: #fff;
}

.newsletter-checkbox:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: #000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.newsletter-privacy label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    line-height: 1.4;
    white-space: nowrap;
}

/* Custom Notifications */
.toast-container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100002;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #191a1e;
    border: none;
    color: #fff;
    padding: 15px 35px;
    border-radius: 0 0 20px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: auto;
    text-align: center;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.privacy-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: var(--primary);
}

/* Privacy Modal */
.privacy-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    max-width: 90vw;
    height: 70vh;
    background: rgba(15, 16, 19, 0.99);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    border-radius: 30px;
    z-index: 100001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9);
}

.privacy-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.privacy-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 40px;
}

.privacy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.privacy-header h2 {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 600;
}

.privacy-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

.privacy-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.privacy-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 15px;
}

.privacy-body::-webkit-scrollbar {
    width: 4px;
}

.privacy-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.privacy-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.privacy-body h3 {
    font-size: 1.1rem;
    color: #fff;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.privacy-body p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 15px;
}

.newsletter-trigger {
    cursor: pointer;
    transition: color 0.3s ease;
}

.newsletter-trigger:hover {
    color: var(--primary) !important;
}

/* Background Dim for Modal */
.modal-dim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-dim.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===================== */
/* Newsletter Reminder    */
/* ===================== */
.nl-reminder {
    position: fixed;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(18, 18, 22, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 14px 18px;
    z-index: 99998;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    min-width: 340px;
    max-width: 90vw;
    transition: bottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    opacity: 0;
}

.nl-reminder.nl-show {
    bottom: 28px;
    opacity: 1;
}

.nl-reminder.nl-hide {
    bottom: -120px;
    opacity: 0;
}

.nl-reminder-icon {
    font-size: 1.5rem;
    color: #a78bfa;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(167, 139, 250, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nl-reminder-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.nl-reminder-content strong {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.nl-reminder-content span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-family: 'Outfit', sans-serif;
}

.nl-reminder-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nl-reminder-actions button:first-child {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 7px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: opacity 0.2s;
}

.nl-reminder-actions button:first-child:hover {
    opacity: 0.85;
}

.nl-reminder-actions button:last-child {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background 0.2s, color 0.2s;
}

.nl-reminder-actions button:last-child:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}