body {
    font-family: Arial;
    background:#f5f7fa;
    margin:40px;
    color:#333;
}

/* HEADER */
.top-header {
    background:#0f172a;
    color:white;
    padding:15px 25px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-radius:12px;
    margin-bottom:20px;
    position:relative;
}

.logo {
    font-weight:bold;
    font-size:18px;
}

.logo h1{
    font-size:20px;
    margin:0;
}

/* NAV */
.nav {
    display:flex;
    align-items:center;
}

.nav a {
    color:#cbd5e1;
    margin-left:15px;
    text-decoration:none;
    font-size:14px;
}

.nav a:hover {
    color:white;
}

/* HAMBURGER MENU (hidden on desktop) */
.menu-toggle {
    display:none;
    font-size:24px;
    cursor:pointer;
}

/* FOOTER */
.footer {
    margin-top:30px;
    padding:20px;
    background:#0f172a;
    color:#94a3b8;
    border-radius:12px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:13px;
}

.footer-links a {
    color:#94a3b8;
    margin-left:12px;
    text-decoration:none;
}

.footer-links a:hover {
    color:white;
}

/* CARD */
.card {
    background:#fff;
    padding:25px;
    border-radius:12px;
    box-shadow:0 3px 10px rgba(0,0,0,0.08);
    margin-bottom:20px;
}

h1 { 
    margin:0 0 10px; 
}

.status {
    font-size:20px;
    margin-bottom:8px;
}

.badge {
    padding:6px 12px;
    border-radius:6px;
    font-weight:bold;
    color:#fff;
}

.open { background:#28a745; }
.closed { background:#dc3545; }

/* market hours */
.market-hours {
    font-size:14px;
    color:#666;
}

/* TIMER */
.timer {
    margin-top:15px;
}

#timerLabel {
    font-size:18px;
    color:#666;
    margin-right:8px;
}

#timerValue {
    font-size:42px;
    font-weight:bold;
    display:block;
    margin-top:5px;
}
/* Container controls layout */
.button-container {
  display: flex;
  gap: 16px;
}

/* Buttons */
a.button-link {
  display: inline-block;
  padding: 14px 24px;
  width:250px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
  background: #3b82f6;
  border-radius: 12px;
  white-space: nowrap;
}
/* tables */
table {
    width:100%;
    border-collapse:collapse;
    margin-top:10px;
}

th, td {
    padding:10px;
    border-bottom:1px solid #eee;
}

th {
    background:#fafafa;
    text-align:left;
}

.highlight {
    background:#eef6ff;
    font-weight:bold;
}

/* =========================
   MOBILE STYLES
========================= */
@media (max-width: 768px) {

    body {
        margin:10px;
    }
  .button-container {
    flex-direction: column;
    align-items: center;
  }
    /* show hamburger only on mobile */
    .menu-toggle {
        display:block;
        color:white;
    }

    /* hide nav by default */
    .nav {
        position:absolute;
        top:65px;
        right:15px;
        background:#0f172a;
        border-radius:10px;
        padding:12px;
        display:none;
        flex-direction:column;
        width:180px;
        box-shadow:0 5px 15px rgba(0,0,0,0.2);
    }

    /* show menu when active */
    .nav.active {
        display:flex;
    }

    .nav a {
        margin:10px 0;
        display:block;
    }
}

/* EXTRA SAFETY: force hide on desktop */
@media (min-width: 769px) {
    .menu-toggle {
        display:none !important;
    }
}