/* ========================================================================= */
/* MAD MIX - OPTIMIZED CSS ARCHITECTURE                                     */
/* Author: Benny Bergstrom - benny.bergstrom@viafiber.se                     */
/* Version: 4.1.0 - Improved Structure Edition                               */
/* ========================================================================= */

/* ========================================================================= */
/* CSS CUSTOM PROPERTIES - DESIGN SYSTEM                                   */
/* ========================================================================= */
:root {
  /* Colors */
  --color-background: #171717;
  --color-foreground: #eeeeee;
  --color-muted: #adadad;
  --color-border: rgba(214, 226, 255, 0.08);
  --color-primary: #828282;
  --color-primary-foreground: #ffffff;
  
  /* Theme Colors */
  --color-pink: #c8506e;
  --color-blue: #5a8cc8;
  --color-green: #64b482;
  --color-purple: #966ec8;
  --color-orange: #c8825a;
  
  /* Gradients */
  --gradient-primary: linear-gradient(180deg, rgba(120, 120, 120, 0.3), rgba(120, 120, 120, 0.1));
  --gradient-secondary: linear-gradient(180deg, rgba(120, 120, 120, 0.1), rgba(120, 120, 120, 0.02));
  --gradient-card: linear-gradient(180deg, rgba(120, 120, 120, 0.1), rgba(120, 120, 120, 0.02));
  
  /* Typography */
  --font-family-base: Inter, Arial, sans-serif;
  --font-size-xs: clamp(0.75rem, 0.8vw, 0.875rem);
  --font-size-sm: clamp(0.875rem, 0.9vw, 1rem);
  --font-size-base: clamp(1rem, 1.1vw, 1.125rem);
  --font-size-lg: clamp(1.125rem, 1.2vw, 1.25rem);
  --font-size-xl: clamp(1.25rem, 1.4vw, 1.5rem);
  --font-size-2xl: clamp(1.5rem, 1.8vw, 2rem);
  --font-size-3xl: clamp(1.875rem, 2.2vw, 2.5rem);
  --font-size-4xl: clamp(2.25rem, 2.8vw, 3rem);
  
  /* Spacing */
  --space-1: clamp(0.125rem, 0.3vw, 0.25rem);
  --space-2: clamp(0.25rem, 0.5vw, 0.5rem);
  --space-3: clamp(0.5rem, 0.7vw, 0.75rem);
  --space-4: clamp(0.75rem, 1vw, 1rem);
  --space-5: clamp(1rem, 1.2vw, 1.25rem);
  --space-6: clamp(1.25rem, 1.5vw, 1.5rem);
  --space-8: clamp(1.5rem, 2vw, 2rem);
  --space-10: clamp(2rem, 2.5vw, 2.5rem);
  --space-12: clamp(2.5rem, 3vw, 3rem);
  --space-16: clamp(3rem, 4vw, 4rem);
  
  /* Component Sizes */
  --size-header-logo: clamp(60px, 8vw, 84.48px);
  --size-icon: clamp(20px, 2.5vw, 24px);
  --size-nav-icon: clamp(40px, 5vw, 44px);
  --size-album-cover: clamp(32px, 4vw, 40px);
  --size-tv-image: clamp(60px, 7vw, 70px);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  
  /* Z-index */
  --z-canvas: 1;
  --z-background: 2;
  --z-content: 10;
  --z-sidebar: 12;
  --z-interactive: 14;
  --z-header: 20;
  
  /* Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  
  /* Animation */
  --scroll-duration: 35s;
}

/* ========================================================================= */
/* RESPONSIVE TYPOGRAPHY & SPACING                                         */
/* ========================================================================= */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --space-1: clamp(0.125rem, 0.25vw, 0.25rem);
    --space-2: clamp(0.25rem, 0.4vw, 0.5rem);
    --space-3: clamp(0.375rem, 0.6vw, 0.75rem);
    --space-4: clamp(0.5rem, 0.8vw, 1rem);
    --space-5: clamp(0.75rem, 1vw, 1.25rem);
    --space-6: clamp(1rem, 1.2vw, 1.5rem);
    
    --font-size-xs: clamp(0.7rem, 1.8vw, 0.875rem);
    --font-size-sm: clamp(0.8rem, 2vw, 1rem);
    --font-size-base: clamp(0.9rem, 2.2vw, 1.125rem);
    --font-size-lg: clamp(1rem, 2.4vw, 1.25rem);
    --font-size-xl: clamp(1.1rem, 2.8vw, 1.5rem);
    --font-size-2xl: clamp(1.3rem, 3.2vw, 2rem);
  }
}

@media (max-width: 767px) {
  :root {
    --space-1: 0.125rem;
    --space-2: 0.25rem;
    --space-3: 0.375rem;
    --space-4: 0.5rem;
    --space-5: 0.75rem;
    --space-6: 1rem;
    --space-8: 1.25rem;
    --space-10: 1.5rem;
    --space-12: 2rem;
    --space-16: 2.5rem;
    
    --font-size-xs: clamp(0.65rem, 3.5vw, 0.75rem);
    --font-size-sm: clamp(0.75rem, 4vw, 0.875rem);
    --font-size-base: clamp(0.85rem, 4.5vw, 1rem);
    --font-size-lg: clamp(0.95rem, 5vw, 1.125rem);
    --font-size-xl: clamp(1.05rem, 5.5vw, 1.25rem);
    --font-size-2xl: clamp(1.2rem, 6vw, 1.5rem);
  }
}

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

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-foreground);
  background-color: var(--color-background);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-x: hidden;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-muted);
  font-weight: 600;
  line-height: 1.2;
}

p {
  color: var(--color-muted);
  line-height: 1.5;
  margin-bottom: var(--space-3);
}

li {
  margin-left: 25px;
  color: var(--color-muted);
}

/* ========================================================================= */
/* CANVAS BACKGROUND                                                        */
/* ========================================================================= */
.space-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: var(--z-canvas);
  pointer-events: none;
  opacity: 0.3;
}

/* ========================================================================= */
/* NEWS TICKER                                                              */
/* ========================================================================= */
#mad-mix-news-ticker {
  position: relative !important;
  height: 30px !important;
  overflow: hidden !important;
  text-align: left !important;
  font-size: 0.97em !important;
  color: #ffffff !important;
  background: transparent !important;
  padding: 5px 10px !important;
  width: 100% !important;
  z-index: 1000 !important;
  display: block !important;
  box-sizing: border-box !important;
}

#mad-mix-news-ticker .news-ticker-item {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.5s ease, visibility 0.5s ease !important;
  line-height: 30px !important;
  margin: 0 !important;
  padding-left: 0 !important;
}

#mad-mix-news-ticker .news-ticker-item.active {
  opacity: 1 !important;
  visibility: visible !important;
}

#mad-mix-news-ticker .news-ticker-item:nth-child(1) { z-index: 5 !important; }
#mad-mix-news-ticker .news-ticker-item:nth-child(2) { z-index: 4 !important; }
#mad-mix-news-ticker .news-ticker-item:nth-child(3) { z-index: 3 !important; }
#mad-mix-news-ticker .news-ticker-item:nth-child(4) { z-index: 2 !important; }
#mad-mix-news-ticker .news-ticker-item:nth-child(5) { z-index: 1 !important; }

/* ========================================================================= */
/* HEADER LAYOUT                                                            */
/* ========================================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: linear-gradient(0deg, #1a1a1a, #303233);
  border-bottom: #111 solid 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  padding: var(--space-3);
  padding-bottom: 0;
  contain: layout style;
}

.header-content {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-logo {
  height: var(--size-header-logo);
  width: auto;
  transition: transform var(--transition-base);
}

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

.header-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.header-text h1 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-foreground);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: -4px; /*  var(--space-1); */
  margin-left: var(--space-3);
}

.header-text .slogan {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  white-space: nowrap;
  margin: 0;
  margin-left: var(--space-3);
}

/* Home-ikonen ska ALDRIG rotera */
.home-icon {
  transform: none !important;
}

/* ========================================================================= */
/* NAVIGATION                                                               */
/* ========================================================================= */
.nav-icons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  justify-content: flex-start;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--size-nav-icon);
  padding: 0 var(--space-3);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-foreground);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: all var(--transition-base);
  white-space: nowrap;
  flex: 1 1 auto;
  will-change: transform;
  transform: translateZ(0);
}

.nav-link svg {
  fill: var(--color-muted);
  width: 24px;
  height: 24px;
  margin-right: var(--space-2);
  transition: fill var(--transition-base);
  flex-shrink: 0;
}

.nav-link:hover,
.nav-link:focus {
  transform: scale(1.05);
  background: var(--gradient-card);
  outline: none;
}

.nav-link:hover svg,
.nav-link:focus svg {
  fill: var(--color-primary);
}

.nav-link.active {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
}

.nav-link.active svg {
  fill: var(--color-primary-foreground);
}

/* Header specific nav styling */
.header .nav-link svg {
  fill: #888888;
}

.header .nav-link:hover svg {
  fill: #bbbbbb;
}

.header .nav-link.active svg {
  fill: var(--color-primary-foreground);
}

/* ========================================================================= */
/* FOOTER LAYOUT                                                            */
/* ========================================================================= */
.footer {
  position: sticky;
  bottom: 0;
  z-index: var(--z-header);
  background: linear-gradient(360deg, #1a1a1a, #202020);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
  padding: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  contain: layout style;
}

.footer-content {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.footer-text h1 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-foreground);
  white-space: nowrap;
  margin-bottom: var(--space-1);
}

.footer-text p {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80vw;
  margin: 0;
}

.album-cover {
  width: var(--size-album-cover);
  height: var(--size-album-cover);
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

/* ========================================================================= */
/* MAIN CONTENT LAYOUT                                                      */
/* ========================================================================= */
.content {
  display: flex;
  flex: 1;
  gap: 1%;
  padding: var(--space-3);
  min-height: 0;
  position: relative;
  z-index: var(--z-content);
}

/* Left Column - Color Picker */
.left-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  min-width: 50px;
  max-width: 80px;
  background: var(--gradient-primary);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  backdrop-filter: blur(16px);
  opacity: 0.9;
  contain: layout style paint;
}

.color-square {
  width: clamp(20px, 3vw, 28px);
  height: clamp(20px, 3vw, 28px);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
  transition: transform var(--transition-base);
  background: var(--color-primary);
  will-change: transform;
  transform: translateZ(0);
}

.color-square:hover {
  transform: scale(1.1);
}

.color-square.active {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

/* Color variants */
.color-square[data-color="pink"] { background: var(--color-pink); }
.color-square[data-color="blue"] { background: var(--color-blue); }
.color-square[data-color="green"] { background: var(--color-green); }
.color-square[data-color="purple"] { background: var(--color-purple); }
.color-square[data-color="orange"] { background: var(--color-orange); }

/* Middle Column */
.middle-column {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  padding-right: var(--space-3);
  scrollbar-width: thin;
  scrollbar-color: rgba(214, 226, 255, 0.12) rgba(30, 30, 30, 0.9);
  contain: layout style paint;
}

.middle-column::-webkit-scrollbar {
  width: 6px;
}

.middle-column::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.95), rgba(30, 30, 30, 0.85));
  border-radius: 3px;
}

.middle-column::-webkit-scrollbar-thumb {
  background: rgba(214, 226, 255, 0.12);
  border-radius: 3px;
}

.middle-column::-webkit-scrollbar-thumb:hover {
  background: rgba(214, 226, 255, 0.2);
}

/* Right Column */
.right-column {
  min-width: 300px;
  flex: 0 0 300px;
  height: 100%;
  overflow: hidden;
  position: relative;
  z-index: 12;
  contain: layout style paint;
}

.right-container {
  flex-shrink: 0;
  background: #222;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: var(--space-3);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
  min-height: 180px;
}

.right-scroller {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  will-change: transform;
  transform: translateZ(0);
}

.right-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--color-border);
}

.right-headline {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-foreground);
}

.right-description {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  line-height: 1.4;
}

.right-cta {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  padding: var(--space-2) var(--space-4);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-base);
  pointer-events: auto;
  cursor: pointer;
  z-index: var(--z-interactive);
}

.right-cta:hover,
.right-cta:focus {
  transform: scale(1.05);
  outline: none;
}

/* ========================================================================= */
/* BUTTON COMPONENTS                                                        */
/* ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  will-change: transform;
  transform: translateZ(0);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-coffee {
  height: 30px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  vertical-align: top;
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-family: inherit;
  background: #ff6b35;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-coffee:hover,
.btn-coffee:focus {
  background: #e55a2b;
  transform: translateY(-1px);
}

.btn-ai-search {
  background: linear-gradient(135deg, #007a63 0%, #00a67c 100%);
  color: #ffffff;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 122, 99, 0.3);
}

.btn-ai-search:hover,
.btn-ai-search:focus {
  background: linear-gradient(135deg, #008c72 0%, #00b88a 100%);
  box-shadow: 0 3px 12px rgba(0, 122, 99, 0.4);
}

.madmix-search-btn {
  height: 30px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  vertical-align: top;
  margin: 0;
  margin-right: .5rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-family: inherit;
  background: linear-gradient(135deg, #007a63 0%, #00a67c 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 122, 99, 0.3);
}

.madmix-search-btn:hover,
.madmix-search-btn:focus {
  background: linear-gradient(135deg, #008c72 0%, #00b88a 100%);
  box-shadow: 0 3px 12px rgba(0, 122, 99, 0.4);
  transform: translateY(-1px);
}

/* ========================================================================= */
/* ACCORDION COMPONENTS                                                     */
/* ========================================================================= */

/* Main Accordion */
.accordion {
  background: #222;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-item:last-child {
  border-bottom: none;
  background: #222;
}

.accordion-header {
  display: flex;
  align-items: center;
  background: var(--gradient-card);
  cursor: pointer;
  transition: background-color var(--transition-base);
  padding: 10px;
}

.accordion-header > svg {
  margin-right: auto;
}

.accordion-header .button-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.accordion-header h2,
.accordion-header h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-muted);
  margin: 0;
}

.accordion-header svg {
  width: 20px;
  height: 20px;
  fill: var(--color-foreground);
  transition: transform var(--transition-base);
}

.accordion-header.active svg {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
  contain: style;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin: var(--space-2);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.accordion-content.active {
  padding: var(--space-3);
  max-height: none !important;
  overflow: visible !important;
  display: block !important;
}

/* Ta bort content wrapper styling */
.accordion-content > div,
.accordion-content .content-wrapper {
  background: none;
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 0;
  backdrop-filter: none;
  box-shadow: none;
}

.accordion-content p {
  color: var(--color-muted);
  line-height: 1.5;
  margin-bottom: var(--space-3);
  font-size: var(--font-size-sm);
}

.accordion-content h2 {
  color: var(--color-muted);
  font-size: var(--font-size-lg);
  line-height: 1.5rem;
  margin: var(--space-4) 0 var(--space-3) 0;
}

.accordion-content ul {
  margin-bottom: var(--space-3);
  padding-left: var(--space-4);
}

.accordion-content li {
  margin-bottom: var(--space-2);
  margin-left: var(--space-4);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--color-muted);
}

/* Welcome Section - Separat flik */
.welcome-section {
  background: #222;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.welcome-header {
  display: flex;
  align-items: center;
  background: var(--gradient-card);
  cursor: default;
  padding: 10px;
}

.welcome-header h2 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.welcome-content {
  background: #222222;
  border: none;
  border-radius: 8px;
  margin: var(--space-2);
  padding: var(--space-3);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top:-5px!important; 
}

/* Radio Section - Separat flik */
.radio-section {
  background: #222;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.radio-header {
  display: flex;
  align-items: center;
  background: var(--gradient-card);
  cursor: default;
  padding: 10px;
}

.radio-header h2 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.radio-content {
  background: #222222;
  border: none;
  border-radius: 8px;
  margin: var(--space-2);
  padding: var(--space-3);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top:-5px!important; 
}

/* Podcast Section - Separat flik */
.podcast-section {
  background: #222;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.podcast-header {
  display: flex;
  align-items: center;
  background: var(--gradient-card);
  cursor: default;
  padding: 10px;
}

.podcast-header h2 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.podcast-content {
  background: #222222;
  border: none;
  border-radius: 8px;
  margin: var(--space-2);
  padding: var(--space-3);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top:-5px!important; 
}

/* TV Section - Separat flik */
.tv-section {
  background: #222;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.tv-header {
  display: flex;
  align-items: center;
  background: var(--gradient-card);
  cursor: default;
  padding: 10px;
}

.tv-header h2 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.tv-content {
  background: #222222;
  border: none;
  border-radius: 8px;
  margin: var(--space-2);
  padding: var(--space-3);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top:-5px!important; 
}

/* Gemensam styling fÃ¶r alla content-sektioner */
.welcome-content h2,
.radio-content h2,
.podcast-content h2,
.tv-content h2 {
  color: var(--color-muted);
  font-size: var(--font-size-lg);
  line-height: 1.5rem;
  margin: 5px 0;
}

.welcome-content h2:not(:first-child),
.radio-content h2:not(:first-child),
.podcast-content h2:not(:first-child),
.tv-content h2:not(:first-child) {
  margin: var(--space-4) 0 5px 0;
}

.welcome-content p,
.radio-content p,
.podcast-content p,
.tv-content p {
  color: var(--color-muted);
  line-height: 1.5;
  margin-bottom: var(--space-3);
  font-size: var(--font-size-sm);
}

/* Top Accordion */
.accordion-top {
  background: #222;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: var(--space-3);
  position: static !important;
}

.accordion-top .accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-top .accordion-item:last-child {
  border-bottom: none;
  background: #222;
}

.accordion-top .accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3);
  background: var(--gradient-card);
  cursor: default;
  pointer-events: none;
  position: static !important;
  min-height: 50px;
}

.accordion-top .accordion-content {
  padding: 0 var(--space-3);
  max-height: none !important;
  overflow: visible !important;
  display: block !important;
  position: static !important;
}

/* Subpage Accordion */
.accordion-container-subpages {
  background: #222;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.accordion-item-subpages {
  border-bottom: 1px solid var(--color-border);
}

.accordion-item-subpages:last-child {
  border-bottom: none;
}

.accordion-header-subpages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3);
  background: var(--gradient-card);
  cursor: pointer;
  transition: background-color var(--transition-base);
  user-select: none;
}

.accordion-header-subpages:hover {
  background: rgba(255, 255, 255, 0.05);
}

.accordion-header-subpages.active {
  background: rgba(255, 255, 255, 0.08);
}

.accordion-header-subpages h2 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-muted);
  margin: 0;
  flex: 1;
}

.accordion-header-subpages svg {
  width: 20px;
  height: 20px;
  fill: var(--color-foreground);
  transition: transform var(--transition-slow);
  margin-left: auto;
  flex-shrink: 0;
}

.accordion-header-subpages.active svg {
  transform: rotate(180deg);
}

.accordion-content-subpages {
  background: #222;
  display: none;
}

.accordion-content-subpages.active {
  display: block;
  padding: var(--space-3);
}

.accordion-content-subpages p {
  color: var(--color-muted);
  line-height: 1.5;
  margin-bottom: var(--space-3);
  font-size: var(--font-size-sm);
}

.accordion-content-subpages h2 {
  color: var(--color-muted);
  font-size: var(--font-size-lg);
  margin: var(--space-4) 0 var(--space-3) 0;
}

/* ========================================================================= */
/* GRID COMPONENTS                                                          */
/* ========================================================================= */

/* Support Images Grid */
.support-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  margin: var(--space-4) 0;
}

.image-frame {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: var(--space-3) var(--space-3) 0 var(--space-3);
  text-align: left;
  transition: transform var(--transition-base);
  cursor: pointer;
  will-change: transform;
  transform: translateZ(0);
}

.image-frame:hover {
  transform: scale(1.02);
}

.image-frame img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: var(--space-2);
}

.image-frame p {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  line-height: 1.4;
}

/* Radio/TV Grid */
.tv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.tv-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: var(--space-3);
  transition: transform var(--transition-base);
  cursor: pointer;
  will-change: transform;
  transform: translateZ(0);
}

.tv-card:hover {
  transform: scale(1.02);
}

.tv-image-frame {
  width: var(--size-tv-image);
  height: var(--size-tv-image);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.tv-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-text {
  flex: 1;
  min-width: 0;
}

.tv-text h3 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-foreground);
  margin-bottom: var(--space-1);
}

.tv-text p {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* TVB Grid (Video Grid) */
.tvb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
  margin: var(--space-4) 0;
}

.tvb-channel-card {
  background: rgba(42, 42, 42, 0.9);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: var(--space-3);
  text-align: center;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.tvb-channel-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.tvb-video-player {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 6px;
  background: #000;
  margin-bottom: var(--space-2);
}

.tvb-channel-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-foreground);
  margin-bottom: var(--space-1);
}

.tvb-channel-description {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  line-height: 1.4;
  margin: 0;
}

/* ========================================================================= */
/* RESPONSIVE DESIGN                                                        */
/* ========================================================================= */

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .header,
  .footer {
    padding: var(--space-4);
  }
  
  .footer-text p {
    max-width: 50vw;
  }
  
  .left-column,
  .right-column {
    display: flex;
  }
  
  .footer .nav-link[aria-label="Toggle fullscreen"] {
    display: flex;
  }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .header,
  .footer {
    padding: var(--space-3);
  }
  
  .header {
    padding-bottom: 0;
  }
  
  .header-content,
  .footer-content {
    flex-wrap: wrap;
  }
  
  /* Header Navigation - TvÃ¥ rader */
  .header .nav-icons {
    width: 100%;
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-auto-flow: row;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    height: 90px;
    grid-template-columns: repeat(4, 1fr);
  }
  
  .header .nav-link {
    width: 100%;
    height: 100%;
    min-height: auto;
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-sm);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
  
  .header .nav-link svg {
    width: 26px;
    height: 26px;
    margin-right: var(--space-2);
  }
  
  /* Footer Navigation - En rad */
  .footer {
    display: flex !important;
    position: sticky !important;
    bottom: 0 !important;
    width: 100% !important;
    padding: var(--space-3) !important;
    border-top: 1px solid var(--color-border) !important;
    z-index: var(--z-header) !important;
  }
  
  .footer .nav-icons {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: var(--space-2);
    padding: 0;
  }
  
  .footer .nav-link {
    flex: 1;
    height: 45px;
    padding: var(--space-2);
    font-size: var(--font-size-sm);
    border-radius: 6px;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .footer .nav-link svg {
    width: 24px;
    height: 24px;
    margin-right: var(--space-2);
  }
  
  .left-column,
  .right-column {
    display: none;
  }
  
  .footer-text p {
    max-width: 70vw;
  }
  
  .footer .nav-link[aria-label="Toggle fullscreen"] {
    display: flex;
  }
  
  .accordion-header .button-group {
    gap: var(--space-2);
  }
}

/* Mobile (767px and below) */
@media (max-width: 767px) {
  .header,
  .footer {
    background: var(--color-background);
    padding: var(--space-2);
  }
  
  .header {
    padding-bottom: 0;
  }
  
  .header-logo {
    height: calc(var(--size-header-logo) * 0.6);
  }
  
  .header-content {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100%;
    gap: var(--space-2);
  }
  
  .header-text {
    flex: 1;
    text-align: left;
  }
  
  .header-text h1 {
    font-size: var(--font-size-lg);
    margin-left: var(--space-4);
    margin-bottom: 1px;
    white-space: normal;
    line-height: 1.1;
    display: block;
  }
  
  .header-text h1 svg {
    display: none;
  }
  
  .header-text .slogan {
    margin-left: var(--space-4);
    font-size: var(--font-size-xs);
    margin-top: 0;
  }
  
  #mad-mix-news-ticker {
    height: 16px !important;
    font-size: 0.7em !important;
    padding: 0 var(--space-4) !important;
    margin-top: 0px !important;
    margin-left: 0;
  }
  
  #mad-mix-news-ticker .news-ticker-item {
    line-height: 16px !important;
    padding-left: 0 !important;
    font-size: 0.7em !important;
  }
  
  .footer-content {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    gap: var(--space-2);
  }
  
  /* Header Navigation */
  .header .nav-icons {
    width: 100%;
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-auto-flow: row;
    gap: var(--space-1);
    padding: var(--space-2) 0;
    height: 80px;
    grid-template-columns: repeat(4, 1fr);
  }
  
  .header .nav-link {
    width: 100%;
    height: 100%;
    min-height: auto;
    aspect-ratio: unset;
    padding: var(--space-1);
    font-size: 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
  
  .header .nav-link svg {
    width: clamp(min(4vw, 22px), calc(100vh / 30), min(5.5vw, 29px));
    height: clamp(min(4vw, 22px), calc(100vh / 30), min(5.5vw, 29px));
    margin: 0;
    max-width: calc(100% - 8px);
    max-height: calc(100% - 8px);
    transition: transform 0.2s ease;
  }
  
  /* Footer Navigation */
  .footer {
    display: flex !important;
    position: sticky !important;
    bottom: 0 !important;
    width: 100% !important;
    background: linear-gradient(360deg, #1a1a1a, #202020) !important;
    padding: var(--space-2) !important;
    border-top: 1px solid var(--color-border) !important;
    z-index: var(--z-header) !important;
  }
  
  .footer .nav-icons {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: var(--space-1);
    padding: 0;
  }
  
  .footer .nav-link {
    flex: 1;
    height: 40px;
    padding: var(--space-1);
    font-size: 0;
    border-radius: 4px;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .footer .nav-link svg {
    width: clamp(min(4vw, 21px), calc(100vh / 32), min(5vw, 27px));
    height: clamp(min(4vw, 21px), calc(100vh / 32), min(5vw, 27px));
    margin: 0;
    max-width: calc(100% - 6px);
    max-height: calc(100% - 6px);
    transition: transform 0.2s ease;
  }
  
  .footer .nav-link[aria-label="Toggle fullscreen"] {
    display: none;
  }
  
  /* Layout adjustments */
  .left-column,
  .right-column {
    display: none;
  }
  
  .content {
    flex-direction: column;
    gap: 0;
    padding: var(--space-2);
  }
  
  .middle-column {
    padding-right: 0;
    padding-left: var(--space-1);
  }
  
  .footer-text {
    flex: 1;
    min-width: 0;
  }
  
  .footer-text p {
    max-width: 50vw;
    font-size: var(--font-size-xs);
  }
  
  .footer-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  
  /* Grid adjustments for mobile */
  .support-images {
    grid-template-columns: 1fr;
    gap: var(--space-8); /* var(--space-3); */
  }
  
  .tv-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6) /* var(--space-2); */
  }
  
  .tv-card {
    flex-direction: row !important;
    text-align: left !important;
    align-items: center;
    gap: var(--space-4); /* var(--space-2); */
    padding: var(--space-2);
  }
  
  .tv-image-frame {
    width: 50px !important;
    height: 50px !important;
    flex-shrink: 0;
  }
  
  .tvb-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  
  /* Accordion adjustments */
  .accordion-header h2,
  .accordion-header h3 {
    font-size: var(--font-size-base);
  }
  
  .accordion-content {
    padding: 0 var(--space-2);
  }
  
  .accordion-content.active {
    padding: var(--space-2);
  }
  
  .accordion-content p {
    margin-bottom: var(--space-2);
  }
  
  .accordion-content h2 {
    margin: var(--space-3) 0 var(--space-2) 0;
  }
  
  .accordion-header .button-group {
    gap: var(--space-2);
  }
}

/* Extra Small Mobile (480px and below) */
@media (max-width: 480px) {
  .header-logo {
    height: calc(var(--size-header-logo) * 0.5);
  }
  
  .header .nav-icons {
    grid-template-rows: 1fr 1fr;
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    height: 70px;
    gap: 2px;
  }
  
  .header .nav-link {
    width: 100%;
    height: 100%;
    min-height: auto;
    aspect-ratio: unset;
    padding: var(--space-1);
    font-size: 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .header .nav-link svg {
    width: clamp(min(5vw, 20px), calc(100vh / 25), min(7vw, 29px));
    height: clamp(min(5vw, 20px), calc(100vh / 25), min(7vw, 29px));
  }
  
  .footer .nav-link {
    height: 35px;
    padding: 2px;
  }
  
  .footer .nav-link svg {
    width: clamp(min(4.5vw, 19px), calc(100vh / 30), min(6vw, 26px));
    height: clamp(min(4.5vw, 19px), calc(100vh / 30), min(6vw, 26px));
  }
  
  .footer .nav-link[aria-label="Toggle fullscreen"] {
    display: none;
  }
  
  .footer-text p {
    font-size: 0.7rem;
    max-width: 45vw;
  }
  
  .album-cover {
    width: 32px;
    height: 32px;
  }
  
  .content {
    flex-direction: column;
    gap: 0;
    padding: var(--space-2);
  }
  
  .middle-column {
    padding-right: 0;
    padding-left: var(--space-1);
  }
  
  .btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-xs);
  }
  
  .tvb-channel-card {
    padding: var(--space-3);
  }
  
  .tv-image-frame {
    width: 45px;
    height: 45px;
  }
  
  .accordion-header .button-group {
    gap: var(--space-2);
  }
}

/* Touch device enhancements */
@media (pointer: coarse) {
  .header .nav-link svg {
    transform: scale(1.1);
  }
  
  .footer .nav-link svg {
    transform: scale(1.05);
  }
}

/* High aspect ratio screens (tall phones) */
@media (min-aspect-ratio: 1/2) and (max-width: 480px) {
  .header .nav-link svg {
    width: clamp(26px, 5.5vw, 34px);
    height: clamp(26px, 5.5vw, 34px);
  }
}

/* Landscape Mobile */
@media (max-height: 500px) and (min-width: 568px) {
  .header {
    padding: var(--space-1);
  }
  
  .header .nav-icons {
    display: flex;
    flex-wrap: wrap;
    max-height: 70px;
  }
  
  .header .nav-link {
    flex: 1 1 auto;
    min-width: 40px;
    max-width: 60px;
  }
  
  .footer {
    padding: var(--space-1);
  }
  
  .content {
    padding: var(--space-1);
  }
}

/* ========================================================================= */
/* THEME SYSTEM                                                             */
/* ========================================================================= */
[data-theme="pink"] {
  --color-primary: var(--color-pink);
}

[data-theme="blue"] {
  --color-primary: var(--color-blue);
}

[data-theme="green"] {
  --color-primary: var(--color-green);
}

[data-theme="purple"] {
  --color-primary: var(--color-purple);
}

[data-theme="orange"] {
  --color-primary: var(--color-orange);
}

/* ========================================================================= */
/* ACCESSIBILITY & MOTION                                                   */
/* ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --color-border: rgba(255, 255, 255, 0.3);
    --color-muted: #cccccc;
  }
}

.nav-link:focus-visible,
.btn:focus-visible,
.color-square:focus-visible,
.accordion-header:focus-visible,
.image-frame:focus-visible,
.tv-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .nav-link:focus-visible {
    outline-width: 3px;
    outline-offset: 1px;
  }
}

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

.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }

.text-muted { color: var(--color-muted); }
.text-foreground { color: var(--color-foreground); }
.text-primary { color: var(--color-primary); }

.m-0 { margin: 0; }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.p-0 { padding: 0; }
.p-4 { padding: var(--space-4); }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

@media (max-width: 767px) {
  .mobile-hidden { display: none !important; }
  .mobile-only { display: block !important; }
  .mobile-flex { display: flex !important; }
  .mobile-grid { display: grid !important; }
}

/* ========================================================================= */
/* LEGACY BROWSER SUPPORT                                                   */
/* ========================================================================= */
@supports not (backdrop-filter: blur(16px)) {
  .left-column,
  .right-column,
  .content {
    background: rgba(23, 23, 23, 0.95);
  }
}

@supports not (display: grid) {
  .support-images,
  .tv-grid,
  .tvb-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
  }
  
  .support-images > *,
  .tv-grid > *,
  .tvb-grid > * {
    flex: 1 1 300px;
  }
  
  @media (max-width: 767px) {
    .header .nav-icons,
    .footer .nav-icons {
      display: flex !important;
      flex-wrap: wrap;
    }
  }
}

/* ========================================================================= */
/* PRINT STYLES                                                             */
/* ========================================================================= */
@media print {
  .space-canvas,
  .left-column,
  .right-column,
  .header .nav-icons,
  .footer .nav-icons {
    display: none !important;
  }
  
  .content {
    gap: 0;
    padding: 0;
  }
  
  .middle-column {
    padding: 0;
    width: 100%;
  }
  
  .header,
  .footer {
    background: white !important;
    color: black !important;
    padding: var(--space-2);
  }
  
  .accordion,
  .tv-card,
  .tvb-channel-card {
    background: white !important;
    border: 1px solid #ccc !important;
    break-inside: avoid;
  }
}

/* ========================================================================= */
/* END OF MAD MIX OPTIMIZED CSS                                            */
/* ========================================================================= */

/* EXAKT FIX för cursor-problemet - lägg till i slutet av din CSS */

/* Överskriv cursor för aktiva request- och lyrics-knappar */
.nav-link:not([disabled]):not([aria-disabled="true"]) {
  cursor: pointer !important;
}

/* Specifik fix för request-knappen när den är aktiv */
#requestLink[aria-disabled="false"] {
  cursor: pointer !important;
  pointer-events: auto !important;
}

/* Specifik fix för lyrics-knappen när den är aktiv */
button[aria-label="Show lyrics"][aria-disabled="false"] {
  cursor: pointer !important;
  pointer-events: auto !important;
}

/* Footer navigation knappar som är aktiva */
.footer .nav-link:not([disabled]):not([aria-disabled="true"]) {
  cursor: pointer !important;
}

/* Säkerställ att SVG-ikoner inte blockerar hover/click */
.nav-link svg {
  pointer-events: none;
}

/* Fix för knappar som har cursor: pointer i style-attribut */
.nav-link[style*="cursor: pointer"] {
  cursor: pointer !important;
}

/* Återställ cursor för alla knappar som explicit inte är disabled */
button:not([disabled]):not([aria-disabled="true"]),
.nav-link:not([disabled]):not([aria-disabled="true"]),
[aria-disabled="false"] {
  cursor: pointer !important;
}

/* ========================================================================= */
/* MODERN LOGIN DESIGN ADDITIONS - BUILDING ON YOUR EXISTING CSS           */
/* ========================================================================= */

/* Modern Coming Soon Notice */
.modern-coming-soon-notice {
  background: linear-gradient(135deg, 
    rgba(255, 193, 7, 0.15) 0%, 
    rgba(255, 193, 7, 0.05) 50%,
    rgba(255, 193, 7, 0.02) 100%);
  border: 1px solid rgba(255, 193, 7, 0.4);
  border-radius: 16px;
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(255, 193, 7, 0.1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}

.modern-coming-soon-notice::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 3s infinite;
}

.notice-icon {
  font-size: 2rem;
  margin-bottom: var(--space-3);
  display: block;
}

.modern-coming-soon-notice h3 {
  color: #ffc107;
  margin-bottom: var(--space-3);
  font-size: var(--font-size-xl);
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.modern-coming-soon-notice p {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--font-size-base);
  font-weight: 500;
}

/* Modern Form Container */
.modern-login-form-wrapper {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: var(--space-8);
  margin: var(--space-6) 0;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out;
}

.modern-login-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.modern-login-form-wrapper h3 {
  color: var(--color-foreground);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-8);
  background: linear-gradient(135deg, var(--color-foreground) 0%, var(--color-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Modern Form Layout */
.modern-beautiful-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.modern-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* Modern Form Fields with Floating Labels */
.modern-form-field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.modern-form-field-floating {
  position: relative;
}

.modern-form-input {
  width: 100%;
  padding: var(--space-5) var(--space-4);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  color: var(--color-foreground);
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  font-weight: 500;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.modern-form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255,255,255,0.08);
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 0 0 4px rgba(130, 130, 130, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.modern-form-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(255,255,255,0.02);
  color: var(--color-muted);
  transform: none;
}

.modern-form-input::placeholder {
  color: transparent;
}

/* Floating Labels */
.modern-form-label {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.6);
  font-size: var(--font-size-base);
  font-weight: 500;
  pointer-events: none;
  transition: all var(--transition-base);
  background: var(--color-background);
  padding: 0 var(--space-2);
  z-index: 1;
}

.modern-form-input:focus + .modern-form-label,
.modern-form-input:not(:placeholder-shown) + .modern-form-label,
.modern-form-select:not([value=""]) + .modern-form-label {
  top: 0;
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: 600;
}

.modern-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23a0a0a0' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--space-3) center;
  background-repeat: no-repeat;
  background-size: 16px 12px;
  padding-right: var(--space-8);
}

/* Modern Checkbox Container */
.modern-checkbox-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.modern-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: 8px;
  transition: all var(--transition-base);
}

.modern-checkbox-group:hover {
  background: rgba(255,255,255,0.05);
}

.modern-checkbox {
  position: relative;
  width: 24px;
  height: 24px;
  cursor: pointer;
  flex-shrink: 0;
}

.modern-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.modern-checkbox-custom {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-checkbox input:checked + .modern-checkbox-custom {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.1);
}

.modern-checkbox-custom::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform var(--transition-base);
}

.modern-checkbox input:checked + .modern-checkbox-custom::after {
  transform: rotate(45deg) scale(1);
}

.modern-checkbox-text {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: color var(--transition-base);
  line-height: 1.4;
}

.modern-checkbox-group:hover .modern-checkbox-text {
  color: var(--color-foreground);
}

/* Modern Form Actions */
.modern-form-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.modern-form-button {
  position: relative;
  padding: var(--space-5) var(--space-8);
  font-size: var(--font-size-lg);
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary) 0%, #a0a0a0 100%);
  color: var(--color-primary-foreground);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-family-base);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  min-width: 240px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modern-form-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.modern-form-button:hover:not(:disabled)::before {
  left: 100%;
}

.modern-form-button:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #909090 0%, #b0b0b0 100%);
}

.modern-form-button:active:not(:disabled) {
  transform: translateY(-1px) scale(0.98);
  transition: transform 0.1s ease;
}

.modern-form-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modern-form-link {
  color: var(--color-primary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 600;
  transition: all var(--transition-base);
  position: relative;
}

.modern-form-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.modern-form-link:hover::after {
  width: 100%;
}

.modern-form-note {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin: 0;
  text-align: center;
}

/* Modern Info Note Box */
.modern-form-note-box {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 4px solid var(--color-primary);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.note-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.note-content {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.note-content strong {
  color: var(--color-foreground);
}

/* Modern Benefits */
.modern-login-benefits {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.modern-login-benefits h4 {
  color: var(--color-foreground);
  font-size: var(--font-size-xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--color-foreground) 0%, var(--color-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modern-benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.modern-benefit-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: var(--space-4);
  backdrop-filter: blur(20px);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.modern-benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.modern-benefit-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
  border-color: var(--color-primary);
  background: rgba(255,255,255,0.08);
}

.modern-benefit-card.large {
  padding: var(--space-6);
  text-align: left;
}

.modern-benefit-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #a0a0a0 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3) auto;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modern-benefit-card.large .modern-benefit-icon {
  margin: 0 0 var(--space-4) 0;
}

.modern-benefit-title {
  color: var(--color-foreground);
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.modern-benefit-description {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  font-weight: 500;
}

.modern-benefit-card.large ul {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0 0;
}

.modern-benefit-card.large li {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-2);
  margin-left: 0;
  padding-left: var(--space-4);
  position: relative;
}

.modern-benefit-card.large li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* Modern Membership Comparison */
.modern-membership-comparison {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.modern-membership-comparison h4 {
  color: var(--color-foreground);
  font-size: var(--font-size-xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--color-foreground) 0%, var(--color-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modern-membership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.modern-membership-card {
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.modern-membership-card.featured {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(130, 130, 130, 0.2) 0%, rgba(130, 130, 130, 0.1) 100%);
  transform: scale(1.05);
}

.modern-membership-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--color-primary);
}

.modern-membership-card.featured:hover {
  transform: translateY(-6px) scale(1.07);
}

.modern-membership-name {
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--color-foreground);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modern-membership-price {
  font-size: var(--font-size-2xl);
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.modern-membership-desc {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
  line-height: 1.4;
}

/* Modern Support Contact */
.modern-support-contact {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.modern-support-contact h4 {
  color: var(--color-foreground);
  font-size: var(--font-size-xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--color-foreground) 0%, var(--color-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modern-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.modern-contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: var(--space-5);
  text-align: center;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.modern-contact-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.08);
  border-color: var(--color-primary);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: var(--space-3);
  display: block;
}

.contact-label {
  font-weight: 600;
  color: var(--color-foreground);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-2);
}

.contact-value {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  font-family: monospace;
  background: rgba(255,255,255,0.05);
  padding: var(--space-2);
  border-radius: 6px;
}

/* Modern Benefits Showcase */
.modern-benefits-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
  margin: var(--space-6) 0;
}

/* Modern Image Showcase */
.modern-image-showcase {
  margin-top: var(--space-8);
}

.modern-image-card {
  transition: all var(--transition-base);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}

.modern-image-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.modern-image-card img {
  transition: transform var(--transition-base);
}

.modern-image-card:hover img {
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Focus within for floating labels */
.modern-form-field-floating:focus-within .modern-form-label {
  top: 0;
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modern-login-form-wrapper {
    padding: var(--space-6);
    border-radius: 16px;
  }

  .modern-login-form-wrapper h3 {
    font-size: var(--font-size-xl);
  }

  .modern-form-grid {
    grid-template-columns: 1fr;
  }

  .modern-form-input {
    padding: var(--space-4);
  }

  .modern-form-button {
    padding: var(--space-4) var(--space-6);
    font-size: var(--font-size-base);
    min-width: 200px;
  }

  .modern-benefit-grid,
  .modern-membership-grid,
  .modern-contact-grid,
  .modern-benefits-showcase {
    grid-template-columns: 1fr;
  }

  .modern-membership-card.featured {
    transform: none;
  }

  .modern-membership-card.featured:hover {
    transform: translateY(-6px) scale(1.02);
  }
}

@media (max-width: 480px) {
  .modern-login-form-wrapper {
    padding: var(--space-4);
    margin: var(--space-4) 0;
  }

  .modern-coming-soon-notice {
    padding: var(--space-4);
    margin-bottom: var(--space-4);
  }

  .modern-form-input {
    padding: var(--space-3);
  }

  .modern-form-button {
    padding: var(--space-3) var(--space-5);
    min-width: 180px;
  }
}

/* Accessibility */
.modern-form-input:focus-visible,
.modern-checkbox:focus-visible,
.modern-form-button:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* ========================================================================= */
/* SERVICES PAGE SPECIFIC STYLES - EXTENDING MODERN LOGIN CSS              */
/* ========================================================================= */

/* Service Overview Styling */
.services-overview {
  text-align: center;
  margin-bottom: var(--space-6);
}

.services-overview p {
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-muted);
  margin-bottom: var(--space-5);
}

.service-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  transition: all var(--transition-base);
}

.highlight-item:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

.highlight-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.highlight-text {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

/* Service Details */
.service-details {
  text-align: left;
}

.service-details p {
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.service-details strong {
  color: var(--color-foreground);
  font-weight: 600;
}

/* Service Note (reusing modern-form-note-box style) */
.service-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 4px solid var(--color-primary);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  margin-top: var(--space-5);
}

/* Custom Solutions Grid */
.custom-solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.solution-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: var(--space-5);
  text-align: center;
  transition: all var(--transition-base);
}

.solution-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.08);
  border-color: var(--color-primary);
}

.solution-card h4 {
  color: var(--color-foreground);
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.solution-card p {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  margin: 0;
}

/* Contact CTA */
.contact-cta {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: var(--space-6);
  text-align: center;
  margin-top: var(--space-6);
}

.contact-cta h4 {
  color: var(--color-foreground);
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.contact-cta p {
  color: var(--color-muted);
  margin-bottom: var(--space-5);
}

.cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.modern-form-button.secondary {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.modern-form-button.secondary:hover:not(:disabled) {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
}

/* Platform Grid */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.platform-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: var(--space-5);
  text-align: center;
  transition: all var(--transition-base);
}

.platform-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.08);
  border-color: var(--color-primary);
}

.platform-icon {
  font-size: 2rem;
  margin-bottom: var(--space-3);
  display: block;
}

.platform-card h4 {
  color: var(--color-foreground);
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.platform-card p {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  margin: 0;
}

/* Service Pricing Preview */
.service-pricing-preview {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: var(--space-6);
  margin-top: var(--space-6);
}

.service-pricing-preview h4 {
  color: var(--color-foreground);
  font-size: var(--font-size-lg);
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-5);
}

.pricing-teaser {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.package-preview {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: var(--space-4);
  text-align: center;
  transition: all var(--transition-base);
}

.package-preview.featured {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(130, 130, 130, 0.1) 0%, rgba(130, 130, 130, 0.05) 100%);
}

.package-preview:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.package-preview h5 {
  color: var(--color-foreground);
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.package-preview p {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* Early Access Content */
.early-access-content {
  text-align: center;
}

.early-access-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
  margin: var(--space-5) 0;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  transition: all var(--transition-base);
}

.benefit-item:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-1px);
}

.benefit-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.benefit-item span:last-child {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.early-access-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: var(--space-5);
  margin-top: var(--space-5);
}

.early-access-form p {
  color: var(--color-foreground);
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

/* Responsive Design for Services */
@media (max-width: 768px) {
  .service-highlights,
  .custom-solutions-grid,
  .platform-grid,
  .pricing-teaser,
  .early-access-benefits {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .modern-form-button {
    width: 100%;
    max-width: 280px;
  }

  .highlight-item,
  .benefit-item {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2);
  }

  .highlight-icon,
  .benefit-icon {
    font-size: 2rem;
  }

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

@media (max-width: 480px) {
  .service-highlights {
    gap: var(--space-3);
  }

  .highlight-item {
    padding: var(--space-2);
  }

  .solution-card,
  .platform-card {
    padding: var(--space-4);
  }

  .contact-cta,
  .service-pricing-preview,
  .early-access-form {
    padding: var(--space-4);
  }

  .modern-form-button {
    padding: var(--space-3) var(--space-5);
    font-size: var(--font-size-base);
    min-width: 160px;
  }
}

/* Animation for service cards */
@keyframes serviceCardHover {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-4px) scale(1.02); }
}

.solution-card:hover,
.platform-card:hover {
  animation: serviceCardHover 0.2s ease-out forwards;
}

/* Service-specific coming soon notice variations */
.modern-coming-soon-notice .notice-icon {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .highlight-item:hover,
  .solution-card:hover,
  .platform-card:hover,
  .package-preview:hover,
  .benefit-item:hover {
    transform: none;
    animation: none;
  }
  
  .modern-coming-soon-notice .notice-icon {
    animation: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .highlight-item,
  .solution-card,
  .platform-card,
  .package-preview,
  .benefit-item,
  .service-note,
  .contact-cta,
  .service-pricing-preview,
  .early-access-form {
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.5);
  }
  
  .highlight-text,
  .solution-card p,
  .platform-card p,
  .package-preview p,
  .benefit-item span:last-child {
    color: var(--color-foreground);
  }
}

/* Focus states for interactive elements */
.solution-card:focus,
.platform-card:focus,
.package-preview:focus,
.highlight-item:focus,
.benefit-item:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}


/* ========================================================================= */
/* MERCHANDISE PAGE SPECIFIC STYLES - EXTENDING MODERN LOGIN CSS           */
/* ========================================================================= */

/* Merchandise Highlights */
.merch-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

/* Product Showcase */
.product-showcase {
  text-align: left;
}

.product-showcase p {
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.product-showcase strong {
  color: var(--color-foreground);
  font-weight: 600;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
  margin: var(--space-6) 0;
}

.product-placeholder {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.product-placeholder:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
  border-color: var(--color-primary);
}

.product-image-placeholder {
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image-placeholder::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmerProduct 3s infinite;
}

@keyframes shimmerProduct {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: var(--space-2);
  opacity: 0.7;
}

.loading-text {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  font-weight: 500;
}

.product-info-placeholder {
  padding: var(--space-4);
}

.product-info-placeholder h4 {
  color: var(--color-foreground);
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.product-info-placeholder p {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  margin-bottom: var(--space-3);
}

.price-placeholder {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-primary);
}

/* Product Features */
.product-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.feature-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: var(--space-4);
  text-align: center;
}

.feature-item h5 {
  color: var(--color-foreground);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.feature-item p {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  margin: 0;
}

/* Size Guide */
.size-guide {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: var(--space-5);
  margin-top: var(--space-6);
}

.size-guide h5 {
  color: var(--color-foreground);
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-4);
  text-align: center;
}

.size-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
}

.size-item {
  padding: var(--space-3);
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  text-align: center;
}

.size-item strong {
  color: var(--color-primary);
  font-weight: 600;
}

/* Collectibles Grid */
.collectibles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.collectible-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: var(--space-5);
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
}

.collectible-item:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.08);
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.collectible-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
  display: block;
}

.collectible-item h4 {
  color: var(--color-foreground);
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.collectible-item p {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  margin-bottom: var(--space-3);
}

.collectible-price {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-primary);
}

/* Shopping Cart */
.cart-container {
  min-height: 200px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: var(--space-6);
  margin-bottom: var(--space-5);
}

.empty-cart {
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.empty-cart-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  opacity: 0.7;
}

.empty-cart h4 {
  color: var(--color-foreground);
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.empty-cart p {
  color: var(--color-muted);
  font-size: var(--font-size-base);
  margin: 0;
}

/* Cart Summary */
.cart-summary {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: var(--space-5);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--color-muted);
  font-size: var(--font-size-base);
}

.summary-row.total {
  border-bottom: none;
  font-weight: 700;
  font-size: var(--font-size-lg);
  color: var(--color-foreground);
  margin-top: var(--space-2);
}

#checkout-btn {
  width: 100%;
  margin-top: var(--space-5);
}

/* Shipping Info */
.shipping-info {
  text-align: left;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.info-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: var(--space-5);
  text-align: center;
  transition: all var(--transition-base);
}

.info-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.08);
  border-color: var(--color-primary);
}

.info-icon {
  font-size: 2rem;
  margin-bottom: var(--space-3);
  display: block;
}

.info-card h4 {
  color: var(--color-foreground);
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.info-card p {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  margin: 0;
}

/* Shipping Regions */
.shipping-regions {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: var(--space-5);
  margin-top: var(--space-6);
}

.shipping-regions h4 {
  color: var(--color-foreground);
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-4);
  text-align: center;
}

.region-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-3);
}

.region-item {
  padding: var(--space-3);
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  color: var(--color-muted);
  font-size: var(--font-size-sm);
}

.region-item strong {
  color: var(--color-foreground);
}

/* Customer Service */
.customer-service {
  text-align: left;
}

.customer-service p {
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: var(--space-5);
}

/* FAQ Preview */
.faq-preview {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: var(--space-5);
  margin-top: var(--space-6);
}

.faq-preview h4 {
  color: var(--color-foreground);
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-4);
  text-align: center;
}

.faq-item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item strong {
  color: var(--color-foreground);
  font-weight: 600;
  display: block;
  margin-bottom: var(--space-2);
}

.faq-item p {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  margin: 0;
}

/* Product Animation Effects */
.product-placeholder {
  position: relative;
  overflow: hidden;
}

.product-placeholder::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.product-placeholder:hover::after {
  transform: translateX(100%);
}

/* Responsive Design for Merchandise */
@media (max-width: 768px) {
  .merch-highlights,
  .product-grid,
  .product-features,
  .size-info,
  .collectibles-grid,
  .info-grid,
  .region-list {
    grid-template-columns: 1fr;
  }

  .product-placeholder {
    max-width: 100%;
  }

  .placeholder-icon {
    font-size: 2.5rem;
  }

  .collectible-icon,
  .info-icon {
    font-size: 1.8rem;
  }

  .empty-cart-icon {
    font-size: 3rem;
  }

  .empty-cart {
    padding: var(--space-6) var(--space-2);
  }
}

@media (max-width: 480px) {
  .product-grid {
    gap: var(--space-4);
  }

  .product-info-placeholder,
  .feature-item,
  .collectible-item,
  .info-card {
    padding: var(--space-3);
  }

  .size-guide,
  .cart-container,
  .cart-summary,
  .shipping-regions,
  .faq-preview {
    padding: var(--space-4);
  }

  .summary-row {
    font-size: var(--font-size-sm);
  }

  .summary-row.total {
    font-size: var(--font-size-base);
  }
}

/* Loading Animation for Products */
@keyframes productPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.loading-text {
  animation: productPulse 2s infinite;
}

/* Accessibility Improvements */
.product-placeholder:focus,
.collectible-item:focus,
.info-card:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Print Styles for Merchandise */
@media print {
  .cart-container,
  .cart-summary,
  .modern-form-button {
    display: none !important;
  }
  
  .product-grid,
  .collectibles-grid,
  .info-grid {
    break-inside: avoid;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .product-placeholder,
  .collectible-item,
  .info-card,
  .feature-item,
  .size-item,
  .cart-container,
  .shipping-regions,
  .faq-preview {
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.6);
  }
  
  .product-info-placeholder h4,
  .collectible-item h4,
  .info-card h4,
  .feature-item h5 {
    color: var(--color-foreground);
  }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
  .product-image-placeholder {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  }
  
  .loading-text {
    color: rgba(255,255,255,0.7);
  }
}