/* RESTOM_AYAR_V2: Ayarlar ekrani yeni duzen (gruplu menu, arama, kart gorunumu) */
#settingsView .settings-layout.ra-on {
    display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; align-content: start; gap: 0;
    background: var(--glass-bg, #f6f9f7); border-radius: 20px; overflow: visible; min-height: calc(100vh - 140px);
}
#settingsView .settings-layout.ra-on > .settings-sidebar { display: none !important; }

/* Sol menu */
.ra-side { position: sticky; top: 12px; align-self: start; max-height: calc(100vh - 24px); overflow-y: auto; padding: 18px 14px 18px; border-right: 1px solid rgba(0, 0, 0, .06);
    background: var(--sidebar-bg, #fff); border-radius: 20px 0 0 20px; scrollbar-width: thin; }
.ra-side-head { padding: 2px 8px 12px; }
.ra-side-head b { display: block; font-size: 19px; letter-spacing: -.02em; color: var(--text-main, #10241a); }
.ra-side-head small { font-size: 12.5px; color: var(--text-muted, #6b8479); }
.ra-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; margin: 0 2px 12px; border-radius: 12px; border: 1.5px solid rgba(0, 0, 0, .08);
    background: var(--bg-main, #f4f7f5); color: var(--text-muted, #6b8479); }
.ra-search:focus-within { border-color: #11af66; box-shadow: 0 0 0 3px rgba(17, 175, 102, .14); }
.ra-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text-main, #10241a); font: inherit; font-size: 14px; }
.ra-group { margin-bottom: 10px; }
.ra-group[hidden], .ra-item[hidden] { display: none !important; }
.ra-gt { display: block; padding: 8px 10px 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted, #8aa095); }
.ra-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--text-main, #1d3127);
    text-align: left; font: inherit; cursor: pointer; transition: background .15s, box-shadow .15s; }
.ra-item:hover { background: rgba(17, 175, 102, .07); }
.ra-item.on { background: linear-gradient(110deg, rgba(22, 185, 107, .14), rgba(7, 140, 82, .08)); box-shadow: inset 3px 0 0 #11af66; }
.ra-ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(0, 0, 0, .045); color: #4b6155; }
.ra-item.on .ra-ic { background: linear-gradient(140deg, #16b96b, #057449); color: #fff; box-shadow: 0 4px 10px rgba(7, 140, 82, .25); }
.ra-tx { min-width: 0; display: flex; flex-direction: column; }
.ra-tx b { font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.ra-item.on .ra-tx b { color: #057449; }
.ra-tx small { font-size: 11.5px; color: var(--text-muted, #7a8f83); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra-empty { padding: 16px 10px; color: var(--text-muted, #7a8f83); font-size: 13px; text-align: center; }

/* Sag icerik */
#settingsView .ra-on .settings-content { min-width: 0; padding: 22px 28px 40px !important; background: transparent; }
.ra-crumb { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.ra-crumb:empty { display: none; }
.ra-crumb .ra-ic { width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(140deg, #16b96b, #057449); color: #fff; box-shadow: 0 8px 18px rgba(7, 140, 82, .22); }
.ra-crumb .ra-ic svg { width: 22px; height: 22px; }
.ra-crumb small { display: block; font-size: 12px; color: var(--text-muted, #7a8f83); font-weight: 600; }
.ra-crumb b { display: block; font-size: 21px; letter-spacing: -.02em; color: var(--text-main, #10241a); }
#settingsView .ra-on .settings-panel { max-width: 1040px; }
#settingsView .ra-on .settings-panel > .settings-title { font-size: 17px; margin-bottom: 4px; }
#settingsView .ra-on .settings-panel > .settings-subtitle { margin-bottom: 18px; }
#settingsView .ra-on .settings-section-label { margin-top: 18px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #057449; }
#settingsView .ra-on .settings-divider { border: 0; border-top: 1px solid rgba(0, 0, 0, .06); margin: 8px 0 6px; }
#settingsView .ra-on .settings-row { background: var(--sidebar-bg, #fff); border: 1px solid rgba(0, 0, 0, .06); border-radius: 14px; padding: 12px 16px; margin-bottom: 8px; min-height: 56px; gap: 14px; }
#settingsView .ra-on .settings-row:hover { border-color: rgba(17, 175, 102, .3); }
#settingsView .ra-on .settings-form-group { margin-bottom: 14px; }
#settingsView .ra-on .settings-input, #settingsView .ra-on .settings-select { border-radius: 11px; border: 1.5px solid rgba(0, 0, 0, .1); min-height: 42px; transition: border-color .15s, box-shadow .15s; }
#settingsView .ra-on .settings-input:focus, #settingsView .ra-on .settings-select:focus { border-color: #11af66; box-shadow: 0 0 0 3px rgba(17, 175, 102, .14); outline: none; }
#settingsView .ra-on .btn-settings-save { border-radius: 12px; min-height: 44px; padding: 0 20px; background: linear-gradient(110deg, #16b96b, #078c52); border: 0; color: #fff; font-weight: 800;
    box-shadow: 0 8px 18px rgba(7, 140, 82, .22); }
#settingsView .ra-on .settings-table { border-radius: 14px; overflow: hidden; border: 1px solid rgba(0, 0, 0, .06); }
#settingsView .ra-on .settings-actions { position: sticky; bottom: 0; z-index: 2; padding: 12px 0 4px; background: linear-gradient(180deg, transparent, var(--glass-bg, #f6f9f7) 35%); }

/* Karanlik mod */
body.dark-mode .ra-side { background: #141c18; border-right-color: #26332c; }
body.dark-mode .ra-search { background: #1b2620; border-color: #2c3a33; }
body.dark-mode .ra-ic { background: rgba(255, 255, 255, .06); color: #b9cbc0; }
body.dark-mode .ra-item.on .ra-tx b { color: #7ef0b2; }
body.dark-mode .ra-crumb { border-bottom-color: #26332c; }
body.dark-mode #settingsView .ra-on .settings-row { background: #17201b; border-color: #26332c; }
body.dark-mode #settingsView .ra-on .settings-section-label { color: #7ef0b2; }
body.dark-mode #settingsView .ra-on .settings-actions { background: linear-gradient(180deg, transparent, #0f1712 35%); }

/* Tablet / telefon: menu ustte yatay kaydirilir */
@media (max-width: 900px) {
    #settingsView .settings-layout.ra-on { grid-template-columns: 1fr; }
    .ra-side { position: relative; top: 0; max-height: none; border-right: 0; border-bottom: 1px solid rgba(0, 0, 0, .06); border-radius: 20px 20px 0 0; padding: 14px 12px 10px; }
    .ra-side-head { display: none; }
    .ra-search { margin-bottom: 10px; }
    .ra-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
    .ra-nav::-webkit-scrollbar { display: none; }
    .ra-group { display: contents; }
    .ra-gt { display: none; }
    .ra-item { width: auto; flex: none; padding: 7px 12px 7px 7px; border: 1px solid rgba(0, 0, 0, .08); background: var(--sidebar-bg, #fff); }
    .ra-item.on { box-shadow: none; border-color: #11af66; }
    .ra-tx small { display: none; }
    .ra-ic { width: 28px; height: 28px; border-radius: 8px; }
    .ra-ic svg { width: 16px; height: 16px; }
    #settingsView .ra-on .settings-content { padding: 16px 12px 30px !important; }
    .ra-crumb b { font-size: 18px; }
    #settingsView .ra-on .settings-row { flex-wrap: wrap; }
}
body.dark-mode .ra-crumb .ra-ic { background: linear-gradient(140deg, #16b96b, #057449); color: #fff; }
