:root {
    --brand: #ff4d2e;
    --brand-dark: #dc3217;
    --ink: #17202f;
    --soft: #f4f6f9;
}

html, body { min-height: 100%; }
body { color: var(--ink); background: var(--soft); display: flex; flex-direction: column; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
main { flex: 1; }
.navbar-brand { color: var(--ink); letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; display: inline-grid; place-items: center; color: #fff; background: var(--brand); border-radius: 10px; }
.brand-mark-light { background: rgba(255,255,255,.14); }
.hero-section { background: radial-gradient(circle at 15% 10%, rgba(255,77,46,.13), transparent 32%), linear-gradient(135deg, #fff 0%, #f5f7fb 100%); }
.py-lg-6 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--brand-dark); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.feature-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: .5rem; color: var(--brand-dark); background: rgba(255,77,46,.1); border-radius: 9px; }
.upload-card, .auth-card, .share-container .card { border-radius: 22px; }
.upload-icon, .auth-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; color: var(--brand-dark); background: rgba(255,77,46,.1); font-size: 1.6rem; }
.btn-brand { --bs-btn-color: #fff; --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark); }
.form-control:focus, .form-check-input:focus { border-color: rgba(255,77,46,.65); box-shadow: 0 0 0 .25rem rgba(255,77,46,.12); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.share-container { max-width: 760px; }
.narrow-container { max-width: 620px; }
.share-accent { height: 7px; background: linear-gradient(90deg, var(--brand), #ff9b3e); }
.file-icon, .empty-icon { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 24px; color: var(--brand-dark); background: rgba(255,77,46,.1); font-size: 2.4rem; }
.empty-icon { color: #64748b; background: #e9edf3; }
.text-brand { color: var(--brand-dark); }
.letter-spacing { letter-spacing: .1em; }
.share-note { padding: 1rem 1.15rem; color: #445; background: #f7f8fa; border-left: 4px solid var(--brand); border-radius: 8px; }
.password-form { max-width: 520px; }
.short-link-group { max-width: 560px; }
.auth-section { min-height: calc(100vh - 150px); display: grid; align-items: center; background: radial-gradient(circle at 50% 0%, rgba(255,77,46,.12), transparent 35%); }
.auth-card { max-width: 500px; }
.admin-body { display: block; background: #f3f5f8; }
.admin-nav { background: #17202f; }
.admin-nav .nav-link { color: rgba(255,255,255,.75); }
.admin-nav .nav-link:hover { color: #fff; }
.stat-card { height: 100%; display: flex; align-items: center; gap: 1rem; padding: 1.1rem; background: #fff; border-radius: 14px; box-shadow: 0 .125rem .45rem rgba(20,30,50,.05); }
.stat-card small { display: block; color: #6c757d; }
.stat-card strong { display: block; font-size: 1.35rem; }
.stat-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; font-size: 1.25rem; }
.stat-icon.blue { color: #2563eb; background: #dbeafe; }.stat-icon.green { color: #15803d; background: #dcfce7; }.stat-icon.orange { color: #c2410c; background: #ffedd5; }.stat-icon.purple { color: #7e22ce; background: #f3e8ff; }
.table > thead th { padding: .85rem 1rem; color: #64748b; background: #f8fafc; border-bottom-width: 1px; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.table > tbody td { padding: .85rem 1rem; }
.table-file-icon { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; color: #475569; background: #edf1f5; border-radius: 9px; }
.min-w-file { min-width: 280px; }
.file-picker { max-height: 520px; overflow-y: auto; }
.file-picker-row { display: flex; align-items: center; gap: .8rem; padding: .75rem; border-bottom: 1px solid #edf0f3; cursor: pointer; }
.file-picker-row:last-child { border-bottom: 0; }
.file-picker-row:hover { background: #f8fafc; }
.file-picker-row:has(input:checked) { background: rgba(255,77,46,.07); }
.admin-sticky-card { top: 88px; }
code { color: var(--brand-dark); }

@media (max-width: 767.98px) {
    .py-lg-6 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
    .display-4 { font-size: calc(1.55rem + 2vw); }
    .upload-card .card-body { padding: 1.25rem !important; }
    .short-link-group { display: block; }
    .short-link-group .form-control, .short-link-group .btn { width: 100%; border-radius: .375rem !important; }
    .short-link-group .btn { margin-top: .5rem; }
}
