/* LioLink — degrade yeşil dark tema */
:root {
    --bg: #030806;
    --card: rgba(10, 26, 18, 0.72);
    --card-2: rgba(5, 14, 10, 0.85);
    --border: rgba(52, 211, 153, 0.14);
    --border-strong: rgba(52, 211, 153, 0.35);
    --text: #e6f6ec;
    --muted: rgba(209, 250, 229, 0.55);
    --faint: rgba(209, 250, 229, 0.32);
    --green-1: #6ee7b7;
    --green-2: #22c55e;
    --green-3: #a3e635;
    --emerald: #10b981;
    --danger: #f87171;
    --radius: 16px;
    --grad: linear-gradient(135deg, #10b981 0%, #16a34a 50%, #65a30d 100%);
    --grad-text: linear-gradient(90deg, #6ee7b7, #22c55e 45%, #a3e635);
    color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
    min-height: 100vh;
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(900px 520px at 8% -12%, rgba(16, 185, 129, 0.24), transparent 60%),
        radial-gradient(700px 460px at 100% 0%, rgba(132, 204, 22, 0.13), transparent 60%),
        radial-gradient(900px 600px at 50% 115%, rgba(5, 150, 105, 0.16), transparent 60%),
        var(--bg);
    background-attachment: fixed;
}

.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(52, 211, 153, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 211, 153, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at top, #000 25%, transparent 75%);
    mask-image: radial-gradient(ellipse at top, #000 25%, transparent 75%);
    z-index: 0;
}

body > *:not(.bg-grid) { position: relative; z-index: 1; }

a { color: var(--green-1); text-decoration: none; }
a:hover { color: var(--green-3); }

.ic { width: 18px; height: 18px; flex-shrink: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.grad-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
    display: grid; place-items: center;
    width: 36px; height: 36px; border-radius: 11px;
    background: var(--grad);
    color: #fff;
    box-shadow: 0 8px 26px -8px rgba(34, 197, 94, 0.7), inset 0 1px 0 rgba(255,255,255,.25);
}
.logo-mark .ic { width: 20px; height: 20px; stroke-width: 2.5; }
.logo-text { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.logo-lg .logo-mark { width: 52px; height: 52px; border-radius: 15px; }
.logo-lg .logo-mark .ic { width: 26px; height: 26px; }
.logo-lg .logo-text { font-size: 32px; }
.logo-link:hover .logo-text { color: var(--text); }

/* ---------- Kartlar ---------- */
.card {
    background: linear-gradient(160deg, var(--card), var(--card-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 24px 60px -24px rgba(0,0,0,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.card-pad { padding: 24px; }
.card-title { margin: 0 0 4px; font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-sub { margin: 0 0 20px; font-size: 13px; color: var(--muted); }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: rgba(209, 250, 229, 0.8); }
.field .hint { font-size: 12px; color: var(--faint); }
.input-wrap { position: relative; }
.input-wrap > .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 17px; height: 17px; }
.input-wrap > .input { padding-left: 40px; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span {
    display: flex; align-items: center; padding: 0 12px;
    background: rgba(16, 185, 129, 0.08); border: 1px solid var(--border); border-right: 0;
    border-radius: 11px 0 0 11px; font-size: 13px; color: var(--muted); white-space: nowrap;
    max-width: 55%; overflow: hidden; text-overflow: ellipsis;
}
.input-prefix .input { border-radius: 0 11px 11px 0; }

.input {
    width: 100%;
    padding: 11px 14px;
    font: inherit;
    color: var(--text);
    background: rgba(2, 8, 5, 0.7);
    border: 1px solid var(--border);
    border-radius: 11px;
    transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: rgba(209, 250, 229, 0.25); }
.input:focus { outline: none; border-color: rgba(52, 211, 153, 0.6); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px;
    font: inherit; font-weight: 650; font-size: 14px;
    color: var(--text);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid var(--border);
    border-radius: 11px;
    cursor: pointer;
    transition: transform .1s, filter .15s, background .15s, border-color .15s;
    white-space: nowrap;
}
.btn:hover { background: rgba(16, 185, 129, 0.15); border-color: var(--border-strong); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn-primary {
    color: #fff; border: 0;
    background: var(--grad);
    box-shadow: 0 10px 30px -10px rgba(34, 197, 94, 0.7), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-primary:hover { filter: brightness(1.12); background: var(--grad); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn-danger:hover { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, .4); color: var(--danger); }

.icon-btn {
    display: inline-grid; place-items: center;
    width: 34px; height: 34px;
    color: var(--muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    transition: all .15s;
}
.icon-btn .ic { width: 16px; height: 16px; }
.icon-btn:hover { color: var(--green-1); background: rgba(16, 185, 129, 0.1); border-color: var(--border); }
.icon-btn.danger:hover { color: var(--danger); background: rgba(248, 113, 113, 0.1); border-color: rgba(248,113,113,.3); }
.icon-btn.copied { color: var(--green-2); }

/* ---------- Uyarılar ---------- */
.alert {
    padding: 14px 16px; border-radius: 12px; margin-bottom: 20px;
    border: 1px solid; font-size: 14px;
}
.alert-body { display: flex; align-items: center; gap: 10px; }
.alert-success { background: rgba(16, 185, 129, 0.1); border-color: rgba(52, 211, 153, 0.35); color: #a7f3d0; }
.alert-error { background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.35); color: #fecaca; }
.alert-warning { background: rgba(250, 204, 21, 0.07); border-color: rgba(250, 204, 21, 0.3); color: #fde68a; }
.created-link {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin-top: 12px; padding: 10px 10px 10px 14px; border-radius: 10px;
    background: rgba(0,0,0,.35); border: 1px dashed rgba(52, 211, 153, 0.35);
}
.created-link a { font-size: 15px; font-weight: 600; word-break: break-all; }

/* ---------- Üst menü ---------- */
.topbar {
    position: sticky; top: 0; z-index: 20;
    background: rgba(3, 8, 6, 0.7);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav form { margin: 0; }
.nav-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 10px;
    color: var(--muted); font: inherit; font-size: 14px; font-weight: 600;
    background: none; border: 0; cursor: pointer;
}
.nav-link:hover { color: var(--text); background: rgba(16, 185, 129, 0.08); }
.nav-link.active { color: var(--text); background: rgba(16, 185, 129, 0.12); box-shadow: inset 0 0 0 1px var(--border); }
.nav-link.active .ic { color: var(--green-2); }

/* ---------- Sayfa ---------- */
.page { padding: 32px 0 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* İstatistikler */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { padding: 18px 20px; position: relative; overflow: hidden; }
.stat::after {
    content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.22), transparent 70%);
}
.stat-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.stat-label .ic { width: 16px; height: 16px; color: var(--green-2); }
.stat-value { margin-top: 8px; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }

.dash { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; margin-bottom: 24px; }

/* Grafik */
.chart { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar {
    width: 100%; max-width: 52px; min-height: 4px; border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #a3e635, #22c55e 40%, #047857);
    box-shadow: 0 0 24px -6px rgba(34, 197, 94, 0.6);
    position: relative;
}
.bar[data-v]::before {
    content: attr(data-v); position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
    font-size: 12px; font-weight: 700; color: var(--green-1);
}
.bar-label { font-size: 12px; color: var(--faint); }

/* Tablo */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.toolbar h2 { margin: 0; font-size: 17px; }
.search { display: flex; gap: 8px; }
.search .input { width: 260px; padding-top: 9px; padding-bottom: 9px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 20px; text-align: left; border-bottom: 1px solid rgba(52, 211, 153, 0.08); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(16, 185, 129, 0.04); }
tbody tr:last-child td { border-bottom: 0; }
tr.is-off { opacity: .55; }

.link-title { font-weight: 650; margin-bottom: 2px; }
.short { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 14px; }
.target { display: block; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); }
.target:hover { color: var(--text); }
.clicks { font-weight: 800; font-size: 16px; }
.actions { display: flex; gap: 2px; justify-content: flex-end; }
.actions form { margin: 0; }

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
    border: 1px solid; cursor: pointer; font-family: inherit; background: none;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-on { color: #4ade80; border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .08); }
.badge-off { color: var(--faint); border-color: rgba(209,250,229,.15); }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .ic { width: 40px; height: 40px; color: var(--green-2); opacity: .6; margin-bottom: 10px; }

.pagination { display: flex; justify-content: center; gap: 6px; padding: 16px; border-top: 1px solid var(--border); }
.pagination a, .pagination span {
    min-width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0 10px;
    border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); border: 1px solid var(--border);
}
.pagination a:hover { color: var(--text); border-color: var(--border-strong); }
.pagination .current { background: var(--grad); color: #fff; border-color: transparent; }

/* Modal */
.modal { position: fixed; inset: 0; display: none; place-items: center; z-index: 50; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); padding: 20px; }
.modal.open { display: grid; }
.modal-box { width: 100%; max-width: 340px; text-align: center; padding: 24px; }
.modal-box img { width: 240px; height: 240px; background: #fff; border-radius: 14px; padding: 12px; margin: 16px auto; display: block; }
.modal-head { display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { margin: 0; font-size: 16px; }

/* Ortalanmış sayfalar (login, install) */
.center-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box.wide { max-width: 640px; }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 28px; text-align: center; }
.auth-brand p { margin: 0; color: var(--muted); font-size: 14px; }
.section-title {
    display: flex; align-items: center; gap: 8px;
    margin: 8px 0 16px; padding-bottom: 10px;
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green-1);
    border-bottom: 1px solid var(--border);
}
.section-title .ic { width: 16px; height: 16px; }
.req-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 6px; }
.req-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.req-ok { color: #4ade80; }
.req-bad { color: var(--danger); }
pre.code {
    background: rgba(0,0,0,.45); border: 1px solid var(--border); border-radius: 10px;
    padding: 14px; overflow-x: auto; font-size: 12px; color: #a7f3d0; white-space: pre;
}
.footer-note { text-align: center; margin-top: 20px; font-size: 12px; color: var(--faint); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .dash { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-value { font-size: 24px; }
    .grid-2 { grid-template-columns: 1fr; }
    .nav-link span { display: none; }
    .search, .search .input { width: 100%; }
    .toolbar { flex-direction: column; align-items: stretch; }
    th, td { padding: 12px 14px; }
    .col-hide-sm { display: none; }
}
