/* css/menu_panel.css */

/* --- OVERLAY & DROPDOWN --- */

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2999;
    backdrop-filter: blur(2px);
    display: none;
}

.menu-dropdown {
    position: fixed;
    top: 60px;
    right: 10px;
    width: 320px;
    background: #1b1c1d;
    z-index: 3000;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    display: none;
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
    border: 1px solid #2a2b2e;
}

/* --- HEADER --- */

.md-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #202124;
    border-bottom: 1px solid #2c2d30;
}

.md-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.md-av-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #fec501;
    object-fit: cover;
}

.md-uid {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}

.md-change-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2c2d30;
    padding: 6px 12px;
    border-radius: 30px;
    cursor: pointer;
    border: 1px solid #3a3b3f;
}

.md-change-btn:active {
    background: #333;
}

.md-icon-user {
    font-size: 14px;
    color: #888;
}

.md-btn-text {
    font-size: 10px;
    color: #aaa;
    line-height: 1.1;
    text-align: left;
}

/* --- TOGGLES --- */

.md-toggles {
    padding: 10px 0;
    border-bottom: 1px solid #2c2d30;
}

.md-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
}

.md-t-left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ddd;
    font-size: 14px;
}

.md-svg {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.ios-switch {
    position: relative;
    width: 40px;
    height: 22px;
}

.ios-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: .4s;
    border-radius: 22px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #aaa;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #444;
}

input:checked+.slider:before {
    transform: translateX(18px);
    background-color: #fff;
}

/* --- MENU ITEMS --- */

.md-list {
    padding: 10px 0;
}

.md-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.md-item:hover {
    background: #25262a;
}

.md-item-icon {
    width: 22px;
    height: 22px;
    opacity: 0.7;
}

.md-item-text {
    color: #eee;
    font-size: 14px;
}

.md-footer-home {
    border-top: 1px solid #2c2d30;
    padding: 15px;
    text-align: center;
}

.md-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #777;
    font-size: 13px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
}

.md-home-icon {
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

/* --- MODALS --- */

.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 4000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.c-modal-content {
    background: #1b1c1d;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.9);
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.c-modal-content.large-content {
    max-width: 500px;
}

.c-modal-header {
    background: #2c2d30;
    color: #fff;
    padding: 15px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    border-bottom: 1px solid #222;
}

.c-modal-header.orange-header {
    background: #fec501;
    color: #000;
    border-bottom: none;
}

.c-close-box {
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #888;
    background: #1a1a1a;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid #444;
}

.c-close-box.dark-close {
    color: #000;
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.1);
    font-size: 16px;
}

.c-modal-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}

.c-modal-body.no-pad {
    padding: 0;
}

/* --- LIMITS --- */

.limit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #252525;
    border: 1px solid #333;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
}

.limit-row span {
    color: #ccc;
    font-size: 13px;
}

.limit-val {
    background: rgba(40, 169, 9, 0.2);
    border: 1px solid #28a909;
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: bold;
}

/* --- PROVABLY FAIR --- */

.pf-desc {
    color: #888;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.pf-link {
    color: #e50539;
    font-size: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    text-decoration: underline;
}

.pf-box {
    background: #111;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #222;
}

.pf-box-title {
    color: #fff;
    font-size: 13px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pf-icon-img {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.pf-input-group {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.pf-input-group input[type="radio"] {
    accent-color: #28a909;
}

.pf-radio-lbl {
    color: #aaa;
    font-size: 12px;
    margin-left: 8px;
}

.pf-input-field {
    background: #000;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 4px;
    color: #ccc;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    margin: 5px 0 0 25px;
}

.btn-change-seed {
    background: #1a2c1a;
    color: #2ea72e;
    border: 1px solid #2ea72e;
    padding: 8px 24px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 15px;
}

.pf-hash-box {
    background: #000;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #333;
    word-break: break-all;
    color: #aaa;
    font-size: 11px;
    font-family: monospace;
}

/* --- HISTORY TABLE (CARD STYLE) --- */

.hist-table-head {
    display: flex;
    padding: 10px 15px;
    background: transparent;
    color: #888;
    font-size: 11px;
    margin-bottom: 5px;
}

.hist-table-head div {
    flex: 1;
    font-weight: 500;
}

.hist-table-head div:last-child {
    text-align: right;
}

.hist-list-container {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0 5px;
}

/* The Row Card */

.hist-row-m {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 25px;
    /* Rounded */
}

/* Winning Row */

.hist-row-m.win {
    background: rgba(22, 54, 22, 0.6);
    /* Green Tint */
    border: 1px solid #42a836;
    /* Green Border */
    box-shadow: 0 0 5px rgba(66, 168, 54, 0.1);
}

.hist-col {
    flex: 1;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.col-left {
    text-align: left;
    color: #bbb;
    font-size: 13px;
}

.col-center {
    text-align: center;
    font-weight: 700;
}

.col-right {
    text-align: right;
    font-weight: 600;
}

.col-blue {
    color: #3b82f6;
}

.col-purple {
    color: #8b5cf6;
}

.col-pink {
    color: #d946ef;
}

.load-more-btn {
    background: #2c2d30;
    color: #888;
    text-align: center;
    padding: 12px;
    margin: 15px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
}

/* --- HOW TO PLAY --- */

.video-placeholder {
    height: 200px;
    background: #000;
    border-bottom: 4px solid #fec501;
}

iframe {
    width: 100%;
    height: 100%;
}

.htp-steps {
    padding: 20px;
    background: #fec501;
    color: #000;
}

.step-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.step-img {
    width: 45px;
    height: 45px;
    margin-right: 15px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.step-desc {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
    color: #222;
}