@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Montserrat:wght@700;800;900&family=Orbitron:wght@600&family=Quicksand:wght@500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Open Sans', sans-serif;
    background: #ffffff;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ═══ LINGUA HEADER ═══ */
.lingua-header {
    background: linear-gradient(to right, #497979, #3e6666);
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-align: center;
    padding: 1rem;
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lingua-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    color: #ffffff;
}

.lingua-title span {
    color: #d4ffeb;
    font-family: 'Quicksand', sans-serif;
    font-weight: bold;
}

/* ── Geri Butonu ── */
.lingua-header .btn {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    border-color: #ffffff;
    color: #ffffff;
}

.lingua-header .btn:hover {
    background-color: rgba(255,255,255,0.2);
    border-color: #ffffff;
    color: #ffffff;
}

/* ═══ SAYFA GÖVDE ═══ */
.page-wrap {
    flex: 1;
    max-width: 1060px;
    margin: 0 auto;
    width: 100%;
    padding: 30px 24px 50px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.main-content { flex: 1; min-width: 0; }

/* ═══ BÖLÜM BAŞLIĞI ═══ */
.section-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #3f6969;
    border-bottom: 2px solid #3f6969;
    padding-bottom: 8px;
    margin-bottom: 22px;
}

/* ═══ SEKMELER ═══ */
.tabs {
    display: flex;
    border-bottom: 2px solid #dde8e8;
    margin-bottom: 24px;
}
.tab-btn {
    padding: 9px 22px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #999;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color .2s, border-color .2s;
}
.tab-btn:hover { color: #3f6969; }
.tab-btn.active { color: #3f6969; border-bottom-color: #3f6969; }

/* ═══ FORM ═══ */
.form-row { display: flex; gap: 26px; flex-wrap: wrap; }
.form-col { flex: 1 1 260px; }
.field-group { margin-bottom: 16px; }

.field-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #666;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

input[type=text], input[type=email], input[type=tel], textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 9px 13px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background: #fafafa;
    outline: none;
    transition: border .2s, box-shadow .2s;
}
input:focus, textarea:focus {
    border-color: #3f6969;
    box-shadow: 0 0 0 3px rgba(63,105,105,.11);
    background: #fff;
}
textarea { min-height: 112px; resize: vertical; }
.hint-text { font-size: 11px; color: #aaa; margin-top: 4px; }

.submit-btn {
    background: #3f6969;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 28px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    letter-spacing: .04em;
    margin-top: 4px;
    transition: background .2s, transform .15s;
}
.submit-btn:hover { background: #2d5252; transform: translateY(-1px); }

/* ═══ HATA ═══ */
.error-box {
    background: #fff5f5;
    border: 1px solid #f5c2c2;
    color: #c0392b;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 13px;
    margin-bottom: 18px;
}

/* ═══ QR ÇIKTI ═══ */
.qr-col {
    flex: 0 0 auto;
    width: 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.qr-box {
    background: #f7fafa;
    border: 1px solid #d6e4e4;
    border-radius: 10px;
    padding: 20px 16px;
    width: 100%;
    min-height: 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.placeholder-wrap { text-align: center; }
.ph-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 5px;
    width: 58px; height: 58px;
    margin: 0 auto 12px;
    opacity: .18;
}
.ph-grid div { background: #3f6969; border-radius: 2px; }
.ph-text { color: #ccc; font-size: 12px; line-height: 1.6; }

.qr-img-wrap {
    border: 2px solid #3f6969;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(63,105,105,.18);
}
.qr-img-wrap img { display: block; }

.qr-label {
    font-size: 11px;
    color: #999;
    text-align: center;
    word-break: break-all;
    padding: 0 4px;
    max-width: 260px;
}

.qr-btns { display: flex; gap: 8px; width: 100%; }
.btn-dl {
    flex: 1;
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 9px 8px;
    background: #3f6969;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    transition: background .2s;
}
.btn-dl:hover { background: #2d5252; }

.btn-copy {
    flex: 1;
    padding: 9px 8px;
    background: #fff;
    color: #3f6969;
    border: 1.5px solid #3f6969;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.btn-copy:hover, .btn-copy.copied { background: #3f6969; color: #fff; }

/* ═══ BİLGİ KARTI ═══ */
.info-card {
    margin-top: 14px;
    background: #edf4f4;
    border-left: 4px solid #3f6969;
    border-radius: 0 8px 8px 0;
    padding: 13px 15px;
    font-size: 12px;
    color: #555;
    line-height: 1.9;
    width: 100%;
}
.info-card strong {
    display: block;
    color: #3f6969;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-weight: 700;
    margin-bottom: 6px;
}

/* ═══ FOOTER ═══ */
footer {
    background: #3f6969;
    color: rgba(255,255,255,.55);
    text-align: center;
    font-size: 12px;
    padding: 15px 24px;
    margin-top: auto;
}
footer a { color: rgba(255,255,255,.8); text-decoration: none; }
footer a:hover { color: #fff; }

/* ═══ BOOTSTRAP TAB OVERRIDE ═══ */
ul.nav.nav-tabs > li > .nav-link {
    color: #467373 !important;
    border-color: transparent !important;
}
ul.nav.nav-tabs > li > .nav-link.active {
    color: #fff !important;
    background-color: #467373 !important;
    border-color: #467373 !important;
}

/* ═══ MOBİL ═══ */
@media (max-width: 768px) {
    .container .row > div { margin-bottom: 1rem; }

    .lingua-title { font-size: 18px !important; }

    .lingua-header .btn {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
    .lingua-header .btn .bi { font-size: 1.2rem !important; }

    #loginButton { width: 100%; max-width: 200px; }

    ul.nav.nav-tabs > li > .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 660px) {
    .page-wrap { padding: 20px 14px 40px; }
    .qr-col { width: 100%; }
}

@media (max-width: 576px) {
    ul.nav.nav-tabs > li > .nav-link {
        font-size: 0.75rem;
        padding: 0.34rem 0.5rem;
    }
}
.lingua-back-btn {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    padding: 6px 14px;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.lingua-back-btn:hover {
    background: rgba(255,255,255,0.24);
    color: #fff;
}

@media (max-width: 768px) {
    .lingua-back-btn .back-text { display: none; }
    .lingua-back-btn { padding: 6px 10px; }
}