body {
    font-family: 'Roboto', Arial, sans-serif;
    background: #f6f7fb;
    margin: 0;
    padding: 0;
}
.layout {
    max-width: 1100px;
    margin: 36px auto 0 auto;
    padding: 0 18px 32px 18px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 22px;
    align-items: start;
}
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 28px 26px 22px 26px;
}
.summary {
    background: #111827;
    color: #e5e7eb;
}
.summary h3 {
    margin: 0 0 18px 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    margin: 10px 0;
}
.summary-muted {
    color: #9ca3af;
    font-size: 13px;
}
.summary-divider {
    height: 1px;
    background: rgba(255,255,255,0.10);
    margin: 16px 0;
}
.summary-total {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}
.summary-actions button[type="submit"] {
    width: 100%;
    margin-top: 18px;
    background: linear-gradient(90deg, #4f8cff 0%, #2355d8 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 0;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(79,140,255,0.10);
    transition: background 0.2s;
}

.summary-actions button[type="submit"]:hover {
    background: linear-gradient(90deg, #2355d8 0%, #4f8cff 100%);
}
.summary input[type=text] {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
}
.summary input[type=text]::placeholder { color: rgba(255,255,255,0.55); }
@media (max-width: 920px) {
    .layout { grid-template-columns: 1fr; }
}
h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #222;
    font-weight: 700;
}
label {
    display: block;
    margin: 16px 0 6px 0;
    color: #333;
    font-weight: 500;
}
input[type=text], input[type=email], textarea, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d3d3d9;
    border-radius: 6px;
    font-size: 15px;
    background: #fafbfc;
    margin-bottom: 2px;
    transition: border 0.2s;
}
input[type=text]:focus, input[type=email]:focus, textarea:focus, select:focus {
    border: 1.5px solid #4f8cff;
    outline: none;
}
textarea {
    min-height: 64px;
    resize: vertical;
}
input[type=radio] {
    margin-right: 7px;
}
select {
    cursor: pointer;
}

.theme-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}
.theme-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d3d3d9;
    background: #fafbfc;
    cursor: pointer;
    user-select: none;
}
.theme-option input {
    margin: 0;
}
.theme-option span {
    font-weight: 700;
    color: #111827;
}
.theme-option:hover {
    border-color: rgba(79,140,255,0.55);
}
.theme-option:has(input:checked) {
    border-color: rgba(79,140,255,0.85);
    background: rgba(79,140,255,0.10);
}

.package-section {
    display: none;
    margin-bottom: 12px;
}
.package-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.package-item {
    position: relative;
    padding: 16px 16px;
    border: 1px solid #e6e8ef;
    border-radius: 10px;
    background: #fff;
    min-height: 122px;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.package-item:hover {
    border-color: rgba(79,140,255,0.35);
    box-shadow: 0 10px 22px rgba(17,24,39,0.08);
    transform: translateY(-1px);
}
.package-item.selected {
    border-color: rgba(79,140,255,0.85);
    box-shadow: 0 10px 22px rgba(37,85,216,0.12);
}
.package-item input[type=checkbox] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.package-card {
    display: block;
    cursor: pointer;
    padding-right: 30px;
}
.package-left {
    display: block;
    min-width: 0;
}
.package-left label {
    display: inline;
    margin: 0;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    word-break: break-word;
}
.package-name {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 14px 0;
}
.package-price {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin-top: 6px;
}
.package-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 14px;
}
.qty-select {
    width: auto;
    min-width: 76px;
    margin: 0;
}

.package-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: #2355d8;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.package-item.selected .package-check {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 520px) {
    .package-item {
        min-height: 0;
    }
    .qty-select {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .package-list {
        grid-template-columns: 1fr;
    }
}
button[type=submit] {
    width: 100%;
    background: linear-gradient(90deg, #4f8cff 0%, #2355d8 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 13px 0;
    font-size: 16px;
    font-weight: 600;
    margin-top: 22px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(79,140,255,0.10);
    transition: background 0.2s;
}
button[type=submit]:hover {
    background: linear-gradient(90deg, #2355d8 0%, #4f8cff 100%);
}
::-webkit-input-placeholder { color: #bdbdbd; }
::-moz-placeholder { color: #bdbdbd; }
:-ms-input-placeholder { color: #bdbdbd; }
::placeholder { color: #bdbdbd; }

.admin-container {
    max-width: 1100px;
    margin: 36px auto 0 auto;
    padding: 0 18px 32px 18px;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}
.admin-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}
.admin-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #d3d3d9;
    background: #fff;
    color: #111827;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}
.btn-primary {
    border: none;
    background: linear-gradient(90deg, #4f8cff 0%, #2355d8 100%);
    color: #fff;
}
.btn:hover { opacity: 0.95; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 12px;
}
.admin-table th,
.admin-table td {
    padding: 12px 12px;
    border-bottom: 1px solid #eef0f5;
    text-align: left;
    font-size: 14px;
    color: #111827;
    vertical-align: top;
}
.admin-table th {
    background: #f6f7fb;
    font-weight: 800;
    color: #374151;
}
.admin-table tr:hover td {
    background: #fbfcff;
}
.admin-table td.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    color: #374151;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid transparent;
}
.badge-success {
    background: rgba(16,185,129,0.12);
    color: #065f46;
    border-color: rgba(16,185,129,0.25);
}
.badge-warning {
    background: rgba(245,158,11,0.12);
    color: #92400e;
    border-color: rgba(245,158,11,0.25);
}
.badge-muted {
    background: rgba(107,114,128,0.12);
    color: #374151;
    border-color: rgba(107,114,128,0.20);
}

/* Inline styles moved from PHP files */
.layout-single {
    grid-template-columns: 1fr;
    max-width: 820px;
}

.text-left {
    text-align: left;
}

.margin-bottom-8 {
    margin-bottom: 8px;
}

.color-text {
    color: #374151;
    font-size: 15px;
    line-height: 1.6;
}

.margin-top-10 {
    margin-top: 10px;
}

.display-flex {
    display: flex;
}

.gap-10 {
    gap: 10px;
}

.flex-wrap {
    flex-wrap: wrap;
}

.total-display {
    font-weight: 600;
    color: #2355d8;
    margin-bottom: 14px;
    display: none;
}

.discount-display {
    font-weight: 600;
    color: #e5e7eb;
    margin-top: 12px;
    display: none;
}

.final-display {
    font-weight: 800;
    color: #fff;
    margin-top: 8px;
    display: none;
}

.remove-discount {
    cursor: pointer;
    color: #999;
    font-size: 16px;
    display: none;
}

.remove-discount:hover {
    color: #666;
}

.summary-item-label {
    font-weight: 600;
    color: #fff;
}

.summary-item-price {
    font-weight: 700;
    color: #fff;
}

.error-messages-inline {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.error-list {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.qty-select-hidden {
    display: none;
}

.summary-discount-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-price {
    font-weight: 700;
    color: #fff;
}

.admin-login-body {
    font-family: Roboto, Arial, sans-serif;
    background: #f6f7fb;
    margin: 0;
    padding: 0;
}

.admin-login-card {
    max-width: 420px;
    margin: 70px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 28px 26px;
}

.coupon-msg {
    margin-top: 10px;
    font-size: 14px;
    display: none;
}

.apply-coupon-btn {
    width: auto;
    padding: 10px 14px;
    margin: 0;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.apply-coupon-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
}

.coupon-input {
    flex: 1;
    margin: 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
}

.coupon-input::placeholder {
    color: rgba(255,255,255,0.55);
}

.admin-login-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d3d3d9;
    border-radius: 6px;
    font-size: 15px;
    background: #fafbfc;
    box-sizing: border-box;
}

.admin-login-form button {
    width: 100%;
    margin-top: 18px;
    padding: 12px 0;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #4f8cff 0%, #2355d8 100%);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(79,140,255,0.10);
    transition: background 0.2s;
}

.admin-login-form button:hover {
    background: linear-gradient(90deg, #2355d8 0%, #4f8cff 100%);
}
