/* ── Shark site styles — simple, clean, mobile-friendly ── */
:root {
    --bg: #0f1720;
    --panel: #182430;
    --ink: #e8eef3;
    --muted: #93a3b1;
    --accent: #2dd4bf;
    --accent-ink: #04231f;
    --line: #26333f;
    --danger: #f87171;
    --ok: #34d399;
    --radius: 12px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px; }
img { max-width: 100%; display: block; }

/* Header / footer */
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); padding: 22px 0; }
.brand { display: inline-block; line-height: 0; }
.brand .brand-text { font-size: 1.5rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.brand .logo { height: 56px; width: auto; display: block; }
@media (max-width: 480px) { .brand .logo { height: 44px; } }
.tagline { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0; color: var(--muted); font-size: .9rem; }

main.wrap { padding-top: 28px; }
h2 { margin-top: 40px; }
.muted { color: var(--muted); }

/* Contacts block (top of homepage) */
.contacts-block {
    margin-top: 8px;
    background: linear-gradient(135deg, #14303a 0%, #182430 55%, #1a1f2e 100%);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    position: relative;
    overflow: hidden;
}
.contacts-block::before {
    content: "";
    position: absolute; inset: -40% 60% auto -10%;
    height: 220px;
    background: radial-gradient(closest-side, rgba(45,212,191,.22), transparent);
    pointer-events: none;
}
.contacts-inner { position: relative; }
.contacts-head h2 { margin: 0; font-size: 1.3rem; }
.contacts-head p { margin: 4px 0 16px; color: var(--muted); font-size: .92rem; }
.contacts-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}
.contact-card {
    display: flex; align-items: center; gap: 12px;
    background: rgba(11,18,25,.55);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--ink);
    transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.contact-card:hover {
    text-decoration: none;
    transform: translateY(-2px);
    border-color: var(--accent);
    background: rgba(45,212,191,.08);
}
.contact-card .ci {
    display: grid; place-items: center;
    width: 42px; height: 42px; flex: 0 0 42px;
    border-radius: 10px;
    background: rgba(45,212,191,.14);
    color: var(--accent);
}
.contact-card .ct { display: flex; flex-direction: column; min-width: 0; }
.contact-card .cl { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.contact-card .cv { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* News */
.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.news-list li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.news-list time { color: var(--accent); font-size: .82rem; font-weight: 600; }
.news-list h3 { margin: 4px 0 8px; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; }
.card img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; width: 100%; background: #0b1219; }
.card h3 { margin: 10px 0 4px; font-size: 1.05rem; color: var(--ink); }
.card .price { color: var(--accent); font-weight: 700; margin: 0 0 6px; }
.card .short { color: var(--muted); font-size: .9rem; flex: 1; }
.card .arrived { font-size: .78rem; color: var(--muted); margin: 8px 0; }

.btn {
    display: inline-block; background: var(--accent); color: var(--accent-ink);
    padding: 9px 14px; border-radius: 8px; font-weight: 700; text-align: center; border: 0; cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 10px; }
.product-media img { border-radius: var(--radius); background: #0b1219; }
.product-info h1 { margin-top: 0; }
.price.big { font-size: 1.6rem; }
.lead { font-size: 1.05rem; }
.note { font-size: .85rem; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 720px) { .product-detail { grid-template-columns: 1fr; } }

/* ── Admin ── */
.admin-login { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.login-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; width: 100%; max-width: 380px; }
.login-box h1 { margin-top: 0; }
.login-box label, .form label { display: block; margin: 14px 0; font-weight: 600; }
.login-box input, .form input[type=text], .form input[type=password], .form input[type=date], .form textarea {
    width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 8px;
    border: 1px solid var(--line); background: #0b1219; color: var(--ink); font: inherit;
}
.form input[type=file] { margin-top: 6px; color: var(--muted); }
.login-box button, .form button { margin-top: 10px; }
button.btn, .login-box button, .form button {
    background: var(--accent); color: var(--accent-ink); border: 0; padding: 11px 18px;
    border-radius: 8px; font-weight: 700; cursor: pointer;
}

.admin-bar { background: var(--panel); border-bottom: 1px solid var(--line); padding: 14px 0; }
.admin-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-bar nav { display: flex; gap: 16px; align-items: center; }
.admin-bar .who { color: var(--muted); font-size: .9rem; }
.admin-bar .logout { color: var(--danger); }
.admin-main { padding-top: 24px; }

.stats { display: flex; gap: 16px; margin: 18px 0; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; text-align: center; color: var(--ink); }
.stat .num { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat .lbl { color: var(--muted); font-size: .85rem; }
.quick-actions { display: flex; gap: 12px; margin: 18px 0 30px; flex-wrap: wrap; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
table.data { width: 100%; border-collapse: collapse; margin-top: 16px; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.data th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.row-actions { display: flex; gap: 12px; align-items: center; }
.row-actions form { display: inline; }
.link-danger { background: none; border: 0; color: var(--danger); cursor: pointer; font: inherit; padding: 0; }
.link-danger:hover { text-decoration: underline; }

.badge { font-size: .75rem; padding: 3px 8px; border-radius: 999px; }
.badge.on { background: rgba(52,211,153,.15); color: var(--ok); }
.badge.off { background: rgba(148,163,177,.15); color: var(--muted); }

.form { max-width: 640px; }
.form .checkbox { display: flex; align-items: center; gap: 8px; }
.form .checkbox input { width: auto; margin: 0; }
.thumb { max-width: 160px; border-radius: 8px; margin: 8px 0; }
.simple-list { list-style: none; padding: 0; }
.simple-list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }

.flash { padding: 12px 14px; border-radius: 8px; background: rgba(45,212,191,.12); border: 1px solid var(--line); }
.flash.error { background: rgba(248,113,113,.12); color: var(--danger); }
.flash.success { background: rgba(52,211,153,.12); color: var(--ok); }
