:root {
    --bg: #07120d;
    --panel: #102f1e;
    --panel-2: #0d2418;
    --line: rgba(255,255,255,.12);
    --text: #f4fff8;
    --muted: #b7d7c5;
    --accent: #22c55e;
    --accent-2: #16a34a;
    --danger: #f59e0b;
    --shadow: 0 24px 80px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(34,197,94,.22), transparent 35%),
        radial-gradient(circle at bottom right, rgba(20,83,45,.35), transparent 30%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
}
a { color: inherit; }
.page {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 36px 0;
}
.page.wide { width: min(1480px, calc(100% - 20px)); }
.card {
    background: linear-gradient(180deg, rgba(16,47,30,.98), rgba(8,30,19,.98));
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}
.hero { padding: 34px; margin-bottom: 24px; }
h1, h2 { margin: 0 0 12px; line-height: 1.1; }
h1 { font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -0.05em; }
h2 { font-size: 1.5rem; }
p { color: var(--muted); line-height: 1.6; margin: 0; }
.badge {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: #dfffee;
    background: rgba(34,197,94,.14);
    border: 1px solid rgba(34,197,94,.28);
    margin-bottom: 16px;
    font-weight: 700;
}
.grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: stretch; }
.upload-card, .info-card, .table-card, .topbar { padding: 26px; }
.muted { font-size: .96rem; margin-bottom: 18px; }
.dropzone {
    border: 2px dashed rgba(134,239,172,.45);
    border-radius: 24px;
    min-height: 210px;
    padding: 28px;
    display: grid;
    place-items: center;
    text-align: center;
    cursor: pointer;
    background: rgba(3,12,8,.32);
    transition: .2s ease;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: rgba(34,197,94,.09); }
.dropzone input { display: none; }
.drop-icon { font-size: 52px; line-height: 1; color: #86efac; }
.dropzone strong { display: block; margin-top: 8px; font-size: 1.15rem; }
.dropzone small { display: block; color: var(--muted); margin-top: 6px; }
.file-list { margin: 16px 0; display: grid; gap: 8px; }
.file-item { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); color: #e9fff1; font-size: .92rem; }
.checkline { display: flex; gap: 10px; align-items: center; color: var(--muted); margin: 18px 0; }
.btn {
    border: 0;
    border-radius: 14px;
    padding: 13px 18px;
    color: var(--text);
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04130a; border-color: transparent; }
.btn.ghost { background: rgba(255,255,255,.05); }
.steps { margin: 14px 0 0; padding-left: 22px; color: var(--muted); line-height: 1.9; }
.notice { margin-top: 18px; padding: 14px; border-radius: 16px; background: rgba(245,158,11,.12); color: #ffedc2; border: 1px solid rgba(245,158,11,.22); }
code { background: rgba(0,0,0,.4); padding: 2px 6px; border-radius: 8px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.alerts { display: grid; gap: 10px; margin-bottom: 18px; }
.alert { padding: 13px 16px; background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.28); border-radius: 14px; color: #ffe8b3; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.table-wrap { overflow: auto; border-radius: 18px; border: 1px solid var(--line); max-height: 72vh; }
.data-table { width: 100%; border-collapse: collapse; min-width: 1200px; background: #06120c; }
.data-table th { position: sticky; top: 0; background: #123d25; z-index: 1; color: #eafff0; font-size: .84rem; text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
.data-table td { border-bottom: 1px solid rgba(255,255,255,.06); border-right: 1px solid rgba(255,255,255,.06); padding: 4px; }
.data-table input { width: 100%; min-width: 66px; border: 0; border-radius: 8px; padding: 9px; color: #ffffff; background: rgba(255,255,255,.08); font: inherit; }
.data-table input:focus { outline: 2px solid rgba(34,197,94,.65); background: rgba(34,197,94,.12); }
@media (max-width: 860px) {
    .grid { grid-template-columns: 1fr; }
    .topbar { align-items: flex-start; flex-direction: column; }
    .hero, .upload-card, .info-card, .table-card, .topbar { padding: 20px; border-radius: 20px; }
}
