*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100%;
    min-height: 100%;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    color: #1e293b;
    background: linear-gradient(160deg, #0b1a3b 0%, #1a3a6e 60%, #0f2a5c 100%);
    min-width: 320px;
}

a { text-decoration: none; cursor: pointer; }
ol, ul { list-style: none; }
input, select { font-family: inherit; }
div, span, label, ul, li, a, button, h1, h2, h3, h4, h5, h6 {
    -webkit-user-select: none;
    user-select: none;
}
input { -webkit-user-select: text; user-select: text; }

/* ── HEADER ────────────────────────────────── */
.page-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 24px;
}

.page-header .logo-img {
    height: 28px;
    width: auto;
}

/* ── BANNER ────────────────────────────────── */
.banner-img {
    display: block;
    max-width: 580px;
    margin: 0 auto 24px;
    width: calc(100% - 32px);
    border-radius: 14px;
    overflow: hidden;
}

.banner-img img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

/* ── FORM CARD ─────────────────────────────── */
.form-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 36px 28px;
    max-width: 580px;
    margin: 0 auto 24px;
    width: calc(100% - 32px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.form-card .form-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.form-card .form-subtitle {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    margin-bottom: 28px;
}

/* ── FIELDS ────────────────────────────────── */
.fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.fields-grid .field-full {
    grid-column: 1 / -1;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field-group label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #64748b;
}

.field-group input,
.field-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.2s;
    height: auto;
    -webkit-appearance: none;
    appearance: none;
}

.field-group input:focus,
.field-group select:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
}

.field-group input[readonly] {
    background: #f1f5f9;
    color: #475569;
    cursor: not-allowed;
}

.referans-wrapper {
    position: relative;
}

.referans-wrapper input {
    padding-right: 36px;
}

.referans-wrapper .info-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #94a3b8;
    color: #94a3b8;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    font-weight: 700;
    cursor: default;
    user-select: none;
}

/* birth date row */
.birth-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.birth-row select {
    padding: 11px 10px;
}

/* select arrow */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #94a3b8;
    pointer-events: none;
}

.select-wrapper select {
    padding-right: 32px;
}

/* ── CHECKBOXES ────────────────────────────── */
.checkboxes {
    margin: 18px 0 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    min-width: 16px;
    height: 16px;
    margin-top: 2px;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    background: #f8fafc;
    cursor: pointer;
}

.checkbox-item label {
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-item label a {
    color: #3b82f6;
    text-decoration: underline;
}

/* ── ALERT ─────────────────────────────────── */
.alert-msg {
    display: none;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 14px;
}

/* ── SUBMIT BUTTON ─────────────────────────── */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.2s;
    gap: 8px;
}

.btn-submit:hover { background: #1d4ed8; }

.btn-submit.loading { opacity: 0.8; pointer-events: none; }

.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn-submit.loading .spinner { display: inline-block; }

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

.already-member {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #64748b;
}

.already-member a {
    color: #2563eb;
    font-weight: 600;
}

/* ── WELCOME (post-signup) ─────────────────── */
.welcome-box {
    display: none;
    padding: 20px 0;
    text-align: center;
}

.welcome-box h2 { font-size: 22px; color: #0f172a; margin-bottom: 16px; }
.welcome-box p { font-size: 13px; color: #475569; line-height: 1.7; }

/* popup */
#popup {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 88%; height: 82%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    z-index: 1000;
    overflow: hidden;
    flex-direction: column;
}

#popup.visible { display: flex; }

#popupIframe { width: 100%; flex: 1; border: none; }

#closePopup {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
}

/* ── APP STORE BADGES ───────────────────────── */
.appstore-badges-section {
    max-width: 580px;
    margin: 0 auto 24px;
    width: calc(100% - 32px);
	display: flex;
	justify-content: center;
}

.appstore-badges {
    position: relative;
    display: inline-block;
    width: 500px;
    max-width: 100%;
}

.appstore-badges img {
    display: block;
    width: 100%;
    height: auto;
}

.badge-link {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 33.33%;
}

.badge-apple  { left: 0; }
.badge-google { left: 33.33%; }
.badge-huawei { left: 66.66%; }

/* ── FEATURES SLIDER ───────────────────────── */
.app-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.app-btn:hover { background: rgba(255,255,255,0.2); }

.app-btn .app-store-label {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.app-btn .app-store-label small {
    font-size: 9px;
    font-weight: 400;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-btn svg, .app-btn img.app-icon {
    width: 20px;
    height: 20px;
}

/* ── FEATURES SLIDER ───────────────────────── */
.features-section {
    max-width: 780px;
    margin: 0 auto 32px;
    width: calc(100% - 32px);
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    background: rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slide-number {
    font-size: 36px;
    font-weight: 800;
    color: rgba(255,255,255,0.2);
    line-height: 1;
    font-family: 'Open Sans', Arial, sans-serif;
}

.slide-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.slide-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.slider-dots button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: transparent;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.slider-dots button.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* ── FOOTER ────────────────────────────────── */
.page-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.page-footer .footer-text {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    text-align: center;
    line-height: 1.6;
}

.page-footer .footer-logos {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-footer .age-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-img {
    height: 65px;
    width: auto;
    opacity: 0.65;
}

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 560px) {
    .form-card { padding: 24px 18px 20px; }
    .form-card .form-title { font-size: 20px; }
    .fields-grid { grid-template-columns: 1fr; }
    .fields-grid .field-full { grid-column: 1; }
    .birth-row select { padding: 10px 8px; font-size: 13px; }
    .banner-placeholder .banner-inner { height: 90px; font-size: 11px; letter-spacing: 2px; }
}
