* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}
a { text-decoration: none; color: #2563eb; }
.container { max-width: 1200px; margin: 24px auto; padding: 0 16px; }
.topbar {
    background: #111827;
    color: #fff;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.brand { font-size: 20px; font-weight: 700; }
.topbar-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    margin-bottom: 18px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.stat {
    font-size: 28px;
    font-weight: 700;
    margin-top: 8px;
}
.muted { color: #6b7280; }
.btn {
    display: inline-block;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-success { background: #059669; color: #fff; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-light { background: #fff; color: #111827; }
form .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}
input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    background: #fff;
}
table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}
th, td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}
th { background: #f9fafb; }
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 12px;
}
.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
}
.alert-success { background: #ecfdf5; color: #065f46; }
.alert-error { background: #fef2f2; color: #991b1b; }
.login-box {
    max-width: 420px;
    margin: 70px auto;
}
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.right { text-align: right; }
@media (max-width: 760px) {
    table { display: block; overflow-x: auto; white-space: nowrap; }
}

.inline-form { margin: 0; }
.badge-gray { background: #e5e7eb; color: #374151; }
.quick-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:20px}
.quick-link{display:block;text-decoration:none;color:inherit;border:1px solid #e6ecf5;border-radius:16px;padding:18px;background:#fff;box-shadow:0 10px 24px rgba(0,0,0,.04)}
.quick-link h3{margin:0 0 10px}.quick-link p{margin:0;color:#667085}.inline-note{font-size:13px;color:#667085;margin-top:8px}

.lottery-modal-overlay{position:fixed;inset:0;background:rgba(15,23,42,.55);display:flex;align-items:center;justify-content:center;padding:20px;z-index:9999}.lottery-modal-card{width:min(520px,100%);background:#fff;border-radius:20px;box-shadow:0 20px 50px rgba(0,0,0,.2);padding:22px}.lottery-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.lottery-modal-head h3{margin:0}.lottery-close{border:none;background:#eef2ff;color:#111827;width:40px;height:40px;border-radius:999px;font-size:24px;cursor:pointer}.lottery-close:hover{background:#e0e7ff}
