body {
    font-family: Arial;
    background: #f5f6fa;
    margin: 0;
}

.topbar {
    background: #1e2a38;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
}

.container {
    padding: 30px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.card {
    background: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-box {
    width: 300px;
    margin: 100px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
}

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

button {
    width: 100%;
    padding: 10px;
    background: #2f6fed;
    color: #fff;
    border: none;
}

.error {
    color: red;
    margin-bottom: 10px;
}

.table-wrap{
    overflow:auto;
    background:#fff;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

.cp-table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
}

.cp-table th,
.cp-table td{
    padding:14px 16px;
    border-bottom:1px solid #eef1f5;
    text-align:left;
    font-size:14px;
}

.cp-table th{
    background:#f7f9fc;
    color:#4b5b76;
}

.status-badge{
    display:inline-block;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
}

.status-badge.active{
    background:#dcfce7;
    color:#166534;
}

.status-badge.pending{
    background:#fef3c7;
    color:#92400e;
}

.status-badge.suspended,
.status-badge.expired,
.status-badge.cancelled{
    background:#fee2e2;
    color:#991b1b;
}

.action-row{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.btn-small{
    display:inline-block;
    padding:8px 12px;
    background:#2f6fed;
    color:#fff;
    text-decoration:none;
    border-radius:8px;
    font-size:13px;
}

.btn-small.btn-alt{
    background:#e5e7eb;
    color:#111827;
}

.empty-box{
    background:#fff;
    border-radius:12px;
    padding:20px;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

.detail-card{
    background:#fff;
    border-radius:12px;
    padding:24px;
    margin-bottom:20px;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

.small-grid{
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1100px){
    .grid,
    .small-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px){
    .grid,
    .small-grid{
        grid-template-columns: 1fr;
    }
}

.form-row{
    margin-bottom:16px;
}

.form-row input[type="text"]{
    width:100%;
    max-width:420px;
    padding:10px 12px;
    border:1px solid #d1d5db;
    border-radius:8px;
    box-sizing:border-box;
}

.notice{
    padding:14px 16px;
    border-radius:10px;
    margin-bottom:16px;
}

.success-box{
    background:#ecfdf5;
    color:#065f46;
    border:1px solid #a7f3d0;
}

.error-box{
    background:#fef2f2;
    color:#991b1b;
    border:1px solid #fecaca;
    padding:14px 16px;
    border-radius:10px;
}

.code-box{
    background:#0f172a;
    color:#e2e8f0;
    padding:16px;
    border-radius:10px;
    overflow:auto;
    white-space:pre-wrap;
    word-break:break-word;
}