/* CSS Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cl-red: #D10811;
  --cl-red-hover: #A5060D;
  --primary-red: var(--cl-red);
  --primary-red-hover: var(--cl-red-hover);
  --text-primary: #1d1d1f;
  --text-secondary: #515154;
  --text-tertiary: #86868b;
  --background: #ffffff;
  --background-secondary: #f5f5f7;
  --background-tertiary: #fbfbfd;
  --border-color: #d2d2d7;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 12px 24px rgba(0, 0, 0, 0.15);
  --radius-small: 8px;
  --radius-medium: 12px;
  --radius-large: 16px;
  --radius-main: var(--radius-large);
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;

  --status-success: #2f9e44;
  --status-success-hover: #28a745;
  --status-success-bg: #d4edda;
  --status-success-text: #155724;
  --status-warning-bg: #fff3cd;
  --status-warning-text: #856404;
  --status-danger-bg: #fff5f5;
  --status-danger-text: #c82333;

  --cl-gray-dark: #2a2a2a;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

:focus-visible {
  outline: 3px solid rgba(209, 8, 17, 0.35);
  outline-offset: 3px;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.1;
}

h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 1.5rem;
  line-height: 1.3;
}

p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  font-size: 1.125rem;
  line-height: 1.5;
}

/* Header */
header {
  background: var(--primary-red);
  padding: var(--spacing-sm) var(--spacing-md);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  color: white;
  font-size: 1.75rem;
  margin: 0;
  font-weight: 700;
}

.header-brand {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.header-brand img {
  display: block;
  height: 40px;
  width: auto;
}

/* Header Actions: language switcher + user nav grouped together */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

/* Header User Section */
.header-user {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

header p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 0.95rem;
}

/* Header Logout Button */
header a {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-small);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

header a:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* Main Content */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
  width: 100%;
}

/* Buttons */
button,
.btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--primary-red);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-medium);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-light);
  min-height: 44px;
}

button:hover,
.btn:hover,
.btn-primary:hover,
.btn-login:hover {
  background: var(--primary-red-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

button:disabled {
  background: var(--text-tertiary);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button:disabled:hover {
  background: var(--text-tertiary);
  transform: none;
}

/* Forms */
.staff-form,
.login-form form {
  background: var(--background-tertiary);
  padding: var(--spacing-lg);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-light);
  max-width: 400px;
  margin: var(--spacing-xl) auto;
}

.staff-form h2,
.login-form form h2 {
  text-align: center;
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
}

label {
  display: block;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
  font-size: 0.95rem;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-medium);
  font-size: 1rem;
  background: var(--background);
  transition: border-color 0.2s ease;
}


input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--cl-red);
  box-shadow: 0 0 0 3px rgba(209, 8, 17, 0.1);
}

/* Welcome Page */
main h2:first-child {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

main h2:first-child+p {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
  color: var(--text-secondary);
}

main h2:first-child+p+a {
  display: block;
  width: fit-content;
  margin: 0 auto;
  font-size: 1.125rem;
  padding: 16px 32px;
}

/* Dashboard */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
}

.dashboard-header h2 {
  margin: 0;
}

/* Info/Help Button (?) */
.info-help-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--text-tertiary);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-light);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.info-help-btn:hover {
  background: var(--text-secondary);
  transform: scale(1.1);
}

/* Secondary Outline Button (weaker CTA) */
.btn-secondary-outline {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-medium);
  background: transparent;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-secondary-outline:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

/* Django Messages */
.messages {
  list-style: none;
  margin: 0 auto var(--spacing-md);
  padding: 0;
  max-width: 1100px;
}

.message {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-small);
  margin-bottom: var(--spacing-xs);
  font-size: 0.95rem;
}

.message-success {
  background: var(--status-success-bg);
  color: var(--status-success-text);
}

.message-warning {
  background: var(--status-warning-bg);
  color: var(--status-warning-text);
}

.message-error {
  background: var(--status-danger-bg);
  color: var(--status-danger-text);
}

.message-info,
.message-debug {
  background: var(--background-secondary);
  color: var(--text-secondary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
}

.empty-state .btn-secondary {
  margin-top: var(--spacing-md);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.empty-state h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.empty-state p {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto var(--spacing-lg);
}

article {
  background: var(--background-tertiary);
  padding: var(--spacing-md);
  border-radius: var(--radius-large);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border-color);
}

article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

article h3 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

article p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  font-size: 1rem;
}

article a {
  font-size: 0.95rem;
  padding: 10px 20px;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.is-open {
  display: flex;
}

.modal>* {
  background: var(--background);
  padding: var(--spacing-lg);
  border-radius: var(--radius-large);
  max-width: 600px;
  margin: var(--spacing-md);
  box-shadow: var(--shadow-medium);
  max-height: 80vh;
  overflow-y: auto;
}

.modal h3 {
  margin-bottom: var(--spacing-md);
  color: var(--primary-red);
}

.modal p {
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.modal ul {
  margin: var(--spacing-sm) 0;
  padding-left: var(--spacing-md);
}

.modal li {
  margin-bottom: var(--spacing-xs);
  color: var(--text-secondary);
}

.modal strong {
  color: var(--text-primary);
}

.modal button {
  margin-top: var(--spacing-md);
  background: var(--text-secondary);
  padding: 10px 20px;
}

div.confirmation {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Footer */
footer {
  background: var(--cl-gray-dark);
  text-align: center;
  padding: var(--spacing-lg) var(--spacing-md);
  border-top: 3px solid var(--cl-red);
  margin-top: auto;
}

.footer-brand {
  margin-bottom: var(--spacing-sm);
}

.footer-logo {
  height: 32px;
  width: auto;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-xs) var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

footer p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin: 0;
}

.footer-copy {
  margin-top: var(--spacing-xs);
}

/* Landing Page */

.landing-hero {
  background: linear-gradient(135deg, var(--cl-red) 0%, #a5060d 100%);
  color: #fff;
  padding: var(--spacing-xl) var(--spacing-md);
}

.landing-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.landing-hero-content {
  flex: 1 1 55%;
  min-width: 0;
}

.landing-hero-logo {
  height: 48px;
  width: auto;
  margin-bottom: var(--spacing-sm);
}

.landing-hero h1 {
  color: #fff;
  font-size: 2.25rem;
  margin-bottom: var(--spacing-xs);
}

.landing-hero-subline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
}

.landing-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.landing-hero-price {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin-top: var(--spacing-xs);
}

.landing-hero-image {
  flex: 1 1 40%;
  min-width: 0;
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.landing-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.landing-hero-video-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.landing-hero-video-link:hover,
.landing-hero-video-link:focus-visible {
  text-decoration: underline;
}

.landing-hero-video-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  font-size: 0.7rem;
  line-height: 1;
}

.cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--cl-red);
  padding: 0.75em 1.75em;
  border-radius: var(--radius-small);
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

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

.cta-btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* Landing Video */

.landing-video {
  background: radial-gradient(ellipse at 50% 85%, rgba(209, 8, 17, 0.28) 0%, transparent 60%), #14161c;
  color: #fff;
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
}

.landing-video-inner {
  max-width: 960px;
  margin: 0 auto;
}

.landing-video-kicker {
  color: #ff4d55;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.landing-video h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: var(--spacing-xs);
}

.landing-video-lead {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  margin-bottom: 0;
}

.landing-video-lang {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

.landing-video-player {
  position: relative;
  margin: var(--spacing-md) auto 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-large);
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.landing-video-media {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  background: #000;
}

.landing-video-poster {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0 0 5%;
  border: 0;
  background: #14161c;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.landing-video-poster[hidden] {
  display: none;
}

.landing-video-poster:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}

.landing-video-poster picture,
.landing-video-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.landing-video-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 45%);
  pointer-events: none;
}

.landing-video-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 22px 6px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
}

.landing-video-play {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cl-red);
  box-shadow: 0 8px 24px rgba(209, 8, 17, 0.45);
  transition: transform 0.2s, background 0.2s;
}

.landing-video-play svg {
  width: 26px;
  height: 26px;
  margin-left: 2px;
}

.landing-video-play::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--cl-red);
  animation: landing-video-pulse 2s infinite;
}

.landing-video-poster:hover .landing-video-play,
.landing-video-poster:focus-visible .landing-video-play {
  transform: scale(1.08);
  background: var(--cl-red-hover);
}

@keyframes landing-video-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.landing-video-play-label {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

.landing-video-endcard {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  background: rgba(12, 13, 18, 0.88);
  backdrop-filter: blur(4px);
  padding: var(--spacing-md);
}

.landing-video-endcard[hidden] {
  display: none;
}

.landing-video-endcard-title {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

.landing-video-endcard-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.landing-video-facts {
  list-style: none;
  padding: 0;
  margin: var(--spacing-md) auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-sm);
}

.landing-video-facts li {
  display: flex;
  flex-direction: column;
  padding: var(--spacing-sm);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-video-facts strong {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.landing-video-facts span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

/* Landing Benefits */

.landing-benefits {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
}

.landing-benefits h2 {
  color: var(--cl-red);
}

.landing-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.landing-benefit-card {
  background: var(--background);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--cl-red);
  border-radius: var(--radius-medium);
  padding: var(--spacing-md) var(--spacing-sm);
  box-shadow: var(--shadow-light);
  transition: transform 0.2s, box-shadow 0.2s;
}

.landing-benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.landing-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(209, 8, 17, 0.08);
  color: var(--cl-red);
  border-radius: 50%;
  font-size: 1.4rem;
  margin-bottom: var(--spacing-sm);
}

.landing-benefit-card h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.landing-benefit-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Landing Process */

.landing-process {
  background: var(--background-secondary);
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
}

.landing-process h2 {
  color: var(--cl-red);
}

.landing-process-steps {
  max-width: 900px;
  margin: var(--spacing-md) auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.landing-step {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) 0;
  text-align: left;
  position: relative;
}

.landing-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 56px;
  width: 2px;
  height: calc(100% - 40px);
  background: var(--border-color);
}

.landing-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--cl-red);
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
}

.landing-step-content h3 {
  font-size: 1.1rem;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.landing-step-content p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Landing Trust */

.landing-trust {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
}

.landing-trust-inner {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-large);
  padding: var(--spacing-lg) var(--spacing-md);
  box-shadow: var(--shadow-light);
}

.landing-trust-logo {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}

.landing-trust-content h2 {
  color: var(--cl-red);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
}

.landing-trust-content p {
  margin-bottom: var(--spacing-sm);
}

/* Landing Page Responsive */

@media (max-width: 800px) {
  .landing-hero-inner {
    flex-direction: column;
  }

  .landing-hero-content {
    text-align: center;
  }

  .landing-hero-cta {
    justify-content: center;
  }

  .landing-hero-image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .landing-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-trust-inner {
    flex-direction: column;
    text-align: center;
  }

  .landing-trust-logo {
    width: 80px;
  }

  .landing-video-facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .landing-hero {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .landing-hero h1 {
    font-size: 1.6rem;
  }

  .landing-hero-subline {
    font-size: 1rem;
  }

  .landing-hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .cta-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .landing-benefits-grid {
    grid-template-columns: 1fr;
  }

  .landing-video h2 {
    font-size: 1.5rem;
  }

  .landing-video-poster {
    padding-bottom: 4%;
  }

  .landing-video-cta {
    gap: 10px;
    padding: 4px 16px 4px 4px;
  }

  .landing-video-play {
    width: 40px;
    height: 40px;
  }

  .landing-video-play svg {
    width: 20px;
    height: 20px;
  }

  .landing-video-play-label {
    font-size: 0.9rem;
  }

  .landing-video-endcard-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 600px) {
  .landing-video-player {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }

  .dashboard-header h2 {
    margin-bottom: 0;
  }

  .header-actions {
    gap: var(--spacing-xs);
    justify-content: flex-end;
  }

  .header-user {
    gap: var(--spacing-xs);
  }

  header h1 {
    font-size: 1.5rem;
  }

  .header-brand {
    justify-content: center;
  }

  .header-brand img {
    height: 36px;
  }

  main {
    padding: var(--spacing-md);
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  main h2:first-child {
    font-size: 2rem;
  }

  form {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-md);
  }

  .btn-primary,
  .btn-secondary-outline,
  .btn-certificate-request,
  .btn-login {
    width: 100%;
    margin-bottom: var(--spacing-xs);
  }

  article {
    padding: var(--spacing-sm);
  }

  .modal>* {
    margin: var(--spacing-sm);
    padding: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  header>* {
    padding: 0 var(--spacing-sm);
  }

  main {
    padding: var(--spacing-sm);
  }

  main h2:first-child+p+a {
    font-size: 1rem;
    padding: 14px 28px;
  }

  .login-card {
    padding: var(--spacing-md);
  }
}

/* Staff-Bereich Styles */
.staff-dashboard {
  max-width: 1000px;
  margin: 0 auto;
}

.staff-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.stat-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--background-tertiary);
  padding: var(--spacing-lg);
  border-radius: var(--radius-large);
  text-align: center;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--cl-red);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.stat-card h3 {
  font-size: 2.5rem;
  color: var(--primary-red);
  margin-bottom: 0;
  transition: transform 0.3s ease;
}

.stat-card:hover h3 {
  transform: scale(1.05);
}

/* Geldbeträge ("1.019,94 €") sind länger als einfache Zahlen und brechen
   sonst in der großen Zahlen-Schrift um - kleinere Schrift, kein Umbruch. */
.stat-card h3.stat-value-money {
  font-size: 1.75rem;
  white-space: nowrap;
}

.stat-card p {
  margin: var(--spacing-xs) 0;
  color: var(--text-secondary);
}

.stat-card a {
  display: inline-block;
  margin-top: auto;
  font-size: 0.875rem;
  padding: 8px 16px;
  background: var(--primary-red);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-small);
}

.stat-card a:hover {
  background: var(--primary-red-hover);
}

.staff-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
  margin: var(--spacing-lg) 0;
}

.staff-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--text-secondary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-medium);
  transition: all 0.2s ease;
}

.staff-btn:hover {
  background: var(--primary-red);
  transform: translateY(-1px);
}

.staff-section {
  max-width: 1000px;
  margin: var(--spacing-xl) auto;
}

.staff-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.staff-header h2 {
  margin-bottom: 0;
}

.staff-btn-primary {
  background: var(--cl-red);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-medium);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.staff-btn-primary::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.staff-btn-primary:hover::after {
  width: 300px;
  height: 300px;
}

.staff-btn-primary:hover {
  background: var(--cl-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(209, 8, 17, 0.35);
}

.staff-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--background-tertiary);
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.staff-table th,
.staff-table td {
  padding: var(--spacing-sm);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.staff-table th {
  background: var(--background-secondary);
  font-weight: 600;
  color: var(--text-primary);
}

.staff-table td {
  color: var(--text-secondary);
}

.staff-table .actions {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

.enrollment-actions {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
  align-items: center;
}

.enrollment-actions form {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.enrollment-actions .form-input-inline {
  padding: 4px 6px;
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-small);
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.875rem;
  border-radius: var(--radius-small);
  text-decoration: none;
  color: white;
  background: var(--text-secondary);
  transition: all 0.2s ease;
}

.btn-small:hover {
  background: var(--text-primary);
}

.btn-danger {
  background: var(--status-danger-text, #c82333);
  color: #fff;
  padding: 10px 24px;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-small);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-danger:hover {
  background: #a71d2a;
}

.btn-small.btn-danger {
  background: #dc3545;
}

.btn-small.btn-danger:hover {
  background: #c82333;
}

.btn-secondary {
  background: var(--text-tertiary);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-medium);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--text-secondary);
}

.staff-form {
  max-width: 600px;
  background: var(--background-tertiary);
  padding: var(--spacing-lg);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-light);
}

.staff-form .form-group {
  margin-bottom: var(--spacing-md);
}

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

.staff-form input[type="text"],
.staff-form input[type="password"],
.staff-form input[type="email"],
.staff-form textarea,
.staff-form input[type="file"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-medium);
  font-size: 1rem;
  background: var(--background);
  transition: border-color 0.2s ease;
}

.staff-form input:focus,
.staff-form textarea:focus {
  outline: none;
  border-color: var(--primary-red);
}

.staff-form .error {
  color: var(--primary-red);
  font-size: 0.875rem;
  margin-top: 4px;
  display: block;
}

.staff-form .form-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

/* Course Group Card (Staff) */
.course-group-card {
  background: var(--background-tertiary);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
}

.course-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #f8f8f8;
  border-bottom: 1px solid var(--border-color);
}

.course-group-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.course-group-date {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.course-group-actions {
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: var(--spacing-xs);
}

/* Language Badge */
.lang-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-small);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lang-badge.lang-de {
  background: #e8f4fd;
  color: #1a73e8;
}

.lang-badge.lang-en {
  background: #fde8e8;
  color: #c5221f;
}

/* Staff Subsection (Lessons inside Seminar Edit) */
.staff-subsection {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 2px solid var(--border-color);
}

.staff-subheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.staff-subheader h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

/* Form Group Half */
.form-group-half {
  flex: 1;
  min-width: 150px;
}

/* Confirm Card */
.confirm-card {
  background: var(--background-tertiary);
  padding: var(--spacing-xl);
  border-radius: var(--radius-main);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.confirm-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.confirm-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.confirm-card .hint {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.confirm-card .form-actions {
  justify-content: center;
  margin-top: var(--spacing-sm);
}

.form-row {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 200px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-xs);
  margin-top: var(--spacing-xs);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 10px 12px;
  background: var(--background);
  border-radius: var(--radius-small);
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.checkbox-label:hover {
  border-color: var(--primary-red);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--cl-red);
}

.confirm-delete {
  max-width: 500px;
  margin: var(--spacing-lg) auto;
  padding: var(--spacing-lg);
  background: var(--background-tertiary);
  border-radius: var(--radius-large);
  text-align: center;
  box-shadow: var(--shadow-light);
}

.confirm-delete .warning {
  color: #dc3545;
  font-weight: 500;
}

.confirm-delete form {
  max-width: none;
  margin-top: var(--spacing-lg);
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
}

.recent-section {
  margin-top: var(--spacing-xl);
}

.recent-section h3 {
  margin-bottom: var(--spacing-md);
}

.info-text {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  font-style: italic;
}

.staff-link {
  background: rgba(255, 255, 255, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.staff-link:hover {
  background: rgba(255, 255, 255, 0.35) !important;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
}

.lang-switcher form {
  display: flex;
  background: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  max-width: none;
}

.lang-select {
  padding: 4px 28px 4px 10px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-small);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  min-height: unset;
  min-width: 100px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: all 0.2s ease;
}

.lang-select:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.lang-select:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.lang-select option {
  background: #2a2a2a;
  color: white;
}

@media (max-width: 768px) {
  .lang-switcher {
    margin: var(--spacing-xs) 0;
  }

  .lang-select {
    min-width: 80px;
    padding: 4px 24px 4px 8px;
    font-size: 0.75rem;
  }
}

/* Back-Link Button */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--text-secondary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-medium);
  transition: all 0.2s ease;
  margin-top: var(--spacing-lg);
  font-weight: 500;
}

.back-link:hover {
  background: var(--text-primary);
  transform: translateX(-4px);
  box-shadow: var(--shadow-light);
}

.back-link::before {
  content: "←";
  font-weight: 600;
}

/* Table Row Hover */
.staff-table tbody tr {
  transition: all 0.2s ease;
}

.staff-table tbody tr:hover {
  background: var(--background-secondary);
  transform: translateX(4px);
}

/* Button Small Hover */
.btn-small {
  position: relative;
  overflow: hidden;
}

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

/* Form Actions */
.form-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
  flex-wrap: wrap;
}

.btn-secondary {
  padding: 12px 24px;
  background: var(--text-tertiary);
  color: white;
  border-radius: var(--radius-medium);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

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

/* Empty Message */
.empty-message {
  text-align: center;
  padding: var(--spacing-lg);
  color: var(--text-tertiary);
  font-style: italic;
}

/* Confirm Delete */
.confirm-delete {
  max-width: 500px;
  margin: var(--spacing-lg) auto;
  padding: var(--spacing-lg);
  background: var(--background-tertiary);
  border-radius: var(--radius-large);
  text-align: center;
  box-shadow: var(--shadow-light);
  animation: fadeIn 0.3s ease;
}

.confirm-delete .warning {
  color: #dc3545;
  font-weight: 600;
  font-size: 1.1rem;
  margin: var(--spacing-md) 0;
}

.confirm-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Table Wrapper for Mobile */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Hint Text */
.hint {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-top: var(--spacing-xs);
}

/* Info Text */
.staff-section .info-text {
  padding: var(--spacing-sm);
  background: var(--background-secondary);
  border-radius: var(--radius-small);
  margin-bottom: var(--spacing-md);
}

/* Rechtstexte-Platzhalter (Phase 6, zahlungs-plan.md Abschnitt 15.1): die
   verbindlichen AGB-/Widerrufstexte fehlen bewusst noch. */
.legal-placeholder {
  background: var(--background-secondary);
  border: 1px dashed var(--border-color, #cccccc);
  border-radius: var(--radius-small);
  padding: var(--spacing-sm) var(--spacing-md);
  margin: var(--spacing-sm) 0 var(--spacing-md);
  color: var(--text-secondary);
}

.withdrawal-link {
  margin: var(--spacing-md) 0;
}

/* Staff Dashboard */
.staff-dashboard {
  animation: fadeIn 0.3s ease;
}

.staff-section {
  animation: fadeIn 0.3s ease;
}

@media (max-width: 768px) {
  .staff-stats {
    grid-template-columns: 1fr;
  }

  .staff-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .staff-table {
    font-size: 0.875rem;
  }

  .staff-table th,
  .staff-table td {
    padding: 8px;
  }

  .staff-nav {
    flex-direction: column;
  }

  .staff-btn {
    text-align: center;
  }
}


/* Mobile responsive staff tables */
@media (max-width: 768px) {
  .staff-table[data-mobile-cards] thead {
    display: none;
  }

  .staff-table[data-mobile-cards] tr {
    display: block;
    margin-bottom: var(--spacing-sm);
    background: var(--background-tertiary);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
  }

  .staff-table[data-mobile-cards] td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
  }

  .staff-table[data-mobile-cards] td:last-child {
    border-bottom: none;
  }

  .staff-table[data-mobile-cards] td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-primary);
    margin-right: var(--spacing-sm);
    flex-shrink: 0;
  }

  .staff-table[data-mobile-cards] td.actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
  }

  .staff-table[data-mobile-cards] td.actions::before {
    content: none;
  }
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.header-nav {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-red);
    flex-direction: column;
    padding: var(--spacing-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
  }

  .header-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header-user {
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
    text-align: center;
  }

  .header-user a,
  .header-user p {
    width: 100%;
    justify-content: center;
  }

  header {
    flex-wrap: wrap;
    position: relative;
  }

  header h1 {
    flex: 1;
    text-align: center;
  }
}

/* Seminar Detail Page */
.seminar-detail {
  max-width: 1200px;
  margin: 0 auto;
}

.seminar-header {
  margin-bottom: var(--spacing-lg);
}

.seminar-header h2 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.seminar-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.video-container {
  position: relative;
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  background: #000;
}

.video-container video {
  display: block;
  margin: 0;
}

.video-watermark {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 40%;
  color: rgb(255 255 255 / 72%);
  font-size: clamp(0.65rem, 1.4vw, 0.9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0.42;
  text-shadow:
    0 1px 2px rgb(0 0 0 / 90%),
    0 0 8px rgb(0 0 0 / 60%);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 600px) {
  .video-watermark {
    max-width: 48%;
    opacity: 0.38;
  }
}

/* Video Progress Container */
.video-progress-container {
  background: var(--background-tertiary);
  padding: var(--spacing-md);
  border-radius: var(--radius-medium);
  margin: var(--spacing-md) 0;
  box-shadow: var(--shadow-light);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.progress-label {
  color: var(--text-primary);
}

#progress-text {
  color: var(--primary-red);
  font-weight: 600;
}

.progress-bars {
  position: relative;
  height: 12px;
}

.watched-progress,
.current-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: none;
  border-radius: var(--radius-small);
}

.watched-progress {
  z-index: 1;
  background: var(--background-secondary);
}

.watched-progress::-webkit-progress-bar {
  background: var(--background-secondary);
  border-radius: var(--radius-small);
}

.watched-progress::-webkit-progress-value {
  background: var(--status-success) !important;
  border-radius: var(--radius-small);
}

.watched-progress::-moz-progress-bar {
  background: var(--status-success);
  border-radius: var(--radius-small);
}

.current-progress {
  z-index: 2;
  background: transparent !important;
}

.current-progress::-webkit-progress-bar {
  background: transparent !important;
}

.current-progress::-webkit-progress-value {
  background: var(--primary-red) !important;
  opacity: 0.7;
  border-radius: var(--radius-small);
}

.current-progress::-moz-progress-bar {
  background: var(--primary-red);
  opacity: 0.7;
  border-radius: var(--radius-small);
}

.progress-legend {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xs);
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-color.watched {
  background: var(--status-success);
}

.legend-color.current {
  background: var(--primary-red);
  opacity: 0.7;
}

/* Certificate Section */
.certificate-section {
  padding: var(--spacing-md) 0 0;
  margin-top: var(--spacing-lg);
  border-top: 2px solid var(--cl-red);
  text-align: center;
}

.btn-certificate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--cl-red);
  color: white;
  border: none;
  border-radius: var(--radius-medium);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-light);
}

.btn-certificate:hover:not(:disabled) {
  background: var(--cl-red-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-certificate:disabled {
  background: var(--background-secondary);
  color: var(--text-tertiary);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Certificate button loading state */
.btn-certificate.loading {
  opacity: 0.7;
  cursor: wait;
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

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

.btn-certificate .btn-icon {
  font-size: 1.3rem;
}

.certificate-hint {
  margin-top: var(--spacing-sm);
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.certificate-hint.ready {
  color: var(--status-success-text);
  font-weight: 500;
}

/* Login Page */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: var(--spacing-lg);
}

.login-card {
  background: var(--background-tertiary);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-medium);
  padding: var(--spacing-xl);
  width: 100%;
  max-width: 420px;
}

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

.login-logo {
  display: block;
  width: min(220px, 100%);
  height: auto;
  margin: 0 auto var(--spacing-md);
}

.login-header h2 {
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}

.login-header p {
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

.login-error {
  background: #fff5f5;
  border: 1px solid #fc8181;
  border-radius: var(--radius-small);
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.login-error strong {
  color: #c53030;
  display: block;
  margin-bottom: 4px;
}

.login-error p {
  color: #742a2a;
  font-size: 0.9rem;
  margin: 0;
}

.login-form .form-group {
  margin-bottom: var(--spacing-md);
}

.login-form label {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.login-form input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-medium);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.login-form input:focus {
  outline: none;
  border-color: var(--cl-red);
  box-shadow: 0 0 0 3px rgba(209, 8, 17, 0.1);
}

.btn-login {
  width: 100%;
  padding: 14px 24px;
  background: var(--primary-red);
  color: white;
  border: none;
  border-radius: var(--radius-medium);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--spacing-md);
}

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

.btn-arrow {
  font-size: 1.2em;
  transition: transform 0.2s ease;
}

.btn-login:hover .btn-arrow {
  transform: translateX(4px);
}

.login-footer {
  text-align: center;
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

.login-footer p {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin: 0;
}

.login-footer a {
  color: var(--primary-red);
  font-weight: 500;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

.login-container form {
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}

/* Dashboard Seminar Cards */
.seminar-card {
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--cl-red);
}

.seminar-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
}

.seminar-status {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: var(--radius-small);
  font-weight: 500;
  white-space: nowrap;
}

.seminar-status.incomplete {
  background: var(--background-secondary);
  color: var(--text-tertiary);
}

.seminar-status.in-progress {
  background: var(--status-warning-bg);
  color: var(--status-warning-text);
}

.seminar-status.complete {
  background: var(--status-success-bg);
  color: var(--status-success-text);
}

.seminar-lessons-info {
  margin-bottom: var(--spacing-sm);
}

.lessons-count {
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
}

.seminar-progress {
  margin: var(--spacing-sm) 0;
}

.seminar-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--background-secondary);
  border-radius: var(--radius-small);
  overflow: hidden;
}

.seminar-progress-fill {
  height: 100%;
  background: var(--cl-red);
  transition: width 0.3s ease;
  border-radius: var(--radius-small);
}

.seminar-progress-fill.complete {
  background: var(--status-success);
}

.seminar-progress-text {
  display: block;
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* Inactive (expired/revoked) course access cards */
.inactive-courses-section {
  margin-top: var(--spacing-xl);
}

.seminar-card--inactive {
  opacity: 0.65;
  filter: grayscale(40%);
  border-top: 3px solid var(--text-tertiary);
}

.seminar-card--inactive .seminar-status {
  background: var(--background-secondary);
  color: var(--text-tertiary);
}

.seminar-card--inactive .inactive-note {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: var(--spacing-sm);
}

.seminar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary-red);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-medium);
  font-weight: 500;
  transition: all 0.2s ease;
}

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

.certificate-requested {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--status-success-bg);
  color: var(--status-success-text);
  border-radius: var(--radius-medium);
  font-weight: 500;
}

.status-icon {
  font-size: 1.1rem;
}

.btn-certificate-request {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--status-success);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-medium);
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-certificate-request:hover {
  background: var(--status-success-hover);
  transform: translateY(-2px);
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .stat-card:hover,
  .staff-btn-primary:hover,
  .btn-small:hover,
  .back-link:hover,
  .staff-table tbody tr:hover,
  article:hover {
    transform: none !important;
  }

  .staff-btn-primary::after {
    display: none;
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(1),
  .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: none;
  }

  .btn-login:hover .btn-arrow {
    transform: none;
  }

  .btn-certificate:hover:not(:disabled),
  .btn-certificate-request:hover,
  .btn-primary:hover {
    transform: none;
  }

  .landing-video-poster:hover .landing-video-play,
  .landing-video-poster:focus-visible .landing-video-play {
    transform: none !important;
  }

  .landing-video-play::after {
    animation: none !important;
    opacity: 0;
  }
}

/* Video element base styles */
video {
  border-radius: var(--radius-medium);
  margin: var(--spacing-md) 0;
  background: #000;
  box-shadow: var(--shadow-medium);
}

/* ========================================
   VIDEO PROGRESS CARD - NEW DESIGN
   ======================================== */

.video-progress-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: var(--radius-large);
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--background-secondary);
}

.progress-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-icon {
  font-size: 1.5rem;
}

.progress-title h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.progress-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

.time-separator {
  color: var(--text-tertiary);
  font-weight: 400;
}

#current-time {
  color: var(--text-primary);
}

/* Timeline Bar */
.progress-timeline {
  margin: var(--spacing-lg) 0;
}

.timeline-bar {
  position: relative;
  height: 16px;
  background: var(--background-secondary);
  border-radius: 8px;
  overflow: visible;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-watched {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cl-red) 0%, #e8101a 100%);
  border-radius: 8px;
  transition: width 0.3s ease;
  box-shadow: 0 2px 8px rgba(209, 8, 17, 0.3);
}

.timeline-marker {
  position: absolute;
  top: -8px;
  transform: translateX(-50%);
  z-index: 10;
  transition: left 0.3s ease;
}

.marker-dot {
  width: 20px;
  height: 20px;
  background: var(--cl-red);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(209, 8, 17, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.marker-dot:hover {
  transform: scale(1.2);
}

.marker-label {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: white;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.timeline-marker:hover .marker-label {
  opacity: 1;
}

/* Time markers under bar */
.timeline-markers {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 4px;
}

.time-mark {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-family: 'SF Mono', 'Monaco', monospace;
}

/* Info Box */
.progress-info-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--status-warning-bg);
  border: 1px solid rgba(133, 100, 4, 0.2);
  border-left: 4px solid var(--status-warning-text);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-small);
  margin-bottom: var(--spacing-sm);
}

.progress-info-box.success {
  background: var(--status-success-bg);
  border: 1px solid rgba(21, 87, 36, 0.15);
  border-left: 4px solid var(--status-success);
}

.info-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--status-warning-text);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.info-text {
  font-size: 0.9rem;
  color: var(--status-warning-text);
  line-height: 1.4;
  background: transparent;
  padding: 0;
  margin-bottom: 0;
}

.progress-info-box.success .info-icon {
  color: var(--status-success-text);
}

.progress-info-box.success .info-text {
  color: var(--status-success-text);
}

/* Percentage Circle */
.progress-percentage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--spacing-sm);
}

.percentage-circle {
  position: relative;
  width: 120px;
  height: 120px;
}

.percentage-circle svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.circle-bg {
  fill: none;
  stroke: var(--background-secondary);
  stroke-width: 8;
}

.circle-progress {
  fill: none;
  stroke: var(--cl-red);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

.percentage-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.percentage-label {
  margin-top: var(--spacing-xs);
  font-size: 0.9rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   USERS MANAGEMENT - STAFF
   ======================================== */

/* Integrated Toolbar Design */
.users-toolbar-integrated {
  display: block;
  margin-bottom: var(--spacing-sm);
  padding: var(--spacing-md);
  background: var(--background-tertiary);
  border-radius: var(--radius-medium);
  border-bottom: 2px solid var(--border-color);
  width: 100%;
  box-sizing: border-box;
}

.users-toolbar-integrated form.search-form,
form.users-toolbar-integrated {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  width: 100%;
  max-width: 100%;
}

.users-toolbar-integrated .toolbar-left,
.users-toolbar-integrated form.search-form .toolbar-left {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.users-toolbar-integrated .toolbar-right,
.users-toolbar-integrated form.search-form .toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-shrink: 0;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.search-integrated {
  width: 100%;
  position: relative;
  display: inline-block;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 1rem;
  pointer-events: none;
}

.search-input-integrated {
  padding: 10px 16px 10px 40px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-medium);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 480px;
}

.search-input-integrated:focus {
  outline: none;
  border-color: var(--cl-red);
  box-shadow: 0 0 0 3px rgba(209, 8, 17, 0.1);
}

.btn-primary-small {
  padding: 10px 20px;
  background: var(--primary-red);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-medium);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary-small:hover {
  background: var(--primary-red-hover);
  transform: translateY(-1px);
}

.users-stats {
  display: flex;
  gap: var(--spacing-sm);
}

.stat-badge {
  padding: 8px 16px;
  background: var(--background-secondary);
  border-radius: var(--radius-small);
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Unified Table Design */
.staff-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--background-tertiary);
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

.staff-table thead {
  background: var(--background-secondary);
  border-bottom: 2px solid var(--border-color);
}

.staff-table th {
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.staff-table td {
  padding: var(--spacing-md);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.staff-table tbody tr {
  transition: all 0.2s ease;
}

.staff-table tbody tr:hover {
  background: var(--background-secondary);
  transform: translateX(2px);
}

.staff-table tbody tr:last-child td {
  border-bottom: none;
}

.staff-table td.actions {
  text-align: right;
  white-space: nowrap;
}

/* Sortable Table Headers */
.staff-table.sortable th a {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.staff-table.sortable th a:hover {
  color: var(--primary-red);
}

.sort-icon {
  font-size: 0.75rem;
  color: var(--cl-red);
  font-weight: 700;
}

/* Table Content Styling */
.staff-table .email-link {
  color: var(--primary-red);
  text-decoration: none;
  font-size: 0.9rem;
}

.staff-table .email-link:hover {
  text-decoration: underline;
}

.text-muted {
  color: var(--text-tertiary);
  font-style: italic;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-small);
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-info {
  background: #cce5ff;
  color: #004085;
}

.badge-success {
  background: var(--status-success-bg);
  color: var(--status-success-text);
}

.badge-secondary {
  background: var(--background-secondary);
  color: var(--text-tertiary);
}

.date-text {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
}

.time-text {
  display: block;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--background-tertiary);
  border-radius: var(--radius-medium);
}

.pagination-btn {
  padding: 10px 20px;
  background: var(--cl-red);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-medium);
  font-weight: 500;
  transition: all 0.2s ease;
}

.pagination-btn:hover {
  background: var(--cl-red-hover);
  transform: translateY(-1px);
}

.pagination-info {
  font-weight: 500;
  color: var(--text-secondary);
}

/* Empty State */
/* Responsive */
@media (max-width: 768px) {
  .seminar-detail {
    padding: 0;
  }

  .seminar-header {
    margin-bottom: var(--spacing-md);
    padding: 0 var(--spacing-sm);
  }

  .seminar-header h2 {
    font-size: 1.3rem;
  }

  .seminar-description {
    font-size: 0.95rem;
  }

  .video-container {
    aspect-ratio: 16 / 9;
    border-radius: 0;
  }

  .video-container video {
    height: 100%;
    object-fit: contain;
  }

  .video-progress-card {
    padding: var(--spacing-sm);
    margin: var(--spacing-sm) 0;
  }

  .progress-header {
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: center;
    padding-bottom: var(--spacing-xs);
  }

  .progress-time {
    font-size: 1rem;
  }

  .timeline-bar {
    height: 12px;
    border-radius: 6px;
  }

  .timeline-watched {
    border-radius: 6px;
  }

  .marker-dot {
    width: 16px;
    height: 16px;
  }

  .timeline-markers {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    gap: 2px;
    flex-wrap: wrap;
  }

  .time-mark {
    white-space: nowrap;
  }

  .percentage-circle {
    width: 90px;
    height: 90px;
  }

  .percentage-text {
    font-size: 1.4rem;
  }

  .certificate-section {
    padding: var(--spacing-sm);
    margin-top: var(--spacing-md);
  }

  .btn-certificate {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .certificate-hint {
    font-size: 0.85rem;
  }

  .lesson-navigation {
    padding: var(--spacing-sm);
  }

  .btn-next-lesson {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .back-link {
    padding: 10px 16px;
    font-size: 0.9rem;
    margin: var(--spacing-sm);
  }

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

  .users-toolbar-integrated form.search-form {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .users-toolbar-integrated .toolbar-right {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-top: var(--spacing-sm);
  }

  .users-toolbar-integrated .search-input-integrated {
    min-width: 100%;
    max-width: none;
  }

  .staff-table {
    font-size: 0.85rem;
  }

  .staff-table th,
  .staff-table td {
    padding: 8px 4px;
  }

  .pagination {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}

/* ── Lesson Sidebar Layout ────────────────────────────────────── */

.lesson-layout {
  display: flex;
  gap: 24px;
  margin-top: 20px;
}

.lesson-content {
  flex: 1;
  min-width: 0;
}

.lesson-sidebar {
  width: 260px;
  min-width: 260px;
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  padding: 0;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  flex-shrink: 0;
}

.lesson-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.lesson-sidebar-close {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.lesson-sidebar-close:hover {
  color: #333;
}

.lesson-sidebar-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.lesson-count {
  font-size: 0.75rem;
  color: #888;
  font-weight: 500;
}

.lesson-list {
  list-style: none;
  margin: 0;
  padding: 8px;
}

.lesson-section-header {
  padding: 16px 16px 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  list-style: none;
}

.lesson-section-header:not(:first-child) {
  padding-top: 20px;
}

.lesson-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s ease;
  border-left: 3px solid transparent;
}

.lesson-item:hover {
  background: #f5f5f5;
}

.lesson-item.active {
  background: rgba(209, 8, 17, 0.06);
  border-left-color: var(--cl-red);
}

.lesson-item.lesson-completed .lesson-title {
  color: #666;
}

.lesson-order {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #666;
  flex-shrink: 0;
}

.lesson-item.active .lesson-order {
  background: var(--cl-red);
  color: #fff;
}

.lesson-item.lesson-completed .lesson-order {
  background: var(--status-success);
  color: #fff;
}

.lesson-info {
  flex: 1;
  min-width: 0;
}

.lesson-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lesson-duration {
  font-size: 0.7rem;
  color: #999;
}

.lesson-status-icon {
  font-size: 0.85rem;
  color: #ccc;
  flex-shrink: 0;
}

.lesson-status-icon.completed {
  color: var(--status-success);
}

/* Mobile sidebar */
.lesson-sidebar-toggle {
  display: none;
  background: var(--cl-red);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-small);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  align-items: center;
  gap: 6px;
}

.lesson-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.lesson-sidebar-overlay.visible {
  display: block;
}

.lesson-navigation {
  margin-top: 12px;
  text-align: right;
}

.btn-next-lesson {
  background: var(--cl-red);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-small);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-next-lesson:hover {
  background: var(--cl-red-hover);
  transform: translateY(-1px);
}

.empty-lessons {
  text-align: center;
  padding: 60px 20px;
}

.empty-lessons p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .lesson-layout {
    flex-direction: column;
  }

  .lesson-sidebar-toggle {
    display: flex;
  }

  .lesson-sidebar-close {
    display: block;
  }

  .lesson-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 300px;
    height: 100vh;
    z-index: 100;
    border-radius: 0;
    transition: left 0.3s ease;
  }

  .lesson-sidebar.open {
    left: 0;
  }

  .lesson-content {
    width: 100%;
  }
}

/* ── Shop (Bestellseite, Danke-Seite) ──────────────────────────────── */
/* Siehe auch den erweiterten Block "Shop / Rechtliches / Widerruf" am
   Ende dieser Datei (Bestellformular, Widerruf, Rechtstexte). */

.shop-container {
  max-width: 720px;
  margin: var(--spacing-xl) auto;
  padding: 0 var(--spacing-md);
}

.shop-card {
  background: #fff;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-light);
  padding: var(--spacing-xl);
}

.shop-price {
  font-size: 1.25rem;
  font-weight: 600;
  margin: var(--spacing-xs) 0 0;
}

.shop-access {
  color: var(--text-secondary);
  margin: 0 0 var(--spacing-md);
}

/* Staff-Hinweisleiste (Stripe-Testmodus / Shop-Vorschau): kompakte,
   volle Breite des Inhaltsbereichs einnehmende Leiste(n) oberhalb des
   eigentlichen Seiteninhalts, nicht überlappend mit der Überschrift. */
.staff-notice-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--spacing-md);
}

.stripe-test-banner {
  background: #fff3cd;
  color: #664d03;
  border: 1px solid #ffe69c;
  border-radius: var(--radius-small);
  padding: 6px var(--spacing-md);
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Bestellungen / Platzverwaltung (Sammelkauf) ────────────────────── */

/* Staff-Bestellübersicht (`staff/orders.html`): Filterformular über die
   volle Breite des Inhaltsbereichs (statt der schmalen `.staff-form`-
   Karte), Felder in einem responsiven Grid statt gestapelt. */
.order-filter-form {
  width: 100%;
  background: var(--background-tertiary);
  padding: var(--spacing-lg);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-light);
  margin-bottom: var(--spacing-lg);
}

.order-filter-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--spacing-md);
}

.order-filter-form .form-group {
  min-width: 0;
}

/* Breite Tabelle (10 Spalten): statt die Spalten auf die Breite des
   Inhaltsbereichs zu quetschen (wodurch z. B. "Rechnung" abgeschnitten
   wirkt), bekommt die Tabelle eine Mindestbreite und scrollt innerhalb
   von `.table-wrapper` horizontal. Nummer/Datum/Betrag bleiben einzeilig. */
.orders-table {
  font-size: 0.875rem;
}

.orders-table th,
.orders-table td {
  padding: 10px 8px;
}

.orders-table th {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.orders-table th:nth-child(1),
.orders-table td:nth-child(1),
.orders-table th:nth-child(2),
.orders-table td:nth-child(2),
.orders-table th:nth-child(7),
.orders-table td:nth-child(7) {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .order-filter-form {
    padding: var(--spacing-md);
  }

  /* Unter 768px greift `data-mobile-cards` (Kartenansicht ohne feste
     Spalten) - die Mindestbreite/kein Umbruch der Tabellenansicht wird
     dann nicht mehr gebraucht. */
  .orders-table th:nth-child(1),
  .orders-table td:nth-child(1),
  .orders-table th:nth-child(2),
  .orders-table td:nth-child(2),
  .orders-table th:nth-child(7),
  .orders-table td:nth-child(7) {
    white-space: normal;
  }
}

/* Generischer Input-Stil - wird von `SeatAssignForm` und weiteren
   Formularen ausserhalb von `.staff-form`/`.login-form` genutzt. */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-medium);
  font-size: 1rem;
  background: var(--background);
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-red);
}

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

/* Zusätzliche Badge-Varianten (neben badge-info/-success/-secondary) für
   Platz-Status "abgelaufen" (Warnung) und "gesperrt" (Gefahr). */
.badge-warning {
  background: var(--status-warning-bg);
  color: var(--status-warning-text);
}

.badge-danger {
  background: var(--status-danger-bg);
  color: var(--status-danger-text);
}

/* "Meine Bestellungen" (Dashboard) */
.my-orders-section {
  margin-top: var(--spacing-xl);
}

.order-card {
  border-top: 3px solid var(--cl-red);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
}

.order-card-header h3 {
  font-size: 1.15rem;
  margin-bottom: 0;
}

.order-card-date {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: var(--spacing-sm);
}

.order-card-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.my-orders-section>.btn-secondary-outline {
  display: inline-block;
  margin-top: var(--spacing-sm);
}

/* Bestellübersicht (order_list.html) */
.order-detail-section .staff-table .actions {
  text-align: right;
  white-space: nowrap;
}

/* Bestelldetails (order_detail.html) */
.order-summary-card {
  background: var(--background-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-light);
  padding: var(--spacing-md) var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.order-summary-label {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  font-weight: 500;
}

.order-summary-value {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
}

.self-assign-form {
  margin-bottom: var(--spacing-lg);
}

.seat-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.seat-card {
  background: var(--background-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-medium);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-light);
}

.seat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
}

.seat-card-header h3 {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.seat-card-note {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0;
}

.seat-card-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
}

.seat-card-name {
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.seat-card-email {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.9rem;
}

.seat-card-meta {
  width: 100%;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin: 0;
}

.seat-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
  margin-top: var(--spacing-sm);
}

.seat-card-actions .inline-form {
  display: inline-flex;
}

.seat-assign-form {
  margin-top: var(--spacing-xs);
}

.seat-assign-row {
  display: flex;
  align-items: flex-end;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.seat-assign-row .form-group {
  flex: 1;
  min-width: 160px;
  margin-bottom: 0;
}

.seat-assign-submit {
  height: 48px;
}

.extension-confirmation {
  margin-top: var(--spacing-xs);
}

.extension-confirmation .message-warning {
  margin-bottom: var(--spacing-sm);
}

@media (max-width: 768px) {
  .order-summary-card {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .order-summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .order-summary-value {
    text-align: left;
  }

  .seat-assign-row {
    flex-direction: column;
    align-items: stretch;
  }

  .seat-assign-row .form-group {
    min-width: 0;
  }

  .seat-assign-submit {
    width: 100%;
    height: auto;
  }

  .seat-card-actions {
    justify-content: stretch;
  }

  .seat-card-actions .inline-form {
    width: 100%;
  }

  .seat-card-actions .inline-form button {
    width: 100%;
  }

  .order-card-actions {
    flex-direction: column;
  }

  .order-card-actions .staff-btn-primary {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .seat-card-header {
    flex-wrap: wrap;
  }

  .order-card-header {
    flex-direction: column;
  }
}

/* ══════════════════════════════════════════════════════════════════
   Shop / Rechtliches / Widerruf
   Gemeinsames, zentriertes Einspalten-Layout (max. ~720px, siehe
   `.shop-container`/`.shop-card` oben) für Bestellseite, Danke-Seite,
   Widerruf und die Rechtstexte-Seiten (AGB/Widerrufsbelehrung). Nutzt
   bewusst dieselben Formular-Bausteine wie der Rest der Seite
   (`.form-group`, `.form-input`, `.form-row`, `.checkbox-label`,
   `.btn-primary`), damit Bestell-/Widerrufsformular optisch nicht von
   den übrigen Formularen abweichen.
   ══════════════════════════════════════════════════════════════════ */

/* Kopfbereich (Titel, Preis, Zugangsdauer bzw. Statustext) mittig
   gruppiert, unabhängig von zufälligen Treffern der "Welcome Page"-
   Geschwister-Selektoren weiter oben in dieser Datei. */
/* Höhere Spezifität (`.shop-card .shop-header ...`) als die weiter oben
   stehenden "Welcome Page"-Geschwister-Selektoren (`main h2:first-child`
   & Co.), damit die Abstände hier unabhängig von deren zufälligen
   Treffern konsistent bleiben. */
.shop-card .shop-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.shop-card .shop-header h2 {
  margin-bottom: var(--spacing-xs);
}

.shop-card .shop-header p {
  margin: 0 0 var(--spacing-xs);
}

.shop-card .shop-header p:last-child {
  margin-bottom: 0;
}

/* Danke-/Widerrufs-eingegangen-Seiten: zusätzlich der Fließtext und der
   abschließende Button mittig, nicht nur die Überschrift. */
.shop-card-centered {
  text-align: center;
}

.shop-card-centered p {
  margin-bottom: var(--spacing-sm);
}

/* Bestell-/Widerrufsformular: füllt die Karte vollständig aus (keine
   zusätzliche verschachtelte Karte/Breite wie `.staff-form`). */
.shop-form {
  width: 100%;
  margin: 0;
}

.shop-form .form-group {
  margin-bottom: var(--spacing-md);
}

/* Anzahl Plätze: schmales, den übrigen Feldern entsprechendes Eingabefeld
   statt der winzigen nativen Zahlenbox in voller Feldbreite. */
.form-group-quantity .form-input {
  max-width: 140px;
}

.shop-legal-links {
  margin-top: calc(-1 * var(--spacing-xs));
}

.shop-form-actions {
  margin-top: var(--spacing-lg);
}

/* Primärer Button unter Bestell-/Widerrufsformular bzw. auf der Danke-/
   Widerrufs-eingegangen-Seite: zentriert, auf Mobile über die volle
   Breite. */
.shop-submit {
  display: inline-flex;
  margin: 0 auto;
}

/* Rechtstexte-Seiten (AGB, Widerrufsbelehrung): zusätzlicher Abstand
   zwischen den eingebundenen Textblöcken/Überschriften innerhalb der
   Karte. */
.legal-content h3 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.legal-content p {
  margin-bottom: var(--spacing-sm);
}

@media (max-width: 768px) {
  .shop-card {
    padding: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .shop-card {
    padding: var(--spacing-md);
  }

  .form-group-quantity .form-input {
    max-width: 100px;
  }

  .shop-submit {
    display: flex;
    width: 100%;
  }
}
