:root {
    --gold: #c7902f;
    --gold-2: #f1c15d;
    --brown: #5b3514;
    --ink: #101114;
    --ink-2: #1b1d22;
    --charcoal: #2a2d33;
    --muted: #69707d;
    --line: #e7dfd2;
    --paper: #f7f2e8;
    --soft: #fffaf1;
    --white: #ffffff;
    --danger: #b42318;
    --success: #157347;
    --warning: #b26a00;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(16, 17, 20, .14);
    --shadow-soft: 0 14px 38px rgba(16, 17, 20, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fffaf1 0%, #f5efe5 45%, #ffffff 100%);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1180px, calc(100% - 34px)); margin: 0 auto; }

.site-header, .admin-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(16, 17, 20, .94);
    border-bottom: 1px solid rgba(255,255,255,.09);
    backdrop-filter: blur(18px);
}
.nav-wrap, .admin-nav { display: flex; justify-content: space-between; align-items: center; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); font-weight: 950; letter-spacing: -.035em; font-size: 1.22rem; }
.brand::before { content: 'LCS'; display: grid; place-items: center; width: 54px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #17120a; font-size: .88rem; letter-spacing: .06em; box-shadow: 0 10px 28px rgba(199,144,47,.28); }
.brand span { color: var(--gold-2); }
.main-nav, .admin-nav nav { display: flex; gap: 4px; align-items: center; color: rgba(255,255,255,.78); font-weight: 850; font-size: .94rem; }
.main-nav a, .admin-nav nav a { padding: 10px 13px; border-radius: 999px; transition: .18s ease; }
.main-nav a:hover, .admin-nav nav a:hover { color: var(--ink); background: var(--gold-2); }
.nav-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,.25); color: white; border-radius: 12px; padding: 9px 13px; }

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    padding: 94px 0 76px;
    background:
        linear-gradient(120deg, rgba(16,17,20,.96) 0%, rgba(24,17,10,.94) 52%, rgba(70,42,16,.88) 100%),
        radial-gradient(circle at 88% 12%, rgba(241,193,93,.45), transparent 33%);
}
.hero::before { content: ''; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(135deg, transparent 0 47%, rgba(255,255,255,.22) 48% 51%, transparent 52% 100%); background-size: 46px 46px; }
.hero::after { content: ''; position: absolute; right: -140px; bottom: -160px; width: 520px; height: 520px; border: 80px solid rgba(241,193,93,.12); border-radius: 50%; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.03fr .97fr; gap: 50px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--gold-2); text-transform: uppercase; letter-spacing: .14em; font-weight: 950; font-size: .77rem; }
.kicker::before { content: ''; width: 32px; height: 2px; background: var(--gold-2); }
.hero h1 { font-size: clamp(2.8rem, 5.7vw, 5.8rem); line-height: .9; margin: 14px 0 22px; letter-spacing: -.075em; max-width: 760px; }
.hero p { color: rgba(255,255,255,.78); font-size: 1.13rem; max-width: 680px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-badge { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: rgba(255,255,255,.86); padding: 9px 12px; border-radius: 999px; font-weight: 850; font-size: .88rem; }

.tracking-card { background: rgba(255,255,255,.97); color: var(--ink); border-radius: 32px; padding: 32px; box-shadow: var(--shadow); border: 1px solid rgba(241,193,93,.34); }
.tracking-card h2 { margin: 0 0 8px; font-size: 1.65rem; letter-spacing: -.03em; }
.tracking-card p { color: var(--muted); margin: 0; }
.track-form { display: flex; gap: 12px; margin-top: 22px; }
input, select, textarea { width: 100%; padding: 15px 16px; border: 1px solid #d9d0c1; border-radius: 16px; font: inherit; color: var(--ink); background: white; transition: .16s ease; }
textarea { min-height: 126px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 4px solid rgba(199,144,47,.18); border-color: var(--gold); box-shadow: 0 10px 22px rgba(16,17,20,.06); }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 14px 19px; border-radius: 16px; border: 0; cursor: pointer; font-weight: 950; font-size: .94rem; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #17120a; box-shadow: 0 14px 28px rgba(199,144,47,.28); }
.btn-dark { background: var(--ink); color: white; }
.btn-outline { border: 1px solid #d5c9b7; color: var(--ink); background: white; }
.btn-danger { background: var(--danger); color: white; }

.section { padding: 76px 0; }
.section-tight { padding: 46px 0; }
.section-title { font-size: clamp(2.05rem, 3.4vw, 3.35rem); line-height: 1.03; letter-spacing: -.055em; margin: 0 0 16px; }
.section-lead { color: var(--muted); max-width: 780px; margin: 0 0 32px; font-size: 1.05rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { position: relative; background: rgba(255,255,255,.95); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-soft); border: 1px solid rgba(26,29,34,.07); overflow: hidden; }
.card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--gold), transparent); opacity: .85; }
.card h2, .card h3 { letter-spacing: -.035em; margin-top: 0; }
.card p { color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 20px; padding: 17px; color: rgba(255,255,255,.78); }
.stat strong { display: block; color: var(--gold-2); font-size: 1.38rem; line-height: 1.1; }
.logo-strip { background: var(--ink); color: rgba(255,255,255,.72); padding: 14px 0; border-top: 1px solid rgba(255,255,255,.08); }
.logo-strip-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .86rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.tracking-result { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: start; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; background: rgba(199,144,47,.14); color: var(--brown); font-weight: 950; font-size: .86rem; }
.status-pill::before { content: ''; width: 8px; height: 8px; border-radius: 99px; background: var(--gold); }
.alert { padding: 14px 16px; border-radius: 16px; margin: 14px 0; font-weight: 800; }
.alert-danger { color: var(--danger); background: #fff1f0; border: 1px solid #ffd1cc; }
.alert-warning { color: var(--warning); background: #fff7e6; border: 1px solid #ffe0a3; }
.alert-success { color: var(--success); background: #eaf7ef; border: 1px solid #bde5cb; }
.details-list { display: grid; gap: 12px; margin-top: 20px; }
.detail { display: grid; grid-template-columns: 166px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid #eee7dc; }
.detail span:first-child { color: var(--muted); font-weight: 850; }
.timeline { position: relative; padding-left: 25px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--gold), #ead9bd); }
.timeline-item { position: relative; padding: 0 0 25px 22px; }
.timeline-dot { position: absolute; left: -24px; top: 5px; width: 17px; height: 17px; border-radius: 50%; background: var(--gold); border: 4px solid white; box-shadow: 0 0 0 2px var(--gold); }
.timeline-item h3 { margin: 0 0 4px; }
.timeline-meta { color: var(--muted); font-size: .92rem; font-weight: 800; }

.page-hero { background: linear-gradient(135deg, var(--ink), #2f1d0b 70%, #5a3512); color: white; padding: 68px 0; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -70px; top: -100px; width: 310px; height: 310px; border: 58px solid rgba(241,193,93,.12); border-radius: 999px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero p { color: rgba(255,255,255,.76); max-width: 760px; }

.site-footer { background: #0d0e10; color: rgba(255,255,255,.72); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .7fr 1fr; gap: 34px; }
.footer-grid h3 { color: white; }
.footer-grid a:not(.brand) { display: block; margin: 8px 0; color: rgba(255,255,255,.72); }
.footer-grid a:not(.brand):hover { color: var(--gold-2); }
.footer-brand { margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); text-align: center; margin-top: 34px; padding: 18px; font-size: .92rem; }

.admin-body { background: #f4efe6; }
.admin-main { padding: 34px 0 70px; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.admin-card { background: white; border-radius: 20px; padding: 22px; border: 1px solid #e8dfd1; box-shadow: var(--shadow-soft); }
.admin-card span { color: var(--muted); font-weight: 850; }
.admin-card strong { font-size: 2rem; display: block; letter-spacing: -.04em; }
.table-wrap { overflow-x: auto; background: white; border-radius: 20px; border: 1px solid #e8dfd1; box-shadow: var(--shadow-soft); }
table { width: 100%; border-collapse: collapse; min-width: 960px; }
th, td { padding: 15px 16px; border-bottom: 1px solid #eee7dc; text-align: left; vertical-align: top; }
th { background: #151515; color: white; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
tr:hover td { background: #fffaf1; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 7px; font-weight: 850; color: #303238; }
.login-screen { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at top right, rgba(241,193,93,.28), transparent 32%), linear-gradient(135deg, #0d0d0f, #2a1b07); padding: 24px; }
.login-card { width: min(460px, 100%); background: white; border-radius: 30px; padding: 34px; box-shadow: var(--shadow); }
.login-card .brand { color: var(--ink); margin-bottom: 18px; }
.login-card .brand::before { color: var(--ink); }
.login-card h1 { letter-spacing: -.045em; margin-bottom: 4px; }
.login-card p { color: var(--muted); }

@media (max-width: 900px) {
    .hero-grid, .tracking-result, .footer-grid, .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
    .stat-row, .admin-grid { grid-template-columns: repeat(2, 1fr); }
    .track-form { flex-direction: column; }
    .main-nav { display: none; position: absolute; left: 17px; right: 17px; top: 78px; background: #111; padding: 18px; border-radius: 18px; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
    .main-nav.is-open { display: flex; }
    .nav-toggle { display: block; }
    .admin-nav { flex-direction: column; gap: 14px; align-items: flex-start; padding: 16px 0; }
    .admin-nav nav { flex-wrap: wrap; }
}
@media (max-width: 560px) {
    .container { width: min(100% - 24px, 1180px); }
    .hero { padding: 68px 0 50px; }
    .stat-row, .admin-grid { grid-template-columns: 1fr; }
    .detail { grid-template-columns: 1fr; gap: 3px; }
    .tracking-card, .card { padding: 22px; border-radius: 22px; }
    .brand { font-size: 1.03rem; }
    .brand::before { width: 48px; height: 34px; }
}
