/* =========================================
   1. GLOBAL & DASHBOARD DARK THEME
   ========================================= */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
}

/* Container Dashboard & Admin */
.dashboard-container {
    max-width: 480px; 
    margin: 15px auto;
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    overflow: hidden;
}

.header-bar {
    background: #181818;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.header-bar h2 { margin: 0; font-size: 16px; color: #fff; line-height: 1.2; }
.header-bar h2 span { color: #ee4d2d; font-size: 12px; display: block; font-weight: normal; }

.header-icons { display: flex; gap: 10px; }

.icon-btn {
    background: #333; color: #fff; border: none; border-radius: 8px;
    width: 36px; height: 36px; font-size: 16px; cursor: pointer;
    display: flex; justify-content: center; align-items: center; transition: 0.3s;
}
.icon-btn:hover { background: #555; }

.content-body { padding: 20px; }
.section { margin-bottom: 25px; }

label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #bbb; }

input[type="text"], input[type="password"], input[type="file"], select, textarea {
    width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #3a3a3a;
    background-color: #2a2a2a; color: #fff; box-sizing: border-box; font-size: 14px;
}
input[type="file"] { padding: 10px; font-size: 13px; }
textarea { resize: vertical; min-height: 80px; font-family: inherit; }

select { appearance: none; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23bbbbbb%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 15px top 50%; background-size: 10px auto; }

.custom-input { margin-top: 10px; border-color: #ee4d2d !important; }

button.primary-btn {
    background-color: #ee4d2d; color: white; border: none; padding: 15px;
    width: 100%; font-size: 15px; font-weight: bold; border-radius: 8px;
    cursor: pointer; transition: 0.3s;
}
button.primary-btn:hover { background-color: #d73a1e; }
button.primary-btn:disabled { background-color: #555; cursor: not-allowed; }

.btn-secondary {
    background-color: #ff4d4f; padding: 10px; font-size: 13px; margin-top: 10px;
    width: 100%; border: none; border-radius: 6px; color: white; cursor: pointer;
}

.btn-copy {
    background: #333; color: #fff; border: 1px solid #555; padding: 5px 10px;
    font-size: 11px; border-radius: 4px; cursor: pointer; transition: 0.2s;
}
.btn-copy:hover { background: #ee4d2d; border-color: #ee4d2d; }

.hidden { display: none !important; }

.img-preview { width: 100%; max-height: 300px; border-radius: 8px; overflow: hidden; background: #000; margin-top: 10px; text-align: center; }
.img-preview img { display: inline-block; max-width: 100%; }

.result-box {
    background: #2a2a2a; padding: 15px; border-left: 4px solid #ee4d2d;
    margin-top: 5px; border-radius: 4px; white-space: pre-wrap; font-size: 14px; line-height: 1.5;
}
.result-header { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }

/* Modal Global */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); display: flex; justify-content: center; align-items: center; z-index: 1000;
}
.modal-content {
    background: #1e1e1e; padding: 25px; border-radius: 12px; width: 85%; max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

/* Admin Table Styles */
table { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 12px; }
th, td { border-bottom: 1px solid #333; padding: 12px 8px; text-align: left; }
th { background-color: #181818; color: #ee4d2d; cursor: pointer; }
th:hover { background-color: #222; }
.badge { padding: 4px 8px; border-radius: 4px; font-size: 10px; font-weight: bold; }
.badge-vip { background: #28a745; color: white; }
.badge-reg { background: #555; color: #ccc; }
.action-btn { 
    background: transparent; border: 1px solid #444; color: #ccc; padding: 4px 6px; 
    border-radius: 4px; font-size: 12px; cursor: pointer; margin-right: 2px;
}
.action-btn:hover { background: #333; }

/* =========================================
   2. AUTH PAGES (LOGIN/REGISTER) RED & WHITE
   ========================================= */
.auth-body {
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.curved-header {
    background: #ee4d2d;
    height: 240px;
    border-bottom-left-radius: 50% 20%;
    border-bottom-right-radius: 50% 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    position: relative;
    box-shadow: 0 4px 10px rgba(238, 77, 45, 0.3);
}

.curved-header img {
    max-width: 150px;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: contain;
}

.faq-icon-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.auth-form-container {
    background: white;
    margin: -60px auto 20px auto;
    width: 85%;
    max-width: 400px;
    border-radius: 16px;
    padding: 35px 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
}

.auth-form-container h2 {
    color: #ee4d2d;
    margin: 0 0 5px 0;
    text-align: center;
    font-size: 22px;
}
.auth-form-container p.subtitle {
    text-align: center; color: #888; font-size: 13px; margin-bottom: 25px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 10px 10px 10px 5px;
    border: none;
    border-bottom: 2px solid #eee;
    background: transparent;
    color: #333;
    font-size: 15px;
    outline: none;
    border-radius: 0;
}
.input-group input:focus { border-bottom-color: #ee4d2d; }
.input-group label { color: #888; font-size: 13px; font-weight: normal; margin-bottom: 0; }

.toggle-password {
    position: absolute;
    right: 5px;
    bottom: 12px;
    cursor: pointer;
    color: #999;
    font-size: 18px;
    user-select: none;
}

.auth-btn {
    background: #ee4d2d;
    color: white;
    border: none;
    border-radius: 30px; 
    padding: 15px;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(238, 77, 45, 0.3);
    margin-top: 15px;
    transition: 0.3s;
}

.auth-footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 12px;
    margin-top: auto;
}
.auth-footer a { color: #ee4d2d; text-decoration: none; font-weight: bold; }
.easter-egg { cursor: default; }

/* FAQ Modal Specific */
.faq-content { background: white; color: #333; }
.faq-content h3 { color: #ee4d2d; margin-top: 0; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.faq-scroll { max-height: 60vh; overflow-y: auto; font-size: 13px; line-height: 1.6; }
.faq-scroll strong { color: #ee4d2d; display: block; margin-top: 15px; }