:root {
    --ink: #151b35;
    --muted: #68718a;
    --line: #e3e7ef;
    --paper: #ffffff;
    --wash: #f7f9fc;
    --blue: #4932e8;
    --blue-deep: #173fd1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--wash);
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    line-height: 1.6;
}
a { color: inherit; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.navbar, header {
    background: rgba(255,255,255,.95);
    border-bottom: 1px solid var(--line);
    min-height: 60px;
    display: flex;
    align-items: center;
}
.container-nav { width: min(1320px, calc(100% - 48px)); margin: auto; display: flex; align-items: center; gap: 28px; }
.logo, .logo-text, .footer-logo { display: flex; align-items: center; gap: 8px; }
.logo { margin-right: auto; }
.logo-icon { color: var(--blue); font-size: 22px; }
.logo-text, header h1 { font-size: 20px; font-weight: 800; margin: 0; }
.logo-subtitle { display: none; }
.nav-menu { display: flex; gap: 6px; }
.nav-menu a { padding: 7px 12px; border-radius: 8px; font-size: 13px; text-decoration: none; color: var(--muted); }
.nav-menu a:hover { color: var(--blue); background: #f2f0ff; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .icon-btn { border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.btn-dashboard, .btn-primary, .btn-shorten { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; border: 0; border-radius: 8px; padding: 10px 16px; text-decoration: none; font-weight: 700; cursor: pointer; }
main { padding: 28px 0 50px; }
.hero, .shortener-card, .content-page, .recent-links-section, .stats-section, .why-choose-section { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 3px 15px rgba(31,45,80,.04); }
.hero { padding: 54px 36px; background: linear-gradient(135deg, #5937f0, #173fd1); color: white; text-align: center; }
.hero h1, .hero h2 { margin: 0 0 8px; }
.hero p { opacity: .9; }
.shortener-section, .recent-links-section, .stats-section, .why-choose-section { padding: 24px; margin-top: 18px; }
.shortener-card, .content-page { padding: 28px; }
.shortener-form { display: flex; gap: 8px; }
.input-wrapper { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; flex: 1; }
.input-wrapper input, .alias-section input, form input, form textarea { border: 1px solid var(--line); border-radius: 7px; padding: 11px 12px; font: inherit; }
.input-wrapper input { border: 0; flex: 1; outline: 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; }
.links-table-wrapper { overflow-x: auto; }
.links-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.links-table th, .links-table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); }
.links-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.clicks-badge { color: var(--blue); font-weight: 800; }
.stats-grid, .features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-card, .feature-card { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.stat-card i, .feature-card i { color: var(--blue); font-size: 20px; }
.stat-number { font-size: 25px; font-weight: 800; margin-top: 10px; }
.stat-label { font-weight: 700; }
.stat-sublabel, .feature-card p { color: var(--muted); font-size: 13px; }
footer { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: 12px; }
footer .container { display: flex; justify-content: space-between; gap: 16px; }
footer a { text-decoration: none; margin-left: 12px; }
.content-page { max-width: 820px; margin: 0 auto; }
.content-page h2 { margin-top: 28px; }
@media (max-width: 720px) {
    .container-nav { width: calc(100% - 28px); }
    .nav-menu { display: none; }
    .hero { padding: 38px 22px; }
    .shortener-form, .section-header { display: block; }
    .btn-shorten { width: 100%; margin-top: 10px; }
    .stats-grid, .features-grid { grid-template-columns: 1fr; }
    footer .container { display: block; }
    footer nav { margin-top: 8px; }
}
