@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Spectral:wght@400;600&display=swap');

:root {
  --bg: #0a0a0a;
  --bg-panel: #1a1a1a;
  --accent: #2d5016;
  --accent-light: #4a7c1c;
  --accent-bright: #7cb342;
  --red: #8b0000;
  --red-bright: #c41e3a;
  --gold: #8b7355;
  --border: #2d3d2d;
  --text: #b8a890;
  --text-light: #d4c9b9;
  --tab-inactive: #1a1a1a;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Spectral', serif;
  color: var(--text);
  background: #000;
}

body {
  background: linear-gradient(180deg, #0a0a0a 0%, #1a0f0a 40%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(44, 80, 22, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(139, 0, 0, 0.08) 0%, transparent 40%);
  pointer-events: none;
  animation: pulse 12s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

.wrap {
  width: 980px;
  max-width: 100%;
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.95) 0%, rgba(15, 10, 10, 0.98) 100%);
  border: 3px solid var(--border);
  padding: 32px;
  border-radius: 0px;
  box-shadow:
    0 0 60px rgba(44, 80, 22, 0.25),
    inset 0 0 80px rgba(0, 0, 0, 0.7),
    0 15px 50px rgba(0, 0, 0, 0.9);
  position: relative;
  z-index: 1;
}

.wrap::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, var(--accent), var(--gold), var(--accent));
  border-radius: 0px;
  opacity: 0.2;
  z-index: -1;
  animation: borderGlow 6s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.3; }
}

h1 {
  margin: 0 0 8px;
  font-size: 36px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--accent-bright);
  text-shadow: 0 0 30px rgba(124, 179, 66, 0.5), 0 0 60px rgba(124, 179, 66, 0.2);
  letter-spacing: 4px;
  text-transform: uppercase;
}

p.lead {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-style: italic;
  line-height: 1.5;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  margin-top: 28px;
}

.card {
  background: linear-gradient(135deg, rgba(45, 80, 22, 0.2) 0%, rgba(26, 26, 26, 0.5) 100%);
  padding: 24px;
  border-radius: 0px;
  border: 2px solid var(--border);
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.6),
    0 6px 24px rgba(0, 0, 0, 0.7);
  position: relative;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  opacity: 0.5;
}

label {
  display: block;
  font-size: 12px;
  color: var(--accent-bright);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Cinzel', serif;
}

input[type=number],
select {
  width: 100%;
  padding: 12px;
  border-radius: 0px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-light);
  font-family: 'Spectral', serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

input[type=range] {
  width: 100%;
  padding: 0;
  border-radius: 0px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-light);
  font-family: 'Spectral', serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

input[type=number]:focus,
select:focus {
  outline: none;
  border-color: var(--accent-light);
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 20px rgba(124, 179, 66, 0.3);
}

input[type=range] {
  accent-color: var(--accent);
  height: 6px;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-light) 100%);
  border: 2px solid var(--accent-light);
  color: var(--text-light);
  padding: 12px 20px;
  border-radius: 0px;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  background: linear-gradient(145deg, var(--accent-light) 0%, var(--accent-bright) 100%);
  border-color: var(--accent-bright);
  box-shadow: 0 0 30px rgba(124, 179, 66, 0.6), 0 8px 24px rgba(0, 0, 0, 0.7);
  transform: translateY(-2px);
}

.result {
  font-size: 24px;
  font-weight: 700;
  margin-top: 20px;
  color: var(--accent-bright);
  font-family: 'Cinzel', serif;
  text-shadow: 0 0 16px rgba(124, 179, 66, 0.5);
}

.countdown {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.countdown .block {
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 14px;
  border-radius: 0px;
  border: 1px solid var(--border);
  font-weight: 700;
  color: var(--accent-bright);
  font-family: 'Cinzel', serif;
  font-size: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-size: 11px;
  color: var(--accent-bright);
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

td {
  color: var(--text);
  font-size: 13px;
}

tr:hover {
  background: rgba(124, 179, 66, 0.08);
}

.muted {
  color: var(--gold);
  font-size: 13px;
}

.small {
  font-size: 11px;
  color: var(--text);
  font-style: italic;
}

.footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--gold);
  font-style: italic;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-info {
  font-size: 12px;
  color: var(--accent-bright);
  font-family: 'Cinzel', serif;
  font-weight: 600;
  letter-spacing: 1px;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

@media(max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 16px;
  }

  h1 {
    font-size: 28px;
  }

  .flex-between {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.table-scroll {
  max-height: 622px;
  overflow-y: auto;
  overflow-x: auto;      /* allow horizontal scroll if needed */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-light) rgba(0, 0, 0, 0.3);
}

.table-scroll::-webkit-scrollbar {
  width: 8px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background-color: var(--accent-light);
  border-radius: 0px;
}

.table-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

.grid {
  align-items: start;
}

.card:last-child {
  display: flex;
  flex-direction: column;
}

.table-scroll {
  flex: 1;
}

.daily-plan {
  margin-top: 12px;
  background: linear-gradient(90deg, rgba(45, 80, 22, 0.3), rgba(0, 0, 0, 0.4));
  padding: 12px;
  border-radius: 0px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
}

.daily-plan .highlight {
  color: var(--accent-bright);
  font-weight: 700;
  font-family: 'Cinzel', serif;
}

/* Tab styles */
.tabs {
  display: flex;
  gap: 4px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.tab-btn {
  background: var(--tab-inactive);
  border: 2px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-light) 100%);
  border: 2px solid var(--accent-light);
  color: var(--text-light);
}

.tab-btn:hover {
  background: linear-gradient(145deg, var(--accent-light) 0%, var(--accent) 100%);
  border-color: var(--accent-bright);
  color: var(--text-light);
}

.tab-content {
  display: none;
}