/* ================= RESET ================= */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

/* ================= BACKGROUND ================= */
body {
    background: url("/assets/bg-home.png") center center / cover no-repeat fixed;
    color: #fff;

    /* ✅ Sticky footer layout */
    display: flex;
    flex-direction: column;
}

/* DARK OVERLAY */
.bg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: -1;
}

/* ================= PAGE WRAPPER ================= */
.page-wrapper {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
}

/* ================= COMMON BOX ================= */
.box {
    width: 360px;
    background: #4a4a4a;
    padding: 30px;
    border-radius: 14px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.55);
    transition: .25s;
}

.box:hover {
    transform: translateY(-2px);
}

.box h3 {
    text-align: center;
    margin-bottom: 18px;
    font-size: 20px;
}

/* ================= INPUTS ================= */
input {
    width: 100%;
    padding: 13px;
    margin-top: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: .2s;
}

input:focus {
    box-shadow: 0 0 0 2px rgba(255,152,0,.35);
}

/* ================= BUTTON ================= */
button {
    width: 100%;
    padding: 13px;
    margin-top: 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
    color: #000;
    transition: .25s;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255,152,0,.35);
}

/* ================= ERRORS ================= */
.error {
    color: #ffb3b3;
    text-align: center;
    margin-bottom: 10px;
}

.small {
    text-align: center;
    font-size: 13px;
    opacity: .8;
    margin-top: 14px;
}

/* ================= DASHBOARD ================= */
.dashboard {
    width: 440px;
    background: #4b4b4b;
    border-radius: 18px;
    padding: 28px;
    color: #fff;
    box-shadow: 0 15px 45px rgba(0,0,0,.55);
}

.dashboard h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
}

/* INPUT */
.reg-input {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    text-transform: uppercase;
    border: none;
}

/* ================= GRID ================= */
.rc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 22px;
    align-items: stretch;
}

/* ================= CARD ================= */
.rc-card {
    background: #fff;
    color: #000;
    border-radius: 18px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: .25s;
    box-shadow: 0 8px 22px rgba(0,0,0,.25);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
    position: relative;
}

.rc-card:hover {
    transform: translateY(-6px);
}

/* ================= THUMB ================= */
.thumb {
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 14px;
    margin-bottom: 10px;
}

.thumb img {
    max-height: 75px;
    max-width: 90%;
}

/* ================= TEXT ================= */
.rc-card h4 {
    margin: 6px 0 2px;
    font-size: 15px;
}

.rc-card span {
    font-size: 13px;
    color: #666;
}

/* ================= PRICE ================= */
.price20,
.price50,
.price100 {
    padding: 6px 16px;
    border-radius: 18px;
    display: inline-block;
    margin-top: 8px;
    font-weight: bold;
    font-size: 14px;
}

.price20 { background: #ff9800; color:#000; }
.price50 { background: #03a9f4; color:#fff; }
.price100 { background: #2ecc71; color:#fff; }

/* ================= BADGES ================= */
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #2ecc71;
    color: #fff;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
}

.owner-badge {
    background: #8e24aa;
}

/* ================= LOGOUT ================= */
.logout {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #e53935;
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    z-index: 10;
    box-shadow: 0 5px 14px rgba(0,0,0,.35);
}

.logout:hover {
    background:#ef5350;
}

/* ================= FOOTER ================= */
.ko-footer {
    background: #6f8892;
    color: #fff;
    padding: 40px 20px 0;
}

.ko-footer-inner {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.ko-footer h4 {
    margin-bottom: 12px;
}

.ko-footer a {
    color: #fff;
    text-decoration: none;
    opacity: .9;
}

.ko-footer a:hover {
    text-decoration: underline;
}

.ko-footer-bottom {
    margin-top: 30px;
    background: #5c7680;
    padding: 14px;
    text-align: center;
    font-size: 14px;
}

/* ================= MOBILE ================= */
@media(max-width:480px) {

    .dashboard,
    .box {
        width: 100%;
    }

    .rc-grid {
        grid-template-columns: 1fr;
    }

    .thumb {
        height: 90px;
    }
}
