:root {
    --bg: #f7efe4;
    --card: #fffaf3;
    --brown: #5b3a22;
    --brown-2: #7a4f2e;
    --gold: #c8933f;
    --text: #2e1f14;
    --muted: #8a7563;
    --border: #e6d6c2;
    --danger: #b3261e;
    --ok: #2e7d32;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
}

/* ---------- MÜŞTERİ MENÜSÜ ---------- */
.menu {
    min-height: 100dvh;
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 20px calc(32px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
}

.menu-header { text-align: center; margin-bottom: 32px; }

.logo, .logo-placeholder {
    width: 104px; height: 104px;
    border-radius: 50%;
    margin: 0 auto 16px;
    box-shadow: 0 6px 20px rgba(91, 58, 34, .25);
}
.logo { object-fit: cover; background: #fff; display: block; }
.logo-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brown), var(--gold));
    color: #fff; font-size: 36px; font-weight: 700; letter-spacing: 1px;
}

.menu-header h1 { margin: 0; font-size: 28px; color: var(--brown); }
.subtitle { margin: 6px 0 0; color: var(--muted); }

.menu-links { display: flex; flex-direction: column; gap: 14px; }

.menu-btn {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 17px; font-weight: 600;
    box-shadow: 0 2px 8px rgba(91, 58, 34, .08);
    transition: transform .12s, box-shadow .12s;
}
.menu-btn:active { transform: scale(.98); box-shadow: 0 1px 3px rgba(91, 58, 34, .1); }

.menu-btn .icon {
    width: 44px; height: 44px; flex: none;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    background: var(--brown);
}
.menu-btn .icon svg { width: 24px; height: 24px; }
.menu-btn .label { flex: 1; }
.menu-btn .chev { font-size: 26px; color: var(--muted); line-height: 1; }

.btn-fiyat .icon     { background: var(--brown); }
.btn-instagram .icon { background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); }
.btn-web .icon       { background: #2f6f8f; }
.btn-google .icon    { background: var(--gold); }

.empty { text-align: center; color: var(--muted); }

/* ---------- ADMIN ---------- */
.admin-wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 100px; }

.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-top h1 { margin: 0; color: var(--brown); font-size: 24px; }
.admin-actions { display: flex; align-items: center; gap: 8px; }
.admin-actions form { margin: 0; }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 14px;
}
.card-off { opacity: .6; }
.card h2 { margin: 0 0 12px; font-size: 17px; color: var(--brown-2); }
.card-head { display: flex; justify-content: space-between; align-items: center; }
.card-head h2 { margin: 0; }

label { display: block; font-size: 14px; color: var(--muted); margin-top: 10px; }
label input:not([type=checkbox]) {
    display: block; width: 100%;
    margin-top: 4px; padding: 11px 12px;
    font-size: 16px; color: var(--text);
    border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
label input:focus { outline: 2px solid var(--gold); border-color: transparent; }
input.invalid { border-color: var(--danger) !important; }

.switch { display: flex; align-items: center; gap: 6px; margin: 0; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--brown); }

.field-error { color: var(--danger); font-size: 13px; margin-top: 4px; }
.test-link { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--brown-2); }

.btn-primary, .btn-secondary, .btn-link {
    font-size: 15px; font-weight: 600; cursor: pointer;
    border-radius: 10px; padding: 11px 18px; text-decoration: none; display: inline-block;
}
.btn-primary { background: var(--brown); color: #fff; border: none; }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-secondary { background: #fff; color: var(--brown); border: 1px solid var(--border); }
.btn-link { background: none; border: none; color: var(--muted); }

.save-bar {
    position: sticky; bottom: 0;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    background: var(--bg); padding: 14px 0;
    border-top: 1px solid var(--border);
}
.muted { color: var(--muted); font-size: 13px; }

.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.alert-error { background: #fdecea; color: var(--danger); }
.alert-ok { background: #e8f5e9; color: var(--ok); }

.login-card { max-width: 380px; margin: 60px auto; }
.login-card h1 { margin-top: 0; color: var(--brown); font-size: 22px; }
.login-card .btn-primary { width: 100%; margin-top: 18px; }

/* Blazor hata çubuğu */
#blazor-error-ui {
    background: lightyellow; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2);
    display: none; left: 0; padding: .6rem 1.25rem .7rem; position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* QR kartı */
.qr-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 14px; flex-wrap: wrap; }
.qr-box img { width: 180px; height: 180px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 8px; }
.qr-info { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.qr-url { font-family: ui-monospace, Consolas, monospace; font-size: 14px; word-break: break-all; color: var(--brown); }
