/* ─── Variables ─── */
:root {
    --bg:           #0c0c12;
    --surface:      #3d3d3d;
    --card:         #16161f;
    --card-hover:   #1c1c28;
    --border:       #22222e;
    --border-light: #b3b3b3;
    --primary:      #6366f1;
    --primary-h:    #4f52d1;
    --primary-s:    rgba(99,102,241,.12);
    --primary-s2:   rgba(99,102,241,.06);
    --green:        #10b981;
    --green-s:      rgba(16,185,129,.12);
    --red:          #ef4444;
    --red-s:        rgba(239,68,68,.12);
    --amber:        #f59e0b;
    --amber-s:      rgba(245,158,11,.12);
    --blue:         #3b82f6;
    --blue-s:       rgba(59,130,246,.12);
    --text:         #f0f0f6;
    --text-2:       #ffffff;
    --text-3:       #b5b5b5;
    --radius:       8px;
    --radius-lg:    12px;
    --shadow:       0 1px 4px rgba(0,0,0,.4);
    --shadow-md:    0 4px 20px rgba(0,0,0,.5);
    --topbar-h:     clamp(54px, 4vw, 64px);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: clamp(14px, 0.9vw, 16px); }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: #818cf8; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul { list-style: none; }

/* ─── Topbar ─── */
.topbar {
    height: var(--topbar-h);
    background: rgba(17,17,24,.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 200;
    padding: 0 clamp(1.5rem, 3vw, 3rem);
    display: flex; align-items: center; gap: 1.5rem;
}
.topbar-logo {
    font-size: 1rem; font-weight: 700; letter-spacing: -.02em; color: var(--text);
    display: flex; align-items: center; gap: .5rem; white-space: nowrap;
}
.topbar-logo svg { color: var(--primary); }
.topbar-nav { display: flex; align-items: center; gap: .25rem; flex: 1; }
.topbar-link {
    display: flex; align-items: center; gap: .4rem;
    padding: .4rem .7rem; border-radius: var(--radius);
    font-size: .875rem; font-weight: 500; color: var(--text-2);
    transition: color .15s, background .15s;
}
.topbar-link:hover, .topbar-link.active { color: var(--text); background: var(--card); }
.topbar-link svg { flex-shrink: 0; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: .5rem; }

/* User menu */
.user-menu { position: relative; }
.user-btn {
    display: flex; align-items: center; gap: .5rem;
    padding: .35rem .6rem; border-radius: var(--radius);
    background: none; border: 1px solid var(--border);
    color: var(--text); cursor: pointer; font-size: .875rem; font-weight: 500;
    transition: border-color .15s, background .15s;
}
.user-btn:hover { background: var(--card); border-color: var(--border-light); }
.user-avatar {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--primary-s); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: .7rem; font-weight: 700; letter-spacing: 0;
    flex-shrink: 0;
}
.user-dropdown {
    position: absolute; right: 0; top: calc(100% + 6px);
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: .4rem;
    min-width: 180px; box-shadow: var(--shadow-md);
    display: none;
}
.user-dropdown.open { display: block; }
.user-dropdown-item {
    display: flex; align-items: center; gap: .6rem;
    padding: .5rem .7rem; border-radius: var(--radius);
    color: var(--text-2); font-size: .875rem; font-weight: 500;
    transition: color .15s, background .15s; cursor: pointer; border: none; background: none; width: 100%;
}
.user-dropdown-item:hover { color: var(--text); background: var(--card-hover); }
.user-dropdown-item.danger:hover { color: var(--red); background: var(--red-s); }
.user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: .3rem 0; }

/* ─── Layout ─── */
.page { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
.page-sm { max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem; }

/* ─── Page header ─── */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.page-header h1 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; }
.page-header p { color: var(--text-2); font-size: .9rem; margin-top: .2rem; }

/* ─── Auth page ─── */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; }
.auth-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.25rem; width: 100%; max-width: 400px; box-shadow: var(--shadow-md); }
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--primary-s); border-radius: var(--radius-lg); color: var(--primary); margin-bottom: .75rem; }
.auth-logo h1 { font-size: 1.15rem; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.auth-logo p { color: var(--text-2); font-size: .8rem; margin-top: .2rem; }

/* ─── Tabs ─── */
.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.tab-btn { flex: 1; padding: .6rem; background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-2); cursor: pointer; font-size: .875rem; font-weight: 500; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ─── Forms ─── */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: .8rem; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem; }
.form-control {
    width: 100%; padding: .55rem .8rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text);
    font-size: .9rem; transition: border-color .15s, box-shadow .15s; outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-s); }
.form-control::placeholder { color: var(--text-3); }
textarea.form-control { resize: vertical; min-height: 110px; line-height: 1.6; font-family: 'SF Mono', 'Fira Code', monospace; font-size: .85rem; }
select.form-control { cursor: pointer; }
.form-hint { font-size: .78rem; color: var(--text-3); margin-top: .35rem; }

.input-wrap { position: relative; }
.input-wrap .form-control { padding-right: 2.5rem; }
.input-action { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-3); cursor: pointer; padding: .2rem; border-radius: 4px; display: flex; transition: color .15s; }
.input-action:hover { color: var(--text); }

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .5rem 1rem; border: 1px solid transparent; border-radius: var(--radius); font-size: .875rem; font-weight: 500; cursor: pointer; transition: all .15s; white-space: nowrap; text-decoration: none; line-height: 1; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-h); border-color: var(--primary-h); color: #fff; }

.btn-secondary { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--card-hover); border-color: var(--border-light); color: var(--text); }

.btn-danger { background: var(--red-s); color: var(--red); border-color: rgba(239,68,68,.25); }
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }

.btn-ghost { background: none; color: var(--text-2); border-color: transparent; }
.btn-ghost:hover { color: var(--text); background: var(--card); }

.btn-sm { padding: .35rem .65rem; font-size: .8rem; }
.btn-xs { padding: .25rem .5rem; font-size: .75rem; border-radius: 5px; }
.btn-block { width: 100%; }
.btn-icon { padding: .45rem; }

/* ─── Alerts ─── */
.alert { display: flex; align-items: flex-start; gap: .6rem; padding: .75rem .9rem; border-radius: var(--radius); font-size: .875rem; margin-bottom: 1rem; border: 1px solid transparent; }
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert-error   { background: var(--red-s);   border-color: rgba(239,68,68,.25);  color: #fca5a5; }
.alert-success { background: var(--green-s); border-color: rgba(16,185,129,.25); color: #6ee7b7; }
.alert-info    { background: var(--primary-s); border-color: rgba(99,102,241,.25); color: #a5b4fc; }
.alert-warning { background: var(--amber-s); border-color: rgba(245,158,11,.25); color: #fcd34d; }

/* ─── Stats ─── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 1.75rem; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; }
.stat-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin-bottom: .4rem; }
.stat-val { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat-val.indigo { color: var(--primary); }
.stat-val.green  { color: var(--green); }
.stat-val.red    { color: var(--red); }
.stat-val.amber  { color: var(--amber); }

/* ─── Filters ─── */
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: .25rem; }
.filter-tab { display: flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 20px; font-size: .8rem; font-weight: 500; color: var(--text-2); background: none; border: 1px solid transparent; cursor: pointer; transition: all .15s; text-decoration: none; }
.filter-tab:hover { color: var(--text); background: var(--card); border-color: var(--border); }
.filter-tab.active { color: var(--primary); background: var(--primary-s); border-color: rgba(99,102,241,.3); }
.filter-count { background: var(--surface); border-radius: 10px; padding: .05rem .35rem; font-size: .7rem; }
.filter-tab.active .filter-count { background: var(--primary-s); }

/* ─── Shares table ─── */
.shares-table { width: 100%; border-collapse: collapse; }
.shares-table thead tr { border-bottom: 1px solid var(--border); }
.shares-table th { padding: .5rem .75rem; font-size: .72rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; text-align: left; white-space: nowrap; }
.shares-table tbody tr { border-bottom: 1px solid var(--border); transition: background .1s; }
.shares-table tbody tr:last-child { border-bottom: none; }
.shares-table tbody tr:hover { background: var(--card-hover); }
.shares-table td { padding: .75rem; vertical-align: middle; }
.row-link:hover { color: var(--indigo) !important; }

.share-type-cell { display: flex; align-items: center; gap: .7rem; }
.type-ico-wrap { width: 32px; height: 32px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.type-ico-wrap.password { background: var(--amber-s); color: var(--amber); }
.type-ico-wrap.text     { background: var(--blue-s);  color: var(--blue); }
.type-ico-wrap.file     { background: var(--green-s); color: var(--green); }
.share-title-text { font-weight: 500; font-size: .9rem; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-title-sub { font-size: .75rem; color: var(--text-3); margin-top: .1rem; }

/* ─── Badges ─── */
.badge { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .5rem; border-radius: 20px; font-size: .72rem; font-weight: 600; border: 1px solid transparent; }
.badge-type     { background: var(--primary-s);  color: #818cf8; border-color: rgba(99,102,241,.25); }
.badge-active   { background: var(--green-s);    color: #34d399; border-color: rgba(16,185,129,.25); }
.badge-expired  { background: var(--red-s);      color: #f87171; border-color: rgba(239,68,68,.25); }
.badge-lock     { background: var(--amber-s);    color: #fbbf24; border-color: rgba(245,158,11,.25); }
.badge-neutral  { background: var(--surface);    color: var(--text-3); border-color: var(--border); }
.badge-blue     { background: var(--blue-s);     color: #60a5fa; border-color: rgba(59,130,246,.25); }

/* Status dot */
.status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-dot.green  { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-dot.red    { background: var(--red); }
.status-dot.amber  { background: var(--amber); }

/* ─── Table wrapper card ─── */
.table-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.table-card-header { padding: .75rem 1rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }

/* ─── Actions ─── */
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: .25rem; opacity: 0; transition: opacity .15s; }
tr:hover .row-actions { opacity: 1; }

/* ─── Empty state ─── */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-3); }
.empty-state-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); color: var(--text-3); margin-bottom: 1rem; }
.empty-state h3 { font-size: 1rem; font-weight: 600; color: var(--text-2); margin-bottom: .35rem; }
.empty-state p { font-size: .875rem; max-width: 300px; margin: 0 auto .75rem; }

/* ─── Create form sections ─── */
.form-section { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1rem; }
.form-section-header { padding: .85rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: .6rem; }
.form-section-header h3 { font-size: .875rem; font-weight: 600; }
.form-section-header svg { color: var(--text-3); }
.form-section-body { padding: 1.25rem; }

/* ─── Type selector ─── */
.type-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.type-option input { display: none; }
.type-label { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem .75rem; border: 1.5px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: all .15s; font-size: .8rem; font-weight: 500; color: var(--text-2); text-align: center; }
.type-label-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius); transition: all .15s; }
.type-label .ico-password { background: var(--amber-s); color: var(--amber); }
.type-label .ico-text     { background: var(--blue-s);  color: var(--blue); }
.type-label .ico-file     { background: var(--green-s); color: var(--green); }
.type-option input:checked + .type-label { border-color: var(--primary); background: var(--primary-s2); color: var(--text); }

/* ─── File dropzone ─── */
.dropzone {
    border: 1.5px dashed var(--border-light); border-radius: var(--radius-lg);
    padding: 2rem; text-align: center; cursor: pointer;
    transition: border-color .2s, background .2s; position: relative;
}
.dropzone.drag-over { border-color: var(--primary); background: var(--primary-s2); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dropzone-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text-3); margin: 0 auto .75rem; }
.dropzone-text { font-size: .875rem; font-weight: 500; color: var(--text-2); }
.dropzone-hint { font-size: .75rem; color: var(--text-3); margin-top: .3rem; }

.file-list { margin-top: .75rem; display: flex; flex-direction: column; gap: .35rem; }
.file-item { display: flex; align-items: center; gap: .6rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem .75rem; }
.file-item-icon { color: var(--text-3); flex-shrink: 0; }
.file-item-name { font-size: .85rem; font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item-size { font-size: .75rem; color: var(--text-3); flex-shrink: 0; }
.file-item-remove { background: none; border: none; color: var(--text-3); cursor: pointer; padding: .15rem; border-radius: 4px; display: flex; transition: color .15s; flex-shrink: 0; }
.file-item-remove:hover { color: var(--red); }

/* ─── Expiry picker ─── */
.expiry-grid { display: flex; flex-wrap: wrap; gap: .35rem; }
.exp-option input { display: none; }
.exp-label { display: inline-block; padding: .35rem .7rem; border: 1px solid var(--border); border-radius: 20px; font-size: .8rem; font-weight: 500; color: var(--text-2); cursor: pointer; transition: all .15s; }
.exp-option input:checked + .exp-label { border-color: var(--green); color: var(--green); background: var(--green-s); }

/* ─── Password / reveal field ─── */
.reveal-wrap { position: relative; cursor: pointer; }
.reveal-field { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace; font-size: .9rem; line-height: 1.6; white-space: pre-wrap; word-break: break-all; min-height: 60px; transition: filter .25s; }
.reveal-field.blurred { filter: blur(6px); user-select: none; }
.reveal-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; color: var(--text-2); font-size: .85rem; font-weight: 500; pointer-events: none; transition: opacity .2s; }
.reveal-wrap:hover .reveal-overlay { color: var(--text); }
.reveal-overlay svg { color: var(--primary); }

/* ─── View page ─── */
.view-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; background: var(--bg); }
.view-card {
    /* Svetlá téma pre verejné stránky */
    --bg:           #dce8f8;
    --surface:      #edf4ff;
    --card:         #d4e4f5;
    --card-hover:   #c8daf0;
    --border:       #b0c8e8;
    --border-light: #9ab8e0;
    --text:         #0a1628;
    --text-2:       #1e3a5f;
    --text-3:       #4a6a96;
    background: #e4effc;
    border: 1px solid #b0c8e8;
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    width: 100%; max-width: 580px;
    box-shadow: 0 8px 40px rgba(0,0,0,.22);
    color: #0a1628;
    font-size: 1rem;
}
.view-card .view-brand { font-size: .9rem; font-weight: 700; }
.view-card .view-title { font-size: 1.4rem; font-weight: 800; color: #0a1628; letter-spacing: -.02em; }
.view-card p, .view-card .form-hint { font-size: .95rem; color: #1e3a5f; }
.view-card .form-label { font-size: .82rem; font-weight: 700; color: #1e3a5f; }
.view-card .form-control { font-size: .95rem; font-weight: 500; }
.view-card .btn { font-size: .9rem; font-weight: 600; }
.view-card .alert { font-size: .9rem; }
.view-brand { display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: .8rem; font-weight: 600; color: var(--text-3); margin-bottom: 1.5rem; }
.view-brand svg { color: var(--primary); }
.view-type { display: flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.view-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.view-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.view-content { margin: 1.25rem 0; }
.view-actions { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }

/* File list in view */
.view-files { display: flex; flex-direction: column; gap: .5rem; }
.view-file { display: flex; align-items: center; gap: .75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem; }
.view-file-icon { flex-shrink: 0; color: var(--green); }
.view-file-info { flex: 1; min-width: 0; }
.view-file-name { font-weight: 500; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view-file-size { font-size: .75rem; color: var(--text-3); margin-top: .1rem; }

/* Expiry progress */
.expiry-progress { margin-top: 1.25rem; }
.expiry-progress-label { display: flex; justify-content: space-between; font-size: .75rem; color: var(--text-3); margin-bottom: .35rem; }
.progress-bar { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 2px; transition: width .5s; }

/* Password gate */
.pw-gate { text-align: center; }
.pw-gate-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: var(--amber-s); border: 1px solid rgba(245,158,11,.25); border-radius: var(--radius-lg); color: var(--amber); margin-bottom: 1rem; }
.pw-gate h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: .3rem; }
.pw-gate p { font-size: .875rem; color: var(--text-2); margin-bottom: 1.25rem; }

/* ─── Profile page ─── */
.profile-grid { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: start; }
.profile-nav { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.profile-nav-item { display: flex; align-items: center; gap: .6rem; padding: .65rem 1rem; font-size: .875rem; font-weight: 500; color: var(--text-2); transition: all .15s; cursor: pointer; border: none; background: none; width: 100%; text-align: left; }
.profile-nav-item:hover { color: var(--text); background: var(--card-hover); }
.profile-nav-item.active { color: var(--primary); background: var(--primary-s); }
.profile-nav-item + .profile-nav-item { border-top: 1px solid var(--border); }

.profile-user-info { display: flex; align-items: center; gap: .9rem; padding: 1.25rem; border-bottom: 1px solid var(--border); }
.profile-avatar-lg { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-s); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; }
.profile-user-name { font-weight: 600; font-size: .9rem; }
.profile-user-email { font-size: .78rem; color: var(--text-3); margin-top: .1rem; }

/* ─── Divider ─── */
.divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }

/* ─── Copy URL in table ─── */
.url-cell { display: flex; align-items: center; gap: .4rem; }
.url-text { font-size: .75rem; color: var(--text-3); font-family: monospace; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── Truncate ─── */
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── Expired row ─── */
.row-expired td { opacity: .45; }

/* ─── Icon color helpers ─── */
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-amber  { color: var(--amber); }
.text-muted  { color: var(--text-3); }
.text-2      { color: var(--text-2); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .profile-grid { grid-template-columns: 1fr; }
    .shares-table thead { display: none; }
    .shares-table tbody tr { display: block; padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
    .shares-table td { display: flex; align-items: center; padding: .25rem 0; border: none; }
    .shares-table td::before { content: attr(data-label); font-size: .72rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; width: 80px; flex-shrink: 0; }
    .share-type-cell { flex: 1; }
    .row-actions { opacity: 1; }
    .type-selector { grid-template-columns: repeat(3, 1fr); }
    .topbar-link span { display: none; }
    .page, .page-sm { padding: 1.25rem 1rem; }
}
@media (max-width: 480px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .topbar-logo span { display: none; }
}
