/* ============================================
   MUSTAFA PS4/PS5 - GOLDEN EDITION
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

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

body {
    font-family: 'Cairo', sans-serif;
    background: #0d0d0d;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.container {
    width: 100%;
    max-width: 960px;
}

/* ===== HEADER ===== */
header {
    text-align: center;
    padding: 14px 0 10px 0;
}

header h1 {
    font-size: 30px;
    font-weight: 700;
    color: #e8d5a0;
    letter-spacing: 1px;
}

header h1 span {
    background: linear-gradient(180deg, #f9e08a, #b8860b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub {
    font-size: 13px;
    color: #a0926a;
    letter-spacing: 3px;
    margin-top: 2px;
}

.gold-line {
    width: 70px;
    height: 2px;
    margin: 8px auto;
    background: linear-gradient(90deg, transparent, #d4a017, transparent);
}

/* ===== CARD ===== */
.card {
    background: #161616;
    border: 1px solid rgba(212, 160, 23, 0.15);
    border-radius: 16px;
    padding: 18px 22px 14px 22px;
}

/* ===== STATUS ===== */
.status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: #0a0a0a;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(212, 160, 23, 0.06);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
}

.dot.waiting {
    background: #facc15;
}

.dot.error {
    background: #f87171;
}

.dot.success {
    background: #34d399;
}

.status span:not(.dot) {
    color: #c9bda0;
    font-size: 13px;
}

.ver {
    margin-right: auto;
    color: #d4a017 !important;
    font-size: 11px !important;
    opacity: 0.5;
}

/* ===== DEVICE ===== */
.device {
    text-align: center;
    padding: 4px 0 8px 0;
    color: #b8ad8a;
    font-size: 13px;
    border-bottom: 1px solid rgba(212, 160, 23, 0.05);
}

/* ===== OPTIONS ===== */
.options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 12px 0 14px 0;
}

.kernel {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0a0a0a;
    padding: 5px 16px;
    border-radius: 20px;
    border: 1px solid rgba(212, 160, 23, 0.06);
}

.kernel span:first-child {
    color: #a0926a;
    font-size: 13px;
}

.kernel form {
    display: flex;
    gap: 16px;
}

.kernel label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #c9bda0;
    font-size: 13px;
    cursor: pointer;
}

.kernel input[type="radio"] {
    display: none;
}

.kernel input:checked+span {
    background: rgba(212, 160, 23, 0.15);
    color: #f9e08a;
    padding: 2px 8px;
    border-radius: 10px;
}

/* ===== BUTTON ===== */
.btn-gold {
    background: linear-gradient(135deg, #d4a017, #b8860b);
    color: #1a1a1a;
    border: none;
    padding: 9px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: 0 2px 18px rgba(212, 160, 23, 0.12);
}

.btn-gold:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 25px rgba(212, 160, 23, 0.22);
}

.btn-gold:active {
    transform: scale(0.97);
}

.btn-gold:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== AUTO ===== */
.auto {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auto label {
    color: #c9bda0;
    font-size: 13px;
    cursor: pointer;
}

.auto input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 38px;
    height: 20px;
    background: #333;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #555;
    position: relative;
    flex-shrink: 0;
}

.auto input[type="checkbox"]:checked {
    background: #d4a017;
    border-color: #d4a017;
}

.auto input[type="checkbox"]::after {
    content: '';
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.2s;
}

.auto input[type="checkbox"]:checked::after {
    left: 20px;
    background: #1a1a1a;
}

/* ===== CONTENT ===== */
.content {
    display: flex;
    gap: 14px;
}

/* ===== IMAGE ===== */
.image {
    flex: 0 0 27%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: #0a0a0a;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(212, 160, 23, 0.06);
}

.image img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    background: #0a0a0a;
    border: 1px solid rgba(212, 160, 23, 0.08);
}

.image span {
    color: #a0926a;
    font-size: 11px;
    letter-spacing: 1px;
}

/* ===== CONSOLE ===== */
#console {
    flex: 1;
    background: #0a0a0a;
    color: #00ff88;
    font-size: 12px;
    padding: 10px 12px;
    text-align: left;
    height: 200px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid rgba(212, 160, 23, 0.06);
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    direction: ltr;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

#console::-webkit-scrollbar {
    width: 3px;
}

#console::-webkit-scrollbar-thumb {
    background: #d4a017;
    border-radius: 3px;
}

/* ===== FOOTER ===== */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(212, 160, 23, 0.06);
    color: #7a6e4a;
    font-size: 12px;
}

footer span:first-child {
    color: #d4a017;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
    .content {
        flex-direction: column;
    }
    .image {
        flex: 1;
        flex-direction: row;
        padding: 8px 12px;
    }
    .image img {
        width: 60px;
        aspect-ratio: 1/1;
        flex-shrink: 0;
    }
    #console {
        height: 150px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 22px;
    }
    .card {
        padding: 12px 12px 10px 12px;
    }
    .btn-gold {
        font-size: 14px;
        padding: 7px 18px;
        gap: 6px;
    }
    .kernel {
        flex-wrap: wrap;
        justify-content: center;
        padding: 5px 10px;
        gap: 6px;
    }
    .kernel form {
        gap: 12px;
    }
    #console {
        height: 120px;
        font-size: 10px;
        padding: 6px 8px;
    }
    .image img {
        width: 50px;
    }
    .status {
        padding: 4px 10px;
        font-size: 12px;
    }
    .device {
        font-size: 12px;
    }
    .options {
        gap: 8px;
    }
}