/* MM2Flip Glassmorphic Premium Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-darkest: #09060f;
    --bg-dark: #120c1e;
    --bg-glass: rgba(22, 14, 38, 0.55);
    --bg-glass-active: rgba(43, 27, 72, 0.75);
    --border-glass: rgba(182, 115, 255, 0.15);
    --border-glass-hover: rgba(182, 115, 255, 0.35);
    --primary: #9d4edd;
    --primary-light: #c77dff;
    --primary-glow: rgba(157, 78, 221, 0.5);
    --text-main: #f3f0f7;
    --text-muted: #a399b2;
    --glow-soft: 0 0 15px var(--primary-glow);
    --glow-strong: 0 0 25px #c77dff, 0 0 10px var(--primary);
    
    /* Rarity Colors */
    --rarity-common: #b5b5b5;
    --rarity-uncommon: #2ebd59;
    --rarity-rare: #0084ff;
    --rarity-legendary: #9d00ff;
    --rarity-godly: #ff4800;
    --rarity-ancient: #ff0077;
    --rarity-unique: #ffd700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    user-select: none;
}

body {
    background-color: var(--bg-darkest);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Particle Wrapper */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.glass-panel:hover {
    border-color: var(--border-glass-hover);
    box-shadow: 0 8px 32px 0 rgba(157, 78, 221, 0.1);
}

.glass-card {
    background: rgba(22, 14, 38, 0.4);
    border: 1px solid rgba(182, 115, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease-in-out;
}
.glass-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-2px);
    background: rgba(43, 27, 72, 0.2);
}

/* Buttons */
.btn-glowing {
    background: linear-gradient(135deg, var(--primary), #7b2cbf);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--glow-soft);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}
.btn-glowing:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-strong);
    background: linear-gradient(135deg, #c77dff, var(--primary));
}
.btn-glowing:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-glass-hover);
}

/* Layout Framework */
.layout-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr;
    flex-grow: 1;
    height: calc(100vh - 70px); /* 70px navbar */
    overflow: hidden;
}

@media (max-width: 992px) {
    .layout-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Header Navbar */
.navbar-header {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-glass);
    z-index: 100;
}
.nav-logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 24px;
    background: linear-gradient(to right, #e0aaff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    gap: 8px;
    text-decoration: none;
}
.nav-links {
    display: flex;
    gap: 16px;
    list-style: none;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.nav-links a:hover, .nav-links li.active a {
    color: var(--text-main);
    background: rgba(157, 78, 221, 0.15);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-status-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    padding: 6px 14px;
    border-radius: 50px;
}
.online-counter {
    font-size: 13px;
    color: #00e676;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
.online-pulse {
    width: 8px;
    height: 8px;
    background: #00e676;
    border-radius: 50%;
    box-shadow: 0 0 8px #00e676;
    animation: pulse 1.5s infinite;
}

/* User Dropdown */
.profile-dropdown-container {
    position: relative;
}
.profile-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: var(--glow-soft);
    object-fit: cover;
}
.profile-info {
    font-size: 14px;
    display: flex;
    flex-direction: column;
}
.profile-info .username {
    font-weight: 600;
}
.profile-info .level {
    font-size: 11px;
    color: var(--primary-light);
}

.dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;
    width: 200px;
    background: var(--bg-dark);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 150;
    backdrop-filter: blur(10px);
}
.dropdown-menu a {
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 14px;
}
.dropdown-menu a:hover {
    background: rgba(157, 78, 221, 0.15);
    color: var(--text-main);
}

/* Hamburger menu for mobile */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
}

/* Left Fixed Chat */
.chat-sidebar {
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(13, 8, 23, 0.7);
    backdrop-filter: blur(20px);
    transition: transform 0.3s ease;
}

.chat-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-title {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.chat-messages-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message-bubble {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    animation: messageAppear 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

.chat-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(157, 78, 221, 0.5);
    background: var(--bg-dark);
}

.chat-msg-content {
    flex-grow: 1;
}
.chat-msg-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    margin-bottom: 2px;
}
.chat-user-level {
    background: rgba(157, 78, 221, 0.2);
    color: var(--primary-light);
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 10px;
}
.chat-user-name {
    font-weight: 600;
    color: #e0d0f5;
    cursor: pointer;
}
.chat-user-name:hover {
    color: var(--primary-light);
}
.chat-user-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
    text-transform: uppercase;
}
.chat-badge-admin {
    background: linear-gradient(135deg, #e65100, #ff8f00);
    color: white;
}
.chat-badge-mod {
    background: #0288d1;
    color: white;
}
.chat-time {
    color: var(--text-muted);
    font-size: 10px;
    margin-left: auto;
}

.chat-msg-text {
    font-size: 13.5px;
    color: #dfd7eb;
    word-break: break-word;
}
.chat-msg-text .chat-mention {
    background: rgba(199, 125, 255, 0.2);
    color: #e0aaff;
    font-weight: 600;
    padding: 0 4px;
    border-radius: 4px;
}

/* Admin message actions */
.chat-msg-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}
.chat-message-bubble:hover .chat-msg-actions {
    opacity: 1;
}
.btn-chat-delete {
    background: none;
    border: none;
    color: #ff3d00;
    cursor: pointer;
    font-size: 11px;
}

/* System Messages styling */
.chat-msg-system {
    background: rgba(157, 78, 221, 0.08);
    border-left: 3px solid var(--primary);
    padding: 8px 12px;
    border-radius: 0 8px 8px 0;
    font-size: 12.5px;
    color: var(--primary-light);
    animation: messageAppear 0.25s ease-out forwards;
}

/* Typing indicator */
.typing-indicator {
    padding: 8px 16px;
    font-size: 11px;
    color: var(--text-muted);
    display: none;
    align-items: center;
    gap: 6px;
}
.typing-dots {
    display: flex;
    gap: 3px;
}
.typing-dots span {
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1s infinite alternate;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Chat Input */
.chat-input-area {
    padding: 12px;
    border-top: 1px solid var(--border-glass);
    background: rgba(9, 6, 15, 0.5);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}
.chat-input-wrapper {
    display: flex;
    gap: 8px;
}
.chat-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-main);
    font-size: 13px;
}
.chat-input:focus {
    outline: none;
    border-color: var(--primary-light);
}

.chat-input-actions {
    display: flex;
    gap: 6px;
}
.btn-chat-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}
.btn-chat-action:hover {
    color: var(--text-main);
    background: rgba(157, 78, 221, 0.15);
    border-color: var(--border-glass-hover);
}

/* Emoji / GIF popover */
.chat-popover {
    position: absolute;
    bottom: 95px;
    left: 12px;
    right: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 10px;
    display: none;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
    z-index: 100;
}
.emoji-item {
    font-size: 20px;
    text-align: center;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.1s;
}
.emoji-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Main Workspace Content */
.main-content {
    padding: 24px;
    overflow-y: auto;
    height: 100%;
}

/* Hero Section */
.hero-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.12) 0%, rgba(18, 12, 30, 0.6) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.08) 0%, transparent 60%);
    pointer-events: none;
}
.hero-text h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(to right, #fff, #d8b4fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-text p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 20px;
    max-width: 500px;
    line-height: 1.5;
}

/* Live Activity Grid */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    padding: 20px;
    text-align: center;
}
.stat-val {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 4px;
    text-shadow: var(--glow-soft);
}
.stat-lbl {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grid Layout for Game items / Coinflips */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.section-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.coinflip-lobby-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Coinflip Row Card */
.coinflip-row-card {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.flipper-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 200px;
}
.flipper-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}
.flipper-details {
    display: flex;
    flex-direction: column;
}
.flipper-name {
    font-weight: 600;
    font-size: 14px;
}
.flipper-side {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    width: fit-content;
    margin-top: 4px;
}
.side-heads {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}
.side-tails {
    background: rgba(182, 115, 255, 0.15);
    color: var(--primary-light);
    border: 1px solid var(--border-glass);
}

.coinflip-vs-sign {
    font-weight: 800;
    font-size: 18px;
    color: var(--text-muted);
}

.wager-items-preview {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    flex-grow: 1;
    max-width: 450px;
    padding: 4px;
}

/* MM2 Item Micro styling */
.item-micro {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1.5px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: help;
}
.item-micro img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}
.item-micro-fallback {
    font-weight: 800;
    font-size: 14px;
}
.item-micro-value {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 8px;
    background: rgba(0,0,0,0.7);
    padding: 1px 3px;
    border-radius: 3px;
    color: #00e676;
}

.coinflip-value-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    width: 150px;
}
.wager-value-badge {
    font-size: 18px;
    font-weight: 700;
    color: #00e676;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
}

/* Modals styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 4, 10, 0.8);
    backdrop-filter: blur(12px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-container {
    width: 100%;
    max-width: 650px;
    border: 1px solid var(--border-glass-hover);
    border-radius: 20px;
    background: var(--bg-dark);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    overflow: hidden;
    animation: modalSlide 0.3s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}
.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
}
.modal-close-btn:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Coinflip Creator Modal Content */
.coinflip-wager-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    padding: 8px 4px;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

/* Item cards in Inventory / Selector grid */
.inventory-item-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}
.inventory-item-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-glass-hover);
    background: rgba(157, 78, 221, 0.08);
}
.inventory-item-card.selected {
    border-color: var(--primary-light);
    box-shadow: 0 0 10px var(--primary-glow);
    background: rgba(157, 78, 221, 0.15);
}

.item-badge-favorite {
    position: absolute;
    top: 6px;
    left: 6px;
    color: #ff9100;
    font-size: 12px;
}

.item-card-image-box {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}
.item-card-image-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.item-card-name {
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
}
.item-card-value {
    font-size: 11px;
    font-weight: 700;
    color: #00e676;
}

/* Rarity border markers */
.rarity-common { border-bottom: 3.5px solid var(--rarity-common) !important; }
.rarity-uncommon { border-bottom: 3.5px solid var(--rarity-uncommon) !important; }
.rarity-rare { border-bottom: 3.5px solid var(--rarity-rare) !important; }
.rarity-legendary { border-bottom: 3.5px solid var(--rarity-legendary) !important; }
.rarity-godly { 
    border-bottom: 3.5px solid var(--rarity-godly) !important; 
    box-shadow: inset 0 -12px 16px -12px rgba(255, 72, 0, 0.2);
}
.rarity-ancient { 
    border-bottom: 3.5px solid var(--rarity-ancient) !important; 
    box-shadow: inset 0 -12px 16px -12px rgba(255, 0, 119, 0.25);
}
.rarity-unique { 
    border-bottom: 3.5px solid var(--rarity-unique) !important; 
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
    animation: pulseGlowUnique 2s infinite alternate;
}

/* Interactive 3D Coin flip system styling */
.flip-arena-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
    position: relative;
}

.coin-container-3d {
    perspective: 1000px;
    width: 160px;
    height: 160px;
    margin: 20px 0;
}
.coin-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s linear;
}

.coin-side-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.face-heads {
    background: radial-gradient(circle, #ffe082 30%, #ffd700 80%);
    border: 6px solid #ffb300;
    color: #5d4037;
    font-weight: 800;
    font-size: 42px;
    text-shadow: 0 2px 4px rgba(255,255,255,0.4);
}
.face-tails {
    background: radial-gradient(circle, #e1bee7 30%, #9d4edd 80%);
    border: 6px solid #7b2cbf;
    color: #fff;
    font-weight: 800;
    font-size: 42px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transform: rotateY(180deg);
}

/* Animations declarations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulseGlowUnique {
    0% { border-color: rgba(255, 215, 0, 0.4); box-shadow: 0 0 8px rgba(255, 215, 0, 0.2); }
    100% { border-color: rgba(255, 215, 0, 0.8); box-shadow: 0 0 16px rgba(255, 215, 0, 0.5); }
}

@keyframes messageAppear {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes modalSlide {
    0% { opacity: 0; transform: scale(0.9) translateY(-20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes typing {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

/* Toast System */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast-msg {
    pointer-events: auto;
    background: var(--bg-dark);
    border: 1px solid var(--border-glass-hover);
    border-radius: 8px;
    padding: 14px 20px;
    color: var(--text-main);
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    font-size: 14px;
    font-weight: 500;
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast-msg.show {
    transform: translateX(0);
}
.toast-success { border-left: 4px solid #00e676; }
.toast-error { border-left: 4px solid #ff3d00; }
.toast-info { border-left: 4px solid var(--primary); }

/* Grid Filters toolbar styling */
.filter-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.search-input-field {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    flex-grow: 1;
}
.search-input-field:focus {
    outline: none;
    border-color: var(--primary-light);
}

.select-dropdown-field {
    background: var(--bg-dark);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

/* Responsive Table styling */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    background: var(--bg-glass);
}
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}
.responsive-table th, .responsive-table td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(182, 115, 255, 0.08);
}
.responsive-table th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 700;
    color: var(--text-muted);
}
.responsive-table tbody tr:hover {
    background: rgba(157, 78, 221, 0.05);
}

/* Skeleton Loading styling */
.skeleton-line {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: 4px;
    height: 14px;
    width: 100%;
}
@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Detailed Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    .hero-text h1 {
        font-size: 28px;
    }
    .coinflip-row-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }
    .flipper-profile {
        width: 100%;
    }
    .coinflip-value-action {
        width: 100%;
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
    }
    .nav-links {
        display: none; /* Collapsed, showing in dropdown or sidebar on mobile */
    }
    .hamburger-btn {
        display: block;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    .stat-val {
        font-size: 24px;
    }
}

/* Phase 2 UI Polishes */
@keyframes spinLogo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.coin-side-face {
    overflow: hidden;
}

.coin-side-face::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.22) 50%, transparent 60%);
    transform: rotate(45deg);
    pointer-events: none;
    animation: metallicReflection 4s ease-in-out infinite;
}

@keyframes metallicReflection {
    0% { transform: translate(-30%, -30%) rotate(45deg); }
    50% { transform: translate(30%, 30%) rotate(45deg); }
    100% { transform: translate(-30%, -30%) rotate(45deg); }
}

.winner-spotlight {
    border-color: #00e676 !important;
    animation: pulseWinner 1.5s infinite alternate;
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.45) !important;
}

@keyframes pulseWinner {
    0% { box-shadow: 0 0 20px rgba(0, 230, 118, 0.3) !important; }
    100% { box-shadow: 0 0 40px rgba(0, 230, 118, 0.7) !important; }
}

/* Password Eye Toggler */
.password-input-container {
    position: relative;
    width: 100%;
}
.password-toggle-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.2s;
    background: none;
    border: none;
}
.password-toggle-eye:hover {
    color: var(--text-main);
}
