* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; background: #f5f5f5; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.navbar { background: #000; color: #fff; padding: 1rem; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-brand { color: #fff; text-decoration: none; font-size: 1.5rem; }
.nav-balance { margin-right: 1rem; }
.hero { text-align: center; padding: 3rem 1rem; }
.cta-button { background: #4CAF50; color: white; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; margin: 10px; }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.modal-content { background: #fff; margin: 15% auto; padding: 20px; width: 300px; border-radius: 5px; }
.close { float: right; cursor: pointer; }
.dashboard { display: flex; flex-direction: column; gap: 20px; }
.stats-card, .code-section, .actions { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.balance { font-size: 24px; font-weight: bold; color: #2c7a4d; }
textarea { width: 100%; font-family: monospace; margin: 10px 0; }
.btn { display: inline-block; background: #007bff; color: white; padding: 8px 16px; text-decoration: none; border-radius: 4px; margin-right: 10px; }

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #0f0f0f; color: #e0e0e0; margin: 0; padding: 20px; }
.container { max-width: 1000px; margin: 0 auto; }
h1 { color: #00ff88; border-bottom: 1px solid #333; padding-bottom: 10px; }

.controls { background: #1a1a1a; padding: 20px; border-radius: 8px; margin-bottom: 20px; display: flex; gap: 10px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 5px; }
label { font-size: 12px; color: #888; text-transform: uppercase; }
input { background: #2a2a2a; border: 1px solid #444; color: #fff; padding: 10px; border-radius: 4px; outline: none; }
input:focus { border-color: #00ff88; }
button { background: #00ff88; color: #000; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-weight: bold; }
button:hover { background: #00cc6e; }

.dashboard { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.panel { background: #1a1a1a; border-radius: 8px; display: flex; flex-direction: column; height: 600px; overflow: hidden; }
.panel-header { padding: 15px; border-bottom: 1px solid #333; font-weight: bold; color: #00ff88; }
.scroll-area { flex: 1; overflow-y: auto; padding: 15px; font-family: 'Courier New', Courier, monospace; font-size: 13px; }

/* Graphical Alert: Flash Animation */
@keyframes flash-green {
	0% { background-color: #00ff88; box-shadow: 0 0 20px #00ff88; }
	100% { background-color: #252525; box-shadow: none; }
}
.tx-card { background: #252525; border-radius: 6px; padding: 15px; margin-bottom: 15px; border-left: 4px solid #00ff88; position: relative; }
.tx-matched { animation: flash-green 2s ease-out; } /* This triggers on new tx */

.tx-id { color: #00ff88; font-size: 14px; margin-bottom: 10px; display: block; text-decoration: none; word-break: break-all; }
.tx-details { font-size: 12px; color: #aaa; background: #000; padding: 10px; border-radius: 4px; overflow-x: auto; }

.log-entry { margin-bottom: 8px; border-left: 2px solid #444; padding-left: 10px; }
.log-time { color: #666; font-size: 11px; margin-right: 5px; }
.log-type-match { color: #ff00ff; font-weight: bold; }
.log-type-status { color: #00ccff; }

.status-dot { height: 10px; width: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.online { background: #00ff88; box-shadow: 0 0 10px #00ff88; }
.offline { background: #ff3333; }

.hero .container {
	text-align: center; /* Centers text and inline-block elements */
}

.hero-buttons .btn {
	display: inline-block; /* Ensure buttons behave for text-align */
	margin: 5px auto; /* Add margin, auto won't center block buttons without width */
}

/* If you want the buttons themselves to stack and center as blocks */
.hero-buttons {
	display: flex;
	flex-direction: column;
	align-items: center; /* Centers the buttons vertically in the column */
	margin-top: 20px; /* Adjust spacing */
}

.stats-badge {
	width: fit-content; /* Or a fixed width */
	margin: 20px auto; /* Centers the stats badge as a block */
}

/* Modern Navbar Styling */
.nav-main { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; background: #000; color: #fff; }
.nav-links { display: flex; gap: 15px; align-items: center; }
.balance-box { color: #4CAF50; font-weight: bold; cursor: pointer; }
@media (max-width: 600px) {
	.nav-links { display: none; } /* Add a mobile menu toggle if needed */
}