* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #141414;
  color: #ffffff;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #333;
}

.header h1 {
  font-size: 2rem;
  color: #e50914;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-discord,
.btn-logout,
.btn-info {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #e50914;
  color: white;
}

.btn-primary:hover {
  background-color: #c40812;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #333;
  color: white;
}

.btn-secondary:hover {
  background-color: #444;
}

.btn-discord {
  background-color: #5865F2;
  color: white;
  font-size: 1.1rem;
  padding: 15px 30px;
}

.btn-discord:hover {
  background-color: #4752C4;
  transform: translateY(-2px);
}

.btn-logout {
  background-color: #222;
  color: #999;
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-logout:hover {
  background-color: #333;
  color: #fff;
}

.btn-info {
  background-color: #e50914;
  color: #141414;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 8px 12px;
  border: 2px solid #e50914;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  justify-content: center;
}

.btn-info:hover {
  background-color: #141414;
  color: #999;
  border-color: #999;
}

.btn-disabled {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #333;
  color: #666;
  cursor: not-allowed;
}

/* Loader */
.btn-loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-primary:disabled {
  background-color: #666;
  cursor: not-allowed;
  transform: none;
}

.btn-primary:disabled:hover {
  background-color: #666;
  transform: none;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  font-size: 3rem;
  color: #e50914;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.3rem;
  color: #999;
  margin-bottom: 50px;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

.feature {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature h3 {
  color: #e50914;
  margin-bottom: 10px;
}

.feature p {
  color: #999;
}

/* Info Section */
.info-section {
  margin-top: 40px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  background-color: #1a1a1a;
  margin: 5% auto;
  padding: 30px;
  border: 1px solid #333;
  border-radius: 8px;
  width: 80%;
  max-width: 800px;
}

.modal-content h2 {
  color: #e50914;
  margin-bottom: 20px;
}

.close {
  color: #999;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #e50914;
}

.video-container {
  margin: 20px 0;
}

.video-container iframe {
  width: 100%;
  height: 450px;
  border-radius: 8px;
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #e50914;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  background-color: #222;
  border: 1px solid #333;
  border-radius: 4px;
  color: white;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #e50914;
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: #999;
  font-size: 0.85rem;
}

/* Setup Section */
.setup-section {
  margin-top: 30px;
}

.step {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: none;
}

.step.active {
  display: block;
}

.step h2 {
  color: #e50914;
  margin-bottom: 15px;
}

.warning {
  background-color: #332200;
  border-left: 4px solid #e59500;
  padding: 10px;
  margin: 15px 0;
  color: #e59500;
}

/* Stats Display */
.stats-display {
  margin-top: 30px;
  padding: 20px;
  background-color: #222;
  border-radius: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stat-card {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.stat-label {
  display: block;
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.stat-value {
  display: block;
  color: #e50914;
  font-size: 2rem;
  font-weight: bold;
}

/* Goals Grid */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Navigation Buttons */
.navigation-buttons {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* Countdown */
.countdown-section {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  text-align: center;
}

.countdown-section h2 {
  color: #e50914;
  margin-bottom: 20px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-value {
  font-size: 3rem;
  font-weight: bold;
  color: #e50914;
  display: block;
}

.countdown-label {
  font-size: 1rem;
  color: #999;
  margin-top: 5px;
}

.target-date {
  color: #999;
  font-size: 1.1rem;
}

/* Videos Section */
.videos-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.video-card {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
}

.video-card h3 {
  color: #e50914;
  margin-bottom: 15px;
}

.video-wrapper iframe {
  border-radius: 8px;
}

.video-placeholder {
  background-color: #222;
  border-radius: 8px;
  height: 315px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.placeholder-content {
  padding: 30px;
}

.placeholder-date {
  color: #e50914;
  font-weight: bold;
  margin-top: 15px;
}

/* Goals Section */
.goals-section {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  color: #e50914;
}

.goal-card {
  background-color: #222;
  padding: 20px;
  border-radius: 8px;
}

.goal-card h3 {
  color: #e50914;
  margin-bottom: 15px;
}

.goal-progress {
  margin-top: 15px;
}

.goal-values {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.current-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
}

.separator {
  color: #666;
  font-size: 1.5rem;
}

.target-value {
  font-size: 1.5rem;
  color: #999;
}

.progress-bar {
  height: 20px;
  background-color: #333;
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #e50914, #ff1f29);
  transition: width 0.5s ease;
}

.progress-text {
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

/* Charts Section */
.charts-section {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.charts-section h2 {
  color: #e50914;
  margin-bottom: 20px;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.chart-container {
  background-color: #222;
  padding: 20px;
  border-radius: 8px;
}

/* Info Box */
.info-box {
  background-color: #222;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.info-box h3 {
  color: #e50914;
  margin-bottom: 15px;
}

.info-box ul {
  list-style: none;
  padding-left: 0;
}

.info-box ul li {
  padding: 8px 0;
  color: #999;
}

/* Setup Video Container */
.setup-video-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #1a1a1a;
  padding: 40px;
  border-radius: 8px;
}

.setup-video-container h2 {
  color: #e50914;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .countdown {
    gap: 15px;
  }

  .countdown-value {
    font-size: 2rem;
  }

  .videos-section,
  .charts-grid {
    grid-template-columns: 1fr;
  }

  .header {
    flex-direction: column;
    gap: 15px;
  }
}
