/* ==========================================================================
   LuckySSQ - Global Variables & Reset
   ========================================================================== */
:root {
    --bg-dark: #0a0e1a;
    --bg-card: #121829;
    --bg-card-hover: #192239;
    --border-color: #222d4a;
    --text-main: #f0f3f8;
    --text-muted: #8892b0;
    --primary-red: #ff3b30;
    --primary-red-hover: #ff4d42;
    --primary-blue: #007aff;
    --primary-blue-hover: #1a8aff;
    --gold: #ffb703;
    --purple: #7209b7;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.3);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==========================================================================
   Layout - Container & Sidebar
   ========================================================================== */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: var(--transition);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.brand-icon {
    font-size: 28px;
    color: var(--primary-red);
    filter: drop-shadow(0 0 8px rgba(255, 59, 48, 0.4));
    animation: pulse 2s infinite;
}

.brand h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.brand h2 span {
    color: var(--primary-red);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--border-radius-md);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-item i {
    font-size: 18px;
    width: 20px;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-main);
    background-color: var(--border-color);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.15), rgba(0, 122, 255, 0.05));
    border-left: 4px solid var(--primary-red);
    padding-left: 14px;
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.status-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2ec4b6;
    box-shadow: 0 0 8px #2ec4b6;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.main-content {
    margin-left: 260px;
    flex-grow: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 30px;
}

/* Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
    margin-bottom: 30px;
}

.header-title h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(to right, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-title .subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

.latest-award {
    background: linear-gradient(135deg, var(--bg-card), rgba(255, 59, 48, 0.05));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.award-info {
    display: flex;
    flex-direction: column;
}

.award-info .period {
    font-weight: 700;
    font-size: 14px;
    color: var(--gold);
}

.award-info .date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Viewport & View Switching */
.content-viewport {
    flex-grow: 1;
    position: relative;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

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

/* ==========================================================================
   Common Cards & Components
   ========================================================================== */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: #2c3b60;
}

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

.card-title {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-gold {
    background-color: rgba(255, 183, 3, 0.15);
    color: var(--gold);
    border: 1px solid rgba(255, 183, 3, 0.3);
}

/* Grid System */
.grid-layout {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 24px;
}

.grid-layout.cols-2 {
    grid-template-columns: 1fr 1fr;
}

.margin-top {
    margin-top: 24px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), #d62218);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

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

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* ==========================================================================
   Balls Display (Core element of lottery)
   ========================================================================== */
.balls-display {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.balls-display.mini .ball {
    width: 28px;
    height: 28px;
    font-size: 12px;
    font-weight: 700;
}

.balls-display.large .ball {
    width: 48px;
    height: 48px;
    font-size: 20px;
    font-weight: 800;
    box-shadow: inset -4px -4px 10px rgba(0,0,0,0.4), 
                2px 4px 10px rgba(0,0,0,0.3);
}

.ball {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    color: white;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.ball::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 8px;
    width: 40%;
    height: 25%;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50% 50% 40% 40%;
}

.ball.red {
    background: radial-gradient(circle at 35% 35%, #ff5c54 0%, #d62218 70%, #990000 100%);
}

.ball.blue {
    background: radial-gradient(circle at 35% 35%, #4fa3ff 0%, #0056b3 70%, #002b66 100%);
}

.ball.placeholder {
    background: radial-gradient(circle at 35% 35%, #303e65 0%, #1a233d 100%);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.ball.placeholder.blue {
    border-color: rgba(0, 122, 255, 0.3);
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    0% { transform: scale(0.6); opacity: 0; }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.animate-pop .ball {
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.animate-pop .ball:nth-child(1) { animation-delay: 0.05s; }
.animate-pop .ball:nth-child(2) { animation-delay: 0.1s; }
.animate-pop .ball:nth-child(3) { animation-delay: 0.15s; }
.animate-pop .ball:nth-child(4) { animation-delay: 0.2s; }
.animate-pop .ball:nth-child(5) { animation-delay: 0.25s; }
.animate-pop .ball:nth-child(6) { animation-delay: 0.3s; }
.animate-pop .ball:nth-child(7) { animation-delay: 0.35s; }

/* ==========================================================================
   Dashboard Module Specifics
   ========================================================================== */
.welcome-card {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.12) 0%, rgba(0, 122, 255, 0.08) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 26px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.welcome-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.welcome-text p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 600px;
}

.quick-stats {
    display: flex;
    gap: 20px;
}

.q-stat-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 14px 20px;
    min-width: 120px;
    text-align: center;
}

.q-label {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}

.q-value {
    font-size: 18px;
    font-weight: 700;
}

.text-red { color: #ff5c54; }
.text-blue { color: #4fa3ff; }
.text-gold { color: var(--gold); }
.text-purple { color: #c77dff; }

/* Card Featured */
.card-featured {
    background: radial-gradient(circle at top right, rgba(255, 183, 3, 0.05), transparent), var(--bg-card);
}

.recommend-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.recommend-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Tool Buttons */
.quick-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tool-btn {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 18px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.tool-btn:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
    border-color: #3f558a;
}

.tool-btn i {
    font-size: 22px;
}

.tool-btn span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
}

/* ==========================================================================
   Predict Module
   ========================================================================== */
.predict-control-panel {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 30px;
    background-color: var(--bg-dark);
    padding: 20px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.control-group label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.form-select, .form-input {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: var(--border-radius-md);
    outline: none;
    font-size: 14px;
    transition: var(--transition);
}

.form-select:focus, .form-input:focus {
    border-color: var(--primary-red);
}

.prediction-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.predict-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background-color: var(--bg-dark);
    border-radius: var(--border-radius-md);
    border-left: 5px solid var(--gold);
    animation: fadeIn 0.3s ease-in-out;
}

.predict-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.predict-algo-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
}

.predict-sim-rate {
    font-size: 12px;
    color: var(--text-muted);
}

.predict-actions {
    display: flex;
    gap: 10px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--border-color);
}

/* ==========================================================================
   History Module & Tables
   ========================================================================== */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background-color: var(--border-color);
}

.data-table td {
    font-size: 14px;
}

/* ==========================================================================
   Charts & Stats Module
   ========================================================================== */
.chart-container {
    height: 300px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding-top: 20px;
    overflow-x: auto;
}

.chart-bar-wrap {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 16px;
}

.chart-bar-val {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
}

.chart-bar-fill {
    width: 100%;
    border-radius: 4px 4px 0 0;
    transition: height 1s ease-out;
    background: linear-gradient(to top, rgba(255, 59, 48, 0.2), var(--primary-red));
}

.blue-chart .chart-bar-fill {
    background: linear-gradient(to top, rgba(0, 122, 255, 0.2), var(--primary-blue));
}

.chart-bar-num {
    font-size: 11px;
    font-weight: bold;
}

/* Multidimensional statistics */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stat-box h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.progress-bar-container {
    margin-bottom: 14px;
}

.progress-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.progress-bar {
    height: 8px;
    background-color: var(--bg-dark);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
}

.flex-align-center {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-label {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.form-select-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: var(--border-radius-sm);
}

.stat-info-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.zone-distribution {
    display: flex;
    gap: 20px;
}

.zone-item {
    flex-grow: 1;
    background-color: var(--bg-dark);
    padding: 14px;
    border-radius: var(--border-radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
}

.zone-item .z-num {
    font-size: 24px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.zone-item .z-label {
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================================================
   Simulator Module (Beautiful 3D interactive physics)
   ========================================================================== */
.simulator-card-body {
    padding: 40px;
}

.simulator-layout {
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: center;
}

/* Physics machine container */
.lottery-machine {
    width: 320px;
    height: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glass-dome {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 60%, rgba(0, 0, 0, 0.5) 100%);
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(0,0,0,0.5), inset 0 0 25px rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.balls-chamber {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Swirl storm effect inside */
.swirl-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10%;
    height: 10%;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.02);
    box-shadow: 0 0 40px 10px rgba(255, 255, 255, 0.05);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.swirling .swirl-effect {
    animation: storm-wind 0.5s linear infinite;
}

@keyframes storm-wind {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(2.5); }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

/* Small swirling physics balls inside dome */
.chamber-ball {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    position: absolute;
    left: 110px;
    top: 110px;
    box-shadow: inset -1px -1px 3px rgba(0,0,0,0.4);
}

.chamber-ball.red {
    background: radial-gradient(circle at 30% 30%, #ff5c54 0%, #d62218 100%);
}

.chamber-ball.blue {
    background: radial-gradient(circle at 30% 30%, #4fa3ff 0%, #0056b3 100%);
}

.output-pipe {
    width: 40px;
    height: 90px;
    border-left: 3px solid rgba(255, 255, 255, 0.15);
    border-right: 3px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(to bottom, rgba(255,255,255,0.03), rgba(0,0,0,0.3));
    position: absolute;
    bottom: 50px;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 10px;
}

.pipe-ball-slot {
    width: 30px;
    height: 30px;
    position: relative;
    border-radius: 50%;
}

.machine-base {
    width: 280px;
    height: 60px;
    background: linear-gradient(to bottom, #1e2640, #0f1322);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    position: absolute;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    z-index: 2;
}

.status-panel {
    background-color: #05070f;
    border: 1px solid rgba(0, 122, 255, 0.2);
    color: #00ff66;
    font-family: monospace;
    font-size: 14px;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 4px;
    box-shadow: inset 0 0 5px rgba(0, 255, 102, 0.2);
    text-shadow: 0 0 4px rgba(0, 255, 102, 0.4);
}

/* Control settings on right side */
.simulator-controls {
    flex-grow: 1;
    max-width: 450px;
}

.drawn-balls-display {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.drawn-balls-display h5 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sim-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 24px;
}

.sim-actions button {
    flex-grow: 1;
}

.simulation-speed {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-group label {
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   Modals & Popups
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 500px;
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: popIn 0.3s ease-out;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

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

.modal-content h3 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#favorites-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 6px;
}

.favorite-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: var(--bg-dark);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.favorite-item .balls-display.mini {
    justify-content: flex-start;
}

.btn-delete-fav {
    background-color: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 15px;
    padding: 6px;
    transition: var(--transition);
}

.btn-delete-fav:hover {
    color: var(--primary-red);
}

.empty-text {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
    font-size: 14px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .sidebar {
        width: 70px;
        padding: 20px 10px;
    }
    
    .brand h2, .nav-item span, .sidebar-footer {
        display: none;
    }
    
    .nav-item {
        justify-content: center;
        padding: 12px;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .grid-layout, .grid-layout.cols-2 {
        grid-template-columns: 1fr;
    }
    
    .simulator-layout {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .welcome-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .quick-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .latest-award {
        width: 100%;
        justify-content: space-between;
    }
    
    .predict-control-panel {
        flex-direction: column;
        align-items: stretch;
    }
    
    .predict-control-panel button {
        margin-top: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
