/*
  MDL — Misterdil Platform
  CSS Personnalisé
  Basé sur le template Festava Live (Bootstrap 5)
*/

/*---------------------------------------
  VARIABLES MDL
-----------------------------------------*/
:root {
  --mdl-primary:         #f5a623;
  --mdl-secondary:       #e94560;
  --mdl-accent:          #00d4ff;
  --mdl-dark:            #0f0f1a;
  --mdl-card:            #1a1a2e;
  --mdl-card-hover:      #16213e;
  --mdl-border:          #2a2a4a;
  --mdl-text:            #e0e0e0;
  --mdl-text-muted:      #8888aa;
  --mdl-white:           #ffffff;
  --mdl-success:         #28a745;
  --mdl-danger:          #dc3545;

  --body-font-family:    'Outfit', sans-serif;

  --h1-font-size:        64px;
  --h2-font-size:        42px;
  --h3-font-size:        28px;
  --h4-font-size:        24px;
  --h5-font-size:        20px;
  --h6-font-size:        18px;
  --p-font-size:         16px;
  --btn-font-size:       14px;

  --border-radius-large:  100px;
  --border-radius-medium: 16px;
  --border-radius-small:  8px;

  --font-weight-light:   300;
  --font-weight-normal:  400;
  --font-weight-bold:    700;

  --transition:          all 0.3s ease;
  --shadow-card:         0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow:         0 0 24px rgba(245,166,35,0.3);
}

/*---------------------------------------
  BASE
-----------------------------------------*/
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--mdl-dark);
  color: var(--mdl-text);
  font-family: var(--body-font-family);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--mdl-white);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

h1 { font-size: var(--h1-font-size); }
h2 { font-size: var(--h2-font-size); }
h3 { font-size: var(--h3-font-size); }
h4 { font-size: var(--h4-font-size); }
h5 { font-size: var(--h5-font-size); }
h6 { font-size: var(--h6-font-size); }

p {
  color: var(--mdl-text);
  font-size: var(--p-font-size);
  line-height: 1.7;
}

a {
  color: var(--mdl-primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--mdl-secondary); }

.text-primary-mdl { color: var(--mdl-primary) !important; }
.text-secondary-mdl { color: var(--mdl-secondary) !important; }
.text-accent-mdl { color: var(--mdl-accent) !important; }
.text-muted-mdl { color: var(--mdl-text-muted) !important; }

.bg-dark-mdl { background-color: var(--mdl-dark) !important; }
.bg-card-mdl { background-color: var(--mdl-card) !important; }

/*---------------------------------------
  SCROLLBAR
-----------------------------------------*/
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--mdl-dark); }
::-webkit-scrollbar-thumb {
  background: var(--mdl-primary);
  border-radius: 3px;
}

/*---------------------------------------
  SECTION
-----------------------------------------*/
.section-padding { padding: 80px 0; }

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--mdl-primary), var(--mdl-secondary));
  border-radius: 2px;
  margin: 0 auto 30px;
}

.section-label {
  color: var(--mdl-primary);
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section-overlay {
  background: linear-gradient(135deg, rgba(15,15,26,0.85), rgba(233,69,96,0.15));
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/*---------------------------------------
  PRELOADER
-----------------------------------------*/
#mdl-preloader {
  position: fixed;
  inset: 0;
  background: var(--mdl-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
}
#mdl-preloader.hidden { opacity: 0; pointer-events: none; }

.preloader-logo {
  text-align: center;
}
.preloader-logo .logo-text {
  font-size: 48px;
  font-weight: var(--font-weight-bold);
  background: linear-gradient(135deg, var(--mdl-primary), var(--mdl-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 1.5s infinite;
}
.preloader-logo small {
  color: var(--mdl-text-muted);
  letter-spacing: 4px;
  font-size: 12px;
  display: block;
  margin-top: 5px;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

/*---------------------------------------
  TOP BAR
-----------------------------------------*/
.mdl-topbar {
  background: var(--mdl-card);
  border-bottom: 1px solid var(--mdl-border);
  padding: 8px 0;
  font-size: 13px;
}
.mdl-topbar .stats-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mdl-text-muted);
  margin-right: 18px;
}
.mdl-topbar .stats-item i { color: var(--mdl-primary); }
.mdl-topbar .stats-value {
  color: var(--mdl-white);
  font-weight: var(--font-weight-bold);
}

/*---------------------------------------
  NAVBAR
-----------------------------------------*/
.mdl-navbar {
  background: rgba(15,15,26,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--mdl-border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.mdl-navbar.scrolled {
  background: rgba(15,15,26,0.99);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.mdl-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.mdl-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--mdl-primary), var(--mdl-secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--mdl-dark);
  font-size: 16px;
}
.mdl-brand-text {
  font-size: 22px;
  font-weight: var(--font-weight-bold);
  color: var(--mdl-white);
  letter-spacing: 1px;
}
.mdl-brand-text span {
  color: var(--mdl-primary);
}

.navbar-nav .nav-link {
  color: var(--mdl-text) !important;
  font-size: 15px;
  font-weight: var(--font-weight-normal);
  padding: 8px 16px !important;
  border-radius: var(--border-radius-small);
  transition: var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--mdl-primary) !important;
  background: rgba(245,166,35,0.1);
}

.mdl-navbar .navbar-toggler {
  border-color: var(--mdl-border);
}
.mdl-navbar .navbar-toggler-icon {
  filter: invert(1);
}

/*---------------------------------------
  BUTTONS
-----------------------------------------*/
.btn-mdl-primary {
  background: linear-gradient(135deg, var(--mdl-primary), #e8921f);
  color: var(--mdl-dark);
  border: none;
  border-radius: var(--border-radius-large);
  font-size: var(--btn-font-size);
  font-weight: var(--font-weight-bold);
  padding: 10px 24px;
  transition: var(--transition);
  letter-spacing: 0.5px;
}
.btn-mdl-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: var(--mdl-dark);
}

.btn-mdl-outline {
  background: transparent;
  color: var(--mdl-primary);
  border: 2px solid var(--mdl-primary);
  border-radius: var(--border-radius-large);
  font-size: var(--btn-font-size);
  font-weight: var(--font-weight-bold);
  padding: 9px 22px;
  transition: var(--transition);
}
.btn-mdl-outline:hover {
  background: var(--mdl-primary);
  color: var(--mdl-dark);
}

.btn-mdl-danger {
  background: linear-gradient(135deg, var(--mdl-secondary), #c0392b);
  color: var(--mdl-white);
  border: none;
  border-radius: var(--border-radius-large);
  font-size: var(--btn-font-size);
  font-weight: var(--font-weight-bold);
  padding: 10px 24px;
  transition: var(--transition);
}
.btn-mdl-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(233,69,96,0.4);
  color: var(--mdl-white);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mdl-card);
  border: 1px solid var(--mdl-border);
  color: var(--mdl-text-muted);
  transition: var(--transition);
  cursor: pointer;
}
.btn-icon:hover {
  background: rgba(245,166,35,0.15);
  border-color: var(--mdl-primary);
  color: var(--mdl-primary);
}
.btn-icon.liked {
  background: rgba(233,69,96,0.15);
  border-color: var(--mdl-secondary);
  color: var(--mdl-secondary);
}

/*---------------------------------------
  HERO SECTION
-----------------------------------------*/
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 40%, #16213e 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(245,166,35,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(233,69,96,0.1) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(0,212,255,0.08) 0%, transparent 40%);
}
.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-block;
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.3);
  color: var(--mdl-primary);
  border-radius: var(--border-radius-large);
  padding: 6px 18px;
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--mdl-primary), var(--mdl-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--mdl-text-muted);
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.hero-stat-item {
  text-align: center;
}
.hero-stat-item .stat-num {
  font-size: 28px;
  font-weight: var(--font-weight-bold);
  color: var(--mdl-primary);
  display: block;
}
.hero-stat-item .stat-label {
  font-size: 12px;
  color: var(--mdl-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-visual {
  position: relative;
  z-index: 1;
}
.hero-player-card {
  background: rgba(26,26,46,0.92);
  border: 1px solid var(--mdl-border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.hero-floating-badge {
  position: absolute;
  background: var(--mdl-card);
  border: 1px solid var(--mdl-border);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 3s ease-in-out infinite;
  z-index: 2;
  white-space: nowrap;
}
.hero-floating-badge i { color: var(--mdl-primary); }
.hero-floating-badge.badge-1 { top: -16px; right: 16px; animation-delay: 0s; }
.hero-floating-badge.badge-2 { bottom: -16px; right: 16px; animation-delay: 1.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}

/*---------------------------------------
  CARDS
-----------------------------------------*/
.mdl-card {
  background: var(--mdl-card);
  border: 1px solid var(--mdl-border);
  border-radius: var(--border-radius-medium);
  transition: var(--transition);
  overflow: hidden;
}
.mdl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(245,166,35,0.3);
}

/* Content Card */
.content-card {
  background: var(--mdl-card);
  border: 1px solid var(--mdl-border);
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  transition: var(--transition);
}
.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  border-color: rgba(245,166,35,0.25);
}

.content-card-thumb {
  position: relative;
  overflow: hidden;
  background: var(--mdl-dark);
  aspect-ratio: 16/9;
}
.content-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.content-card:hover .content-card-thumb img {
  transform: scale(1.05);
}
.content-card-thumb .type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15,15,26,0.85);
  border: 1px solid rgba(245,166,35,0.4);
  color: var(--mdl-primary);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.content-card-thumb .type-badge.audio { color: var(--mdl-accent); border-color: rgba(0,212,255,0.4); }
.content-card-thumb .type-badge.video { color: var(--mdl-secondary); border-color: rgba(233,69,96,0.4); }
.content-card-thumb .type-badge.ecrit { color: var(--mdl-primary); }

.content-card-thumb .play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.content-card:hover .play-overlay { opacity: 1; }
.play-overlay .play-btn-large {
  width: 56px;
  height: 56px;
  background: var(--mdl-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mdl-dark);
  font-size: 22px;
  transform: scale(0.8);
  transition: transform 0.2s;
}
.content-card:hover .play-btn-large { transform: scale(1); }

.content-card-body { padding: 18px; }
.content-card-category {
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--mdl-primary);
  margin-bottom: 8px;
  display: block;
}
.content-card-title {
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  color: var(--mdl-white);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.content-card-desc {
  font-size: 13px;
  color: var(--mdl-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.content-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--mdl-border);
}
.content-card-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--mdl-text-muted);
}
.content-card-meta .meta-item i { font-size: 13px; }

.content-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/*---------------------------------------
  AUDIO PLAYER
-----------------------------------------*/
.mdl-player {
  background: var(--mdl-card);
  border: 1px solid var(--mdl-border);
  border-radius: var(--border-radius-medium);
  padding: 20px;
}
.mdl-player .player-cover {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.mdl-player .player-info { flex: 1; min-width: 0; }
.mdl-player .player-title {
  font-weight: var(--font-weight-bold);
  color: var(--mdl-white);
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mdl-player .player-author {
  font-size: 13px;
  color: var(--mdl-text-muted);
  margin-top: 2px;
}
.mdl-player .player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.player-btn {
  background: none;
  border: none;
  color: var(--mdl-text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  padding: 4px;
  line-height: 1;
}
.player-btn:hover { color: var(--mdl-primary); }
.player-btn.play-pause {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--mdl-primary), #e8921f);
  color: var(--mdl-dark);
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-btn.play-pause:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.player-progress {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.progress-bar-wrap {
  position: relative;
  height: 4px;
  background: var(--mdl-border);
  border-radius: 2px;
  cursor: pointer;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mdl-primary), var(--mdl-secondary));
  border-radius: 2px;
  transition: width 0.1s linear;
}
.progress-time {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--mdl-text-muted);
}

/* Volume */
.player-volume {
  display: flex;
  align-items: center;
  gap: 8px;
}
.volume-slider {
  width: 80px;
  height: 4px;
  background: var(--mdl-border);
  border-radius: 2px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--mdl-primary);
  border-radius: 50%;
}

/* Full Player (page audios) */
.player-full {
  background: var(--mdl-card);
  border: 1px solid var(--mdl-border);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
}
.player-full .cover-art {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  border-radius: 16px;
  object-fit: cover;
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.player-full .cover-art.rotating {
  animation: spin 8s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/*---------------------------------------
  VIDEO PLAYER
-----------------------------------------*/
.video-player-wrapper {
  position: relative;
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  background: #000;
}
.video-player-wrapper video,
.video-player-wrapper iframe {
  width: 100%;
  display: block;
  border-radius: var(--border-radius-medium);
}
.video-overlay-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: var(--transition);
}
.video-player-wrapper:hover .video-overlay-controls { opacity: 1; }

/*---------------------------------------
  ARTICLE (ECRITS)
-----------------------------------------*/
.article-card {
  background: var(--mdl-card);
  border: 1px solid var(--mdl-border);
  border-radius: var(--border-radius-medium);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--mdl-primary), var(--mdl-secondary));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s;
}
.article-card:hover::before { transform: scaleY(1); }
.article-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(245,166,35,0.2);
}

.article-tag {
  display: inline-block;
  background: rgba(245,166,35,0.1);
  color: var(--mdl-primary);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 6px;
  margin-bottom: 12px;
}

.article-reading-time {
  font-size: 12px;
  color: var(--mdl-text-muted);
}
.article-reading-time i { color: var(--mdl-accent); }

/*---------------------------------------
  COMMENTS
-----------------------------------------*/
.comments-section {
  background: var(--mdl-card);
  border: 1px solid var(--mdl-border);
  border-radius: var(--border-radius-medium);
  padding: 28px;
}

.comment-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--mdl-border);
}
.comment-item:last-child { border-bottom: none; }

.comment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mdl-primary), var(--mdl-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  color: var(--mdl-dark);
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
}
.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-body { flex: 1; }
.comment-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.comment-author {
  font-weight: var(--font-weight-bold);
  color: var(--mdl-white);
  font-size: 14px;
}
.comment-time {
  font-size: 12px;
  color: var(--mdl-text-muted);
}
.comment-text {
  color: var(--mdl-text);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}
.comment-actions {
  display: flex;
  gap: 12px;
}
.comment-action-btn {
  background: none;
  border: none;
  color: var(--mdl-text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.comment-action-btn:hover { color: var(--mdl-primary); }
.comment-action-btn.liked { color: var(--mdl-secondary); }

.comment-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--mdl-border);
}
.comment-form .form-control-mdl {
  background: var(--mdl-dark);
  border: 1px solid var(--mdl-border);
  border-radius: var(--border-radius-small);
  color: var(--mdl-text);
  padding: 12px 16px;
  font-size: 14px;
  width: 100%;
  resize: none;
  transition: var(--transition);
}
.comment-form .form-control-mdl:focus {
  outline: none;
  border-color: var(--mdl-primary);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.1);
}
.comment-form .form-control-mdl::placeholder { color: var(--mdl-text-muted); }

/*---------------------------------------
  FORMS
-----------------------------------------*/
.form-mdl {
  background: var(--mdl-card);
  border: 1px solid var(--mdl-border);
  border-radius: var(--border-radius-medium);
  padding: 36px;
}
.form-mdl .form-group { margin-bottom: 20px; }
.form-mdl label {
  color: var(--mdl-text-muted);
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}
.form-mdl input,
.form-mdl textarea,
.form-mdl select {
  width: 100%;
  background: var(--mdl-dark);
  border: 1px solid var(--mdl-border);
  border-radius: var(--border-radius-small);
  color: var(--mdl-text);
  padding: 12px 16px;
  font-size: 15px;
  transition: var(--transition);
  font-family: var(--body-font-family);
}
.form-mdl input:focus,
.form-mdl textarea:focus {
  outline: none;
  border-color: var(--mdl-primary);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.1);
  background: rgba(245,166,35,0.03);
}
.form-mdl input::placeholder,
.form-mdl textarea::placeholder { color: var(--mdl-text-muted); }
.form-mdl .input-icon-wrap { position: relative; }
.form-mdl .input-icon-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mdl-text-muted);
  font-size: 16px;
}
.form-mdl .input-icon-wrap input { padding-left: 42px; }
.form-error {
  font-size: 12px;
  color: var(--mdl-secondary);
  margin-top: 4px;
  display: none;
}
.form-error.show { display: block; }

/*---------------------------------------
  AUTH PAGE
-----------------------------------------*/
.auth-page {
  min-height: 100vh;
  background: var(--mdl-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 40px 15px;
}
.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(245,166,35,0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(233,69,96,0.1) 0%, transparent 40%);
}
.auth-box {
  background: var(--mdl-card);
  border: 1px solid var(--mdl-border);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.auth-logo {
  text-align: center;
  margin-bottom: 30px;
}
.auth-logo .logo-circle {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--mdl-primary), var(--mdl-secondary));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: var(--mdl-dark);
  margin: 0 auto 14px;
}
.auth-title {
  font-size: 22px;
  color: var(--mdl-white);
  margin-bottom: 4px;
}
.auth-subtitle {
  font-size: 14px;
  color: var(--mdl-text-muted);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--mdl-text-muted);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--mdl-border);
}
.btn-social {
  width: 100%;
  background: var(--mdl-dark);
  border: 1px solid var(--mdl-border);
  border-radius: var(--border-radius-small);
  color: var(--mdl-text);
  padding: 11px 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 10px;
}
.btn-social:hover {
  border-color: var(--mdl-primary);
  color: var(--mdl-white);
}
.btn-social img { width: 18px; height: 18px; }
.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--mdl-text-muted);
}

/*---------------------------------------
  DASHBOARD
-----------------------------------------*/
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: var(--mdl-card);
  border-right: 1px solid var(--mdl-border);
  padding: 24px 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s;
}
.sidebar-header {
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--mdl-border);
  margin-bottom: 16px;
}
.sidebar-nav .nav-item-sidebar {
  padding: 2px 12px;
}
.sidebar-nav .nav-link-sidebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--mdl-text-muted);
  font-size: 14px;
  font-weight: var(--font-weight-normal);
  transition: var(--transition);
  text-decoration: none;
}
.sidebar-nav .nav-link-sidebar i { font-size: 18px; width: 20px; }
.sidebar-nav .nav-link-sidebar:hover,
.sidebar-nav .nav-link-sidebar.active {
  background: rgba(245,166,35,0.1);
  color: var(--mdl-primary);
}
.sidebar-nav .nav-link-sidebar .badge-count {
  margin-left: auto;
  background: var(--mdl-secondary);
  color: white;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: var(--font-weight-bold);
}
.sidebar-section-title {
  padding: 12px 26px 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--mdl-text-muted);
  font-weight: var(--font-weight-bold);
}

.dashboard-main {
  margin-left: 240px;
  flex: 1;
  min-height: 100vh;
}
.dashboard-topbar {
  background: var(--mdl-card);
  border-bottom: 1px solid var(--mdl-border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}
.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mdl-primary), var(--mdl-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  color: var(--mdl-dark);
  font-size: 15px;
  overflow: hidden;
  flex-shrink: 0;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-name {
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  color: var(--mdl-white);
}
.user-role {
  font-size: 11px;
  color: var(--mdl-primary);
}

.dashboard-content { padding: 28px; }

/* Stats Widget */
.stat-widget {
  background: var(--mdl-card);
  border: 1px solid var(--mdl-border);
  border-radius: var(--border-radius-medium);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.stat-widget:hover {
  box-shadow: var(--shadow-card);
  border-color: rgba(245,166,35,0.2);
}
.stat-widget-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-widget-icon.orange { background: rgba(245,166,35,0.15); color: var(--mdl-primary); }
.stat-widget-icon.red    { background: rgba(233,69,96,0.15);  color: var(--mdl-secondary); }
.stat-widget-icon.blue   { background: rgba(0,212,255,0.15);  color: var(--mdl-accent); }
.stat-widget-icon.green  { background: rgba(40,167,69,0.15);  color: var(--mdl-success); }

.stat-widget-value {
  font-size: 26px;
  font-weight: var(--font-weight-bold);
  color: var(--mdl-white);
  line-height: 1.1;
}
.stat-widget-label {
  font-size: 12px;
  color: var(--mdl-text-muted);
  margin-top: 2px;
}
.stat-widget-trend {
  font-size: 11px;
  margin-top: 4px;
}
.stat-widget-trend.up   { color: var(--mdl-success); }
.stat-widget-trend.down { color: var(--mdl-danger); }

/*---------------------------------------
  FILTERS / TABS
-----------------------------------------*/
.mdl-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-btn {
  background: var(--mdl-card);
  border: 1px solid var(--mdl-border);
  color: var(--mdl-text-muted);
  border-radius: var(--border-radius-large);
  padding: 6px 18px;
  font-size: 13px;
  font-weight: var(--font-weight-normal);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: rgba(245,166,35,0.15);
  border-color: var(--mdl-primary);
  color: var(--mdl-primary);
}

/*---------------------------------------
  SEARCH BAR
-----------------------------------------*/
.mdl-search {
  position: relative;
  max-width: 420px;
}
.mdl-search input {
  width: 100%;
  background: var(--mdl-card);
  border: 1px solid var(--mdl-border);
  border-radius: var(--border-radius-large);
  color: var(--mdl-text);
  padding: 10px 16px 10px 42px;
  font-size: 14px;
  transition: var(--transition);
}
.mdl-search input:focus {
  outline: none;
  border-color: var(--mdl-primary);
  background: rgba(245,166,35,0.03);
}
.mdl-search input::placeholder { color: var(--mdl-text-muted); }
.mdl-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mdl-text-muted);
}

/*---------------------------------------
  FEATURED SECTION
-----------------------------------------*/
.featured-badge {
  background: linear-gradient(135deg, var(--mdl-primary), var(--mdl-secondary));
  color: var(--mdl-dark);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 16px;
}

.featured-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  min-height: 360px;
  background: var(--mdl-card);
}
.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,15,26,0.95) 0%, rgba(15,15,26,0.4) 60%, transparent 100%);
}
.featured-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
}

/*---------------------------------------
  NOTIFICATION TOAST
-----------------------------------------*/
.mdl-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--mdl-card);
  border: 1px solid var(--mdl-border);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-width: 280px;
  max-width: 360px;
}
.mdl-toast.show {
  transform: translateY(0);
  opacity: 1;
}
.mdl-toast i { font-size: 20px; }
.mdl-toast.success i { color: var(--mdl-success); }
.mdl-toast.error i   { color: var(--mdl-danger); }
.mdl-toast.info i    { color: var(--mdl-accent); }
.toast-message { font-size: 14px; color: var(--mdl-text); }

/*---------------------------------------
  FOOTER
-----------------------------------------*/
.mdl-footer {
  background: var(--mdl-card);
  border-top: 1px solid var(--mdl-border);
  padding: 60px 0 0;
}
.footer-brand p {
  font-size: 14px;
  color: var(--mdl-text-muted);
  line-height: 1.7;
  max-width: 280px;
}
.footer-title {
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--mdl-primary);
  margin-bottom: 16px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 14px;
  color: var(--mdl-text-muted);
  transition: var(--transition);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--mdl-primary);
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid var(--mdl-border);
  padding: 20px 0;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--mdl-text-muted);
  margin: 0;
}

/* Social Icons */
.social-links {
  display: flex;
  gap: 10px;
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mdl-dark);
  border: 1px solid var(--mdl-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mdl-text-muted);
  font-size: 16px;
  transition: var(--transition);
  text-decoration: none;
}
.social-link:hover {
  background: var(--mdl-primary);
  border-color: var(--mdl-primary);
  color: var(--mdl-dark);
  transform: translateY(-3px);
}

/*---------------------------------------
  RESPONSIVE
-----------------------------------------*/
@media (max-width: 991px) {
  .hero-title { font-size: 42px; }
  h2 { font-size: 32px; }
  .sidebar {
    transform: translateX(-100%);
    width: 260px;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99;
    display: none;
  }
  .sidebar-overlay.show { display: block; }
  .dashboard-main { margin-left: 0; }
}

@media (max-width: 767px) {
  .section-padding { padding: 50px 0; }
  .hero-stats { gap: 20px; }
  .auth-box { padding: 28px 20px; }
  .form-mdl { padding: 24px 18px; }
  .dashboard-content { padding: 16px; }
  .dashboard-topbar { padding: 12px 16px; }
}

/*---------------------------------------
  MISC UTILITIES
-----------------------------------------*/
.badge-new {
  background: var(--mdl-secondary);
  color: white;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  vertical-align: middle;
  margin-left: 6px;
}

.divider-line {
  height: 1px;
  background: var(--mdl-border);
  margin: 24px 0;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--mdl-text-muted);
}
.empty-state i { font-size: 48px; opacity: 0.3; display: block; margin-bottom: 16px; }
.empty-state p { font-size: 15px; }

/* Loading spinner */
.mdl-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--mdl-border);
  border-top-color: var(--mdl-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--mdl-primary), var(--mdl-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow border */
.glow-border {
  box-shadow: 0 0 0 1px var(--mdl-primary), var(--shadow-glow);
}

/* Counter animation */
.counter-up { transition: all 0.5s; }
