/* iHook Slots Modern Casino Design */
.ihook-slots-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 15px 40px;
}

.slots-header-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(13, 21, 51, 0.85) 0%, rgba(30, 27, 75, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 16px 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.slots-title-group h1 {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 60%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slots-title-group p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #94a3b8;
}

.slots-main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

@media (max-width: 960px) {
    .slots-main-grid {
        grid-template-columns: 1fr;
    }
}

/* Machine Frame */
.slots-machine-frame {
    background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #0a0d24 100%);
    border: 2px solid rgba(124, 58, 237, 0.4);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.25), inset 0 0 20px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.slots-machine-frame::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #0066ff, #7c3aed, #ec4899);
}

/* Reels Container */
.slots-reels-viewport {
    background: rgba(4, 8, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 12px;
    position: relative;
    box-shadow: inset 0 10px 25px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.slots-reels-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    position: relative;
    z-index: 2;
}

.slot-column {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    height: 330px;
    position: relative;
}

.slot-reel-strip {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.1s linear;
}

.slot-symbol-cell {
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slot-symbol-icon {
    font-size: 46px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
    transition: transform 0.3s ease;
}

.slot-symbol-name {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slot-symbol-cell.highlight-win {
    background: rgba(236, 72, 153, 0.15);
    border-radius: 8px;
    box-shadow: inset 0 0 15px rgba(236, 72, 153, 0.6);
    animation: winPulse 1.2s infinite alternate;
}

.slot-symbol-cell.highlight-win .slot-symbol-icon {
    transform: scale(1.18);
}

@keyframes winPulse {
    0% { transform: scale(0.98); filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.6)); }
    100% { transform: scale(1.04); filter: drop-shadow(0 0 20px rgba(244, 114, 182, 1)); }
}

/* Paylines SVG Overlay */
.paylines-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Control Panel */
.slots-controls-panel {
    background: rgba(13, 21, 51, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.control-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px;
}

.control-label {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.bet-input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bet-input-field {
    flex: 1;
    height: 42px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    outline: none;
}

.quick-bet-btn {
    height: 42px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #cbd5e1;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-bet-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.quick-multipliers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.spin-btn-main {
    height: 64px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1.5px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #0066ff 0%, #7c3aed 55%, #ec4899 100%);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
}

.spin-btn-main:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.6);
}

.spin-btn-main:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.auto-spin-btn {
    height: 40px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auto-spin-btn.active {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

/* Win Display Screen */
.win-display-screen {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.win-display-screen .win-title {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.win-display-screen .win-val {
    font-size: 22px;
    font-weight: 900;
    color: #10b981;
    margin-top: 2px;
}

/* Live History Table */
.bets-section .game-stats {
    background: #0f121d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    width: 100%;
}

.bets-section .table-heading {
    display: table;
    width: 100%;
    table-layout: fixed;
    background: #151a28;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bets-section .table-heading .th {
    padding: 12px 18px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    vertical-align: middle;
}

.bets-section .table-heading .th:nth-child(2),
.bets-section .table-heading .th:nth-child(3) {
    text-align: center;
}

.bets-section .table-heading .th:last-child {
    text-align: right;
}

.bets-section .table-stats-wrap {
    overflow-y: auto;
    overflow-x: hidden;
}

.bets-section .table-stats-wrap::-webkit-scrollbar {
    width: 6px;
}

.bets-section .table-stats-wrap::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.bets-section .table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0;
}

.bets-section .table tbody tr {
    height: 52px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease;
}

.bets-section .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.bets-section .table tbody tr td {
    padding: 10px 18px;
    font-size: 13px;
    color: #cbd5e1;
    vertical-align: middle;
}

.bets-section .table tbody tr td:nth-child(2),
.bets-section .table tbody tr td:nth-child(3) {
    text-align: center;
}

.bets-section .table tbody tr td:last-child {
    text-align: right;
}

.bets-section .username .btn-link {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.bets-section .sanitize-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.bets-section .sanitize-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bets-section .sanitize-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bets-section .sanitize-name {
    font-weight: 700;
    color: #f1f5f9;
    font-size: 13px;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.bets-section .bet-number {
    display: inline-flex;
    align-items: center;
}

.bets-section .bet-wrap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 13px;
    color: #f8fafc;
}

.bets-section .bet-wrap svg.icon-coin {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.bets-section .bet-wrap .win {
    color: #10b981 !important;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.bets-section .bet-wrap .lose {
    color: #64748b !important;
    font-weight: 600;
}

.bets-section .bet-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-align: center;
}

.bets-section .bet-type.bet_black {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.25);
}

.bets-section .bet-type.bet_red {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.bets-section .bet-type.bet_green {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.bets-section .bet-type.bet_yellow {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
}

.win-flash {
    animation: winFlashAnim 0.6s ease;
}

@keyframes winFlashAnim {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); color: #34d399; text-shadow: 0 0 20px #10b981; }
    100% { transform: scale(1); }
}

/* ========================================================
   LIGHT MODE FOR IHOOK SLOTS
   ======================================================== */
[data-theme="light"] .slots-machine-frame {
    background: #ffffff !important;
    border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .slots-reels-viewport {
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .slot-column {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .slot-symbol-name {
    color: #64748b !important;
}

[data-theme="light"] .win-display-screen {
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .slots-controls-panel {
    background: #ffffff !important;
    border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .control-card {
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .control-label {
    color: #475569 !important;
}

[data-theme="light"] .lines-select,
[data-theme="light"] .bet-input-field {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #0f172a !important;
}

[data-theme="light"] .auto-spin-btn {
    background: #f1f5f9 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #475569 !important;
}

[data-theme="light"] .auto-spin-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="light"] .bets-section .game-stats {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .bets-section .table-heading {
    background: #f8fafc !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .bets-section .table-heading .th {
    color: #64748b !important;
}

[data-theme="light"] .bets-section .table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .bets-section .table tbody tr:hover {
    background: #f1f5f9 !important;
}

[data-theme="light"] .bets-section .sanitize-name {
    color: #0f172a !important;
}

[data-theme="light"] .bets-section .bet-wrap {
    color: #0f172a !important;
}

[data-theme="light"] .bets-section .bet-type.bet_black {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* ========================================================
   HOW TO PLAY ACCORDION (MATCHING CRASH LOOK)
   ======================================================== */
.ihook-slots-wrapper .footer-accordion {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ihook-slots-wrapper .footer-accordion .accordion-header {
    width: 100% !important;
    border-radius: 6px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
    background: #1a1a1a !important;
    text-transform: uppercase !important;
    padding: 16px 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    color: #ffffff !important;
    box-sizing: border-box !important;
    user-select: none !important;
    transition: background 0.2s ease !important;
}

.ihook-slots-wrapper .footer-accordion .accordion-header:hover {
    background: #242424 !important;
}

.ihook-slots-wrapper .footer-accordion .accordion-header > div:first-child {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    color: #ffffff !important;
}

.ihook-slots-wrapper .footer-accordion .accordion-header__switch {
    width: 15px !important;
    height: 15px !important;
    fill: #ffffff !important;
    color: #ffffff !important;
    transition: transform 0.3s ease !important;
    flex-shrink: 0 !important;
}

.ihook-slots-wrapper .footer-accordion .accordion-header__switch-close {
    transform: rotate(45deg) !important;
}

.ihook-slots-wrapper .footer-accordion .accordion-content {
    width: 100% !important;
    background: #121212 !important;
    padding: 18px 20px !important;
    border-radius: 0 0 6px 6px !important;
    box-sizing: border-box !important;
    margin-top: -2px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.ihook-slots-wrapper .footer-accordion .accordion-content p {
    margin: 0 !important;
    color: #cbd5e1 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

/* Light mode support for Accordion */
[data-theme="light"] .ihook-slots-wrapper .footer-accordion .accordion-header,
.theme-light .ihook-slots-wrapper .footer-accordion .accordion-header {
    background: #f1f5f9 !important;
    color: #000000 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .ihook-slots-wrapper .footer-accordion .accordion-header > div:first-child,
.theme-light .ihook-slots-wrapper .footer-accordion .accordion-header > div:first-child {
    color: #000000 !important;
    font-weight: 700 !important;
}

[data-theme="light"] .ihook-slots-wrapper .footer-accordion .accordion-header__switch,
.theme-light .ihook-slots-wrapper .footer-accordion .accordion-header__switch {
    fill: #000000 !important;
    color: #000000 !important;
}

[data-theme="light"] .ihook-slots-wrapper .footer-accordion .accordion-content,
.theme-light .ihook-slots-wrapper .footer-accordion .accordion-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-top: none !important;
}

[data-theme="light"] .ihook-slots-wrapper .footer-accordion .accordion-content p,
.theme-light .ihook-slots-wrapper .footer-accordion .accordion-content p,
[data-theme="light"] .ihook-slots-wrapper .footer-accordion .accordion-content span,
.theme-light .ihook-slots-wrapper .footer-accordion .accordion-content span {
    color: #000000 !important;
    font-weight: 600 !important;
}


