:root {
    --murekkep: #12151c;
    --murekkep-2: #1c2230;
    --kagit: #f3efe6;
    --kart: #fffdf8;
    --pirinc: #b8956a;
    --pirinc-koyu: #8d7044;
    --yazi: #1b1e27;
    --soluk: #6d717c;
    --kenar: #e4ddd0;
    --golge: 0 18px 50px rgba(18, 21, 28, 0.08);
    --yan: 272px;
    --sekme-aktif: #f37021;
    --sekme-pasif: #fff;
    --sekme-yazi: #4b5563;
    --sekme-kart: #000;
    --yazi-grup: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    color: var(--yazi);
    font-family: var(--yazi-grup);
    background: var(--kagit);
}

h1, h2, h3, .giris-marka, .yan-marka strong {
    font-family: var(--yazi-grup);
}

html.govde-giris,
body.govde-giris {
    background: #f4f6f8;
}

.giris-sahne {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.giris-kart {
    width: min(420px, 100%);
    background: #fff;
    border: 0;
    border-radius: 16px;
    padding: 36px 32px 28px;
    box-shadow: 0 12px 40px rgba(18, 21, 28, 0.08);
}

.giris-logo {
    display: block;
    width: min(260px, 82%);
    height: auto;
    margin: 0 auto 18px;
}

h1.giris-baslik {
    font-family: var(--yazi-grup);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    margin: 0 0 8px;
    color: #1b2430;
}

.giris-alt {
    text-align: center;
    color: #7b8494;
    font-size: 14px;
    line-height: 1.45;
    margin: 0 0 28px;
}

.giris-alan { margin-bottom: 16px; }

.giris-alan > label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1b2430;
}

.giris-kutu {
    position: relative;
}

.giris-kutu > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a93a3;
    font-size: 14px;
    pointer-events: none;
}

.giris-kutu input {
    width: 100%;
    height: 48px;
    border: 1px solid #d9dee6;
    border-radius: 10px;
    background: #fff;
    color: #1b2430;
    font-size: 15px;
    font-family: inherit;
    padding: 0 44px 0 42px;
    outline: none;
}

.giris-kutu input:focus {
    border-color: #f37021;
}

.giris-kutu input:-webkit-autofill,
.giris-kutu input:-webkit-autofill:hover,
.giris-kutu input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 32px #fff inset;
    -webkit-text-fill-color: #1b2430;
    caret-color: #1b2430;
    border-color: #d9dee6;
    transition: background-color 99999s ease-out;
}

.giris-goz {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #8a93a3;
    cursor: pointer;
}

.giris-hatirla {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 20px;
    font-size: 14px;
    font-weight: 500;
    color: #1b2430;
    cursor: pointer;
}

.giris-hatirla input {
    width: 16px;
    height: 16px;
    accent-color: #f37021;
}

button.giris-dugme,
.giris-dugme {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: #f37021;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

button.giris-dugme:hover,
.giris-dugme:hover {
    background: #dc6418;
    color: #fff;
}

.giris-altlik {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #eceff3;
    text-align: center;
}

.giris-altlik a {
    color: #2f6fed;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.giris-altlik i { margin-right: 6px; }

.form-alan { margin-bottom: 16px; }

.form-alan label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-alan input,
.form-alan select {
    width: 100%;
    height: 50px;
    border: 1px solid var(--kenar);
    border-radius: 14px;
    padding: 0 16px;
    background: #fff;
    outline: none;
    font-size: 15px;
}

.form-alan input:focus,
.form-alan select:focus {
    border-color: var(--pirinc);
    box-shadow: 0 0 0 4px rgba(184, 149, 106, 0.16);
}

.btn-pirinc {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 14px;
    background: var(--murekkep);
    color: #f6f1e8;
    font-weight: 700;
    margin-top: 8px;
}

.btn-pirinc:hover { background: #0c0e13; }

.panel-iskelet {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--yan) 1fr;
}

.yan-menu {
    background: var(--murekkep);
    color: #efe8dc;
    padding: 28px 18px;
}

.yan-marka {
    display: flex;
    align-items: center;
    padding: 4px 6px 24px;
}

.yan-logo {
    display: block;
    width: min(210px, 100%);
    height: auto;
}

.yan-nav { display: grid; gap: 6px; }

.yan-oge {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(239, 232, 220, 0.78);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 12px;
}

.yan-oge i { width: 18px; text-align: center; color: var(--pirinc); }

.yan-oge:hover, .yan-oge.aktif {
    background: var(--murekkep-2);
    color: #fff;
}

.panel-ana { min-width: 0; }

.ust-bar {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid var(--kenar);
    background: rgba(243, 239, 230, 0.86);
    backdrop-filter: blur(10px);
}

.ust-baslik h1 {
    font-size: 28px;
    margin: 0;
}

.ust-sag {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ust-seviye {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pirinc-koyu);
    background: #efe3d0;
    padding: 6px 10px;
    border-radius: 999px;
}

.ust-kullanici {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ust-kullanici small {
    display: block;
    color: var(--soluk);
    font-size: 12px;
}

.ust-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--murekkep);
    color: #f3efe6;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.hesap-menu-sarici { position: relative; }

.hesap-menu-ac {
    width: 40px;
    height: 40px;
    border: 1px solid var(--kenar);
    border-radius: 12px;
    background: #fff;
    color: var(--yazi);
}

.hesap-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--kenar);
    border-radius: 16px;
    box-shadow: var(--golge);
    padding: 8px;
    z-index: 30;
}

.hesap-menu.acik { display: grid; }

.hesap-menu a,
.hesap-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    color: var(--yazi);
    text-decoration: none;
    padding: 11px 12px;
    border: 0;
    background: transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.hesap-menu i { width: 16px; color: var(--pirinc-koyu); }

.hesap-menu a:hover,
.hesap-menu button:hover { background: #f3efe6; }

.hesap-menu .tehlike,
.hesap-menu .tehlike i { color: #9a3b32; }

.tema-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.tema-modal[hidden] { display: none; }

.tema-modal-arka {
    position: absolute;
    inset: 0;
    background: rgba(18, 21, 28, 0.46);
}

.tema-modal-kutu {
    position: relative;
    width: min(480px, 100%);
    background: var(--kart);
    border: 1px solid var(--kenar);
    border-radius: 22px;
    box-shadow: var(--golge);
    padding: 22px;
}

.tema-modal-baslik {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.tema-modal-baslik strong {
    font-family: var(--yazi-grup);
    font-size: 24px;
    flex: 1;
}

.tema-modal-kapat {
    border: 0;
    background: transparent;
    font-size: 18px;
    color: var(--soluk);
}

.form-dar { max-width: 520px; }

.btn-pirinc.dar {
    width: auto;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sekme-blok { margin-bottom: 18px; }

.sayfa-sekme {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.sayfa-sekme-oge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px 12px 0 0;
    color: var(--sekme-yazi);
    text-decoration: none;
    font-weight: 700;
    background: var(--sekme-pasif);
    border: 0;
}

.sayfa-sekme-oge.aktif {
    color: #fff;
    background: var(--sekme-aktif);
}

.sayfa-sekme-oge:hover { color: var(--sekme-aktif); }
.sayfa-sekme-oge.aktif:hover { color: #fff; }

.sekme-siyah-kart {
    background: var(--sekme-kart);
    color: #fff;
    border-radius: 0 0 16px 16px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.sekme-kart-baslik {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.sekme-siyah-kart p {
    margin: 0;
    max-width: 640px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
}

.btn-pirinc.acik {
    background: #f3efe6;
    color: var(--murekkep);
    margin-top: 0;
    flex-shrink: 0;
}

.btn-pirinc.acik:hover { background: #fff; }

.tablo-sil {
    border: 0;
    background: #f6e8e6;
    color: #9a3b32;
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.yan-pencere { position: fixed; inset: 0; z-index: 40; }
.yan-pencere[hidden] { display: none; }

.yan-pencere-arka {
    position: absolute;
    inset: 0;
    background: rgba(18, 21, 28, 0.46);
}

.yan-pencere-kutu {
    position: absolute;
    top: 0;
    height: 100%;
    width: min(440px, 92vw);
    background: var(--kart);
    box-shadow: var(--golge);
    padding: 28px 26px;
    overflow: auto;
}

.taraf-sol .yan-pencere-kutu {
    left: 0;
    border-right: 1px solid var(--kenar);
    animation: yanKaySol 0.22s ease;
}

.taraf-sag .yan-pencere-kutu {
    right: 0;
    border-left: 1px solid var(--kenar);
    animation: yanKaySag 0.22s ease;
}

.yan-pencere-baslik {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.yan-pencere-baslik strong {
    flex: 1;
    font-family: var(--yazi-grup);
    font-size: 26px;
}

.form-grup .form-floating > .form-control,
.form-grup .form-floating > .form-select {
    border-color: var(--kenar);
    background: #fff;
}

.form-grup .form-floating > .form-control:focus,
.form-grup .form-floating > .form-select:focus {
    border-color: var(--pirinc);
    box-shadow: 0 0 0 4px rgba(184, 149, 106, 0.16);
}

.ikon-secici { position: relative; display: flex; align-items: stretch; gap: 8px; }

.ikon-onizleme {
    width: 58px;
    border: 1px solid var(--kenar);
    border-radius: 0.375rem;
    background: var(--murekkep);
    color: #f6f1e8;
    flex-shrink: 0;
    font-size: 18px;
}

.ikon-arama-kutu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 6;
    background: #fff;
    border: 1px solid var(--kenar);
    border-radius: 0.5rem;
    box-shadow: var(--golge);
    padding: 10px;
}

.ikon-arama { margin-bottom: 8px; }

.ikon-sonuc {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    max-height: 200px;
    overflow: auto;
}

.ikon-sonuc button {
    height: 36px;
    border: 1px solid var(--kenar);
    border-radius: 0.375rem;
    background: #fff;
    color: var(--murekkep);
}

.ikon-sonuc button:hover { background: var(--murekkep); color: #f3efe6; }

@keyframes yanKaySol {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes yanKaySag {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.qr-kutu {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    margin: 18px 0;
}

.qr-kutu canvas {
    border: 1px solid var(--kenar);
    border-radius: 12px;
    padding: 8px;
    background: #fff;
}

.anahtar-kutu {
    font-family: ui-monospace, monospace;
    background: #f3efe6;
    padding: 10px 12px;
    border-radius: 10px;
    letter-spacing: 0.06em;
}

.pasif-secenek {
    opacity: 0.45;
    pointer-events: none;
}

.panel-icerik { padding: 28px 32px 48px; }

.istatistik-sira {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.istatistik-kutu {
    background: var(--kart);
    border: 1px solid var(--kenar);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: center;
    box-shadow: var(--golge);
}

.istatistik-kutu span {
    display: block;
    color: var(--soluk);
    font-size: 13px;
}

.istatistik-kutu strong {
    font-size: 28px;
    font-family: var(--yazi-grup);
}

.istatistik-ikon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #efe3d0;
    color: var(--pirinc-koyu);
}

.tema-kart {
    background: var(--kart);
    border: 1px solid var(--kenar);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--golge);
}

.kart-baslik {
    font-family: var(--yazi-grup);
    font-size: 22px;
    margin-bottom: 16px;
}

.modul-kart-sira {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.modul-kart {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 16px;
    border: 1px solid var(--kenar);
    border-radius: 14px;
    background: #fff;
    color: var(--yazi);
    text-decoration: none;
}

.modul-kart i {
    color: var(--sekme-aktif);
    font-size: 20px;
}

.modul-kart strong { font-size: 15px; }

.modul-kart span {
    color: var(--soluk);
    font-size: 12px;
}

.modul-kart:hover { border-color: var(--sekme-aktif); }

.tablo-sarici { overflow: auto; }

.tema-tablo {
    width: 100%;
    border-collapse: collapse;
}

.tema-tablo th, .tema-tablo td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--kenar);
    text-align: left;
    font-size: 14px;
}

.tema-tablo th {
    color: var(--soluk);
    font-weight: 600;
}

.tema-sekme {
    border-bottom: 0;
    margin-bottom: 0;
    gap: 6px;
}

.tema-sekme .nav-item { margin: 0; }

.tema-sekme .nav-link {
    color: var(--sekme-yazi);
    background: var(--sekme-pasif);
    border: 0;
    border-radius: 12px 12px 0 0;
    font-weight: 700;
    padding: 12px 18px;
}

.tema-sekme .nav-link:hover { color: var(--sekme-aktif); }

.tema-sekme .nav-link.active {
    color: #fff;
    background: var(--sekme-aktif);
    box-shadow: none;
}

.tema-sekme .nav-link.active:hover { color: #fff; }

.bos-durum {
    text-align: center;
    padding: 42px 16px;
    color: var(--soluk);
}

.bos-durum i {
    font-size: 28px;
    color: var(--pirinc);
    display: block;
    margin-bottom: 10px;
}

.form-pencere {
    position: fixed;
    inset: 0;
    z-index: 60;
}

.form-pencere[hidden] { display: none; }

.form-pencere-arka {
    position: absolute;
    inset: 0;
    background: rgba(18, 21, 28, 0.42);
}

.form-pencere-kutu {
    position: absolute;
    top: 0;
    height: 100%;
    width: min(480px, 94vw);
    overflow: auto;
    background: #fff;
    box-shadow: 0 18px 50px rgba(18, 21, 28, 0.18);
    padding: 22px 22px 20px;
}

.form-pencere.taraf-sag .form-pencere-kutu {
    right: 0;
    animation: yanKaySag 0.22s ease;
}

.form-pencere.taraf-sol .form-pencere-kutu {
    left: 0;
    animation: yanKaySol 0.22s ease;
}

.form-pencere .form-satir { grid-template-columns: 1fr; }

.form-pencere-baslik {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.form-pencere-baslik strong {
    display: block;
    font-family: var(--yazi-grup);
    font-size: 20px;
    font-weight: 800;
    color: #1b2430;
}

.form-pencere-baslik small {
    display: block;
    color: #8a93a3;
    font-size: 13px;
    margin-top: 2px;
}

.form-pencere-ikon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f37021;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-pencere-kapat {
    margin-left: auto;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f1f3f6;
    color: #5c6573;
    cursor: pointer;
}

.form-kart {
    border: 1px solid #e6eaef;
    border-radius: 14px;
    padding: 18px 18px 8px;
    background: #fff;
}

.form-kart-baslik {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.form-kart-baslik > i {
    color: #f37021;
    margin-top: 3px;
}

.form-kart-baslik strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #1b2430;
}

.form-kart-baslik small {
    display: block;
    color: #8a93a3;
    font-size: 13px;
    margin-top: 2px;
}

.form-satir {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-alan-etiket {
    margin-bottom: 14px;
}

.form-alan-etiket > label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1b2430;
    margin-bottom: 6px;
}

.form-zorunlu { color: #e11d48; }

.form-alan-etiket input,
.form-alan-etiket select {
    width: 100%;
    height: 44px;
    border: 1px solid #d9dee6;
    border-radius: 8px;
    background: #f7f8fa;
    color: #1b2430;
    padding: 0 12px;
    font: inherit;
    outline: none;
}

.form-alan-etiket input:focus,
.form-alan-etiket select:focus {
    border-color: #f37021;
    background: #fff;
}

.form-onek {
    display: flex;
    align-items: stretch;
}

.form-onek span {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    background: #eef1f5;
    border: 1px solid #d9dee6;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    color: #6d7684;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.form-onek input {
    border-radius: 0 8px 8px 0;
}

.form-yardim {
    margin: 6px 0 0;
    font-size: 12px;
    color: #e11d48;
}

.form-ikon-satir {
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
}

.form-ikon-satir .ikon-onizleme {
    width: 44px;
    height: 44px;
    border: 1px solid #d9dee6;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #fff;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.form-ikon-satir .ikon-deger {
    border-radius: 0;
    background: #f7f8fa;
}

.form-ikon-satir .ikon-ara {
    width: 44px;
    border: 1px solid #d9dee6;
    border-left: 0;
    border-radius: 0 8px 8px 0;
    background: #fff;
    color: #5c6573;
    cursor: pointer;
}

.form-pencere-alt {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.form-vazgec,
.form-kaydet {
    height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.form-vazgec {
    border: 1px solid #cfd6df;
    background: #fff;
    color: #4b5563;
}

.form-kaydet {
    border: 0;
    background: #2f6fed;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.form-kaydet:hover { background: #2458c9; color: #fff; }

.ayar-ust {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin: 8px 0 20px;
}

.ayar-ust-yazi {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.ayar-ust-ikon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #2f6fed;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ayar-ust-yazi h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    color: #1b2430;
}

.ayar-ust-yazi p {
    margin: 0;
    max-width: 520px;
    color: #7b8494;
    font-size: 13px;
    line-height: 1.5;
}

.ayar-onizleme {
    width: min(380px, 100%);
    background: #fff;
    border: 1px solid #e6eaef;
    border-radius: 14px;
    padding: 12px 14px 14px;
    box-shadow: 0 10px 28px rgba(18, 21, 28, 0.06);
}

.ayar-onizleme small {
    display: block;
    color: #8a93a3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.ayar-onizleme-serp {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.ayar-onizleme-serp img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
    background: #f7f8fa;
    flex-shrink: 0;
}

.ayar-onizleme-serp strong {
    display: block;
    color: #1a0dab;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}

.ayar-onizleme-serp span {
    display: block;
    color: #006621;
    font-size: 12px;
    margin: 2px 0 4px;
}

.ayar-onizleme-serp p {
    margin: 0;
    color: #4d5156;
    font-size: 13px;
    line-height: 1.4;
}

.ayar-iskelet {
    display: grid;
    grid-template-columns: 228px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.ayar-yan {
    position: sticky;
    top: 16px;
    background: #fff;
    border: 1px solid #e6eaef;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 10px 28px rgba(18, 21, 28, 0.04);
}

.ayar-menu-oge {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: #4b5563;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.ayar-menu-oge i {
    width: 18px;
    text-align: center;
    color: #8a93a3;
}

.ayar-menu-oge:hover { background: #f4f7fb; }

.ayar-menu-oge.aktif {
    background: #e8f1ff;
    color: #1d4ed8;
}

.ayar-menu-oge.aktif i { color: #2f6fed; }

.ayar-kart {
    background: #fff;
    border: 1px solid #e6eaef;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(18, 21, 28, 0.04);
}

.ayar-kart[hidden] { display: none; }

.ayar-kart-baslik {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.ayar-kart-baslik strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #1b2430;
}

.ayar-kart-baslik small {
    display: block;
    margin-top: 3px;
    color: #8a93a3;
    font-size: 13px;
}

.ayar-kart-ikon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.ayar-kart-ikon.renk-mor { background: #7c5cfc; }
.ayar-kart-ikon.renk-yesil { background: #16a34a; }
.ayar-kart-ikon.renk-mavi { background: #2563eb; }
.ayar-kart-ikon.renk-turuncu { background: #f37021; }
.ayar-kart-ikon.renk-pembe { background: #db2777; }
.ayar-kart-ikon.renk-lacivert { background: #1e3a8a; }

.ayar-iki,
.ayar-uc,
.ayar-dort {
    display: grid;
    gap: 16px;
    margin-bottom: 4px;
}

.ayar-iki { grid-template-columns: 1fr 1fr; }
.ayar-uc { grid-template-columns: 1fr 1fr 1fr; }
.ayar-dort { grid-template-columns: 1fr 1fr 1fr 1fr; }

.ayar-girdi { margin-bottom: 16px; }

.ayar-girdi > label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #1b2430;
    margin-bottom: 6px;
}

.ayar-sayac {
    font-size: 12px;
    font-weight: 600;
    color: #8a93a3;
}

.ayar-kutu {
    display: flex;
    align-items: stretch;
    border: 1px solid #d9dee6;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.ayar-kutu i {
    width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8a93a3;
    background: #f7f8fa;
    border-right: 1px solid #e6eaef;
}

.ayar-kutu input,
.ayar-girdi textarea,
.ayar-girdi select {
    width: 100%;
    border: 1px solid #d9dee6;
    border-radius: 8px;
    background: #fff;
    color: #1b2430;
    font: inherit;
    outline: none;
}

.ayar-kutu input {
    height: 44px;
    border: 0;
    border-radius: 0;
    padding: 0 12px;
}

.ayar-girdi textarea {
    min-height: 110px;
    padding: 10px 12px;
    resize: vertical;
}

.ayar-girdi select {
    height: 44px;
    padding: 0 12px;
    background: #fff;
}

.ayar-kutu:focus-within,
.ayar-girdi textarea:focus,
.ayar-girdi select:focus {
    border-color: #2f6fed;
}

.ayar-yardim {
    margin: 6px 0 0;
    font-size: 12px;
    color: #8a93a3;
    line-height: 1.4;
}

.ayar-gorsel-sira {
    display: grid;
    gap: 14px;
}

.ayar-gorsel {
    border: 1px solid #e6eaef;
    border-radius: 12px;
    padding: 12px;
    background: #fbfcfe;
}

.ayar-gorsel-ust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ayar-gorsel-ust strong {
    font-size: 12px;
    letter-spacing: 0.04em;
    color: #5c6573;
}

.ayar-sec {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    background: #eef1f5;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.ayar-gorsel-alan {
    min-height: 92px;
    border-radius: 10px;
    background: #fff;
    border: 1px dashed #d9dee6;
    display: grid;
    place-items: center;
    color: #8a93a3;
    text-align: center;
    padding: 12px;
}

.ayar-gorsel-alan img {
    max-width: 100%;
    max-height: 84px;
    object-fit: contain;
}

.ayar-gorsel-alan i { font-size: 22px; display: block; margin-bottom: 6px; }

.ayar-gorsel > small {
    display: block;
    margin-top: 8px;
    color: #8a93a3;
    font-size: 11px;
    word-break: break-all;
}

.ayar-anahtar-liste {
    display: grid;
    gap: 12px;
    align-content: start;
}

.ayar-anahtar {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e6eaef;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.ayar-anahtar input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ayar-anahtar-govde {
    width: 44px;
    height: 24px;
    border-radius: 99px;
    background: #d5dae3;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: background 0.16s ease;
}

.ayar-anahtar-govde::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(18, 21, 28, 0.18);
    transition: transform 0.16s ease;
}

.ayar-anahtar input[type="checkbox"]:checked + .ayar-anahtar-govde { background: #2f6fed; }
.ayar-anahtar input[type="checkbox"]:checked + .ayar-anahtar-govde::after { transform: translateX(20px); }

.ayar-anahtar strong {
    display: block;
    font-size: 14px;
    color: #1b2430;
}

.ayar-anahtar small {
    display: block;
    margin-top: 2px;
    color: #8a93a3;
    font-size: 12px;
}

.ayar-kaydet-satir {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.menu-ac {
    display: none;
    border: 0;
    background: transparent;
    font-size: 20px;
}

@media (max-width: 1100px) {
    .istatistik-sira { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .panel-iskelet { grid-template-columns: 1fr; }
    .yan-menu { display: none; }
    .yan-menu.acik { display: block; position: fixed; inset: 0 auto 0 0; width: var(--yan); z-index: 20; }
    .menu-ac { display: block; }
    .ust-bar { padding: 0 16px; }
    .panel-icerik { padding: 20px 16px 36px; }
    .istatistik-sira { grid-template-columns: 1fr; }
    .ust-kullanici small, .ust-seviye { display: none; }
    .sekme-siyah-kart { flex-direction: column; align-items: flex-start; }
    .form-satir { grid-template-columns: 1fr; }
    .form-pencere-kutu { padding: 16px; width: min(480px, 100vw); }
    .ayar-ust { flex-direction: column; }
    .ayar-iskelet,
    .ayar-iki,
    .ayar-uc,
    .ayar-dort { grid-template-columns: 1fr; }
    .ayar-yan { position: static; }
}
