@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Override framework defaults for wheel app */
body {
  font-family: 'Poppins', sans-serif;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-600) 100%);
  margin: 0;
  padding: var(--space-md);
  min-height: 100vh;
  color: var(--neutral-700);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Language Selector Styles */
.language-selector {
  position: relative;
  display: inline-block;
}

.language-toggle {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 8px 12px;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--neutral-700);
  font-weight: 500;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.language-toggle:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  min-width: 60px;
  display: none;
  overflow: hidden;
  padding: 4px;
}

/* Mobile specific dropdown styles */
@media (max-width: 768px) {
  .language-dropdown {
    position: fixed;
    top: 50px;
    right: 8px;
    z-index: 99999;
    width: auto;
    transform: none;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    padding: 4px !important;
    display: none;
    grid-template-columns: repeat(6, 1fr);
    gap: 3px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }
  
  .language-dropdown .language-option {
    padding: 4px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: var(--radius-sm) !important;
    margin: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: white !important;
    transition: all 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .language-dropdown .language-option:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
  }
  
  .language-flag {
    font-size: 1.1rem;
  }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
  .language-dropdown {
    top: 45px;
    right: 5px;
    gap: 2px !important;
    padding: 3px !important;
  }
  
  .language-dropdown .language-option {
    padding: 3px !important;
    width: 28px !important;
    height: 28px !important;
  }
  
  .language-flag {
    font-size: 1rem;
  }
}

.language-dropdown.active,
.language-dropdown.show {
  display: block !important;
  animation: slideDown 0.3s ease-out;
}

/* Mobile active state shows grid layout */
@media (max-width: 768px) {
  .language-dropdown.active,
  .language-dropdown.show {
    display: grid !important;
    animation: slideDown 0.3s ease-out;
  }
}

.language-option {
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  border-radius: var(--radius-md);
  margin: 2px;
  min-width: 40px;
  min-height: 40px;
}

.language-option:hover {
  background: var(--primary-50);
  transform: scale(1.1);
}

.language-option.active {
  background: var(--primary-100);
  color: var(--primary-600);
  transform: scale(1.05);
}

.language-flag {
  font-size: 1.8rem;
}

#currentLanguageFlag {
  font-size: 1.4rem;
}

.language-name {
  font-size: 0.9rem;
  color: var(--neutral-600);
}

.language-option:hover .language-name {
  color: var(--primary-600);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header Layout Updates */
.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-xs);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-2xl);
  padding: var(--space-lg) var(--space-2xl);
  box-shadow: var(--shadow-2xl);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Spin Button Styles */
.spin-button-container {
  margin-bottom: var(--space-lg);
}

.spin-button {
  font-size: var(--text-xl);
  font-weight: 700;
  padding: var(--space-lg) var(--space-2xl);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #10b981, #059669);
  border: 3px solid rgba(255, 255, 255, 0.3);
  color: white;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.spin-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  animation: spinButtonShimmer 2s ease-in-out infinite;
  pointer-events: none;
}

.spin-button:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(255, 255, 255, 0.5);
}

.spin-button:active {
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

@keyframes spinButtonShimmer {
  0%, 100% {
    transform: translateX(-100%) translateY(-100%) rotate(0deg);
  }
  50% {
    transform: translateX(100%) translateY(100%) rotate(180deg);
  }
}

.title-header {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.header-main .header-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

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

.title-center {
  font-weight: 700;
  font-size: var(--text-4xl);
  margin: 0;
  color: var(--neutral-700);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: var(--space-xs) var(--space-sm);
  transition: all var(--transition-normal);
  white-space: nowrap;
  overflow: visible;
  text-align: center;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.title-center[contenteditable="true"] {
  border-color: var(--primary-500);
  background: rgba(255, 255, 255, 0.9);
  -webkit-text-fill-color: var(--primary-600);
  color: var(--primary-600);
}

.spacer {
  width: 32px; /* Same width as small round button for balance */
}

.edit-btn-round {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  border: 1px solid var(--primary-200);
  border-radius: 50%;
  cursor: pointer;
  color: var(--primary-700);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.edit-btn-round:hover {
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  color: var(--primary-800);
  transform: translateY(-1px) scale(1.05);
  box-shadow: var(--shadow-md);
}

.edit-btn-round:active {
  transform: translateY(0) scale(1);
  box-shadow: var(--shadow-sm);
}

.ai-record-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  cursor: pointer;
  color: white;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.ai-record-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

.ai-record-btn:hover {
  background: linear-gradient(135deg, #5a67d8, #6b46c1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 255, 255, 0.5);
}

.ai-record-btn.recording {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: rgba(255, 255, 255, 0.6);
  animation: recordingPulse 1s ease-in-out infinite;
}

.ai-record-btn.recording:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.ai-record-btn.recording span {
  animation: textPulse 1s ease-in-out infinite;
}

@keyframes textPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes shimmer {
  0%, 100% {
    opacity: 0;
    transform: scale(0.8) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(180deg);
  }
}

@keyframes recordingPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
}

.theme-toggle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  background: linear-gradient(135deg, var(--neutral-100), var(--neutral-200));
  border: 1px solid var(--neutral-300);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: linear-gradient(135deg, var(--neutral-200), var(--neutral-300));
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.theme-toggle .sun-icon {
  color: var(--warning-600);
  transition: all var(--transition-normal);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.theme-toggle .moon-icon {
  color: var(--neutral-600);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all var(--transition-normal);
}

/* Dark mode styles */
body.dark-mode {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
  color: var(--neutral-100);
}

body.dark-mode .container {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .form-control {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--neutral-100);
}

body.dark-mode .form-control:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

body.dark-mode .names-list {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .name-item {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--neutral-100);
}

body.dark-mode .theme-toggle {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.8), rgba(30, 41, 59, 0.8));
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .theme-toggle:hover {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.9), rgba(30, 41, 59, 0.9));
}

body.dark-mode .theme-toggle .sun-icon {
  opacity: 0;
}

body.dark-mode .theme-toggle .moon-icon {
  opacity: 1;
  color: var(--warning-400);
}

/* Language toggle stays white in dark mode for better visibility */
body.dark-mode .language-toggle {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--neutral-700);
}

body.dark-mode .language-toggle:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 1);
}

.btn-purple {
  background: linear-gradient(135deg, #a855f7, #9333ea);
  border-color: #9333ea;
  color: white;
}

.btn-purple:hover {
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  border-color: #7c3aed;
  transform: translateY(-2px);
}

/* Theme Modal Styles */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: var(--space-xs);
  max-height: none;
  overflow-y: visible;
}

.theme-card {
  background: linear-gradient(135deg, var(--neutral-50), var(--neutral-100));
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: var(--space-xs);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  min-height: 75px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.theme-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-400);
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  position: relative;
  z-index: 1000;
}

.theme-preview {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-card h3 {
  margin: 0;
  color: var(--neutral-800);
  font-weight: 600;
  font-size: 0.65rem;
  line-height: 1.1;
}

.theme-card p {
  display: none;
}

/* One-click theme application with visual feedback */
.theme-card {
  position: relative;
  overflow: hidden;
}

.theme-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.4), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.theme-card.loading::before {
  left: 100%;
}

.theme-card.success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
  border-color: #22c55e;
  animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--neutral-500);
  font-size: 2rem;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-normal);
}

.modal-close:hover {
  background: var(--neutral-100);
  color: var(--neutral-700);
}

/* Dark mode theme modal */
body.dark-mode .theme-card {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.8), rgba(30, 41, 59, 0.8));
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--neutral-100);
}

body.dark-mode .theme-card:hover {
  border-color: var(--primary-400);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.1));
}

body.dark-mode .theme-card h3 {
  color: var(--neutral-100);
}

body.dark-mode .theme-card p {
  color: var(--neutral-300);
}

/* Dark mode success feedback */
body.dark-mode .theme-card.success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
  border-color: #22c55e;
}

/* Emoji Customizer Styles */
#emojiModal .modal-content {
  max-height: 85vh;
  overflow-y: auto;
  max-width: 700px;
  padding: 20px;
}

#emojiModal .modal-body {
  overflow-y: auto;
  max-height: calc(85vh - 100px);
}

/* Custom scrollbar for emoji modal */
#emojiModal .modal-content::-webkit-scrollbar,
#emojiModal .modal-body::-webkit-scrollbar,
.emoji-theme-grid::-webkit-scrollbar,
.emoji-categories::-webkit-scrollbar,
.emoji-tab-content::-webkit-scrollbar {
  width: 8px;
}

#emojiModal .modal-content::-webkit-scrollbar-track,
#emojiModal .modal-body::-webkit-scrollbar-track,
.emoji-theme-grid::-webkit-scrollbar-track,
.emoji-categories::-webkit-scrollbar-track,
.emoji-tab-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

#emojiModal .modal-content::-webkit-scrollbar-thumb,
#emojiModal .modal-body::-webkit-scrollbar-thumb,
.emoji-theme-grid::-webkit-scrollbar-thumb,
.emoji-categories::-webkit-scrollbar-thumb,
.emoji-tab-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

#emojiModal .modal-content::-webkit-scrollbar-thumb:hover,
#emojiModal .modal-body::-webkit-scrollbar-thumb:hover,
.emoji-theme-grid::-webkit-scrollbar-thumb:hover,
.emoji-categories::-webkit-scrollbar-thumb:hover,
.emoji-tab-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Emoji Button Section Styles */
.emoji-button-section {
  padding: var(--space-lg) 0;
  text-align: center;
}

.emoji-action-buttons {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  align-items: center;
}

.emoji-section {
  padding: var(--space-lg) 0;
  border-top: 2px solid var(--neutral-200);
  margin-top: var(--space-lg);
}

.emoji-section h3 {
  color: var(--primary-600);
  margin-bottom: var(--space-md);
  text-align: center;
}

.emoji-section-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--neutral-200);
}

/* Emoji Footer Fun Styles */
.emoji-footer-fun {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
}

.fun-emoji {
  font-size: 3rem;
  animation: wave 2s ease-in-out infinite;
  margin-bottom: var(--space-sm);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.fun-emoji:hover {
  transform: scale(1.2);
}

.fun-text {
  color: var(--primary-600);
  font-weight: 500;
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.8;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(15deg); }
  75% { transform: rotate(-15deg); }
}

/* Dark mode support for emoji footer */
body.dark-mode .fun-text {
  color: var(--primary-400);
}

.emoji-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.emoji-theme-card {
  background: linear-gradient(135deg, var(--neutral-50), var(--neutral-100));
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.emoji-theme-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-400);
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
}

.emoji-theme-preview {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  letter-spacing: 2px;
}

.emoji-theme-card h4 {
  margin: 0 0 var(--space-xs) 0;
  color: var(--neutral-800);
  font-weight: 600;
}

.emoji-theme-card p {
  margin: 0;
  color: var(--neutral-600);
  font-size: 0.85rem;
}

.emoji-picker-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.emoji-categories {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  justify-content: center;
  padding: var(--space-sm);
  background: var(--neutral-50);
  border-radius: var(--radius-md);
  max-height: 200px;
  overflow-y: auto;
}

.emoji-category-btn {
  background: white;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-normal);
  min-width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-category-btn:hover {
  background: var(--neutral-100);
  border-color: var(--primary-400);
}

.emoji-category-btn.active {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: white;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: var(--space-xs);
  max-height: 300px;
  overflow-y: auto;
  padding: var(--space-md);
  background: var(--neutral-50);
  border-radius: var(--radius-md);
}

.emoji-item {
  background: white;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.emoji-item:hover {
  background: var(--primary-100);
  border-color: var(--primary-400);
  transform: scale(1.1);
}

.emoji-item.selected {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: white;
}

.emoji-controls {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-md);
}

.emoji-settings {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--neutral-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-200);
}

.setting-group label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 500;
  color: var(--neutral-700);
}

.setting-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.setting-group select {
  padding: var(--space-sm);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  background: white;
  cursor: pointer;
}

.setting-group select:focus {
  outline: none;
  border-color: var(--primary-400);
}

/* Dark mode emoji customizer */
body.dark-mode .emoji-theme-card {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.8), rgba(30, 41, 59, 0.8));
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--neutral-100);
}

body.dark-mode .emoji-theme-card:hover {
  border-color: var(--primary-400);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.1));
}

body.dark-mode .emoji-categories {
  background: rgba(51, 65, 85, 0.3);
}

body.dark-mode .emoji-category-btn {
  background: rgba(51, 65, 85, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--neutral-100);
}

body.dark-mode .emoji-grid {
  background: rgba(51, 65, 85, 0.3);
}

body.dark-mode .emoji-item {
  background: rgba(51, 65, 85, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .setting-group {
  background: rgba(51, 65, 85, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .setting-group label {
  color: var(--neutral-100);
}

body.dark-mode .setting-group select {
  background: rgba(51, 65, 85, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--neutral-100);
}

/* Mobile responsive emoji customizer */
@media (max-width: 768px) {
  #emojiModal .modal-content {
    max-height: 90vh;
    margin: 5% auto;
    width: 95%;
  }
  
  #emojiModal .modal-body {
    max-height: calc(90vh - 120px);
  }
  
  .emoji-theme-grid {
    grid-template-columns: 1fr;
    max-height: 350px;
  }
  
  .emoji-action-buttons {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .emoji-action-buttons .btn {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
  
  .fun-emoji {
    font-size: 2.5rem;
  }
  
  .fun-text {
    font-size: 0.8rem;
  }
  
  /* Center modal footer button on mobile */
  .modal-footer .btn {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }
  
  .emoji-categories {
    gap: var(--space-xs);
    max-height: 150px;
  }
  
  .emoji-category-btn {
    min-width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .emoji-grid {
    grid-template-columns: repeat(auto-fill, minmax(35px, 1fr));
  }
  
  .emoji-item {
    min-height: 35px;
    font-size: 1rem;
  }
  
  .emoji-controls {
    flex-direction: column;
  }
  
  .emoji-tab-content {
    max-height: 350px;
  }
}

body.dark-mode .modal-close {
  color: var(--neutral-400);
}

body.dark-mode .modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--neutral-200);
}

/* Desktop controls layout - 2-3 rows */
.controls-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
  max-width: 1000px;
}

.controls-row {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Desktop-specific layout for large screens */
@media (min-width: 769px) {
  .controls-grid {
    gap: var(--space-lg);
  }
  
  .controls-row {
    gap: var(--space-lg);
  }
  
  /* First row: Input controls centered */
  .controls-row-1 {
    justify-content: center;
  }
  
  /* Second row: AI and Teams controls */
  .controls-row-2 {
    justify-content: center;
  }
  
  /* Third row: File operations */
  .controls-row-3 {
    justify-content: center;
  }
  
  /* Ensure buttons have consistent sizing */
  .controls-row .btn {
    min-width: 140px;
    white-space: nowrap;
  }
  
  .controls-row .form-control {
    min-width: 200px;
    max-width: 300px;
  }
  
  .controls-row .ai-record-btn {
    min-width: 160px;
    height: 42px; /* Match other button heights */
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: var(--space-sm);
  }
  
  .container {
    padding: var(--space-md) var(--space-lg);
  }
  
  .controls-grid {
    gap: var(--space-sm);
  }
  
  .controls-row {
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
  }
  
  .controls-row .btn,
  .controls-row .form-control,
  .controls-row .ai-record-btn {
    width: 100%;
    max-width: 300px;
  }
  
  /* Mobile header layout adjustments */
  .title-header {
    transform: scale(0.95);
    transform-origin: center center;
    margin: 0 auto;
    justify-content: center;
  }
  
  .title-center {
    font-size: var(--text-2xl);
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    white-space: normal;
  }
  
  .header-main .header-left {
    gap: var(--space-xs);
  }
  
  .language-toggle {
    padding: 6px 8px;
    font-size: 0.85rem;
  }
  
  .edit-btn-round, .theme-toggle {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 768px) {
  body {
    padding: var(--space-md);
  }
  
  .container {
    padding: var(--space-md);
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
  }
  
  .title-center {
    font-size: var(--text-lg);
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    white-space: normal;
  }
  
  .wheel-container {
    margin: var(--space-md) auto;
    padding: 35px 15px 15px 15px; /* Responsive padding for mobile */
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  #wheel {
    width: 350px !important;
    height: 350px !important;
    margin: 0 auto;
    display: block;
  }
  
  .controls {
    gap: var(--space-sm);
    align-items: center;
    justify-content: center;
  }
  
  .controls > div:nth-child(2) {
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
    max-width: 340px;
    align-items: center;
  }
  
  .controls > div:nth-child(3) {
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
    max-width: 340px;
    align-items: center;
  }
  
  .form-control {
    width: 100%;
    min-width: 0;
    height: 48px;
  }
  
  .ai-record-btn {
    width: 100%;
    height: 48px;
    justify-content: center;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    height: 48px;
    padding: var(--space-sm);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Color Picker Styles */
.color-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  background: rgba(255, 255, 255, 0.05);
}

.color-option:hover {
  border-color: var(--primary-500);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.color-option.selected {
  border-color: var(--primary-500);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.color-preview {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-sm);
}

.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.color-option span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--neutral-700);
}

.modal-footer {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--neutral-200);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cancel-btn {
  min-width: 120px;
}

/* Ensure Cancel button is centered */
.modal-footer .btn-secondary {
  display: block;
  margin: 0 auto var(--space-md) auto;
}

@media (max-width: 768px) {
  .color-picker-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .btn-lg {
    height: 48px;
    padding: var(--space-sm);
    font-size: var(--text-base);
  }
}

/* Custom Color Picker Styles */
.custom-option .custom-dot {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.custom-color-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  z-index: 10;
  overflow-y: auto;
}

.custom-color-content {
  padding: var(--space-xl);
  height: 100%;
}

.custom-color-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--primary-300);
}

.custom-color-header h3 {
  margin: 0;
  color: var(--primary-600);
}

.close-custom-btn {
  background: var(--secondary-500);
  color: white;
  border: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-normal);
}

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



.custom-color-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.color-palette {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.palette-section h4 {
  margin-bottom: var(--space-sm);
  color: var(--neutral-700);
  font-size: var(--text-sm);
  font-weight: 600;
}

.quick-colors {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.quick-color {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.quick-color:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-input-container {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.color-input {
  width: 50px;
  height: 40px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: none;
}

.add-color-btn {
  background: var(--primary-500);
  color: white;
  border: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-normal);
}

.add-color-btn:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
}

.selected-colors {
  margin-top: var(--space-lg);
}

.selected-colors-display {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  min-height: 50px;
  padding: var(--space-md);
  border: 2px dashed var(--neutral-300);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
}

.selected-color {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

.selected-color:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.selected-color::after {
  content: '×';
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.selected-color:hover::after {
  opacity: 1;
}

.custom-color-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.empty-colors-message {
  text-align: center;
  color: var(--neutral-500);
  font-style: italic;
  padding: var(--space-md);
}

@media (max-width: 768px) {
  .quick-colors {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .custom-color-controls {
    gap: var(--space-md);
  }
  
  .color-input-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .custom-color-actions {
    flex-direction: column;
  }
}
  
  .spin-button {
    height: 60px !important;
    font-size: var(--text-lg) !important;
    padding: var(--space-md) !important;
  }
  
  .btn-sm {
    height: 48px;
    padding: var(--space-sm);
    font-size: var(--text-sm);
  }
  
  .names-list {
    max-height: 120px;
    font-size: var(--text-sm);
  }
  
  .name-item {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-sm);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .edit-btn-round {
    width: 32px;
    height: 32px;
  }
  
  .edit-btn-round svg {
    width: 12px;
    height: 12px;
  }
  
  .theme-toggle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    flex-shrink: 0;
  }
  
  .theme-toggle svg {
    width: 14px;
    height: 14px;
  }
}

/* Wheel Spinner Counter */
.spinner-counter {
  margin: 1rem auto;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  max-width: 280px;
  text-align: center;
  display: block;
  position: relative;
}

.spinner-counter:hover .counter-number {
  animation-play-state: paused;
}

.spinner-counter:hover {
  transform: none !important;
}

.counter-number:hover {
  transform: none !important;
}

.counter-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  position: relative;
}

.counter-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.counter-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  background: var(--bg-primary);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  min-width: 120px;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

@keyframes counter-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes counter-increment {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Dark mode support */
.dark .spinner-counter {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

.dark .counter-label {
  color: var(--text-secondary);
}

.dark .counter-number {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.spinner-counter:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  transform: translateX(-50%) translateY(-2px);
}

/* Duplicate styles removed - using the ones above */

/* Dark mode support for counter */
body.dark-mode .spinner-counter {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .counter-label {
  color: var(--neutral-300);
}

body.dark-mode .counter-number {
  color: var(--primary-400);
}

/* Mobile responsive for counter */
@media (max-width: 768px) {
  .spinner-counter {
    bottom: 15px;
    left: 15px;
    right: 15px;
    transform: none;
    width: auto;
  }
  
  .counter-content {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }
  
  .counter-label {
    font-size: var(--text-xs);
  }
  
  .counter-number {
    font-size: var(--text-base);
  }
}

@media (max-width: 480px) {
  body {
    padding: var(--space-sm);
  }
  
  .container {
    padding: var(--space-sm);
    margin: 0 auto;
    width: 100%;
    max-width: 380px;
  }
  
  .title-center {
    font-size: var(--text-base);
    text-align: center;
    line-height: 1.1;
    word-break: break-word;
    white-space: normal;
    max-width: 250px;
    margin: 0 auto;
  }
  
  #wheel {
    width: 350px !important;
    height: 350px !important;
    margin: 0 auto;
    display: block;
  }
  
  .controls {
    gap: var(--space-xs);
    align-items: center;
    justify-content: center;
  }
  
  .controls > div:first-child {
    gap: var(--space-xs);
    max-width: 340px;
  }
  
  .controls > div:last-child {
    gap: var(--space-xs);
    max-width: 340px;
  }
  
  .form-control {
    height: 44px;
  }
  
  .ai-record-btn {
    height: 44px;
    font-size: var(--text-xs);
    padding: var(--space-xs) var(--space-sm);
  }
  
  .ai-record-btn svg {
    width: 12px;
    height: 12px;
  }
  
  .btn {
    height: 44px;
    font-size: var(--text-xs);
    padding: var(--space-xs);
  }
  
  .btn-lg {
    height: 44px;
    font-size: var(--text-sm);
    padding: var(--space-xs);
  }
  
  .spin-button {
    height: 56px !important;
    font-size: var(--text-base) !important;
    padding: var(--space-md) !important;
  }
  
  .btn-sm {
    height: 44px;
    font-size: var(--text-xs);
    padding: var(--space-xs);
  }
  
  .names-list {
    max-height: 100px;
  }
  
  .theme-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--space-xs);
    max-height: none;
  }
  
  .theme-card {
    padding: var(--space-xs);
    min-height: 70px;
  }
  
  .theme-preview {
    font-size: 1.2rem;
    height: auto;
    margin-bottom: var(--space-xs);
  }
  
  .theme-card h3 {
    font-size: var(--text-xs);
    line-height: 1.1;
  }
  
  .theme-card p {
    display: none;
  }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 90%;
  }
  
  #wheel {
    width: 450px !important;
    height: 450px !important;
    margin: 0 auto;
    display: block;
  }
  
  .controls > div:first-child {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .form-control {
    min-width: 200px;
  }
}

.wheel-container {
  margin: var(--space-2xl) auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px 20px 20px; /* Extra padding at top for pointer visibility */
}

/* Bright yellow button */
.btn-bright-yellow {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #333;
  border: 2px solid #ffd700;
  font-weight: 600;
  text-shadow: none;
}

.btn-bright-yellow:hover {
  background: linear-gradient(135deg, #ffed4e, #ffd700);
  border-color: #ffed4e;
  color: #222;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.btn-bright-yellow:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Text wrapping styles */
.editable-name {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  white-space: normal;
  display: inline-block;
  max-width: 100%;
}

.names-list {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.form-control {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* Theme card text wrapping */
.theme-card h3 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.theme-card p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Edit Modal Styles */
.edit-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.edit-modal-dialog {
  background: white;
  padding: 30px;
  border-radius: 15px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.edit-modal-title {
  margin-bottom: 20px;
  color: #333;
  font-size: 1.5rem;
  font-weight: 600;
}

.edit-modal-subtitle {
  margin-bottom: 15px;
  color: #666;
  font-size: 1rem;
}

.edit-modal-input {
  width: 100%;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 20px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s ease;
}

.edit-modal-input:focus {
  border-color: #059669;
}

.edit-modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.edit-modal-btn {
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.edit-modal-btn-update {
  background: #059669;
  color: white;
}

.edit-modal-btn-update:hover {
  background: #047857;
  transform: translateY(-1px);
}

.edit-modal-btn-remove {
  background: #dc2626;
  color: white;
}

.edit-modal-btn-remove:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.edit-modal-btn-cancel {
  background: #6b7280;
  color: white;
}

.edit-modal-btn-cancel:hover {
  background: #4b5563;
  transform: translateY(-1px);
}

/* Dark mode support for edit modal */
body.dark-mode .edit-modal-title {
  color: #f9fafb;
}

body.dark-mode .edit-modal-subtitle {
  color: #d1d5db;
}

body.dark-mode .edit-modal-input {
  background: #374151;
  border-color: #4b5563;
  color: #f9fafb;
}

body.dark-mode .edit-modal-input:focus {
  border-color: #10b981;
}

body.dark-mode .edit-modal-dialog {
  background: #1f2937;
}

/* Click to Spin Indicator */
.click-to-spin-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  width: 200px;
  height: 200px;
}

.click-to-spin-indicator.show {
  opacity: 1;
}

.curved-text-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.curved-text-element {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.65rem, 1.8vw, 1.1rem);
  font-weight: 700;
  fill: white;
  text-anchor: middle;
  filter: 
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.8))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.6))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.4))
    drop-shadow(1px 1px 5px rgba(0, 0, 0, 0.8))
    drop-shadow(-1px -1px 5px rgba(0, 0, 0, 0.8));
  animation: indicatorGlow 2s ease-in-out infinite;
}

@keyframes indicatorGlow {
  0%, 100% {
    filter: 
      drop-shadow(0 0 6px rgba(255, 255, 255, 0.8))
      drop-shadow(0 0 12px rgba(255, 255, 255, 0.6))
      drop-shadow(0 0 18px rgba(255, 255, 255, 0.4))
      drop-shadow(1px 1px 5px rgba(0, 0, 0, 0.8))
      drop-shadow(-1px -1px 5px rgba(0, 0, 0, 0.8));
    transform: scale(1);
  }
  50% {
    filter: 
      drop-shadow(0 0 9px rgba(16, 185, 129, 0.9))
      drop-shadow(0 0 15px rgba(16, 185, 129, 0.7))
      drop-shadow(0 0 21px rgba(16, 185, 129, 0.5))
      drop-shadow(1px 1px 6px rgba(0, 0, 0, 0.9))
      drop-shadow(-1px -1px 6px rgba(0, 0, 0, 0.9));
    transform: scale(1.05);
  }
}

/* Winner modal animations */
@keyframes winnerPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.95;
  }
}

/* Responsive indicator text */
@media (max-width: 768px) {
  .click-to-spin-indicator {
    width: 160px;
    height: 160px;
  }
  
  .curved-text-element {
    font-size: clamp(0.5rem, 2.2vw, 0.9rem);
  }
}

@media (max-width: 480px) {
  .click-to-spin-indicator {
    width: 120px;
    height: 120px;
  }
  
  .curved-text-element {
    font-size: clamp(0.45rem, 2.8vw, 0.75rem);
  }
}

canvas {
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 3px solid rgba(255, 255, 255, 0.8);
}

canvas:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-2xl);
}

/* Recording controls styling */
.record-btn {
  position: relative;
  overflow: hidden;
}

.record-btn.recording {
  background: linear-gradient(45deg, #ff4444, #cc0000);
  animation: recordingPulse 1s infinite;
}

.record-btn.recording::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: recordingShine 2s infinite;
}

@keyframes recordingPulse {
  0%, 100% { 
    background: linear-gradient(45deg, #ff4444, #cc0000);
    box-shadow: 0 0 5px rgba(255, 68, 68, 0.5);
  }
  50% { 
    background: linear-gradient(45deg, #ff6666, #ff0000);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.8);
  }
}

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

.download-video-btn {
  background: linear-gradient(45deg, #10b981, #047857);
  color: white;
  border: none;
  animation: downloadGlow 2s infinite;
}

@keyframes downloadGlow {
  0%, 100% { 
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
  }
  50% { 
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
  }
}

canvas.spinning {
  box-shadow: 0 0 50px rgba(102, 126, 234, 0.8), 0 0 100px rgba(118, 75, 162, 0.6);
  transform: scale(1.05);
}

/* Social Media Sharing Styles */
.social-sharing-section {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-lg) 0;
  border: 2px solid rgba(102, 126, 234, 0.3);
}

.social-title {
  color: var(--primary-600);
  margin-bottom: var(--space-md);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.social-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  padding: var(--space-md);
}

.social-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  color: white;
  position: relative;
  overflow: hidden;
  min-width: 110px;
  justify-content: center;
}

.social-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all var(--transition-normal);
  transform: translate(-50%, -50%);
}

.social-btn:hover::before {
  width: 100%;
  height: 100%;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.social-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.twitter-btn {
  background: linear-gradient(135deg, #1DA1F2, #0d8bd9);
  border-color: #1DA1F2;
}

.twitter-btn:hover {
  background: linear-gradient(135deg, #0d8bd9, #0c7abf);
  border-color: #0d8bd9;
}

.facebook-btn {
  background: linear-gradient(135deg, #4267B2, #365899);
  border-color: #4267B2;
}

.facebook-btn:hover {
  background: linear-gradient(135deg, #365899, #2d4373);
  border-color: #365899;
}

.linkedin-btn {
  background: linear-gradient(135deg, #0077B5, #005582);
  border-color: #0077B5;
}

.linkedin-btn:hover {
  background: linear-gradient(135deg, #005582, #004471);
  border-color: #005582;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25D366, #20bd5a);
  border-color: #25D366;
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, #20bd5a, #1ca851);
  border-color: #20bd5a;
}

.telegram-btn {
  background: linear-gradient(135deg, #0088cc, #006699);
  border-color: #0088cc;
}

.telegram-btn:hover {
  background: linear-gradient(135deg, #006699, #005577);
  border-color: #006699;
}

.copy-btn {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  border-color: #6b7280;
}

.copy-btn:hover {
  background: linear-gradient(135deg, #4b5563, #374151);
  border-color: #4b5563;
}

.copy-btn.copied {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #10b981;
}

.copy-btn.copied::after {
  content: ' ✓';
  font-weight: bold;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .social-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .social-btn {
    width: 100%;
    max-width: 250px;
  }
}

.controls {
  margin: var(--space-2xl) 0;
}

#nameInput {
  width: 300px;
  max-width: 100%;
}

/* AI Suggestions Button Animation */
.ai-btn {
  position: relative;
  overflow: hidden;
}

.ai-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  animation: pulseGlow 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Winner Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 2% auto;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  text-align: center;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.5s ease-out;
}

/* Flashing Lights */
.flashing-lights {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.light {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  animation: flashingLight 0.8s infinite;
}

.light:nth-child(1) { top: 10px; left: 10px; background: #ff6b6b; animation-delay: 0s; }
.light:nth-child(2) { top: 10px; right: 10px; background: #4ecdc4; animation-delay: 0.1s; }
.light:nth-child(3) { bottom: 10px; left: 10px; background: #45b7d1; animation-delay: 0.2s; }
.light:nth-child(4) { bottom: 10px; right: 10px; background: #f9ca24; animation-delay: 0.3s; }
.light:nth-child(5) { top: 50%; left: 10px; background: #6c5ce7; animation-delay: 0.4s; }
.light:nth-child(6) { top: 50%; right: 10px; background: #fd79a8; animation-delay: 0.5s; }
.light:nth-child(7) { top: 10px; left: 50%; background: #00b894; animation-delay: 0.6s; }
.light:nth-child(8) { bottom: 10px; left: 50%; background: #e17055; animation-delay: 0.7s; }

@keyframes flashingLight {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 20px currentColor; }
}

/* Winner Display */
.winner-display {
  margin: 30px 0;
  z-index: 10;
  position: relative;
}

.winner-title {
  font-size: 2.5em;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: bounce 1s infinite;
}

.winner-name {
  font-size: 3em;
  font-weight: bold;
  color: #ffd700;
  margin: 20px 0;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  animation: flashingName 1s infinite;
}

.celebration-emojis {
  font-size: 2em;
  margin: 20px 0;
  animation: wiggle 2s infinite;
}

/* Enhanced Confetti Animation */
.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1000;
}

.confetti-piece {
  position: absolute;
  pointer-events: none;
  z-index: 1001;
  will-change: transform, opacity;
}

/* Confetti burst effect styles */
.confetti-burst {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.confetti-burst .confetti-piece {
  position: absolute;
  animation: confettiBurst 3s ease-out forwards;
}

@keyframes confettiBurst {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Confetti shimmer effect */
.confetti-piece::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: confettiShimmer 1.5s infinite;
}

@keyframes confettiShimmer {
  0%, 100% { opacity: 0; transform: translateX(-100%); }
  50% { opacity: 1; transform: translateX(100%); }
}

/* Enhanced confetti colors with gradients */
.confetti-piece.gradient-1 {
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
}

.confetti-piece.gradient-2 {
  background: linear-gradient(45deg, #4ecdc4, #6bd9d2);
}

.confetti-piece.gradient-3 {
  background: linear-gradient(45deg, #45b7d1, #67c5db);
}

.confetti-piece.gradient-4 {
  background: linear-gradient(45deg, #f9ca24, #fbd558);
}

.confetti-piece.gradient-5 {
  background: linear-gradient(45deg, #6c5ce7, #8b7fed);
}

.confetti-piece.gradient-6 {
  background: linear-gradient(45deg, #fd79a8, #ff9fbf);
}

.confetti-piece.gradient-7 {
  background: linear-gradient(45deg, #00b894, #00d2b8);
}

.confetti-piece.gradient-8 {
  background: linear-gradient(45deg, #e17055, #e89078);
}

.confetti-piece.gradient-9 {
  background: linear-gradient(45deg, #a29bfe, #b9b3ff);
}

.confetti-piece.gradient-10 {
  background: linear-gradient(45deg, #ffeaa7, #fff2c7);
}

/* Modal Buttons */
.modal-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.close-btn, .remove-btn {
  padding: 15px 30px;
  font-size: 1.2em;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.close-btn {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  color: white;
}

.close-btn:hover {
  background: linear-gradient(135deg, #0984e3 0%, #0056b3 100%);
  transform: translateY(-2px);
}

.remove-btn {
  background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
  color: white;
}

.remove-btn:hover {
  background: linear-gradient(135deg, #e84393 0%, #c0392b 100%);
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@keyframes flashingName {
  0%, 100% { color: #ffd700; text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5); }
  50% { color: #fff; text-shadow: 0 0 20px #ffd700, 0 0 30px #ffd700; }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

/* Custom volume control styling to override framework */
.volume-control {
  margin: var(--space-xl) 0;
}

#volumeSlider {
  width: 200px;
}

#namesList {
  margin: 20px 0;
  padding: 20px;
  border: 2px dashed #cbd5e0;
  border-radius: 15px;
  min-height: 60px;
  background: rgba(247, 250, 252, 0.8);
  font-size: 16px;
  line-height: 1.6;
}

.editable-name {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: inline-block;
  margin: 2px;
  border: 1px solid transparent;
}

.editable-name:hover {
  background-color: #e3f2fd;
  border-color: #2196f3;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

#result {
  font-size: 2rem;
  font-weight: 700;
  margin: 30px 0;
  color: #e53e3e;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 15px;
  background: rgba(254, 215, 215, 0.3);
  border: 2px solid rgba(229, 62, 62, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

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

.spinning-glow {
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.8));
  }
  to {
    filter: drop-shadow(0 0 40px rgba(118, 75, 162, 0.8));
  }
}

/* Teams Display Styles */
.teams-container {
  margin-top: 30px;
  padding: 25px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.teams-container h3 {
  text-align: center;
  margin-bottom: 20px;
  color: white;
  font-size: 1.5em;
}

.teams-display {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.team-table {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.team-table h4 {
  margin: 0 0 15px 0;
  color: white;
  text-align: center;
  font-size: 1.2em;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.team-members {
  list-style: none;
  padding: 0;
  margin: 0;
}

.team-members li {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  margin-bottom: 5px;
  border-radius: 4px;
  color: white;
  font-weight: 500;
  border-left: 4px solid #00ff88;
}

.teams-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Everyone Turn Toggle Styles */
#everyoneTurnBtn {
  transition: all 0.3s ease;
  border: 2px solid #6c757d;
  background: transparent;
  color: #6c757d;
}

#everyoneTurnBtn:hover {
  background: #6c757d;
  color: white;
}

#everyoneTurnBtn.active {
  background: #28a745;
  border-color: #28a745;
  color: white;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

#everyoneTurnBtn.active:hover {
  background: #218838;
  border-color: #218838;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    margin: 10px;
    padding: 20px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .controls {
    flex-direction: column;
  }
  
  input {
    width: 100%;
    max-width: 300px;
  }
  
  button {
    width: 100%;
    max-width: 200px;
  }
  
  #result {
    font-size: 1.5rem;
  }
  
  .teams-display {
    grid-template-columns: 1fr;
  }
}

/* How To Guide Styles */
.how-to-guide {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-top: 3px solid var(--primary-500);
  margin-top: var(--space-xl);
  width: 100%;
  position: relative;
  clear: both;
}

.how-to-header {
  border-bottom: 2px solid var(--primary-200);
  padding-bottom: var(--space-lg);
}

.how-to-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--primary-500);
}

.how-to-section h3 {
  color: var(--primary-600);
  margin-bottom: var(--space-md);
}

.feature-icon {
  font-size: 1.5rem;
  margin-right: var(--space-sm);
}

.how-to-content {
  display: grid;
  gap: var(--space-md);
}

.feature-item {
  background: #f8f9fa;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-300);
  line-height: 1.6;
}

.feature-item strong {
  color: var(--primary-600);
  margin-right: var(--space-sm);
}

/* Dark mode how-to guide styles */
body.dark-mode .how-to-guide {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.8) 100%);
  border-top-color: var(--primary-400);
}

body.dark-mode .how-to-header {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .how-to-header h2 {
  color: var(--neutral-100);
}

body.dark-mode .how-to-header p {
  color: var(--neutral-300);
}

body.dark-mode .how-to-section {
  background: rgba(51, 65, 85, 0.6);
  border-left-color: var(--primary-400);
  color: var(--neutral-100);
}

body.dark-mode .how-to-section h3 {
  color: var(--primary-400);
}

body.dark-mode .feature-item {
  background: rgba(30, 41, 59, 0.6);
  border-left-color: var(--primary-400);
  color: var(--neutral-100);
}

body.dark-mode .feature-item strong {
  color: var(--primary-400);
}

@media (max-width: 768px) {
  .how-to-guide {
    margin-top: var(--space-lg);
    text-align: center;
  }
  
  .how-to-header {
    text-align: center;
  }
  
  .how-to-section {
    padding: var(--space-lg);
    text-align: center;
  }
  
  .how-to-section h3 {
    text-align: center;
  }
  
  .how-to-content {
    text-align: center;
  }
  
  .feature-item {
    padding: var(--space-sm);
    text-align: center;
  }
}

/* ===== GOOGLE ADSENSE STYLING ===== */

/* Ad Container Styling */
.ad-container {
  width: 100%;
  margin: 20px auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.ad-container:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Dark mode ad styling */
[data-theme="dark"] .ad-container {
  background: #1f2937;
  border-color: #374151;
}

/* Google branding text */
.ad-google-text {
  position: absolute;
  top: 4px;
  right: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 10px;
  color: #9ca3af;
  font-weight: 500;
  letter-spacing: 0.5px;
}

[data-theme="dark"] .ad-google-text {
  color: #6b7280;
}

/* Ad content styling */
.ad-content {
  padding: 16px;
  padding-top: 24px;
}

.ad-headline {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1e40af;
  line-height: 1.3;
  margin-bottom: 8px;
  cursor: pointer;
  text-decoration: none;
}

.ad-headline:hover {
  text-decoration: underline;
}

[data-theme="dark"] .ad-headline {
  color: #60a5fa;
}

.ad-description {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.4;
  margin-bottom: 8px;
}

[data-theme="dark"] .ad-description {
  color: #d1d5db;
}

.ad-url {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  color: #059669;
  font-weight: 500;
}

[data-theme="dark"] .ad-url {
  color: #34d399;
}

/* Banner ad styling */
.ad-banner-top,
.ad-banner-bottom {
  max-width: 728px;
  min-height: 90px;
}

/* Mobile rectangle ad styling */
.ad-mobile-rectangle {
  max-width: 300px;
  min-height: 250px;
  margin: 20px auto;
}

/* Show AdSense elements and hide placeholders when AdSense is active */
.ad-container .adsbygoogle {
  display: block !important;
}

.ad-container .ad-placeholder {
  display: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .ad-banner-top,
  .ad-banner-bottom {
    max-width: 320px;
    min-height: 50px;
    margin: 15px auto;
  }
  
  .ad-content {
    padding: 12px;
    padding-top: 20px;
  }
  
  .ad-headline {
    font-size: 14px;
  }
  
  .ad-description {
    font-size: 13px;
  }
  
  .ad-mobile-rectangle {
    max-width: 280px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .ad-banner-top,
  .ad-banner-bottom {
    margin: 10px auto;
  }
  
  .ad-mobile-rectangle {
    margin: 15px auto;
  }
}

/* Hide mobile ads on desktop and banner ads on small mobile */
@media (min-width: 769px) {
  .ad-mobile-rectangle {
    display: none;
  }
}

@media (max-width: 320px) {
  .ad-banner-top,
  .ad-banner-bottom {
    display: none;
  }
}
