/* LINKK — minimalisticky design ve stylu influon.cz (Poppins, cisty vzduch, modry akcent) */
:root {
    --ink: #0e0e0e;
    --sub: #5f6470;
    --accent: #4A6CF7;
    --accent-dark: #3553d8;
    --green: #38B36F;
    --red: #E53935;
    --line: #e6e8ef;
    --bg: #ffffff;
    --bg-soft: #f7f8fb;
    --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 560px; }
.center { text-align: center; }
.pagepad { padding-top: 48px; padding-bottom: 64px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .93em; }

/* topbar */
.topbar { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 24px; letter-spacing: -0.5px; color: var(--ink); }
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav-link { color: var(--ink); font-weight: 500; font-size: 15px; }

/* hero */
.hero { background: var(--bg-soft); padding: 72px 0 56px; text-align: center; }
.hero-h { font-size: 46px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.15; }
.hero-sub { font-size: 18px; color: var(--sub); max-width: 560px; margin: 18px auto 0; }
.hero-demo { margin-top: 26px; display: inline-block; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 10px 26px; font-size: 18px; }
.hero-demo strong { color: var(--accent); }

/* headings */
.h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 14px; }
.h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 12px; }
.h3 { font-size: 17px; font-weight: 600; margin: 18px 0 8px; }
.sub { color: var(--sub); font-size: 14.5px; }

/* cards */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin: 22px 0; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 34px 0; }
.feature { background: var(--bg-soft); border-radius: var(--radius); padding: 26px; }
.feature-ico { font-size: 28px; margin-bottom: 10px; }

/* forms */
label { display: block; font-size: 13.5px; font-weight: 600; margin: 12px 0 5px; }
.input {
    width: 100%; padding: 11px 14px; font: inherit; font-size: 15px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
    outline: none; transition: border-color .15s;
}
.input:focus { border-color: var(--accent); }
.btn {
    display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 600;
    font-size: 15px; padding: 11px 22px; border-radius: 999px; transition: all .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--accent); }
.btn-block { width: 100%; margin-top: 16px; }
.btn-mini { padding: 5px 12px; font-size: 13px; border-radius: 8px; background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); }
.btn-mini:hover { border-color: var(--ink); }
.btn-danger { color: var(--red); }
.btn-danger:hover { border-color: var(--red); }
.inline-form { display: inline; }
.formfoot { margin-top: 14px; }
.slug-input { display: flex; align-items: center; }
.slug-prefix { background: var(--bg-soft); border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; padding: 11px 10px 11px 14px; font-size: 15px; color: var(--sub); white-space: nowrap; }
.slug-input .input { border-radius: 0 10px 10px 0; }

.form-grid { display: grid; grid-template-columns: 1fr 220px auto; gap: 14px; align-items: end; margin-bottom: 18px; }
.form-grid-2 { grid-template-columns: 1fr 1fr auto; }
.fg-main { min-width: 0; }
.fg-btn { padding-bottom: 1px; }

/* table */
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--sub); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cell-actions { text-align: right; white-space: nowrap; }
.cell-actions .btn { margin-left: 6px; }
.cell-target { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sub); }

/* alerts */
.alert { border-radius: 10px; padding: 12px 16px; margin: 14px 0; font-size: 14.5px; }
.alert-err { background: #fdecea; color: #b3261e; }
.alert-ok { background: #e8f6ee; color: #1e7a46; }

/* code */
.code { background: #0e0e0e; color: #e8e8e8; border-radius: 10px; padding: 16px 18px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; overflow-x: auto; line-height: 1.7; }

/* profile page */
.profile-wrap { max-width: 480px; }
.avatar {
    width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: #fff;
    font-size: 34px; font-weight: 700; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
}
.profile-links { display: flex; flex-direction: column; gap: 12px; margin: 26px 0; }
.profile-btn {
    display: block; text-align: center; background: var(--bg); border: 1px solid var(--line);
    border-radius: 999px; padding: 14px 20px; font-weight: 600; color: var(--ink); font-size: 15.5px;
    transition: all .15s;
}
.profile-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.profile-cta { margin-top: 34px; }

/* avatar edit + crop modal */
.avatar-img { object-fit: cover; padding: 0; display: block; }
.av-sm { width: 64px; height: 64px; font-size: 24px; margin: 0; }
.av-edit-row { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; }
.av-edit-btns { display: flex; gap: 8px; align-items: center; }
#lk-av-modal { display: none; position: fixed; inset: 0; background: rgba(14,14,14,.55); z-index: 50; align-items: center; justify-content: center; }
.av-box { background: #fff; border-radius: 14px; padding: 22px; width: 330px; max-width: 92vw; text-align: center; }
#lk-av-canvas { border-radius: 50%; cursor: grab; touch-action: none; background: #f0f1f5; }
#lk-av-canvas:active { cursor: grabbing; }
.av-zoom { width: 100%; margin: 12px 0 2px; }
.av-box-btns { display: flex; justify-content: space-between; margin-top: 12px; }

/* plink rows */
.plink-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.plink-info { display: flex; flex-direction: column; min-width: 0; }
.plink-info .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 460px; }
.plink-actions { display: flex; gap: 6px; white-space: nowrap; }

/* influon banner */
.influon-banner {
    background: linear-gradient(120deg, var(--accent), #7b5cf0);
    border-radius: var(--radius); color: #fff; padding: 34px 38px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    margin: 20px 0 56px;
}
.banner-h { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.banner-sub { opacity: .92; font-size: 14.5px; margin-top: 6px; max-width: 560px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 26px 0 34px; }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer-brand { font-weight: 700; }
.footer-brand span { color: var(--accent); }
.footer-note { color: var(--sub); font-size: 14px; }

/* responsive */
@media (max-width: 860px) {
    .hero-h { font-size: 34px; }
    .auth-grid, .feature-grid { grid-template-columns: 1fr; }
    .form-grid, .form-grid-2 { grid-template-columns: 1fr; align-items: stretch; }
    .influon-banner { flex-direction: column; text-align: center; }
    .footer .wrap { flex-direction: column; }
    .cell-target { max-width: 160px; }
}
