/* ==================== REGISTER MODAL - Beta2 Tasarımı %100 Uyarlanmış ==================== */

/* 1. DEĞİŞKENLER & TEMEL AYARLAR - Referans HTML ile Aynı */
:root {
    --register-bg-body: #0a0a0a;
    --register-bg-card: #141414;
    --register-bg-input: #1c1c1c;
    --register-primary: #D4AF37;
    --register-text-main: #f0f0f0;
    --register-text-muted: #808080;
    --register-text-placeholder: #555555;
    --register-border: #333333;
    --register-border-focus: #D4AF37;
    --register-error: #ff4444;

    --register-input-height: clamp(36px, 5.2vh, 48px);
    --register-radius: 8px;
    --register-gap-y: clamp(10px, 2vh, 18px);
    --register-label-height: 14px;
    --register-label-margin: 4px;
    --register-font-size: clamp(14px, 1.6vh, 16px);
}

@media (max-height: 700px) {
    :root {
        --register-input-height: clamp(36px, 5.2vh, 42px);
        --register-gap-y: clamp(10px, 2vh, 12px);
    }
}

/* Global reset sadece modal içinde - diğer stilleri etkilemesin */
.register-modal-overlay *,
.register-modal-content * {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* 2. MODAL OVERLAY & CONTENT */
.register-modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: registerFadeIn 0.3s ease;
    overflow: hidden;
}

/* Responsive overlay padding */
@media (max-width: 480px) {
    .register-modal-overlay {
        padding: 10px;
    }
}

.register-modal-overlay::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.04) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

@keyframes registerFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.register-modal-content {
    background: var(--register-bg-card);
    border: 1px solid var(--register-border);
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    max-height: 98vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 21;
    animation: registerSlideUp 0.3s ease;
    overflow: hidden;
}

@keyframes registerSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar gizle */
::-webkit-scrollbar {
    display: none;
}

* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 3. MODAL HEADER */
.register-modal-header {
    padding: clamp(15px, 3vh, 25px) 20px 0 20px;
    text-align: center;
    flex-shrink: 0;
    position: relative;
}

.register-modal-title {
    color: var(--register-primary);
    font-size: clamp(1rem, 2.2vh, 1.2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.2;
}

/* Override specificity */
#register-modal .register-modal-title,
.register-modal-content .register-modal-title,
#register-modal-title {
    font-size: clamp(1rem, 2.2vh, 1.2rem) !important;
    font-weight: 800 !important;
    color: var(--register-primary) !important;
}

/* Gold-text gradient efekti */
.register-modal-title.gold-text {
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700, #FFA500);
    background-size: 300% 300%;
    animation: register-gradient-shift 3s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes register-gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.register-modal-close {
    position: absolute;
    top: 16px;
    left: 452px;
    right: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-image: none;
    color: var(--register-text-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30%;
    transition: all 0.2s ease;
}

.register-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--register-text-main);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.register-modal-close:active {
    transform: scale(0.95);
}

.register-modal-close:focus-visible {
    outline: 2px solid var(--register-border-focus);
    outline-offset: 2px;
}

/* 4. FORM CONTAINER - Referans HTML ile Aynı */
#register-form {
    padding: 0 clamp(15px, 4vw, 25px) clamp(15px, 3vh, 25px) clamp(15px, 4vw, 25px);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
}

/* 5. INPUTLAR & ETİKETLER - Referans HTML ile Aynı */
.register-field-group {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-top: var(--register-gap-y);
}

.register-label-style {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.7rem;
    color: var(--register-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    height: var(--register-label-height);
    margin-bottom: var(--register-label-margin);
    letter-spacing: 0.5px;
}

/* İlk field-group için margin-top kaldır */
#register-form>.register-field-group:first-child {
    margin-top: 0;
}

.register-req {
    color: var(--register-primary);
}

.register-input-universal {
    height: var(--register-input-height);
    width: 100%;
    background: var(--register-bg-input);
    border: 1px solid var(--register-border);
    border-radius: var(--register-radius);
    color: var(--register-text-main);
    font-size: var(--register-font-size);
    transition: 0.2s;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.register-input-universal:focus-within,
.register-input-universal:focus {
    border-color: var(--register-border-focus);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

/* Klavye navigasyonu için görünür outline */
.register-input-universal:focus-visible {
    outline: 2px solid var(--register-border-focus);
    outline-offset: 2px;
}

input.register-input-universal {
    padding: 0 12px;
    text-align: center;
    font-size: var(--register-font-size);
    font-family: inherit;
}

input.register-input-universal::placeholder {
    color: var(--register-text-placeholder);
    opacity: 1;
}

select.register-input-universal {
    padding: 0 30px 0 12px;
    appearance: none;
    text-align-last: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23808080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    font-size: var(--register-font-size);
    font-family: inherit;
}

select.register-input-universal:disabled {
    opacity: 0.5;
    background-color: #111;
    cursor: not-allowed;
}

/* Custom Select Wrapper (Şehir arama için) */
.register-custom-select-wrapper {
    position: relative;
    width: 100%;
}

.register-custom-select-trigger {
    padding: 0 30px 0 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23808080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.register-custom-select-trigger.no-arrow {
    background-image: none !important;
    padding-right: 12px !important;
}

.register-custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #252525;
    border: 1px solid var(--register-primary);
    border-radius: 8px;
    z-index: 10003;
    /* Modal içinde en üstte olmalı */
    max-height: 200px;
    overflow-y: auto;
    display: none;
    margin-top: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.register-custom-options.show {
    display: block;
    animation: registerFadeInDropdown 0.2s;
}

@keyframes registerFadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-custom-option {
    padding: 10px 15px;
    cursor: pointer;
    color: #ddd;
    font-size: 0.9rem;
    border-bottom: 1px solid #333;
    text-align: left;
    transition: all 0.2s ease;
}

.register-custom-option:hover {
    background: rgba(212, 175, 55, 0.2);
    color: #fff;
}

.register-custom-option.selected {
    background: var(--register-primary);
    color: #000;
    font-weight: bold;
}

.register-no-result {
    padding: 10px;
    color: #888;
    font-style: italic;
    text-align: center;
    font-size: 0.85rem;
}

/* Telefon Alanı */
.register-phone-wrapper-center {
    display: flex;
    justify-content: center;
    width: 100%;
}

.register-phone-container {
    padding: 0;
    overflow: hidden;
    max-width: 280px;
    width: 100%;
}

.register-phone-prefix {
    height: 100%;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--register-primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--register-border);
    min-width: 60px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.register-phone-prefix:hover {
    background: rgba(212, 175, 55, 0.1);
}

.register-phone-input-field {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    color: var(--register-text-main);
    font-size: 1rem;
    padding: 0 12px;
    font-family: inherit;
}

.register-phone-input-field::placeholder {
    color: var(--register-text-placeholder);
    opacity: 1;
}

/* Cinsiyet - Radyo Butonları */
.register-gender-group {
    padding: 3px;
    gap: 4px;
    border: 1px solid var(--register-border);
    background: var(--register-bg-input);
    border-radius: var(--register-radius);
    display: flex;
    height: var(--register-input-height);
    transition: border-color 0.2s ease;
}

.register-gender-group:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.register-gender-item {
    flex: 1;
    position: relative;
    height: 100%;
}

.register-gender-item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.register-gender-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.9rem;
    color: var(--register-text-muted);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

.register-gender-item input:checked+.register-gender-label {
    background: #2a2a2a;
    color: var(--register-primary);
    font-weight: 700;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.register-gender-label:hover {
    background: rgba(255, 255, 255, 0.05);
}

.register-gender-item input:focus-visible+.register-gender-label {
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    outline: 2px solid var(--register-border-focus);
    outline-offset: 2px;
}

.register-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Grid-2 responsive: Mobilde tek sütun, son field-group için margin-top ekle */
@media (max-width: 380px) {
    .register-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .register-grid-2>.register-field-group:last-child {
        margin-top: var(--register-gap-y);
    }
}

/* 6. ONAY KUTUSU - Referans HTML ile Aynı Tasarım */
.register-legal-box {
    margin-top: calc(var(--register-gap-y) + var(--register-label-height) + var(--register-label-margin));
    font-size: 0.68rem;
    color: var(--register-text-placeholder);
    border: 1px solid var(--register-border);
    background: rgba(255, 255, 255, 0.02);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1.4;
    transition: 0.3s;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    overflow: hidden;
}

.register-legal-box:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--register-border);
}

.register-legal-box.accepted,
.register-legal-box.register-accepted {
    background: rgba(212, 175, 55, 0.05);
    color: var(--register-text-main);
}

.register-consent-check {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--register-border);
    border-radius: 3px;
    background: var(--register-bg-input);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    pointer-events: none;
}

.register-consent-check:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--register-primary);
    font-size: 10px;
    font-weight: bold;
}

.register-legal-box span {
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.register-consent-label {
    flex: 1;
    font-size: 0.68rem;
    color: var(--register-text-placeholder);
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    margin: 0;
}

.register-details-link {
    color: var(--register-text-muted);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.register-details-link:hover {
    color: var(--register-primary);
}

/* Terms Modal */
.register-terms-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    /* Modal overlay'den (10000) yüksek olmalı */
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.register-terms-content {
    background: #1a1a1a;
    border: 1px solid var(--register-primary);
    padding: 25px;
    border-radius: 10px;
    width: 100%;
    max-width: 360px;
    text-align: left;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.register-terms-full-text {
    font-size: 0.8rem;
    color: #ddd;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
}

.register-consent-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.register-consent-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--register-border);
    border-radius: 4px;
    background: var(--register-bg-input);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.register-consent-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--register-primary);
    font-size: 12px;
    font-weight: bold;
}

.register-consent-item label {
    font-size: 0.75rem;
    color: #bbb;
    line-height: 1.4;
    cursor: pointer;
}

.register-btn-modal-approve {
    width: 100%;
    height: var(--register-input-height);
    background: linear-gradient(90deg, #B8860B, #D4AF37, #FFD700, #D4AF37, #B8860B);
    background-size: 200% auto;
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
    animation: goldFlow 3s linear infinite;
}

@keyframes goldFlow {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.register-btn-modal-approve:active {
    transform: scale(0.98);
}

/* 7. SUBMIT BUTTON - Referans HTML ile Aynı Tasarım */
/* 7. SUBMIT BUTTON - Fluid Gradient Design (V4) */
.register-btn-submit,
#register-submit-btn {
    margin-top: calc(var(--register-gap-y) + var(--register-label-height) + var(--register-label-margin));
    width: 100%;

    /* V4 Fluid Gradient Design (Compact Size Fix) */
    background: linear-gradient(90deg, #FFD700, #FDB931, #E5C100, #FFD700);
    background-size: 300% 100%;
    transition: 0.4s ease;

    /* Typography - Reverted to original compact size */
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    /* Shape & Box - Match input height exactly */
    padding: 0 20px;
    height: var(--register-input-height);
    min-height: auto;
    border: none;
    border-radius: 10px;
    /* User requested 10px */
    color: #000;
    cursor: pointer;

    /* Layout */
    display: flex;
    align-items: center;
    justify-content: center;

    /* No external animations */
    animation: none;
    box-shadow: none;
    flex-shrink: 0;
}

.register-btn-submit:hover,
#register-submit-btn:hover {
    background-position: 100% 0;
    /* Fluid shift effect */
    transform: scale(1.02);
}

.register-btn-submit:active,
#register-submit-btn:active {
    transform: scale(0.98);
}

.register-btn-submit:focus-visible,
#register-submit-btn:focus-visible {
    outline: 3px solid var(--register-border-focus);
    outline-offset: 3px;
}

.register-btn-submit:disabled,
#register-submit-btn:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
    animation: none;
    opacity: 0.6;
}

/* 8. HATA VE ANİMASYONLAR */
.register-has-error {
    border-color: var(--register-error) !important;
}

.register-shake-it {
    animation: registerShake 0.4s ease-in-out;
}

@keyframes registerShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Error Message Styling */
.register-error-message {
    display: none;
    color: var(--register-error);
    font-size: 0.75rem;
    margin-top: 6px;
    text-align: center;
    padding: 4px 8px;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 4px;
    /* Kırmızı sol border kaldırıldı */
}

.register-error-message[style*="display: block"],
.register-field-group.error .register-error-message {
    display: block !important;
}

.register-field-group.error input,
.register-field-group.error select,
.register-field-group.error .register-phone-container {
    border-color: var(--register-error) !important;
}

.register-field-group.error input:focus,
.register-field-group.error select:focus,
.register-field-group.error .register-phone-container:focus-within {
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.2) !important;
}

/* 9. SUCCESS EKRANI - Beta2 Tasarımı */
.register-glass-success-box,
#register-success-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 90% !important;
    max-width: 320px !important;
    padding: 40px 20px;
    background: rgba(30, 30, 30, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    z-index: 10003 !important;
    /* Modal overlay (10000) ve consent modal (10001)'den yüksek olmalı */
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    animation: registerPopInSuccess 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    box-sizing: border-box;
    margin: 0 !important;
}

.register-glass-success-box[style*="display: flex"],
#register-success-container[style*="display: flex"] {
    display: flex !important;
}

.register-success-title {
    color: var(--register-primary);
    font-size: 1.1rem !important;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* Responsive başlık boyutları */
@media (max-width: 480px) {
    .register-success-title {
        font-size: 1rem !important;
    }
}

@media (max-width: 380px) {
    .register-success-title {
        font-size: 0.95rem !important;
    }
}

.register-success-desc {
    color: #eee;
    font-size: 0.95rem;
    line-height: 1.5;
}

.register-checkmark-wrapper {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
}

.register-checkmark-svg {
    width: 70px;
    height: 70px;
    display: block;
    stroke-width: 2;
    stroke: var(--register-primary);
    stroke-miterlimit: 10;
    animation: registerFill 0.4s ease-in-out 0.4s forwards,
        registerScale 0.3s ease-in-out 0.9s both;
}

.register-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke: var(--register-primary);
    fill: none;
    animation: registerStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.register-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: registerStroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes registerPopInSuccess {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes registerStroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes registerScale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes registerFill {
    0% {
        fill: transparent;
    }

    100% {
        fill: var(--register-primary);
    }
}

.register-page-fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 2s ease-out;
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */

@media (max-width: 380px) {
    .register-grid-2 {
        grid-template-columns: 1fr;
        gap: var(--register-gap-y);
    }

    .register-modal-content {
        max-width: calc(100% - 20px);
        max-height: 96vh;
    }

    #register-form {
        padding: 8px 20px 20px 20px;
    }

    .register-modal-header {
        padding: 20px 20px 8px 20px;
    }

    .register-modal-title {
        font-size: 1.2rem !important;
    }
}

/* Küçük ekranlar için */
@media (max-width: 480px) {
    .register-modal-content {
        max-width: calc(100% - 20px);
        max-height: 96vh;
    }

    #register-form {
        padding: 8px 20px 20px 20px;
    }

    .register-modal-header {
        padding: 20px 20px 8px 20px;
    }

    .register-modal-title {
        font-size: 1.25rem !important;
    }
}

/* Dikey ekranlar (portrait) */
@media (max-height: 700px) and (orientation: portrait) {
    .register-modal-content {
        max-height: 96vh;
    }

    :root {
        --register-input-height: 42px;
        --register-gap-y: 12px;
    }
}

/* Yatay ekranlar (landscape) */
@media (max-height: 500px) and (orientation: landscape) {
    .register-modal-content {
        max-height: 96vh;
        max-width: 500px;
    }

    :root {
        --register-input-height: 40px;
        --register-gap-y: 10px;
    }

    #register-form {
        padding: 6px 20px 15px 20px;
    }

    .register-modal-header {
        padding: 15px 20px 6px 20px;
    }

    .register-modal-title {
        font-size: 1.1rem !important;
    }
}

/* ==================== CONSENT CHECKBOX & MODAL ==================== */
.register-consent-wrapper {
    /* Margin wrapper'da değil, legal-box'ta olmalı - referans dosyaya uygun */
}

.register-legal-box:hover {
    border-color: var(--register-border-focus);
    background: rgba(255, 255, 255, 0.03);
}

.register-legal-box:focus-visible {
    outline: 2px solid var(--register-border-focus);
    outline-offset: 2px;
}

.register-legal-box.register-accepted {
    background: rgba(212, 175, 55, 0.05);
    color: var(--register-text-main);
    border-color: var(--register-primary);
}

.register-consent-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--register-border);
    border-radius: 3px;
    background: var(--register-bg-input);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin: 0;
}

.register-consent-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--register-primary);
    font-size: 10px;
    font-weight: bold;
}

.register-consent-checkbox:focus-visible {
    outline: 2px solid var(--register-border-focus);
    outline-offset: 2px;
}

.register-consent-text {
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

.register-consent-link {
    color: inherit;
    text-decoration: none;
    pointer-events: auto;
    font-weight: 600;
    transition: color 0.2s ease;
}

.register-consent-link:hover {
    color: var(--register-primary);
    text-decoration: underline;
}

.register-consent-success-message {
    padding: 12px;
    background: var(--register-bg-input);
    border: 1px solid var(--register-primary);
    border-radius: var(--register-radius);
    color: var(--register-primary);
    font-size: var(--register-font-size);
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: center;
    justify-content: center;
}

.register-consent-success-message i {
    font-size: 16px;
    color: var(--register-primary);
}

/* Consent Modal */
.register-consent-modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: registerFadeIn 0.3s ease;
    overflow-y: auto;
}

.register-consent-modal-content {
    background: #1a1a1a !important;
    border: 1px solid var(--register-primary) !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 420px !important;
    max-height: 85vh !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9) !important;
    position: relative !important;
    z-index: 22 !important;
    animation: registerSlideUp 0.3s ease !important;
    text-align: left !important;
    padding: 25px !important;
}

.register-consent-modal-content>h3 {
    color: var(--register-primary) !important;
    margin-bottom: 15px !important;
    font-size: 0.85rem !important;
    text-align: center !important;
    margin-top: 0 !important;
    font-weight: normal !important;
    line-height: 1.2 !important;
    padding: 0 !important;
}

.register-consent-modal-scroll-area {
    overflow-y: auto;
    flex: 1;
    padding-right: 10px;
    margin-bottom: 20px;
}

.register-consent-modal-full-text {
    font-size: 0.75rem !important;
    color: #ddd !important;
    line-height: 1.6 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.register-consent-modal-full-text b {
    color: var(--register-primary) !important;
    display: block !important;
    margin-top: 12px !important;
    margin-bottom: 4px !important;
    text-align: center !important;
    font-size: inherit !important;
    font-weight: 600 !important;
    padding: 0 !important;
}

.register-consent-modal-ok-btn {
    width: 100%;
    height: var(--register-input-height);
    background: linear-gradient(90deg, #B8860B, #D4AF37, #FFD700, #D4AF37, #B8860B);
    background-size: 200% auto;
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
    animation: goldFlow 3s linear infinite;
}

.register-consent-modal-ok-btn:active {
    transform: scale(0.98);
}

.register-consent-modal-ok-btn:focus-visible {
    outline: 3px solid var(--register-border-focus);
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .register-consent-modal-content {
        max-width: 100%;
        max-height: 95vh;
    }

}