/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --primary-color: #00d4d4;
  --primary-dark: #00a8a8;
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-quaternary: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  --border-color: #333333;
  --success-color: #22c55e;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  
  /* Shadows */
  --shadow-primary: 0 4px 15px rgba(0, 212, 212, 0.3);
  --shadow-hover: 0 6px 20px rgba(0, 212, 212, 0.4);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  --gradient-bg: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
  
  /* Transitions */
  --transition-base: all 0.3s ease;
  --transition-fast: all 0.2s ease;
  
  /* Sizes */
  --border-radius: 8px;
  --border-radius-large: 15px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: var(--gradient-bg);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  z-index: 1001;
}

.logo img {
  height: 50px; /* Increased from 40px */
  width: auto;
  transition: var(--transition-base);
  max-width: 200px; /* Prevents logo from getting too wide */
}

.logo:hover img {
  transform: scale(1.05);
}

/* Logo sizing for different screens */
@media (max-width: 1024px) {
  .logo img {
    height: 45px; /* Tablet size */
  }
}

@media (max-width: 768px) {
  .logo img {
    height: 40px; /* Mobile size */
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 36px; /* Small mobile size */
  }
}

/* Logo text fallback (if image fails to load) */
.logo .ai {
  color: var(--text-primary);
}

.logo .bet {
  color: var(--primary-color);
}

/* Desktop Navigation */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-base);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition-base);
  min-width: 44px;
  min-height: 44px;
}

.mobile-menu-btn:hover {
  color: var(--primary-color);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 99999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: var(--transition-base);
  min-width: 44px;
  min-height: 44px;
}

.mobile-nav-close:hover {
  color: var(--primary-color);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}

.mobile-nav-links li {
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-links a {
  display: block;
  font-size: 1.2rem;
  padding: 1.5rem 0;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-base);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--primary-color);
}

.mobile-nav-links a.active {
  font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-base);
  border: none;
  cursor: pointer;
  text-align: center;
  min-height: 44px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--bg-primary);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--text-muted);
  transform: translateY(-1px);
}

.btn-danger {
  background-color: var(--error-color);
  color: var(--text-primary);
}

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

.btn-large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* ===== MAIN CONTENT ===== */
main {
  padding-top: 100px;
}

.page-header {
  text-align: center;
  padding: 60px 0;
  background: var(--gradient-bg);
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== HERO SECTION ===== */
.hero {
  background: var(--gradient-bg);
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 212, 212, 0.1) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}

.section-dark {
  background-color: var(--bg-secondary);
}

.section-darker {
  background-color: var(--bg-primary);
}

.section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-xl);
  color: var(--primary-color);
}

/* ===== ABOUT SECTION ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-align: left;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.about-visual {
  text-align: center;
  padding: var(--space-lg);
}

.about-visual div {
  font-size: 8rem;
  color: var(--primary-color);
  opacity: 0.3;
}

/* ===== GRID LAYOUTS ===== */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ===== CARDS ===== */
.card {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-quaternary) 100%);
  border-radius: var(--border-radius-large);
  border: 1px solid var(--border-color);
  transition: var(--transition-base);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 212, 212, 0.2);
}

.card-padding {
  padding: var(--space-lg);
}

.card-center {
  text-align: center;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2rem;
  box-shadow: var(--shadow-primary);
  transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  text-align: center;
}

.stat-item h3,
.stat-card h3 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-item p,
.stat-card p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.stat-card {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-quaternary) 100%);
  padding: 1.5rem;
  border-radius: var(--border-radius-large);
  border: 1px solid var(--border-color);
  transition: var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 212, 212, 0.15);
}

/* ===== PRICING CARDS ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-quaternary) 100%);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  border: 2px solid var(--border-color);
  transition: var(--transition-base);
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(0, 212, 212, 0.2);
}

.pricing-card.featured {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.pricing-card.featured::before {
  content: 'NEJPOPULÁRNĚJŠÍ';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: var(--bg-primary);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.plan-price {
  font-size: 2.9rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.plan-period {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
}

.plan-features {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.plan-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan-features li::before {
  content: '✓';
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 0.5rem;
}

.plan-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--gradient-primary);
  color: var(--bg-primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-base);
  width: 100%;
  min-height: 44px;
}

.plan-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ===== FILTERS ===== */
.filter-section {
  padding: 30px 0;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--bg-quaternary);
}

.filters {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group label {
  color: var(--text-secondary);
  font-weight: 500;
}

.filter-group select {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  transition: var(--transition-base);
  min-height: 44px;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 212, 212, 0.2);
}

/* ===== TABLES ===== */
.table {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-quaternary) 100%);
  border-radius: var(--border-radius-large);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.table-header {
  background-color: var(--primary-color);
  color: var(--bg-primary);
  font-weight: 600;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  padding: 1rem;
  gap: 1rem;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  padding: 1rem;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  transition: var(--transition-fast);
}

.table-row:hover {
  background-color: rgba(0, 212, 212, 0.1);
}

.table-row:last-child {
  border-bottom: none;
}

/* Admin table extension */
.table-header.admin,
.table-row.admin {
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

/* ===== MATCH INFO ===== */
.match-info {
  display: flex;
  flex-direction: column;
}

.match-teams {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.match-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== STATUS & LABELS ===== */
.tip-type {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
}

.odds {
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
}

.status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.status.win {
  background-color: var(--success-color);
  color: var(--bg-primary);
}

.status.loss {
  background-color: var(--error-color);
  color: var(--text-primary);
}

.status.pending {
  background-color: var(--warning-color);
  color: var(--bg-primary);
}

.profit {
  font-weight: 600;
  text-align: center;
}

.profit.positive {
  color: var(--success-color);
}

.profit.negative {
  color: var(--error-color);
}

.confidence {
  text-align: center;
  font-weight: 600;
}

.confidence.high {
  color: var(--success-color);
}

.confidence.medium {
  color: var(--warning-color);
}

.confidence.low {
  color: var(--error-color);
}

/* ===== ADMIN STYLES ===== */
/* Login Container */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-bg);
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 212, 212, 0.1) 0%, transparent 70%);
}

.login-box {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-quaternary) 100%);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.login-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.logo-container {
  margin-bottom: 1rem;
}

.login-logo {
  height: 80px;
  width: auto;
  max-width: 200px;
  transition: var(--transition-base);
}

.login-logo:hover {
  transform: scale(1.05);
}

.login-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.login-header h2 {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.login-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Error Messages */
.error-message {
  background-color: var(--error-color);
  color: var(--text-primary);
  padding: 0.75rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  text-align: center;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Admin Toolbar */
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: var(--space-lg);
}

.toolbar-group {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Action Buttons */
.actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.btn-edit, 
.btn-delete {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: var(--transition-base);
  color: var(--text-secondary);
  min-width: 44px;
  min-height: 44px;
}

.btn-edit:hover {
  background-color: var(--warning-color);
  color: var(--bg-primary);
}

.btn-delete:hover {
  background-color: var(--error-color);
  color: var(--text-primary);
}

/* ===== MODAL STYLES ===== */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-quaternary) 100%);
  border-radius: var(--border-radius-large);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: var(--transition-base);
  min-width: 44px;
  min-height: 44px;
}

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

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: var(--space-lg);
}

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition-base);
  min-height: 44px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 212, 212, 0.2);
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== NOTIFICATIONS ===== */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--gradient-primary);
  color: var(--bg-primary);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-weight: 500;
  z-index: 3000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 212, 212, 0.3);
}

.notification.show {
  transform: translateX(0);
}

.notification.error {
  background: var(--error-color);
  color: var(--text-primary);
}

.notification.warning {
  background: var(--warning-color);
  color: var(--bg-primary);
}

/* ===== LOADING STATES ===== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 212, 212, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

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

.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

/* ===== FOOTER ===== */
footer {
  background-color: #000000;
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--bg-quaternary);
}

.footer-content {
  color: #666666;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .pricing-card.featured {
    transform: scale(1.02);
  }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-group {
    justify-content: center;
  }

  .logo img {
    height: 36px;
  }
}

/* ===== MOBILE STYLES - FIXED ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  /* Navigation */
  .mobile-menu-btn {
    display: block !important;
  }

  .nav-links {
    display: none !important;
  }

  .logo img {
    height: 32px !important;
  }

  header {
    padding: 0.75rem 0;
  }

  /* Typography */
  .hero h1 {
    font-size: 2.5rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 2rem;
  }

  /* Layout */
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .about-text h2 {
    text-align: center;
    font-size: 1.8rem;
  }

  .about-visual div {
    font-size: 4rem;
  }

  .pricing-card.featured {
    transform: none;
    order: -1;
  }

  /* ===== MOBILE TIPS HISTORY FIX ===== */
  /* Hide desktop table header */
  .table-header {
    display: none !important;
  }

  /* Reset table container */
  .table {
    overflow: visible !important;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
  }

  /* Mobile card layout for each tip */
  .table-row {
    display: block !important;
    grid-template-columns: unset !important;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-quaternary) 100%) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 0 !important;
    overflow: hidden !important;
  }

  .table-row:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 212, 212, 0.2) !important;
  }

  /* Each row item as a contained two-column flex container */
  .table-row > div {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem 10px !important;
    margin: 0 !important;
    /*border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;*/
    min-height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 0.75rem !important;
    overflow: hidden !important;
  }

  .table-row > div:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  /* Left column - Labels */
  .table-row > div::before {
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
    font-size: 0.9rem !important;
    flex-shrink: 0 !important;
    min-width: 70px !important;
    max-width: 70px !important;
    text-align: left !important;
    overflow: hidden !important;
  }

  /* Add labels via pseudo elements */
  .table-row .match-info::before { content: "Zápas:" !important; }
  .table-row .tip-type::before { content: "Tip:" !important; }
  .table-row .odds::before { content: "Kurz:" !important; }
  .table-row .confidence::before { content: "Jistota:" !important; }
  .table-row .status::before { content: "Stav:" !important; }
  .table-row .profit::before { content: "Profit:" !important; }
  .table-row .actions::before { content: "Akce:" !important; }

  /* Right column - Values Container */
  .table-row > div > *,
  .table-row .match-info-content {
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    text-align: right !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: calc(100% - 85px) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding-right: 4px !important;
  }

  /* Special handling for match info */
  .table-row .match-info {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .table-row .match-info::before {
    flex-shrink: 0 !important;
    align-self: flex-start !important;
    margin-top: 0.1rem !important;
  }

  .match-info-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    flex-grow: 1 !important;
    text-align: right !important;
  }

  .match-teams {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    line-height: 1.3 !important;
    margin-bottom: 0.25rem !important;
    word-wrap: break-word !important;
    text-align: right !important;
    width: 100% !important;
    overflow-wrap: break-word !important;
  }

  .match-date {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    opacity: 0.8 !important;
    text-align: right !important;
    width: 100% !important;
  }

  /* Reset and style badges properly for contained right column */
  .tip-type {
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    padding: 6px 12px !important;
    border-radius: 16px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    white-space: nowrap !important;
    margin: 0 !important;
    display: inline-block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .odds {
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: var(--primary-color) !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    text-align: center !important;
    margin: 0 !important;
    display: inline-block !important;
    max-width: 100% !important;
  }

  .confidence {
    padding: 6px 12px !important;
    border-radius: 16px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    white-space: nowrap !important;
    margin: 0 !important;
    display: inline-block !important;
    max-width: 100% !important;
  }

  .confidence.high {
    color: var(--success-color) !important;
    
  }

  .confidence.medium {
    color: var(--warning-color) !important;
    
  }

  .confidence.low {
    color: var(--error-color) !important;
    
  }

  .status {
    padding: 6px 12px !important;
    border-radius: 16px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    white-space: nowrap !important;
    margin: 0 !important;
    display: inline-block !important;
    max-width: 100% !important;
  }

  .status.win {
    background-color: var(--success-color) !important;
    color: white !important;
  }

  .status.loss {
    background-color: var(--error-color) !important;
    color: white !important;
  }

  .status.pending {
    background-color: var(--warning-color) !important;
    color: var(--bg-primary) !important;
  }

  .profit {
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    display: inline-block !important;
    max-width: 100% !important;
  }

  .profit.positive {
    color: var(--success-color) !important;
  }

  .profit.negative {
    color: var(--error-color) !important;
  }

  /* Actions for admin panel */
  .actions {
    justify-content: flex-end !important;
    gap: 0.5rem !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: calc(100% - 85px) !important;
    padding-right: 4px !important;
  }

  .btn-edit, 
  .btn-delete {
    padding: 0.5rem !important;
    font-size: 0.9rem !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  /* ===== FILTER SECTION MOBILE FIX ===== */
  .filter-section {
    padding: 20px 0;
  }

  .filters {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .filter-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .filter-group label {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }

  .filter-group select {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    box-sizing: border-box;
  }

  /* ===== STATS GRID MOBILE FIX ===== */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-card {
    padding: 1rem;
    text-align: center;
  }

  .stat-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .stat-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .hero .subtitle {
    font-size: 0.95rem;
  }

  .section h2 {
    font-size: 1.6rem;
  }

  .stat-item h3,
  .stat-card h3 {
    font-size: 1.8rem;
  }

  .login-box {
    padding: 1.5rem 1rem;
  }

  .modal-content {
    width: 98%;
    margin: 0.5rem auto;
  }

  /* ===== EXTRA SMALL MOBILE FIXES ===== */
  .table-row {
    padding: 1rem !important;
    margin-bottom: 0.75rem !important;
  }

  .table-row > div {
    padding: 0.6rem 10px !important;
    gap: 0.75rem !important;
  }

  .table-row > div::before {
    font-size: 0.8rem !important;
    min-width: 70px !important;
  }

  .match-teams {
    font-size: 0.9rem !important;
  }

  .match-date {
    font-size: 0.75rem !important;
  }

  .tip-type,
  .confidence,
  .status {
    font-size: 0.75rem !important;
    padding: 6px 12px !important;
  }

  .odds,
  .profit {
    font-size: 0.9rem !important;
    padding: 6px 12px !important;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }
.visible { display: block; }

/* Spacing utilities */
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }

/* ===== ACCESSIBILITY ===== */
button:focus,
a:focus,
select:focus,
input:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== SELECTION STYLES ===== */
::selection {
  background-color: var(--primary-color);
  color: var(--bg-primary);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ===== PRINT STYLES ===== */
@media print {
  header,
  footer,
  .btn,
  .admin-toolbar,
  .mobile-menu-btn,
  .mobile-nav {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .section {
    page-break-inside: avoid;
  }
}
/* ===== PHOTO UPLOAD STYLES ===== */
.photo-upload-container {
    position: relative;
    width: 100%;
}

.photo-input {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.photo-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-large);
    background: var(--bg-primary);
    transition: var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.photo-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(0, 212, 212, 0.05);
}

.photo-upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(0, 212, 212, 0.1);
    transform: scale(1.02);
}

.upload-placeholder {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.upload-placeholder p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.upload-placeholder small {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.photo-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: var(--bg-secondary);
}

.photo-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: var(--transition-base);
}

.photo-preview img:hover {
    transform: scale(1.05);
}

.remove-photo {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.remove-photo:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.upload-progress {
    padding: 1rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Photo in table display */
.ticket-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.ticket-photo img {
    max-width: 80px;
    max-height: 50px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ticket-photo img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 212, 212, 0.3);
}

.no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
}

/* Photo Modal Styles */
.photo-modal {
    max-width: 90vw;
    max-height: 90vh;
}

.photo-modal-body {
    padding: 1rem;
    text-align: center;
    max-height: 80vh;
    overflow: auto;
}

.photo-modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Error states for photo upload */
.photo-upload-error {
    border-color: var(--error-color);
    background: rgba(239, 68, 68, 0.1);
}

.upload-error-message {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* Success state */
.photo-upload-success {
    border-color: var(--success-color);
    background: rgba(34, 197, 94, 0.1);
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .photo-upload-area {
        margin-bottom: 1rem;
    }
    
    .upload-placeholder {
        padding: 2rem 1rem;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .photo-preview {
        min-height: 150px;
    }
    
    .photo-preview img {
        max-height: 200px;
    }
    
    .ticket-photo img {
        max-width: 60px;
        max-height: 40px;
    }
    
    .photo-modal {
        max-width: 95vw;
        margin: 1rem;
    }
    
    .photo-modal-body {
        padding: 0.5rem;
        max-height: 70vh;
    }
    
    /* Mobile table adjustments for photo column */
    .table-row .ticket-photo::before { 
        content: "Tiket:"; 
    }
    
    .table-row .ticket-photo {
        justify-content: flex-start;
        padding: 0.5rem 0;
    }
    
    .table-row .ticket-photo img {
        margin-left: 1rem;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .photo-upload-area {
        padding: 0.5rem;
    }
    
    .upload-placeholder {
        padding: 1.5rem 1rem;
    }
    
    .photo-preview img {
        cursor: default;
    }
    
    .photo-preview img:active {
        transform: scale(0.95);
    }
    
    .ticket-photo img:active {
        transform: scale(0.95);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .ticket-photo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark theme adjustments */
@media (prefers-color-scheme: dark) {
    .photo-upload-area {
        border-color: var(--border-color);
        background: var(--bg-primary);
    }
    
    .photo-preview {
        background: var(--bg-tertiary);
    }
}

/* Print styles - hide photos in print */
@media print {
    .photo-upload-container,
    .ticket-photo,
    .photo-modal {
        display: none !important;
    }
}

/* Loading shimmer effect for photo placeholders */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.photo-loading {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 400% 100%;
    animation: shimmer 1.5s infinite;
}

/* Drag and drop visual feedback */
.drag-active .photo-upload-area {
    border-color: var(--primary-color);
    background: rgba(0, 212, 212, 0.15);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 212, 212, 0.3);
}

/* Photo validation feedback */
.photo-valid {
    border-color: var(--success-color);
    background: rgba(34, 197, 94, 0.05);
}

.photo-invalid {
    border-color: var(--error-color);
    background: rgba(239, 68, 68, 0.05);
    animation: shake 0.5s ease-in-out;
}
.table {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-large);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.table-header {
    background-color: var(--primary-color);
    color: var(--bg-primary);
    font-weight: 600;
    display: grid;
    padding: 1rem;
    gap: 1rem;
    text-align: center;
}

.table-row {
    display: grid;
    padding: 1rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: var(--transition-fast);
}

.table-row:hover {
    background-color: rgba(0, 212, 212, 0.1);
}

.table-row:last-child {
    border-bottom: none;
}

/* --- Historie Page Table Grid (UPDATED for 7 columns) --- */
body#historie-page .table-header {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr;
}
body#historie-page .table-row {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

/* --- Admin Page Table Grid (UPDATED for 8 columns) --- */
body#admin-page .table-header.admin {
    grid-template-columns: 2fr 1fr 1fr 0.8fr 1fr 1fr 0.8fr 1fr;
}
body#admin-page .table-row {
    grid-template-columns: 2fr 1fr 1fr 0.8fr 1fr 1fr 0.8fr 1fr;
}


/* Center align specific columns */
.table-row .odds,
.table-row .confidence,
.table-row .status,
.table-row .profit,
.table-row .sport { /* Added sport */
    text-align: center;
}

.table-row .sport {
    text-transform: capitalize;
}

.table-row .ticket-photo {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Photo Styles (from original files) --- */
.ticket-photo img {
    max-width: 80px;
    max-height: 50px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ticket-photo img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 212, 212, 0.3);
}

.no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    min-height: 50px;
}

/* --- Mobile Table View (from original files, UPDATED) --- */
@media (max-width: 768px) {
    .table-header {
        display: none;
    }

    .table-row {
        display: block;
        background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-quaternary) 100%);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 1.25rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .table-row:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 212, 212, 0.2);
    }

    .table-row > div {
        margin-bottom: 0.875rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        min-height: 44px;
    }

    .table-row > div:last-child {
        margin-bottom: 0;
        border-bottom: none;
    }

    .table-row > div::before {
        font-weight: 600;
        color: var(--text-secondary);
        min-width: 80px;
        font-size: 0.85rem;
        margin-right: 1rem;
        flex-shrink: 0;
    }

    /* Mobile labels */
    .table-row .match-info::before { content: "Zápas:"; }
    .table-row .sport::before { content: "Sport:"; } /* NEW */
    .table-row .ticket-photo::before { content: "Tiket:"; }
    .table-row .odds::before { content: "Kurz:"; }
    .table-row .confidence::before { content: "Jistota:"; }
    .table-row .status::before { content: "Stav:"; }
    .table-row .profit::before { content: "Profit:"; }
    body#admin-page .table-row .actions::before { content: "Akce:"; } /* Admin only */

    .table-row .match-info {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        padding: 0.875rem 0;
    }

    .table-row .match-info::before {
        margin-bottom: 0.5rem;
        align-self: flex-start;
    }

    .table-row .ticket-photo img {
        margin-left: 1rem;
        max-width: 60px;
        max-height: 40px;
    }
}

/* --- Modal Styles (from original files) --- */
/* Add any other original modal/button/form styles you have here */
.modal-content {
    max-width: 800px;
    max-height: 95vh;
}
.photo-modal-body {
    padding: 1.5rem;
}