/* Base */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background-color: #1C1C1C;
  color: #fff;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

header {
  background: #FF6600;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

header img {
  height: 40px;
}

header h1 {
  font-size: 1.5rem;
  margin: 0;
}

.scroll-container {
  flex: 1;
  overflow-y: auto;
  padding-top: 80px;  
  padding-bottom: 150px; 
}

.date {
  padding: 1rem;
  font-size: 1.1rem;
  color: #ccc;
  text-align: center;
}

/* Race Cards */
.tip-card {
  background: #fff;
  color: #000;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin: 12px auto;
  padding: 16px;
  max-width: 600px;
}

.tip-header {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tip-line {
  margin-bottom: 6px;
}

.notd-badge {
  display: inline-block;
  background: #ffc107;
  color: #000;
  padding: 3px 6px;
  font-weight: bold;
  border-radius: 6px;
  font-size: 0.75em; /* smaller text */
  line-height: 1;
}

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #1C1C1C;
  border-top: 2px solid #333;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 999;
}

.nav-btn {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  color: #ccc;
  font-size: 24px;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-btn:hover,
.nav-btn.active {
  color: #FF6600;
}

/* Login/Signup Containers */
.login-container {
  max-width: 400px;
  background: #2A2A2A;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 10px;
  color: #fff;
  text-align: center;
}

.login-container h2 {
  margin-bottom: 1rem;
  color: #FF6600;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.login-form label {
  text-align: left;
  font-weight: bold;
}

.login-form input {
  padding: 0.6rem;
  border: none;
  border-radius: 6px;
  background: #444;
  color: #fff;
}

.login-form button {
  background: #FF6600;
  border: none;
  color: #fff;
  padding: 0.7rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.login-form button:hover {
  background: #e65c00;
}

/* Alerts */
.alert {
  padding: 1rem;
  margin: 1rem auto;
  border-radius: 8px;
  max-width: 400px;
  font-weight: bold;
  position: relative;
}

.alert-success {
  background: #004400;
  color: #bfffbf;
}

.alert-error {
  background: #660000;
  color: #ffbfbf;
}

.alert .close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  background: none;
}

/* Password Eye Toggle */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  padding-right: 2.5rem;
  box-sizing: border-box;
}

.password-wrapper .bi {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2rem;
  color: #ccc;
}

/* Password Checklist */
.pw-checklist {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #bbb;
  text-align: left;
}

.pw-checklist ul {
  padding-left: 1.25rem;
  list-style: none;
}

.pw-checklist li {
  margin: 0.4rem 0;
  color: #ff5555;
  display: flex;
  align-items: center;
}

.pw-checklist li.valid {
  color: #6fdc6f;
}

.pw-checklist li .bi {
  margin-right: 0.5rem;
}

/* Links */
.signup-link {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #ccc;
}

.signup-link a {
  color: #FF6600;
  text-decoration: none;
}

/* Responsive */
@media screen and (max-width: 600px) {
  .tip-card {
    margin: 12px 8px;
  }
}

/* Account Page Buttons */
.account-summary {
  text-align: center;
  margin: 2em auto;
}

.account-summary h2 {
  margin-bottom: 0.2em;
}

.account-summary p {
  color: #666;
  margin-bottom: 1.5em;
}

/* Account badge */
.account-badge {
  display: inline-block;
  margin-top: 0.5em;
  padding: 0.4em 0.8em;
  font-size: 0.9em;
  font-weight: bold;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.account-badge.free {
  background: #444;
  color: #ccc;
}

.account-badge.premium {
  background: #005500;
  color: #bfffbc;
}

.account-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
}

.account-buttons a {
  display: inline-block;
  width: 80%;
  max-width: 300px;
  padding: 1em;
  background: #222;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  font-weight: bold;
  transition: background 0.3s;
}

.account-buttons a:hover {
  background: #444;
}

/* Free user info box */
.free-user-info {
  text-align: center;
  margin: 1.5em auto;
  padding: 1em;
  font-size: 0.95em;
  max-width: 90%;
  border-radius: 8px;
  line-height: 1.4em;
}

.free-user-info.pre-select {
  background: #2a2a2a;
  color: #ccc;
}

.free-user-info.post-select {
  background: #3a0000;
  color: #ffaaaa;
  font-weight: bold;
}

.free-user-info a {
  display: inline-block;
  margin-top: 0.5em;
  text-decoration: none;
  color: #FF6600;
  font-weight: bold;
}

.free-user-info a:hover {
  text-decoration: underline;
}

/* Premium message */
.premium-user-info {
  text-align: center;
  margin: 1.5em auto;
  padding: 1em;
  font-size: 0.95em;
  max-width: 90%;
  background: #003300;
  color: #bfffbc;
  border-radius: 8px;
  line-height: 1.4em;
  font-weight: bold;
}

/* NOTD star */
.notd-star {
  color: #FFD700;
  font-size: 1.1em;
  margin-left: 6px;
  vertical-align: middle;
}

/* Flag icon */
.flag-img {
  width: 20px;
  height: 14px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 2px;
  object-fit: cover;
}
/* Form circles (if reused elsewhere) */
.form-circles span {
  transition: transform 0.1s ease-in;
}
.form-circles span:hover {
  transform: scale(1.1);
}

/* Place Bet Button */
.place-bet-btn {
  display: inline-block;
  margin-top: 1em;
  padding: 0.6em 1.5em;
  background: #FF6600;
  color: white;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s;
}

.next-opportunity-box {
  background-color: #004080; /* Dark blue background */
  color: #ffffff;            /* White text */
  border: 2px solid #0074D9; /* Brighter blue border */
  padding: 1em;
  margin: 1em 1em 0 1em;
  font-size: 1.1em;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s;
}
