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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    min-height: 100vh;
    padding: 20px 10px;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #f57c00, #ff9800);
    color: #fff;
    text-align: center;
    padding: 28px 20px;
}

.site-logo {
    width: 84px;
    height: 84px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 6px;
    margin: 0 auto 12px auto;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header h1 {
    font-size: 22px;
    margin-bottom: 6px;
}

.header p {
    font-size: 14px;
    opacity: 0.95;
}

.form-body {
    padding: 26px 24px;
}

.field {
    margin-bottom: 18px;
}

label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
}

input, select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

input:focus, select:focus {
    outline: none;
    border-color: #e65100;
}

.fee-box {
    background: #fff3e0;
    border: 1px dashed #e65100;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #b71c1c;
}

button.pay-btn {
    width: 100%;
    background: #b71c1c;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

button.pay-btn:hover { background: #8f1717; }
button.pay-btn:disabled { background: #999; cursor: not-allowed; }

.msg {
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}

.msg.error { background: #ffebee; color: #b71c1c; border: 1px solid #ef9a9a; }
.msg.success { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }

.success-screen {
    text-align: center;
    padding: 40px 24px;
    display: none;
}

.success-screen .tick {
    font-size: 52px;
    color: #2e7d32;
    margin-bottom: 12px;
}

.success-screen h2 { color: #1b5e20; margin-bottom: 10px; }
.success-screen p { color: #444; margin-bottom: 6px; }

/* ---- Admin panel ---- */
.admin-wrap {
    max-width: 1100px;
    margin: 20px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    padding: 20px;
}

.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.admin-top h2 { color: #b71c1c; }

.btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-primary { background: #2e7d32; color: #fff; }
.btn-secondary { background: #b71c1c; color: #fff; }
.btn-outline { background: #fff; color: #b71c1c; border: 1px solid #b71c1c; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th, td {
    padding: 9px 8px;
    border-bottom: 1px solid #eee;
    text-align: left;
    white-space: nowrap;
}

th { background: #fff3e0; color: #b71c1c; }

.search-box {
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    min-width: 220px;
}

.login-wrap {
    max-width: 380px;
    margin: 60px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.login-wrap h2 { color: #b71c1c; margin-bottom: 20px; text-align: center; }

.table-scroll { overflow-x: auto; }

.pagination { margin-top: 16px; text-align: center; }
.pagination a {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
}
.pagination a.active { background: #b71c1c; color: #fff; border-color: #b71c1c; }

.admin-nav {
    max-width: 1100px;
    margin: 16px auto 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-nav-links a {
    display: inline-block;
    margin-right: 8px;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: #b71c1c;
    background: #fff3e0;
}

.admin-nav-links a.active {
    background: #b71c1c;
    color: #fff;
}

.admin-nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #555;
}

.role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    background: #e8f5e9;
    color: #1b5e20;
}

.role-badge.subadmin {
    background: #fff3e0;
    color: #e65100;
}
