:root {
    --font-sans: 'Inter', -apple-system, sans-serif;
    --bg: #1A1400;
    --surface: #231C06;
    --surface-2: #2D240A;
    --border: rgba(243, 156, 18, .1);
    --border-hover: rgba(243, 156, 18, .3);
    --primary: #F39C12;
    --primary-glow: rgba(243, 156, 18, .1);
    --secondary: #F1C40F;
    --text: #E2E8F0;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    --green: #4ADE80;
    --yellow: #FACC15;
    --red: #F87171;
    --radius: 12px;
    --radius-sm: 8px
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6
}

.header {
    padding: .85rem 2rem;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    background: rgba(26, 20, 0, .85);
    position: sticky;
    top: 0;
    z-index: 50
}

.header-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.logo {
    display: flex;
    align-items: center;
    gap: .6rem
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 156, 18, .08);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 1.1rem
}

.logo-text {
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.main {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.25rem 2rem 3rem
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.15rem;
    margin-bottom: 1rem
}

.section-title {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: .65rem
}

.code-input {
    width: 100%;
    resize: vertical;
    padding: .5rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: .78rem;
    outline: none
}

.code-input:focus {
    border-color: var(--primary)
}

.input-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .5rem
}

.check-label {
    font-size: .72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: .2rem;
    cursor: pointer
}

.progress {
    margin-top: .5rem
}

.progress-bar {
    height: 6px;
    background: var(--surface-2);
    border-radius: 3px;
    overflow: hidden
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width .3s ease;
    width: 0
}

.progress-text {
    font-size: .7rem;
    color: var(--text-dim);
    margin-top: .2rem;
    display: block
}

.stats-row {
    display: flex;
    gap: .5rem;
    margin-bottom: .75rem
}

.stat {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .4rem;
    text-align: center
}

.stat-val {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary)
}

.stat-label {
    font-size: .55rem;
    color: var(--text-dim);
    text-transform: uppercase
}

.stat--ok .stat-val {
    color: var(--green)
}

.stat--warn .stat-val {
    color: var(--yellow)
}

.stat--err .stat-val {
    color: var(--red)
}

.table-wrap {
    overflow-x: auto
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .75rem
}

.results-table th {
    padding: .4rem .5rem;
    text-align: left;
    background: var(--surface-2);
    font-size: .6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted)
}

.results-table td {
    padding: .35rem .5rem;
    border-top: 1px solid rgba(255, 255, 255, .03)
}

.results-table tr:hover td {
    background: rgba(243, 156, 18, .03)
}

.status-ok {
    color: var(--green);
    font-weight: 700
}

.status-redirect {
    color: var(--yellow);
    font-weight: 700
}

.status-broken {
    color: var(--red);
    font-weight: 700
}

.status-pending {
    color: var(--text-dim)
}

.url-cell {
    max-width: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.url-cell a {
    color: var(--primary);
    text-decoration: none
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary), #E67E22);
    color: #1A1400;
    padding: .45rem .75rem;
    box-shadow: 0 4px 16px var(--primary-glow)
}

.btn--primary:hover {
    transform: translateY(-1px)
}

.btn--ghost {
    background: transparent;
    color: var(--text-muted);
    padding: .3rem .5rem
}

.btn--ghost:hover {
    background: rgba(243, 156, 18, .06);
    color: var(--text)
}

.btn--sm {
    font-size: .72rem;
    padding: .25rem .4rem
}

.hidden {
    display: none !important
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: .6rem 1rem;
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-weight: 500;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .4);
    opacity: 0;
    pointer-events: none;
    transition: all .4s cubic-bezier(.16, 1, .3, 1);
    z-index: 100
}

.toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0)
}

@media(max-width:600px) {
    .header {
        padding: .7rem 1rem
    }

    .main {
        padding: 1rem
    }

    .stats-row {
        flex-wrap: wrap
    }
}