:root {
    --bg: #f5f5f7;
    --surface: #ffffff;
    --text: #1d1d1f;
    --text-2: #6e6e73;
    --text-3: #86868b;
    --border: #d2d2d7;
    --separator: rgba(60, 60, 67, .14);
    --fill: rgba(118, 118, 128, .12);
    --fill-2: rgba(118, 118, 128, .2);
    --blue: #0071e3;
    --blue-hover: #0077ed;
    --link: #0066cc;
    --orange: #bf4800;
    --green: #34c759;
    --red: #e30000;
    --focus: 0 0 0 4px rgba(0, 125, 250, .35);
    --radius: 18px;
    --shadow: 2px 4px 12px rgba(0, 0, 0, .08);
    --shadow-hover: 2px 4px 16px rgba(0, 0, 0, .16);
    --ease: cubic-bezier(0, 0, .5, 1);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -.022em;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
svg { flex: none; }
svg [stroke] { stroke-linecap: round; stroke-linejoin: round; }
code { font: 13px "SF Mono", SFMono-Regular, Menlo, monospace; background: var(--fill); padding: 1px 6px; border-radius: 6px; letter-spacing: 0; }
[hidden] { display: none !important; }
.muted { color: var(--text-2); }
::selection { background: rgba(0, 113, 227, .2); }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 36px; padding: 0 18px;
    border: 0; border-radius: 980px;
    font: 400 15px/1 var(--font); letter-spacing: -.01em;
    cursor: pointer; white-space: nowrap; text-decoration: none !important;
    transition: background-color .2s var(--ease), color .2s var(--ease), opacity .2s;
}
.btn-sm { min-height: 30px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 44px; padding: 0 22px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-primary:active { background: #006edb; }
.btn-secondary { background: #e8e8ed; color: var(--text); }
.btn-secondary:hover { background: #dedee3; }
.btn-plain { background: transparent; color: var(--link); padding-left: 8px; padding-right: 8px; }
.btn-plain:hover { text-decoration: underline !important; }
.btn-danger { background: transparent; color: var(--red); padding-left: 8px; padding-right: 8px; }
.btn-danger:hover { background: rgba(227, 0, 0, .08); }
.btn:focus-visible, .icon-btn:focus-visible, .chip:focus-visible { outline: 0; box-shadow: var(--focus); }
.btn[disabled] { opacity: .45; pointer-events: none; }

.link-more { display: inline-flex; align-items: center; gap: 3px; font-size: 15px; color: var(--link); }
.link-more svg { transition: transform .2s var(--ease); }
.link-more:hover svg { transform: translate(1px, -1px); }

.icon-btn {
    display: inline-grid; place-items: center;
    width: 32px; height: 32px; border-radius: 50%; border: 0;
    background: var(--fill); color: var(--blue);
    cursor: pointer; transition: background-color .2s var(--ease), color .2s;
}
.icon-btn:hover { background: var(--fill-2); text-decoration: none; }
.icon-btn.on { color: #ff9f0a; background: rgba(255, 159, 10, .14); }
.icon-btn.copied { color: #fff; background: var(--green); }

/* ---------- Navigation bar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 251, 253, .8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, .16);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; max-width: none; padding: 0 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none !important; min-width: 0; }
.brand-text { display: flex; align-items: center; min-width: 0; padding-left: 12px; border-left: 1px solid rgba(0, 0, 0, .14); white-space: nowrap; }
.brand-text small { font-size: 14px; color: var(--text-2); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; }
.logo-mark, .logo-full { display: block; flex: none; }
.logo-full { width: auto; }
.topbar-actions { display: flex; align-items: center; gap: 4px; }
.topbar-actions form { margin: 0; }
.topbar-actions .btn-plain { font-size: 14px; min-height: 34px; }
.topbar .btn-sm { min-height: 36px; padding: 0 18px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { padding: 44px 0 26px; text-align: center; }
.eyebrow { margin: 0 0 4px; font-size: 14px; font-weight: 600; letter-spacing: .011em; color: var(--orange); }
.hero h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 40px); line-height: 1.1;
    font-weight: 600; letter-spacing: 0;
}
.lead {
    max-width: 520px; margin: 8px auto 0;
    font-size: 16px; line-height: 1.45; font-weight: 400;
    letter-spacing: -.012em; color: var(--text-2);
}

/* ---------- Search & filters ---------- */
.search {
    display: flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 13px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    color: var(--text-3); cursor: text;
    transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--blue); box-shadow: var(--focus); }
.search input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
    font: 400 15px var(--font); letter-spacing: -.016em; color: var(--text);
}
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search-hero { max-width: 520px; margin: 0 auto 24px; }
.search-admin { margin-bottom: 20px; }

.filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.segmented {
    display: inline-flex; gap: 2px; padding: 2px; max-width: 100%;
    background: var(--fill); border-radius: 9px;
    overflow-x: auto; scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented button, .chip {
    flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 30px; padding: 0 14px; border: 0; border-radius: 7px;
    background: transparent; color: var(--text);
    font: 500 13px var(--font); letter-spacing: -.01em; cursor: pointer;
    transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.chip span { color: var(--text-3); font-weight: 400; }
.segmented button:hover:not(.active) { background: rgba(118, 118, 128, .1); }
.segmented button.active {
    background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04);
}
.view-toggle button { width: 38px; padding: 0; color: var(--text-2); }
.view-toggle button.active { color: var(--text); }

/* ---------- Folders (Finder icon view) ---------- */
.grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 44px 28px; padding-bottom: 96px;
}
.item { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }

.folder {
    --r: 12px;
    position: relative; display: block; width: 100%; max-width: 230px; aspect-ratio: 5 / 4;
    border-radius: var(--r); text-decoration: none !important; outline: 0;
    filter: drop-shadow(0 6px 12px rgba(0, 40, 90, .12));
    transition: filter .3s var(--ease);
}
.folder:hover { filter: drop-shadow(0 10px 18px rgba(0, 40, 90, .18)); }
.folder:focus-visible { box-shadow: var(--focus); }
.folder-tab {
    position: absolute; left: 0; top: 3%; width: 42%; height: 13%;
    background: #5aa9ec; border-radius: var(--r) var(--r) 0 0;
    clip-path: polygon(0 0, 84% 0, 100% 100%, 0 100%);
}
.folder-back {
    position: absolute; left: 0; right: 0; top: 12%; bottom: 0;
    background: linear-gradient(180deg, #5aa9ec 0%, #3b8fdc 100%);
    border-radius: 0 var(--r) var(--r) var(--r);
}
.folder-paper {
    position: absolute; z-index: 1; left: 8%; right: 8%; top: 6%; height: 64%;
    background: #fff; border-radius: calc(var(--r) / 2); overflow: hidden;
    box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .14);
    transition: transform .4s var(--ease);
}
.folder-paper img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.folder-paper.is-locked { background: #fbfbfd; }
.paper-lines {
    position: absolute; inset: 14% 12% auto;
    height: 52%;
    background: repeating-linear-gradient(180deg, #e3e3e8 0 3px, transparent 3px 11px);
    border-radius: 2px;
}
.title-lock { display: inline-block; margin-left: 5px; color: var(--text-3); vertical-align: -1px; }
.folder:hover .folder-paper, .folder:focus-visible .folder-paper { transform: translateY(-9%); }
.folder-front {
    position: absolute; z-index: 2; left: 0; right: 0; top: 44%; bottom: 0;
    display: grid; place-items: center;
    background: linear-gradient(180deg, #8acdfb 0%, #66b6f7 55%, #57acf3 100%);
    border-radius: var(--r);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 -1px 3px rgba(0, 50, 110, .12);
    color: rgba(22, 92, 168, .5);
}
.folder-front svg { width: 24%; height: auto; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .55)); }

.live-thumb { position: absolute; inset: 0; overflow: hidden; }
.live-thumb iframe {
    width: 1280px; height: 900px; border: 0; pointer-events: none; background: #fff;
    transform-origin: 0 0; transform: scale(var(--scale, .15));
}

.item-body { width: 100%; margin-top: 14px; }
.item-title { margin: 0; font-size: 15px; line-height: 1.33; font-weight: 500; letter-spacing: -.016em; }
.item-title a {
    color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-title a:hover { text-decoration: none; color: var(--blue); }
.tag-dot {
    display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%;
    background: #ff9500; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .15); vertical-align: 1px;
}
.item-meta {
    margin: 2px 0 0; font-size: 13px; color: var(--text-2); letter-spacing: -.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.item-desc, .item-actions { display: none; }

/* Finder list view */
.grid.list {
    grid-template-columns: 1fr; gap: 0; padding-bottom: 0; margin-bottom: 96px;
    background: var(--surface); border-radius: var(--radius); overflow: hidden;
}
.grid.list .item { position: relative; flex-direction: row; text-align: left; gap: 18px; padding: 14px 22px; }
.grid.list .item + .item::before {
    content: ""; position: absolute; top: 0; right: 0; left: 98px; height: 1px; background: var(--separator);
}
.grid.list .item:hover { background: #fafafc; }
.grid.list .folder { --r: 5px; flex: none; width: 58px; filter: drop-shadow(0 2px 4px rgba(0, 40, 90, .14)); }
.grid.list .folder-front svg { display: none; }
.grid.list .item-body { flex: 1; min-width: 0; margin: 0; display: flex; align-items: center; gap: 20px; }
.grid.list .item-text { flex: 1; min-width: 0; }
.grid.list .item-title { font-size: 17px; font-weight: 600; letter-spacing: -.022em; }
.grid.list .item-meta { font-size: 14px; }
.grid.list .item-desc {
    display: block; margin: 2px 0 0; font-size: 14px; color: var(--text-2); letter-spacing: -.016em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.grid.list .item-actions { display: flex; flex: none; align-items: center; gap: 16px; }

.empty { text-align: center; padding: 80px 20px 110px; color: var(--text-2); }
.empty .logo-mark { margin: 0 auto 20px; }
.empty h2 { margin: 0 0 8px; color: var(--text); font-size: 28px; font-weight: 600; letter-spacing: .007em; }
.empty p { margin: 0 auto 24px; max-width: 480px; }
.empty-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }

body.public { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body.public > main { flex: 1 0 auto; }
.footer { border-top: 1px solid var(--border); padding: 18px 0 22px; font-size: 12px; line-height: 1.33; color: var(--text-2); letter-spacing: -.01em; }
.footer-inner { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }

/* ---------- Preview page ---------- */
.preview-page { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.pv-bar {
    position: relative; z-index: 2; flex: none;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
    height: 52px; padding: 0 16px;
    background: rgba(246, 246, 248, .86);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, .12);
}
.pv-left, .pv-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pv-right { justify-content: flex-end; gap: 8px; }
.pv-back { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; line-height: 1; color: var(--blue); white-space: nowrap; }
.pv-back:hover { text-decoration: none; opacity: .7; }
.pv-divider { width: 1px; height: 22px; background: rgba(0, 0, 0, .14); flex: none; }
.pv-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.pv-title strong, .pv-title small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-title strong { font-size: 14px; font-weight: 600; letter-spacing: -.016em; }
.pv-title small { font-size: 12px; color: var(--text-2); letter-spacing: -.01em; }
.pv-devices button { padding: 0 12px; font-size: 12px; height: 26px; }
.pv-devices button svg { color: var(--text-2); }
.pv-devices button.active svg { color: var(--text); }

.pv-stage { flex: 1; min-height: 0; display: flex; justify-content: center; overflow: auto; background: var(--bg); }
.pv-frame {
    width: 100%; height: 100%; background: #fff; overflow: hidden;
    transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), border-radius .45s var(--ease);
}
.pv-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.pv-stage[data-device="tablet"] .pv-frame,
.pv-stage[data-device="mobile"] .pv-frame {
    margin: 32px 0; height: calc(100% - 64px);
    border-radius: 18px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 20px 50px rgba(0, 0, 0, .12);
}
.pv-stage[data-device="tablet"] .pv-frame { width: 768px; max-height: 1024px; }
.pv-stage[data-device="mobile"] .pv-frame { width: 390px; max-height: 844px; }

/* ---------- Admin ---------- */
.admin-main { padding-top: 44px; padding-bottom: 96px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { margin: 2px 0 0; font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: 0; }
.page-head p { margin: 6px 0 0; font-size: 17px; }
.back-link { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; line-height: 1; }
.pv-back svg, .back-link svg { flex: none; width: 8px; height: 13px; }

.alert { display: flex; gap: 10px; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 15px; letter-spacing: -.016em; }
.alert-ok { background: #e8f7ec; color: #1b6e32; }
.alert-error { background: #fff0ef; color: #c41a10; }
.alert-warn { background: #fff7e6; color: #8a5300; }

.group { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.list-row { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 20px; transition: background-color .15s; }
.list-row + .list-row::before {
    content: ""; position: absolute; top: 0; right: 0; left: 108px;
    height: 1px; background: var(--separator);
}
.list-row:hover { background: #fafafc; }
.folder.row-folder { --r: 6px; flex: none; width: 72px; filter: drop-shadow(0 2px 5px rgba(0, 40, 90, .14)); }
.folder.row-folder:hover { filter: drop-shadow(0 4px 8px rgba(0, 40, 90, .2)); }
.row-info { flex: 1; min-width: 0; }
.row-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-title strong { font-size: 17px; font-weight: 600; letter-spacing: -.022em; }
.row-url { display: inline-block; font-size: 14px; letter-spacing: -.016em; word-break: break-all; }
.row-sub { font-size: 13px; color: var(--text-2); letter-spacing: -.01em; }
.row-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.row-actions form { margin: 0; }
.pill { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--fill); color: var(--text-2); letter-spacing: 0; }
.pill-accent { background: rgba(191, 72, 0, .1); color: var(--orange); }
.pill-error { background: rgba(227, 0, 0, .08); color: var(--red); }
.pill-lock { background: rgba(0, 113, 227, .1); color: var(--blue); }

/* Sign in */
body.auth { background: #fff; }
body.auth .admin-main { padding-top: 0; padding-bottom: 0; }
.signin {
    display: flex; flex-direction: column; justify-content: center;
    max-width: 400px; min-height: 100vh; min-height: 100svh; margin: 0 auto; padding: 40px 0; text-align: center;
}
.signin .logo-full { margin: 0 auto 28px; }
.lock-badge {
    display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 16px;
    border-radius: 50%; background: #f5f5f7; color: var(--text);
}
.signin .logo-full + .lock-badge { margin-top: -4px; }
.signin h1 { margin: 0 0 28px; font-size: 26px; line-height: 1.16; font-weight: 600; letter-spacing: .005em; }
.signin-sub { margin: -18px auto 28px; font-size: 15px; line-height: 1.43; color: var(--text-2); letter-spacing: -.016em; }
.signin .alert { margin: 0 0 16px; font-size: 13px; text-align: left; }
.signin-form { text-align: left; }
.signin-form .btn { min-height: 44px; margin-top: 22px; border-radius: 11px; font-size: 16px; }

.signin-fields { position: relative; }
.float-field { position: relative; display: block; }
.float-field + .float-field { margin-top: -1px; }
.float-field input {
    position: relative; display: block; width: 100%; height: 52px; margin: 0; padding: 19px 15px 3px;
    border: 1px solid #d2d2d7; border-radius: 0; background: #fff; color: var(--text);
    font: 400 16px/1.25 var(--font); letter-spacing: -.02em;
    -webkit-appearance: none; appearance: none; outline: 0;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.float-field:first-child input { border-radius: 11px 11px 0 0; }
.float-field:last-of-type input { border-radius: 0 0 11px 11px; }
.float-field:only-of-type input { border-radius: 11px; }
.float-field.has-action input { padding-right: 54px; }
.float-field span {
    position: absolute; z-index: 2; left: 16px; right: 54px; top: 15px;
    font-size: 16px; line-height: 21px; color: #86868b; letter-spacing: -.02em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    pointer-events: none; transition: top .125s ease-in, font-size .125s ease-in, line-height .125s ease-in;
}
.float-field input:focus + span,
.float-field input:not(:placeholder-shown) + span { top: 7px; font-size: 11.5px; line-height: 15px; letter-spacing: 0; }
.float-field input:-webkit-autofill + span { top: 7px; font-size: 11.5px; line-height: 15px; letter-spacing: 0; }
.float-field input:focus { z-index: 1; border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0, 125, 250, .3); }

.signin-arrow {
    position: absolute; z-index: 3; right: 11px; bottom: 11px;
    display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
    border: 1px solid currentColor; border-radius: 50%; background: #fff; color: #494949;
    cursor: pointer; transition: color .2s, background-color .2s;
}
.signin-arrow svg { width: 14px; height: 14px; }
.signin-arrow:hover { color: var(--text); background: #f5f5f7; }
.signin-arrow:focus-visible { outline: 0; box-shadow: var(--focus); }
.signin-form.is-empty .signin-arrow { color: #d2d2d7; }

.signin-fields.has-error input { border-color: #e30000; background: #fff2f4; }
.signin-fields.has-error input:focus { box-shadow: 0 0 0 3px rgba(227, 0, 0, .2); }
.signin-fields.has-error { animation: signin-shake .45s var(--ease); }
@keyframes signin-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}
.signin-error { display: flex; align-items: flex-start; gap: 6px; margin: 12px 0 0; font-size: 13px; line-height: 1.38; color: #e30000; letter-spacing: -.01em; }
.signin-error svg { flex: none; width: 14px; height: 14px; margin-top: 1px; }
.signin-hint { margin: 12px 0 0; font-size: 13px; line-height: 1.38; color: var(--text-2); letter-spacing: -.01em; }
.signin-foot { margin: 48px 0 0; font-size: 12px; color: var(--text-3); letter-spacing: -.01em; }

/* Şifre penceresi */
.sheet {
    width: calc(100% - 32px); max-width: 420px; padding: 44px 40px 40px;
    border: 0; border-radius: 18px; background: #fff; color: var(--text); text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .22);
}
.sheet::backdrop { background: rgba(0, 0, 0, .4); }
.sheet[open] { animation: sheet-in .3s var(--ease); }
.sheet[open]::backdrop { animation: sheet-fade .3s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: scale(.94); } }
@keyframes sheet-fade { from { opacity: 0; } }
.sheet h2 { margin: 0 0 28px; font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: .009em; }
.sheet .signin-sub { margin-bottom: 26px; }
.sheet-close {
    position: absolute; top: 14px; right: 14px;
    display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
    border: 0; border-radius: 50%; background: var(--fill); color: var(--text-2);
    cursor: pointer; transition: background-color .2s, color .2s;
}
.sheet-close:hover { background: rgba(118, 118, 128, .2); color: var(--text); }
.sheet-close:focus-visible { outline: 0; box-shadow: var(--focus); }
.signin-arrow:disabled { cursor: progress; opacity: .45; }
body:has(.sheet[open]) { overflow: hidden; }
@media (max-width: 480px) {
    .sheet { padding: 40px 22px 28px; }
}

/* ---------- Ayarlar (gruplu liste) ---------- */
.settings { max-width: 680px; margin: 0 auto; }
.admin-main:has(> .settings) > .alert { max-width: 680px; margin-left: auto; margin-right: auto; }
.settings .page-head { margin-bottom: 8px; align-items: flex-end; }
.settings .page-head h1 { font-size: 34px; }
.settings > .alert, .settings #form-errors .alert { margin: 16px 0 0; }

.sg-section { margin-top: 30px; }
.sg-header {
    margin: 0 0 7px; padding: 0 16px;
    font-size: 13px; line-height: 1.38; font-weight: 400; text-transform: uppercase;
    letter-spacing: -.005em; color: var(--text-2);
}
.sg-footer { margin: 7px 0 0; padding: 0 16px; font-size: 13px; line-height: 1.38; color: var(--text-2); letter-spacing: -.01em; }
.sg-footer code { font-size: 12px; }
.sg-group { background: var(--surface); border-radius: 12px; overflow: hidden; }
.sg-group > * { position: relative; margin: 0; }
.sg-group > * + *::before {
    content: ""; position: absolute; z-index: 1; top: 0; left: 16px; right: 0;
    height: 1px; transform: scaleY(.5); transform-origin: top; background: rgba(60, 60, 67, .36);
}
.sg-group.has-icons > * + *::before { left: 57px; }

.sg-row {
    display: flex; align-items: center; gap: 12px; width: 100%;
    min-height: 48px; padding: 0 16px;
    border: 0; background: transparent; color: var(--text);
    font: 400 16px/1.25 var(--font); letter-spacing: -.02em; text-align: left;
}
.sg-row-top { align-items: flex-start; }
.sg-row-top .sg-label { padding-top: 14px; }
.sg-label { flex: none; width: 112px; }
.sg-switch .sg-label, .sg-link .sg-label { flex: 1; width: auto; }
.sg-input {
    flex: 1; min-width: 0; height: 48px; padding: 0; margin: 0;
    border: 0; outline: 0; background: transparent; color: var(--text);
    font: inherit; letter-spacing: inherit;
}
textarea.sg-input { height: auto; min-height: 92px; padding: 14px 0; resize: none; line-height: 1.38; }
.sg-input::placeholder { color: #c7c7cc; opacity: 1; }
.sg-prefix { flex: none; margin-right: -12px; color: var(--text-3); white-space: nowrap; }
.sg-row:focus-within:not(.sg-switch) { background: #fafafc; }

.sg-link, .sg-action { cursor: pointer; transition: background-color .15s; }
.sg-link:hover, .sg-action:hover { background: #f7f7f9; }
.sg-link:active, .sg-action:active { background: #ececf0; }
.sg-link:focus-visible, .sg-action:focus-visible { outline: 0; box-shadow: inset var(--focus); }
.sg-icon { display: grid; place-items: center; flex: none; width: 29px; height: 29px; border-radius: 7px; }
.sg-value { min-width: 0; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-chevron { flex: none; width: 7px; height: 12px; color: #c4c4c7; }
.sg-action { color: var(--link); }
.sg-danger { color: var(--red); }

.sg-switch { cursor: pointer; }
.sg-switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { flex: none; position: relative; width: 51px; height: 31px; border-radius: 999px; background: #e9e9ea; transition: background-color .25s var(--ease); }
.switch-ui::after {
    content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
    background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 3px 1px rgba(0, 0, 0, .06);
    transition: transform .25s var(--ease);
}
input:checked + .switch-ui { background: var(--green); }
input:checked + .switch-ui::after { transform: translateX(20px); }
input:focus-visible + .switch-ui { box-shadow: var(--focus); }

.sg-file { min-height: 72px; padding-top: 12px; padding-bottom: 12px; gap: 14px; cursor: pointer; transition: background-color .15s; }
.sg-file input { position: absolute; inset: 0; z-index: 2; width: 100%; opacity: 0; cursor: pointer; }
.sg-file:hover, .sg-file.drag { background: #f7f7f9; }
.sg-file.drag { box-shadow: inset 0 0 0 2px var(--blue); }
.sg-file:focus-within { box-shadow: inset var(--focus); }
.sg-file.has-file .sg-tile { background: rgba(0, 113, 227, .1); color: var(--blue); }
.sg-tile, .sg-thumb {
    position: relative; display: grid; place-items: center; flex: none;
    width: 48px; height: 48px; border-radius: 10px; background: #f2f2f7; color: var(--text-3); overflow: hidden;
}
.sg-thumb { width: 77px; }
.sg-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sg-thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.sg-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sg-text strong { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-text small { font-size: 13px; line-height: 1.3; color: var(--text-2); letter-spacing: -.01em; }

.check { display: flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }

.form-footer {
    display: flex; justify-content: flex-end; align-items: center; gap: 10px;
    margin-top: 32px;
}
.progress { flex: 1; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--text-2); }
.progress-bar { flex: 1; height: 4px; border-radius: 999px; background: #e5e5ea; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--blue); border-radius: inherit; transition: width .2s linear; }

/* Hesap */
.account-head { margin: 18px 0 6px; text-align: center; }
.avatar {
    display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%;
    background: linear-gradient(180deg, #a5abb8, #858994); color: #fff;
    font-size: 34px; font-weight: 500; letter-spacing: .02em;
}
.account-head h1 { margin: 0; font-size: 28px; line-height: 1.14; font-weight: 600; letter-spacing: .007em; }
.account-head p { margin: 4px 0 0; font-size: 15px; color: var(--text-2); }

/* Form pencereleri */
.sheet-form { max-width: 440px; padding: 36px 36px 28px; text-align: left; }
.sheet-form h2 { margin: 0 0 26px; text-align: center; }
.sheet-form .signin-sub { margin: -18px 0 24px; text-align: center; }
.sheet-gap { margin-top: 14px; }
.sheet-check { margin-top: 18px; font-size: 14px; color: var(--text); letter-spacing: -.01em; }
.sheet-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.sheet-actions .btn { min-width: 96px; }
.pw-rules-title { margin: 16px 0 6px; font-size: 13px; color: var(--text-2); letter-spacing: -.01em; }
.pw-rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.pw-rules li { display: flex; align-items: center; gap: 7px; font-size: 13px; line-height: 1.3; color: var(--text-2); letter-spacing: -.01em; transition: color .2s; }
.pw-rules li::before {
    content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px #c7c7cc; transition: background-color .2s, box-shadow .2s;
}
.pw-rules li.ok { color: #1b6e32; }
.pw-rules li.ok::before {
    box-shadow: none; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .pv-bar { grid-template-columns: auto 1fr auto; }
    .pv-devices button span { display: none; }
    #copy-link { display: none; }
}
@media (max-width: 734px) {
    body { font-size: 15px; }
    .container { padding: 0 16px; }
    .topbar-inner { padding: 0 16px; }
    .hero { padding: 32px 0 20px; }
    .eyebrow { font-size: 13px; }
    .lead { font-size: 15px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 32px 16px; }
    .grid.list .item-body { flex-wrap: wrap; gap: 8px; }
    .grid.list .item-actions { width: 100%; }
    .grid.list .item { padding: 12px 16px; }
    .grid.list .item + .item::before { left: 16px; }
    .view-toggle { display: none; }
    .brand-text { display: none; }
    .sg-label { width: 92px; }
    .sg-prefix { display: none; }
    .sheet-form { padding: 32px 22px 22px; }
    .page-head h1 { font-size: 32px; }
    .list-row { flex-wrap: wrap; padding: 14px 16px; }
    .list-row + .list-row::before { left: 16px; }
    .folder.row-folder { width: 64px; }
    .row-actions { width: 100%; justify-content: flex-start; }
    .topbar-actions a:first-child { display: none; }
    .pv-title, .pv-divider { display: none; }
    .pv-back span { display: none; }
    .pv-stage[data-device="tablet"] .pv-frame, .pv-stage[data-device="mobile"] .pv-frame { margin: 16px; height: calc(100% - 32px); }
    .footer-inner { flex-direction: column; }
}
