/* CronCoin Dashboard - Dark Theme */

:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #0f3460;
    --bg-input: #1a1a3e;
    --accent: #e94560;
    --accent-hover: #ff6b81;
    --text-primary: #eee;
    --text-secondary: #aab;
    --text-muted: #778;
    --border: #2a2a4e;
    --success: #2ecc71;
    --warning: #f39c12;
    --error: #e74c3c;
    --mono: 'Courier New', 'Consolas', monospace;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    flex-shrink: 0;
    position: relative;
}

.header-center {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin-right: 16px;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    height: 32px;
    vertical-align: middle;
}

.logo span {
    color: var(--text-primary);
    font-weight: 400;
}

/* Chain Badge */
.chain-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chain-badge.regtest {
    background: var(--warning);
    color: #1a1a2e;
}

.chain-badge.testnet {
    background: #3498db;
    color: white;
}

.chain-badge.mainnet {
    background: var(--success);
    color: #1a1a2e;
}

/* Notice Banner */
.notice {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.5;
}

.notice.notice-warning {
    background: rgba(243, 156, 18, 0.15);
    border: 1px solid rgba(243, 156, 18, 0.3);
    color: var(--warning);
}

/* Header Right */
.header-right {
    position: absolute;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-btn {
    padding: 6px 16px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.auth-btn:hover {
    background: var(--accent);
    color: #fff;
}

.auth-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-nickname {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.auth-points {
    font-size: 13px;
    font-weight: 600;
    color: var(--warning);
    white-space: nowrap;
}

.auth-logout-btn {
    padding: 6px 16px;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.auth-logout-btn:hover {
    background: var(--accent);
    color: #fff;
}

/* Auth Modal */
.auth-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.auth-overlay.show {
    display: flex;
}

.auth-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.auth-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.auth-tabs {
    display: flex;
    gap: 4px;
}

.auth-tab {
    padding: 8px 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.auth-tab:hover {
    color: var(--text-primary);
}

.auth-tab.active {
    background: var(--accent);
    color: #fff;
}

.auth-form {
    padding: 24px 20px;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-submit-btn {
    width: 100%;
    margin-top: 8px;
}

.auth-remember {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Language Switcher */
.lang-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.lang-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

/* Tab Navigation */
.tabs {
    display: flex;
    gap: 4px;
}

.tab {
    padding: 10px 18px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    border-radius: 6px 6px 0 0;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

.tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab.active {
    color: var(--accent);
    background: var(--bg-primary);
    font-weight: 600;
}

/* Main Content */
.main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.tab-content {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
}

/* About page - Hero */
.hero {
    border-radius: 12px;
    background: linear-gradient(135deg, #0a1628 0%, #122040 40%, #1a3060 100%);
    padding: 48px 40px;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(52,152,219,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}
.hero-text { flex: 1; }
.hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--accent);
    margin: 0 0 16px;
    font-weight: 500;
}
.hero-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin: 0 0 28px;
}
.hero-stats {
    display: flex;
    gap: 32px;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hero-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}
.hero-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero-logo {
    flex-shrink: 0;
}
.hero-logo img {
    width: 160px;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(52,152,219,0.3));
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.hero-dice {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px 24px;
    min-width: 180px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.hero-dice:hover {
    border-color: var(--accent);
}
.hero-dice-title {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.5px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}
.hero-dice-title .dice-block-num {
    display: block;
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    font-weight: 700;
}
.hero-dice .dice-face {
    width: 100px;
    height: 100px;
    border-width: 2px;
}
.hero-dice .dice-question {
    font-size: 40px;
}
.hero-dice .dice-countdown {
    font-size: 26px;
    margin-top: 4px;
    text-align: center;
}
.hero-dice .dice-countdown .countdown-label {
    font-size: 12px;
    text-align: center;
    margin-bottom: 2px;
}
.hero-dice .dice-hero-info .dice-number {
    font-size: 44px;
}
.hero-dice .dice-hero-info .dice-label {
    font-size: 13px;
}
.hero-dice .dice-hero-info .dice-oddeven {
    font-size: 16px;
}

/* About page - Spec Grid */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.spec-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: border-color 0.2s;
}
.spec-item:hover {
    border-color: var(--accent);
}
.spec-icon {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
}
.spec-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.spec-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* About page - Metadata cards */
.meta-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.meta-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}
.meta-key {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
    font-family: monospace;
}
.meta-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* About page - Two column */
.about-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* About page - Link buttons */
.about-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 24px;
}
.about-link-btn {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
}
.about-link-btn:hover {
    background: var(--accent);
    color: #fff;
}

/* About page - Common */
.about-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 8px 0;
}
.about-quote {
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent);
    padding: 12px 16px;
    margin: 12px 0;
    color: var(--text-primary);
    font-style: italic;
    font-size: 14px;
}
.about-code {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 16px;
    font-family: monospace;
    font-size: 14px;
    color: var(--accent);
    margin: 12px 0;
    overflow-x: auto;
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

#richlist-summary .info-item:nth-child(2) {
    text-align: center;
}

#richlist-summary .info-item:last-child {
    text-align: right;
}

#tab-richlist table {
    font-size: 22px;
}

#tab-richlist th {
    font-size: 20px;
    padding: 14px 16px;
}

#tab-richlist td {
    padding: 14px 16px;
    font-size: 22px;
}

#tab-richlist td.mono {
    font-size: 22px;
}

#tab-richlist .info-label {
    font-size: 20px;
}

#tab-richlist .info-value {
    font-size: 24px;
}

#tab-richlist .info-value.large,
#tab-richlist .info-value.large-white {
    font-size: 36px;
}

#tab-richlist .card-title {
    font-size: 24px;
}

#tab-richlist .hash-link {
    font-size: 22px;
}

#address-detail .card-title {
    font-size: 18px;
}

#address-detail table {
    font-size: 14px;
}

#address-detail th {
    font-size: 13px;
    padding: 8px 10px;
}

#address-detail td {
    font-size: 14px;
    padding: 8px 10px;
}

#address-detail .hash-link {
    font-size: 14px;
}

#address-detail td {
    white-space: nowrap;
}

#address-detail .dec {
    opacity: 0.4;
}

/* Network tab font sizes */
#tab-network table {
    font-size: 22px;
}

#tab-network th {
    font-size: 20px;
    padding: 14px 16px;
}

#tab-network td {
    padding: 14px 16px;
    font-size: 22px;
}

#tab-network td.mono {
    font-size: 22px;
}

#tab-network .info-label {
    font-size: 20px;
}

#tab-network .info-value {
    font-size: 24px;
}

#tab-network .info-value.large {
    font-size: 36px;
}

#tab-network .info-value.mono {
    font-size: 20px;
}

#tab-network .card-title {
    font-size: 24px;
}

/* Dice tab font sizes */
#tab-dice table {
    font-size: 22px;
}

#tab-dice th {
    font-size: 20px;
    padding: 14px 16px;
}

#tab-dice td {
    padding: 14px 16px;
    font-size: 22px;
}

#tab-dice td.mono {
    font-size: 22px;
}

#tab-dice .card:first-child {
    background: transparent;
    border: none;
}

#tab-dice .card:first-child .card-title {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 25px;
}

#tab-dice .card-title {
    font-size: 24px;
    text-align: center;
}

#tab-dice .dice-dot-inline {
    width: 38px;
    height: 38px;
    line-height: 38px;
    font-size: 22px;
}

#tab-dice .dice-quote-line {
    font-size: 20px;
}

#tab-dice .dice-quote-line:first-child {
    font-size: 22px;
}

#tab-dice .dice-countdown .countdown-label {
    font-size: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.info-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    color: var(--text-primary);
    word-break: break-all;
}

.info-value.mono {
    font-family: var(--mono);
    font-size: 16px;
}

.info-value.large {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}

.info-value.large-white {
    font-size: 28px;
    font-weight: 700;
}

/* Block header row: title left, search right */
.block-header-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 16px;
    gap: 16px;
}

.block-header-row .card-title {
    margin: 0;
    flex-shrink: 0;
    margin-right: auto;
}

/* Search Bar */
.search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.search-bar.search-bar-compact {
    margin-bottom: 0;
    flex: 0 1 700px;
}

.search-bar-compact select {
    min-width: 110px;
    padding: 8px 10px;
    font-size: 13px;
}

.search-bar-compact input {
    padding: 8px 12px;
    font-size: 13px;
}

.search-bar-compact .btn {
    padding: 8px 16px;
    font-size: 13px;
}

.search-bar select {
    padding: 12px 12px;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    min-width: 140px;
}

.search-bar select:focus {
    border-color: var(--accent);
    outline: none;
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--mono);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.search-bar input:focus {
    border-color: var(--accent);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Tables */
.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

th {
    text-align: left;
    padding: 12px 14px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

td.mono {
    font-family: var(--mono);
    font-size: 15px;
}

/* Hash Links */
.hash-link {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--accent);
    cursor: pointer;
    word-break: break-all;
}

.hash-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Forms */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent);
}

.bal-display {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    min-height: 45px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}
.bal-display .dec { opacity: 0.4; }
.kr-note {
    font-size: 13px;
    color: var(--text-muted);
    padding: 2px 16px;
    min-height: 0;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

/* Status Bar */
.status-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 8px 20px;
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
}

.status-dot.disconnected {
    background: var(--error);
}

/* Metadata Box */
.metadata-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px;
    font-family: var(--mono);
    font-size: 15px;
    color: var(--warning);
    margin-top: 8px;
    word-break: break-all;
}

/* Toast Notification */
.toast-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.toast-overlay.show {
    display: flex;
}

.toast-box {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 28px 36px 20px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.toast-message {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 20px;
    word-break: break-word;
}

.toast-message.toast-success {
    color: var(--success);
}

.toast-message.toast-error {
    color: var(--error);
}

.toast-confirm-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 40px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.toast-confirm-btn:hover {
    background: var(--accent-hover);
}

/* Block List */
.block-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.block-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: #141422;
    border: 1px solid #1e1e36;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.block-item:hover {
    background: #1a1a30;
}

.block-height {
    font-size: 38px;
    font-weight: 700;
    color: var(--accent);
    min-width: 100px;
}

.block-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.block-hash {
    font-family: var(--mono);
    font-size: 23px;
    color: var(--text-secondary);
}

.block-info {
    font-size: 22px;
    color: var(--text-muted);
}

.block-meta-tag {
    display: inline-block;
    font-size: 13px;
    font-family: var(--mono);
    color: var(--warning);
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.2);
    border-radius: 4px;
    padding: 3px 10px;
    width: fit-content;
}

.block-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 21px;
}

.block-meta-label {
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
}

.block-meta-label::after {
    content: ':';
}

.block-meta-raw {
    font-family: var(--mono);
    color: #c8a455;
    font-size: 20px;
}

.btn-load-more {
    display: block;
    width: 100%;
    padding: 14px 0;
    margin-top: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-muted);
    font-size: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.btn-load-more:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text);
}
.btn-load-more:disabled {
    opacity: 0.5;
    cursor: default;
}

.block-meta-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.meta-badge {
    display: inline-block;
    font-size: 13.5px;
    font-family: var(--mono);
    font-weight: 500;
    border-radius: 4px;
    padding: 3px 10px;
    line-height: 1.5;
}

.meta-badge.meta-r {
    color: #c8a455;
    background: rgba(30, 25, 12, 0.6);
    border: 1px solid rgba(200, 164, 85, 0.15);
}

.meta-badge.meta-p {
    font-weight: 600;
}

.meta-badge.meta-p.even {
    color: #5dab80;
    background: rgba(12, 30, 18, 0.6);
    border: 1px solid rgba(93, 171, 128, 0.15);
}

.meta-badge.meta-p.odd {
    color: #c06a64;
    background: rgba(30, 12, 12, 0.6);
    border: 1px solid rgba(192, 106, 100, 0.15);
}

.meta-badge.meta-t {
    color: #9a85b0;
    background: rgba(20, 15, 28, 0.6);
    border: 1px solid rgba(154, 133, 176, 0.15);
}

.meta-badge.meta-h {
    color: #6a9ec0;
    background: rgba(12, 20, 30, 0.6);
    border: 1px solid rgba(106, 158, 192, 0.15);
}

/* Amount styling */
.amount-positive {
    color: var(--success);
}

.amount-negative {
    color: var(--error);
}

/* Wallet balance */
.balance-display {
    text-align: center;
    padding: 24px;
}

.balance-amount {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--mono);
}

.balance-label {
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Address display */
.address-display {
    font-family: var(--mono);
    font-size: 18px;
    word-break: break-all;
    color: var(--success);
}

/* Address generation guide */
.address-guide {
    margin-top: 16px;
}
.guide-notice {
    background: var(--bg-primary);
    border: 1px solid var(--warning);
    border-radius: 8px;
    padding: 20px 24px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
}
.guide-notice strong {
    color: var(--warning);
}
.guide-notice em {
    color: var(--warning);
    font-style: normal;
    font-weight: 600;
}
.guide-notice ul {
    margin: 12px 0 0 0;
    padding-left: 20px;
}
.guide-notice li {
    margin-bottom: 6px;
}
.address-guide-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}
.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* Key info group */
.key-info-group {
    margin-top: 12px;
    background: var(--bg-card);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid var(--border);
}
.key-info-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}
.key-info-row:last-child {
    margin-bottom: 0;
}
.key-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 600;
}
.key-value {
    font-size: 17px;
    word-break: break-all;
    padding: 8px 10px;
    background: var(--bg-primary);
    border-radius: 4px;
}
.mono-text {
    font-family: var(--mono);
    font-size: 16px;
    color: var(--text-primary);
}
.privkey-text {
    color: var(--warning);
}

/* Seed backup */
.seed-warning {
    border-color: var(--danger, #e74c3c);
}
.seed-warning strong {
    color: var(--danger, #e74c3c);
}
.btn-warning {
    background: var(--warning);
    color: #1a1a2e;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}
.btn-warning:hover {
    opacity: 0.85;
}
.seed-info {
    margin-top: 16px;
}
.seed-descriptors {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}
.seed-desc-item {
    font-size: 14px;
    line-height: 1.6;
}

/* Seed input & verify */
.seed-input-field {
    width: 100%;
    padding: 14px;
    font-family: var(--mono);
    font-size: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    resize: vertical;
    box-sizing: border-box;
}
.seed-input-field:focus {
    outline: none;
    border-color: var(--accent);
}
.verify-success {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid var(--success);
    border-radius: 6px;
    color: var(--success);
    font-size: 15px;
    font-weight: 600;
}
.verify-fail {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid var(--danger, #e74c3c);
    border-radius: 6px;
    color: var(--danger, #e74c3c);
    font-size: 15px;
    font-weight: 600;
}

/* HD Wallet Flow Steps */
.hd-step {
    opacity: 0;
    transform: translateY(12px);
    animation: hdStepIn 0.4s ease forwards;
}

@keyframes hdStepIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hd-step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.hd-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.hd-step-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.hd-step-warning {
    font-size: 15px;
    font-weight: 700;
    color: var(--error);
    margin-left: 8px;
}

.hd-step-arrow {
    font-size: 18px;
    color: var(--text-muted);
    margin-left: auto;
}

.hd-step-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.5;
}

.hd-step-value {
    padding: 12px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    word-break: break-all;
    font-size: 16px;
    line-height: 1.6;
    min-height: 20px;
}

.hd-step .mnemonic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.mnemonic-word {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
}

.mnemonic-word .word-num {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 18px;
}

.mnemonic-word .word-text {
    font-weight: 600;
    color: var(--warning);
}

/* Key pair box (xprv/xpub) */
.keypair-box {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.keypair-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.keypair-label {
    display: inline-block;
    min-width: 42px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--mono);
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.keypair-row:first-child .keypair-label {
    background: rgba(233, 69, 96, 0.2);
    color: var(--accent);
}

.keypair-row:last-child .keypair-label {
    background: rgba(46, 204, 113, 0.2);
    color: var(--success);
}

.keypair-value {
    font-size: 14px;
    word-break: break-all;
    line-height: 1.5;
}

/* Derivation chain */
.derivation-chain {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.derive-level {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 14px;
}

.derive-path-label {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: var(--mono);
}

.derive-connector {
    color: var(--text-muted);
    margin-right: 4px;
}

.derive-keys {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 20px;
}

.derive-note {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    padding: 10px 14px;
    background: rgba(243, 156, 18, 0.08);
    border: 1px solid rgba(243, 156, 18, 0.15);
    border-radius: 6px;
}

/* Address + QR Code */
.address-with-qr {
    display: flex;
    align-items: center;
    gap: 20px;
}

.address-with-qr .hd-step-value {
    flex: 1;
    min-width: 0;
}

.address-qr {
    flex-shrink: 0;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    line-height: 0;
}

.address-qr canvas,
.address-qr img {
    display: block;
}

/* HD Action Buttons */
.hd-action-bar {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
    padding: 16px 0;
}

.btn-action {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action:hover {
    background: var(--border);
    border-color: var(--accent);
    color: var(--accent);
}

/* Mining result */
.mine-result {
    margin-top: 12px;
}

.mine-result .hash-link {
    display: block;
    padding: 4px 0;
}

/* Dice */
.dice-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    text-align: center;
}

.dice-face {
    position: relative;
    overflow: visible;
    width: 140px;
    height: 140px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    display: grid;
    padding: 20px;
    place-items: center;
    transition: transform 0.3s, border-color 0.3s;
}

.dice-face.revealed {
    border-color: var(--accent);
    transform: scale(1.1);
}

.dice-face .dot {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
}

.dice-question {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-muted);
    font-family: var(--mono);
    line-height: 1;
}

.dice-face[data-value="?"] { grid-template: 1fr / 1fr; place-items: center; }
.dice-face[data-value="1"] { grid-template: 1fr / 1fr; place-items: center; }
.dice-face[data-value="2"] { grid-template: 1fr 1fr / 1fr; }
.dice-face[data-value="2"] .dot:nth-child(1) { justify-self: start; align-self: start; }
.dice-face[data-value="2"] .dot:nth-child(2) { justify-self: end; align-self: end; }
.dice-face[data-value="3"] { grid-template: 1fr 1fr 1fr / 1fr; }
.dice-face[data-value="3"] .dot:nth-child(1) { justify-self: start; align-self: start; }
.dice-face[data-value="3"] .dot:nth-child(2) { justify-self: center; align-self: center; }
.dice-face[data-value="3"] .dot:nth-child(3) { justify-self: end; align-self: end; }
.dice-face[data-value="4"] { grid-template: 1fr 1fr / 1fr 1fr; }
.dice-face[data-value="5"] { grid-template: 1fr 1fr 1fr / 1fr 1fr 1fr; }
.dice-face[data-value="5"] .dot:nth-child(1) { grid-area: 1/1; justify-self: start; align-self: start; }
.dice-face[data-value="5"] .dot:nth-child(2) { grid-area: 1/3; justify-self: end; align-self: start; }
.dice-face[data-value="5"] .dot:nth-child(3) { grid-area: 2/2; justify-self: center; align-self: center; }
.dice-face[data-value="5"] .dot:nth-child(4) { grid-area: 3/1; justify-self: start; align-self: end; }
.dice-face[data-value="5"] .dot:nth-child(5) { grid-area: 3/3; justify-self: end; align-self: end; }
.dice-face[data-value="6"] { grid-template: 1fr 1fr 1fr / 1fr 1fr; }

.dice-countdown {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--mono);
    line-height: 1;
}

.dice-countdown .countdown-label {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-bottom: 6px;
}

.dice-countdown.overdue {
    animation: overdue-pulse 2s ease-in-out infinite;
    color: var(--accent);
}

@keyframes overdue-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.dice-hero-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.dice-hero-info .dice-number {
    font-size: 64px;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--mono);
    line-height: 1;
}

.dice-hero-info .dice-label {
    font-size: 16px;
    color: var(--text-muted);
}

.dice-hero-info .dice-oddeven {
    font-size: 22px;
    font-weight: 600;
}

.dice-oddeven.odd { color: #e74c3c; }
.dice-oddeven.even { color: #3498db; }

.dice-bet-toast { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:32px; font-weight:700; padding:12px 32px; border-radius:12px; z-index:9999; text-align:center; opacity:1; transition:opacity 0.4s; pointer-events:none; white-space:nowrap; }
.dice-bet-toast.msg-success { color:#2ecc71; background:rgba(46,204,113,0.15); }
.dice-bet-toast.msg-error { color:#e74c3c; background:rgba(231,76,60,0.15); }
.dice-bet-toast.removing { opacity:0; }

.dice-quote {
    margin-top: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dice-quote-line {
    display: block;
    font-size: 15px;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-style: italic;
}

.dice-quote-line:first-child {
    font-size: 17px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Dice table cell styling */
.dice-cell {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--mono);
    color: var(--accent);
}

.dice-dot-inline {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: var(--bg-card);
    border-radius: 6px;
    font-size: 18px;
}

/* Guide */
.guide-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.guide-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
}

.guide-icon {
    margin-right: 6px;
}

.guide-section-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Recovery Input Cards */
.recover-input-card {
    margin-top: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.recover-input-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.recover-input-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.btn-close:hover {
    color: var(--text-primary);
}

.recover-textarea {
    width: 100%;
    padding: 14px;
    font-family: var(--mono);
    font-size: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    resize: vertical;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.recover-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.recover-input-field {
    width: 100%;
    padding: 14px;
    font-family: var(--mono);
    font-size: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.recover-input-field:focus {
    outline: none;
    border-color: var(--accent);
}

/* Watch-only badge */
.watch-only-badge {
    margin-top: 8px;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(52, 152, 219, 0.15);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #3498db;
}

/* Loading indicator */
.loading {
    color: var(--text-muted);
    font-style: italic;
    padding: 20px;
    text-align: center;
    font-size: 16px;
}

/* Vision Section (About page) */
.vision-card {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(15,52,96,0.3) 100%);
    border-color: rgba(233,69,96,0.15);
}
.vision-headline {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(233,69,96,0.2);
}
.vision-body {
    margin-bottom: 24px;
}
.vision-body p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 12px;
    text-align: center;
}
.vision-body p:last-child {
    margin-bottom: 0;
}
.vision-body p strong {
    color: var(--text-primary);
}
.vision-body p em {
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}
.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.vision-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}
.vision-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.vision-icon {
    font-size: 30px;
    margin-bottom: 10px;
}
.vision-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.vision-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}
.vision-closing {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
    font-style: italic;
}

/* Cron Dice Section (About page) */
.cron-dice-card {
    overflow: hidden;
}
.cron-dice-header {
    background: linear-gradient(135deg, #0d1520 0%, #15253d 40%, #1a3355 100%);
    margin: -24px -24px 24px -24px;
    padding: 32px 32px 28px;
    position: relative;
    overflow: hidden;
}
.cron-dice-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(233,69,96,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.cron-dice-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(52,152,219,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.cron-dice-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.cron-dice-icon {
    font-size: 42px;
    line-height: 1;
}
.cron-dice-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}
.cron-dice-title small {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    margin-left: 8px;
}
.cron-dice-quote {
    text-align: center;
    padding: 12px 20px;
    margin-bottom: 4px;
}
.cron-dice-quote-line {
    display: block;
    font-style: italic;
    letter-spacing: 2.5px;
    line-height: 2;
}
.cron-dice-quote-line:first-child {
    font-size: 19px;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}
.cron-dice-quote-line:last-child {
    font-size: 16px;
    color: rgba(255,255,255,0.45);
}

.dice-body p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}
.dice-body p:last-child {
    margin-bottom: 0;
}
.dice-body p strong {
    color: var(--text-primary);
}
.dice-body p em {
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}

.dice-process-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 12px;
}
.dice-process-table th {
    background: rgba(233,69,96,0.1);
    color: var(--accent);
    font-size: 13px;
    padding: 10px 14px;
    text-align: center;
    border-bottom: 2px solid rgba(233,69,96,0.2);
}
.dice-process-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
}
.dice-process-table td:first-child {
    text-align: center;
    font-weight: 700;
    color: var(--accent);
    font-size: 16px;
    width: 40px;
}
.dice-process-table td:nth-child(2) {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}
.dice-process-table tr:hover td {
    background: rgba(255,255,255,0.03);
}
.dice-process-table code {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--warning);
    background: rgba(243,156,18,0.1);
    padding: 2px 6px;
    border-radius: 3px;
}

.dice-fair-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.dice-fair-item {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}
.dice-fair-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.dice-fair-icon {
    font-size: 28px;
    margin-bottom: 10px;
}
.dice-fair-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.dice-fair-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Dice Betting */
.dice-bet-card { }
.dice-bet-deadline-bar { text-align:center; font-size:18px; color:#fff; padding:4px 0; width:100%; display:block; }
.dice-bet-panel { padding: 12px 8px 16px; }
.dice-bet-amount-select { display:flex; gap:8px; justify-content:center; }
.dice-bet-amt-btn { padding:6px 14px; border:1px solid var(--border); border-radius:6px; background:var(--bg-secondary); color:var(--text-primary); cursor:pointer; font-size:13px; font-weight:600; transition:all 0.2s; }
.dice-bet-amt-btn:hover { border-color:var(--accent); color:var(--accent); }
.dice-bet-amt-btn.active { background:var(--accent); color:#fff; border-color:var(--accent); }
.dice-bet-cancel-btn { padding:6px 14px; border:1px solid var(--border); border-radius:6px; background:var(--bg-secondary); color:var(--text-primary); cursor:pointer; font-size:13px; font-weight:600; transition:all 0.2s; }
.dice-bet-cancel-btn:hover { border-color:var(--accent); color:var(--accent); }
.dice-bet-section { margin-top:14px; margin-bottom:16px; }
.dice-bet-label { font-size:13px; color:var(--text-muted); margin-bottom:8px; text-align:center; }
.dice-bet-buttons { display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }
.dice-bet-btn { padding:12px 24px; border:2px solid var(--border); border-radius:8px; background:var(--bg-secondary); color:var(--text-primary); font-size:16px; font-weight:600; cursor:pointer; transition:all 0.2s; min-width:60px; text-align:center; }
.dice-bet-btn:hover { border-color:var(--accent); background:var(--accent); color:#fff; }
.dice-bet-btn:disabled { opacity:0.4; cursor:not-allowed; }
.dice-bet-btn:disabled:hover { background:var(--bg-secondary); color:var(--text-primary); border-color:var(--border); }
.dice-bet-wrap { display:flex; flex-direction:column; align-items:center; flex:1; max-width:200px; }
.dice-bet-wrap .dice-bet-btn { width:100%; }
.dice-bet-btn.bet-odd { border-color: #e74c3c; color: #e74c3c; }
.dice-bet-btn.bet-odd:hover:not(:disabled) { background: #e74c3c; color: #fff; }
.dice-bet-btn.bet-odd.active { background: #e74c3c; color: #fff; }
.dice-bet-btn.bet-even { border-color: #3498db; color: #3498db; }
.dice-bet-btn.bet-even:hover:not(:disabled) { background: #3498db; color: #fff; }
.dice-bet-btn.bet-even.active { background: #3498db; color: #fff; }
.dice-bet-btn.bet-num.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.dice-bet-numbers { display: grid; grid-template-columns: repeat(6, 1fr); }
.dice-bet-numbers .dice-bet-wrap { max-width:none; }
.dice-bet-placed { font-size:26px; font-weight:700; text-align:center; margin-bottom:4px; min-height:30px; color:var(--warning); visibility:visible; }
.dice-bet-placed:empty { visibility:hidden; }
.dice-bet-placed.bet-won { color:#2ecc71; }
.dice-bet-placed.bet-lost { color:#e74c3c; }

/* Auto Toast */
.auto-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.auto-toast-item {
    padding: 12px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    animation: autoToastIn 0.3s ease forwards;
    max-width: 360px;
}

.auto-toast-item.toast-success {
    border-color: var(--success);
    color: var(--success);
}

.auto-toast-item.toast-error {
    border-color: var(--error);
    color: var(--error);
}

.auto-toast-item.removing {
    animation: autoToastOut 0.3s ease forwards;
}

@keyframes autoToastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes autoToastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}

