/* Voka admin theme — loaded after styles.css and overrides it.
   Colours come from the iOS app: launch violet #6630BD, accent magenta #DB4DB3. */

:root{
    --plum: #23103F;          /* sidebar, login backdrop */
    --plum-2: #321A57;        /* sidebar hover */
    --violet: #6630BD;        /* brand */
    --magenta: #DB4DB3;       /* brand accent, highlights on dark */
    --action: #A82F8C;        /* buttons/links on light (AA contrast with white) */
    --action-hover: #8E2576;
    --paper: #F5F3FA;         /* page background */
    --card: #FFFFFF;
    --ink: #1C1530;
    --muted: #675F7A;
    --line: #E3DDEF;
    --field: #FBFAFD;
    --ok: #11806A;
    --ok-bg: #E4F4EF;
    --bad: #C23B4E;
    --bad-bg: #FBE9EC;
    --radius-s: 8px;
    --radius-m: 14px;
    --side-w: 248px;
    --top-h: 64px;
    --display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
    --text: 'Instrument Sans', 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */

html, body{ background: var(--paper); }
body{ font-family: var(--text); color: var(--ink); font-size: 15px; line-height: 1.5; }
h1, h2, h3, h4, h5, h6{ font-family: var(--text); color: inherit; line-height: 1.35; }
h4{ font-size: 1.15em; }
h5{ font-size: 1em; }
h6{ font-size: .875em; }
b, strong{ font-weight: 600; }
a{ color: inherit; transition: color .15s, background-color .15s; }
:focus-visible{ outline: 2px solid var(--magenta); outline-offset: 2px; }
.color-semi-dark{ color: var(--muted) !important; }
::selection{ background: #EBD3F7; }

/* Page titles (the h4 at the top of list pages) */
.main-content > h4,
.main-content > .oflow-hidden > h4{ font-family: var(--display); font-weight: 700; font-size: 1.75em;
    letter-spacing: -.01em; line-height: 45px; }

/* ---------- Top bar ---------- */

.header{ position: fixed; top: 0; right: 0; left: var(--side-w); height: var(--top-h); z-index: 50;
    background: rgba(245,243,250,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line); overflow: visible; display: flex; align-items: center;
    justify-content: space-between; padding: 0 32px; }
.header .header-title{ font-weight: 600; color: var(--muted); font-size: .95em; }
.header .header-title b{ color: var(--ink); }
.header .toolbar-right{ float: none; display: flex; gap: 6px; align-items: center; }
.header .toolbar-right a,
.header .toolbar-right a:first-child{ line-height: 1; padding: 9px 14px; border-radius: 999px; font-weight: 500;
    font-size: .92em; color: var(--muted); }
.header .toolbar-right a:hover{ background: #ECE7F5; color: var(--ink); }
.header .toolbar-right a i{ margin-right: 6px; }

/* ---------- Sidebar ---------- */

.main-container{ min-height: 100vh; padding-top: var(--top-h); }
.sidebar{ position: fixed; top: 0; bottom: 0; left: 0; width: var(--side-w); z-index: 60; padding: 0 14px 24px;
    background: var(--plum); color: #D9D0EA; border: 0; overflow-y: auto; }

.sidebar .brand{ display: flex; align-items: center; gap: 12px; height: var(--top-h); padding: 0 10px; margin-bottom: 8px; }
.sidebar .brand img{ width: 30px; height: 30px; border-radius: 8px; object-fit: cover; background: var(--violet); }
.sidebar .brand span{ font-family: var(--display); font-weight: 700; font-size: 1.3em; color: #fff; letter-spacing: -.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar .sidebar-group{ font-size: .78em; font-weight: 600; color: #8F82AD; padding: 18px 12px 6px; }

.sidebar .sidebar-list > li > a,
.sidebar .sidebar-list > li:hover > a,
.sidebar .sidebar-list > li.active > a{ border: 0; }
.sidebar .sidebar-list > li > a{ display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin: 2px 0;
    border-radius: var(--radius-s); color: #D9D0EA; font-weight: 500; position: relative; }
.sidebar .sidebar-list > li > a:before,
.sidebar .sidebar-list > li > a:after{ display: none; }
.sidebar .sidebar-list > li > a > i{ margin: 0; width: 20px; text-align: center; font-size: 1.25em; color: #A99BC9; }
.sidebar .sidebar-list > li:hover > a{ background: var(--plum-2); color: #fff; }
.sidebar .sidebar-list > li.active > a{ background: #fff; color: var(--plum); font-weight: 600; }
.sidebar .sidebar-list > li.active > a > i{ color: var(--action); }
/* the "on air" dot: marks the page you're on */
.sidebar .sidebar-list > li.active > a:after{ display: block; content: ''; position: absolute; right: 12px; top: 50%;
    width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--magenta);
    box-shadow: 0 0 0 4px rgba(219,77,179,.18); transform: none; left: auto; bottom: auto; }

/* ---------- Content area ---------- */

.main-content{ margin-left: var(--side-w); padding: 32px; max-width: 1480px; }

.item-wrapper{ margin: -10px; overflow: visible; }
.item .item-inner{ background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m);
    overflow: hidden; }
.item .item-content{ padding: 24px 26px; }
.item-header{ padding: 18px 26px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 1.05em; }
.item-footer{ border-top: 1px solid var(--line); display: flex; }
.item-footer a,
.item-footer .footer-link{ flex: 1; float: none; width: auto !important; line-height: 46px; height: 46px;
    color: var(--muted); font-weight: 500; font-size: .92em; }
.item-footer.two a, .item-footer.three a{ border-right: 1px solid var(--line); }
.item-footer a:last-child{ border-right: 0; }
.item-footer a:hover,
.item-footer .footer-link:hover{ background: var(--paper); color: var(--action); }
.item-footer a[data-confirm]:hover{ color: var(--bad); background: var(--bad-bg); }
.item-footer a i{ font-size: 1.15em; }

/* ---------- Dashboard ---------- */

.dash-head{ margin-bottom: 24px; }
.dash-head h1{ font-family: var(--display); font-weight: 700; font-size: 2.1em; letter-spacing: -.015em; }
.dash-head p{ color: var(--muted); margin-top: 2px; }

.stat-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat{ display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius-m); padding: 20px 22px 16px; position: relative; text-decoration: none; }
.stat:hover{ border-color: #CDBFE6; }
.stat .stat-label{ display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; }
.stat .stat-label i{ font-size: 1.2em; color: var(--violet); }
.stat .stat-value{ font-family: var(--display); font-weight: 700; font-size: 2.6em; line-height: 1.1;
    letter-spacing: -.02em; margin: 10px 0 14px; font-variant-numeric: tabular-nums; }
.stat .stat-link{ margin-top: auto; font-size: .88em; font-weight: 600; color: var(--action); }
.stat:hover .stat-link{ text-decoration: underline; }
.stat.lead{ background: var(--plum); border-color: var(--plum); color: #fff; }
.stat.lead .stat-label, .stat.lead .stat-label i{ color: #CBBEE6; }
.stat.lead .stat-link{ color: #F3B5E2; }

/* ---------- Forms ---------- */

label, .control-label{ display: block; font-size: .88em; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.item-wrapper select,
.item-wrapper textarea,
.item-wrapper input[type=text],
.item-wrapper input[type=password],
.item-wrapper input[type=email],
.item-wrapper input[type=number],
.item-wrapper input[type=url],
.form-control{ box-sizing: border-box; width: 100%; height: 44px; line-height: normal; padding: 0 14px; font: inherit; color: var(--ink);
    background: var(--field); border: 1px solid #D6CEE6; border-radius: var(--radius-s); margin-bottom: 18px;
    transition: border-color .15s, box-shadow .15s; }
.item-wrapper textarea{ padding: 10px 14px; height: auto; min-height: 110px; line-height: 1.5; }
.item-wrapper textarea.desc{ height: 110px; max-height: none; }
.item-wrapper select:focus,
.item-wrapper textarea:focus,
.item-wrapper input:focus,
.form-control:focus{ outline: none; border-color: var(--violet); background: #fff;
    box-shadow: 0 0 0 3px rgba(102,48,189,.16); }
.item-wrapper input[readonly]{ background: #F0EDF6; color: var(--muted); }
::placeholder{ color: #A39BB4; }

.btn-wrapper{ margin-top: 6px; }
.c-btn, button.c-btn{ display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px;
    line-height: 1; padding: 0 20px; border-radius: var(--radius-s); border: 1px solid var(--action);
    background: var(--action); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.c-btn b{ font-weight: 600; }
.c-btn:hover, .c-btn:focus, .c-btn:active{ background: var(--action-hover); border-color: var(--action-hover); color: #fff; }
.c-btn.delete{ background: #fff; color: var(--bad); border-color: #E7B5BE; }
.c-btn.delete:hover{ background: var(--bad); color: #fff; border-color: var(--bad); }
.c-btn.btn-featured{ background: var(--ok); border-color: var(--ok); }
.c-btn.btn-featured:hover{ background: #0C6656; border-color: #0C6656; color: #fff; }
.main-content h6.float-r a.c-btn{ font-size: 15px; }

/* image / file upload boxes */
.image-upload{ border: 1.5px dashed #CBBFE0; border-radius: var(--radius-m); background: var(--field); color: var(--muted); }
.image-upload:hover{ border-color: var(--violet); background: #F3EEFB; }
.image-upload i{ color: #B3A4D2; }

/* switches */
.switch .slider{ background-color: #D8D1E6; }
.switch input:checked + .slider{ background-color: var(--violet); }
.switch input:focus-visible + .slider{ box-shadow: 0 0 0 3px rgba(102,48,189,.3); }
.switch .toggle-title{ color: var(--muted); }

/* ---------- Status, tags ---------- */

.item .item-inner .all-status{ top: 12px; left: 12px; padding: 0; }
.item .item-inner .all-status span{ display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 9px;
    border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--ok-bg); color: var(--ok); }
.item .item-inner .all-status span:after{ position: static; width: 7px; height: 7px; border-radius: 50%; order: -1;
    background: var(--ok); }
.item .item-inner .all-status span.inactive{ background: #EFECF3; color: var(--muted); }
.item .item-inner .all-status span.inactive:after{ background: #A49CB3; }
.item .featured{ top: 12px; right: 12px; left: auto; padding: 4px 10px; border-radius: 999px; font-size: 12px;
    font-weight: 600; background: #FCE8F6; color: var(--action); }
.video-header{ position: relative; height: 48px; }
.type-btn{ display: inline-block; padding: 3px 10px; border-radius: 6px; background: #EFE9FA; color: var(--violet) !important;
    font-size: 12px; }
.brdr-primary-1{ border: 1px solid var(--line); }
.verified{ color: var(--ok); margin-left: 4px; }
.unverified{ color: #B4591E; margin-left: 4px; }

/* ---------- Messages ---------- */

.message{ display: block; padding: 12px 16px; margin-bottom: 20px; border-radius: var(--radius-s); background: var(--ok-bg);
    color: #0B5C4C; font-weight: 500; font-size: .95em; border: 1px solid #BFE3D8; }
.errors{ margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-s); background: var(--bad-bg);
    border: 1px solid #F0C6CD; color: #8D2434; }
.errors > li{ margin: 3px 0; font-size: .92em; }
.err-msg{ color: var(--bad); }

/* ---------- Pagination ---------- */

.pagination{ display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.pagination li{ display: inline-flex; float: none; min-width: 38px; height: 38px; align-items: center; justify-content: center;
    border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--card); font-weight: 500;
    font-variant-numeric: tabular-nums; margin: 0; padding: 0; line-height: 1; }
.pagination li a{ display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; padding: 0 10px;
    border: 0; background: none; line-height: 1; }
.pagination li a:hover{ color: var(--action); }
.pagination li.current{ background: var(--plum); border-color: var(--plum); color: #fff; }
.pagination li.disable{ opacity: .45; padding: 0 10px; }
.pagination li i + i{ display: none; }

/* ---------- Login ---------- */

body.login-page{ background: var(--plum); color: #fff; min-height: 100vh; }
.login-shell{ min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card{ width: 100%; max-width: 400px; }
.login-card .login-brand{ display: flex; align-items: center; gap: 12px; margin-bottom: 28px; justify-content: center; }
.login-card .login-brand img{ width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--violet); }
.login-card .login-brand span{ font-family: var(--display); font-weight: 700; font-size: 1.7em; letter-spacing: -.01em; }
.login-card .item-wrapper{ margin: 0; }
.login-card .login-box{ background: var(--card); color: var(--ink); border-radius: 18px; padding: 30px 28px 26px;
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.login-card h1{ font-family: var(--display); font-weight: 700; font-size: 1.5em; margin-bottom: 4px; }
.login-card .login-sub{ color: var(--muted); margin-bottom: 22px; font-size: .95em; }
.login-card .c-btn{ width: 100%; height: 46px; margin-top: 4px; }
.login-card .login-note{ text-align: center; color: #A99BC9; font-size: .85em; margin-top: 20px; }

/* ---------- Responsive ---------- */

@media (max-width: 1200px){
    .stat-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px){
    :root{ --side-w: 68px; }
    .sidebar{ padding: 0 10px 20px; }
    .sidebar .brand{ justify-content: center; padding: 0; }
    .sidebar .brand span,
    .sidebar .sidebar-list > li > a > span,
    .sidebar .sidebar-group{ display: none; }
    .sidebar .sidebar-list{ margin-top: 0; }
    .sidebar .sidebar-list > li > a{ justify-content: center; padding: 12px 0; }
    .sidebar .sidebar-list > li.active > a:after{ right: 4px; top: 6px; margin: 0; width: 6px; height: 6px; }
    .sidebar .sidebar-group + li{ margin-top: 12px; }
    .header{ padding: 0 16px; }
    .main-content{ padding: 24px 16px; }
}

@media (max-width: 767px){
    .main-content{ margin-left: var(--side-w); }
    .header .header-title{ display: none; }
    .header{ justify-content: flex-end; }
}

@media (max-width: 560px){
    :root{ --side-w: 56px; }
    .sidebar{ padding: 0 6px 16px; }
    .stat-grid{ grid-template-columns: minmax(0, 1fr); }
    .header .toolbar-right a span{ display: none; }
    .header .toolbar-right a i{ margin: 0; font-size: 1.2em; }
    .dash-head h1{ font-size: 1.7em; }
}

@media (prefers-reduced-motion: reduce){
    *{ transition: none !important; animation: none !important; }
}

/* ---------- Fixes for old grid + video type picker ---------- */

/* a card inside a masonry column always fills its column (old media rules shrank it) */
.masonry-grid .masonry-item .item{ width: 100% !important; float: none; }
.item-wrapper.three > .item{ min-width: 0; }

.video-radio .checkmark{ border: 1px solid var(--line) !important; border-radius: var(--radius-s) !important;
    background: var(--field) !important; color: var(--muted) !important; }
.video-radio:hover input ~ .checkmark{ border-color: var(--violet) !important; background: #F3EEFB !important; }
.video-radio input:checked ~ .checkmark{ border-color: var(--violet) !important; background: var(--violet) !important;
    color: #fff !important; }
.video-radio input:focus-visible ~ .checkmark{ box-shadow: 0 0 0 3px rgba(102,48,189,.3); }

/* narrow screens: icon rail (beats old fixed 55/65px link sizes) */
@media (max-width: 900px){
    .sidebar .sidebar-list > li.sidebar-group{ display: none; }
    .sidebar .sidebar-list > li > a{ width: auto; height: auto; line-height: 1.5; border: 0; }
    .sidebar .sidebar-list > li > a > i{ font-size: 1.3em; }
    .sidebar .sidebar-list > li.sidebar-group + li{ margin-top: 14px; }
}

/* ================= Videos page ================= */

.videos-page{ max-width: 1560px; }
.vp-head{ display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.vp-head h1{ font-family: var(--display); font-weight: 700; font-size: 1.9em; letter-spacing: -.015em; margin-right: auto; }
.vp-search{ position: relative; width: 300px; max-width: 100%; }
.vp-search i{ position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.15em; }
.vp-search input{ width: 100%; height: 42px; padding: 0 14px 0 36px; border: 1px solid #D6CEE6; border-radius: var(--radius-s);
    background: var(--card); font: inherit; color: var(--ink); box-sizing: border-box; }
.vp-search input:focus{ outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(102,48,189,.16); }

.vp-layout{ display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }

/* category list */
.vp-cats{ position: sticky; top: calc(var(--top-h) + 20px); max-height: calc(100vh - var(--top-h) - 40px); overflow-y: auto;
    display: flex; flex-direction: column; gap: 2px; padding-right: 4px; }
.vp-cats a{ display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-s);
    color: var(--ink); font-weight: 500; font-size: .93em; }
.vp-cats a span{ flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
.vp-cats a b{ font-weight: 500; font-size: .85em; color: var(--muted); font-variant-numeric: tabular-nums; }
.vp-cats a:hover{ background: #ECE7F5; }
.vp-cats a.active{ background: var(--plum); color: #fff; }
.vp-cats a.active b{ color: #CBBEE6; }
.vp-cats a.empty{ color: var(--muted); }
.vp-cats a:first-child{ font-weight: 600; margin-bottom: 6px; }
.vp-cats .vp-cats-manage{ margin-top: 10px; color: var(--action); font-weight: 600; font-size: .88em; }
.vp-cats .vp-cats-manage i{ margin-right: 2px; }

/* groups */
.vp-group{ margin-bottom: 34px; }
.vp-group-head{ display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; }
.vp-group-head h2{ font-family: var(--display); font-weight: 700; font-size: 1.3em; letter-spacing: -.01em; }
.vp-count{ color: var(--muted); font-size: .92em; }
.vp-seeall{ margin-left: auto; font-weight: 600; font-size: .9em; color: var(--action); }
.vp-seeall:hover{ text-decoration: underline; }
.vp-grid-head{ margin-bottom: 16px; }
.vp-grid-head h2{ font-size: 1.5em; }

/* video cards */
.vgrid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.vcard{ display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
    border-radius: 12px; overflow: hidden; }
.vcard-thumb{ position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
    background: linear-gradient(135deg, #3A1F66, var(--plum)); }
.vcard-thumb:before{ content: '\f389'; font-family: 'Ionicons'; position: absolute; inset: 0; display: grid; place-items: center;
    color: rgba(255,255,255,.25); font-size: 2.2em; }
.vcard-thumb img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vcard-thumb:hover img{ opacity: .92; }
.vcard-type{ position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600;
    background: rgba(20,10,35,.72); color: #fff; }
.vcard-featured{ position: absolute; right: 8px; top: 8px; width: 24px; height: 24px; border-radius: 50%; display: grid;
    place-items: center; background: #FFD140; color: #5A3D00; font-size: 13px; }
.vcard-body{ padding: 10px 12px 8px; flex: 1; }
.vcard-title{ font-size: .93em; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; text-align: start; }
.vcard-meta{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; font-size: .82em; color: var(--muted); }
.vcard-meta i{ margin-right: 2px; }
.vcard-cat{ max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vstatus{ display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 7px; border-radius: 999px; font-size: 11.5px;
    font-weight: 600; }
.vstatus:before{ content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.vstatus.on{ background: var(--ok-bg); color: var(--ok); }
.vstatus.off{ background: #EFECF3; color: var(--muted); }
.vcard-actions{ display: flex; border-top: 1px solid var(--line); }
.vcard-actions a{ flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px;
    font-size: .85em; font-weight: 500; color: var(--muted); }
.vcard-actions a + a{ border-left: 1px solid var(--line); }
.vcard-actions a:hover{ background: var(--paper); color: var(--action); }
.vcard-actions a.danger:hover{ background: var(--bad-bg); color: var(--bad); }

.vp-empty{ background: var(--card); border: 1px dashed #CBBFE0; border-radius: var(--radius-m); padding: 40px 24px; text-align: center; }
.vp-empty h2{ font-family: var(--display); font-weight: 700; font-size: 1.3em; margin-bottom: 6px; }
.vp-empty p{ color: var(--muted); margin-bottom: 16px; }

.vp-pager{ display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; color: var(--muted); }
.vp-pager a{ display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid var(--line);
    border-radius: var(--radius-s); background: var(--card); color: var(--ink); font-weight: 500; }
.vp-pager a:hover{ border-color: var(--violet); color: var(--action); }

@media (max-width: 1000px){
    .vp-layout{ grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .vp-cats{ position: static; max-height: none; flex-direction: row; overflow-x: auto; padding: 0 0 6px; gap: 6px;
        scrollbar-width: thin; }
    .vp-cats a, .vp-cats a:first-child{ flex: 0 0 auto; margin: 0; border: 1px solid var(--line); background: var(--card);
        border-radius: 999px; padding: 6px 12px; }
    .vp-cats a span{ max-width: 160px; }
    .vp-cats a.active{ border-color: var(--plum); background: var(--plum); }
    .vp-cats .vp-cats-manage{ margin: 0; }
}
@media (max-width: 640px){
    .vp-head{ flex-wrap: wrap; }
    .vp-head h1{ width: 100%; }
    .vp-search{ flex: 1; width: auto; }
    .vgrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .vcard-actions a{ font-size: .8em; }
}

/* ================= Login security + code inputs ================= */

.code-input{ font-variant-numeric: tabular-nums; letter-spacing: .3em; font-size: 1.25em !important; font-weight: 600; }
.login-alt{ margin-top: 16px; text-align: center; font-size: .9em; }
.login-alt a{ color: var(--action); font-weight: 500; }
.login-alt a:hover{ text-decoration: underline; }

.sec-page{ max-width: 760px; }
.sec-title{ font-family: var(--display); font-weight: 700; font-size: 1.9em; letter-spacing: -.015em; margin-bottom: 20px; }
.sec-card{ background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px 26px; }
.sec-card-head{ display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.sec-card-head h2{ font-family: var(--display); font-weight: 700; font-size: 1.25em; margin-bottom: 4px; }
.sec-card-head p{ color: var(--muted); max-width: 52ch; }
.sec-card-head .vstatus{ font-size: 13px; padding: 3px 12px 3px 10px; flex: none; }
.sec-note{ color: var(--muted); margin-bottom: 12px; }
.sec-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.sec-inline{ display: flex; gap: 10px; align-items: flex-start; max-width: 360px; }
.sec-inline .form-control{ margin-bottom: 0; }
.sec-inline .c-btn{ height: 44px; flex: none; }
.sec-steps{ list-style: none; counter-reset: step; margin: 0 0 16px; padding: 0; }
.sec-steps > li{ counter-increment: step; position: relative; padding: 0 0 22px 44px; }
.sec-steps > li:before{ content: counter(step); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center; background: var(--plum); color: #fff; font-weight: 600; font-size: .9em; }
.sec-steps h3{ font-weight: 600; font-size: 1.02em; margin-bottom: 4px; }
.sec-steps p{ color: var(--muted); margin-bottom: 12px; max-width: 56ch; }
.sec-qr{ display: inline-block; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; line-height: 0; }
.sec-qr img, .sec-qr canvas{ display: block; }
.sec-manual{ margin-top: 12px; }
.sec-manual summary{ cursor: pointer; color: var(--action); font-weight: 500; font-size: .92em; }
.sec-manual p{ margin: 8px 0 6px; }
.sec-manual code, .sec-help code{ font-family: ui-monospace, Menlo, monospace; background: #F0EDF6; padding: 4px 8px; border-radius: 6px;
    font-size: .92em; word-break: break-all; }
.sec-link{ background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.sec-link:hover{ color: var(--ink); }
.sec-help{ margin-top: 18px; color: var(--muted); font-size: .9em; line-height: 1.7; }
@media (max-width: 640px){
    .sec-row{ grid-template-columns: 1fr; }
    .sec-card{ padding: 20px 18px; }
    .sec-steps > li{ padding-left: 0; padding-top: 36px; }
}
