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

/* CSS Değişkenleri - Tema Sistemi */
:root {
  /* Dark Theme (Varsayılan) */
  --bg-primary: #0a0a0f;
  --bg-secondary: #1e0b30;
  --bg-tertiary: #270d3e;
  --bg-modal: rgba(10, 10, 15, 0.95);
  --bg-input: #250538;
  --bg-card: #2d004b;
  --bg-header: rgba(30, 11, 48, 0.9);

  --text-primary: #eee;
  --text-secondary: #f8a1ff;
  --text-accent: #ff5cff;
  --text-muted: #c085ff;

  --border-color: #d13cf7;
  --border-hover: #ff33cc;

  --gradient-primary: linear-gradient(145deg, #1e0b30, #270d3e);
  --gradient-secondary: linear-gradient(135deg, #8e2de2, #4a00e0);
  --gradient-accent: linear-gradient(135deg, #FF6B35, #F7931E);

  --shadow-primary: 0 0 15px #d13cf7aa;
  --shadow-accent: 0 0 20px #ff00ffaa;
  --shadow-hover: 0 8px 25px rgba(78, 36, 255, 0.7);

  --button-primary: #ff33cc;
  --button-hover: #e600b8;
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f3f4;
  --bg-modal: rgba(255, 255, 255, 0.95);
  --bg-input: #ffffff;
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.9);

  --text-primary: #2c3e50;
  --text-secondary: #6b46c1;
  --text-accent: #9333ea;
  --text-muted: #6b7280;

  --border-color: #e5e7eb;
  --border-hover: #9333ea;

  --gradient-primary: linear-gradient(145deg, #ffffff, #f1f3f4);
  --gradient-secondary: linear-gradient(135deg, #9333ea, #6b46c1);
  --gradient-accent: linear-gradient(135deg, #FF6B35, #F7931E);

  --shadow-primary: 0 0 15px rgba(147, 51, 234, 0.2);
  --shadow-accent: 0 0 20px rgba(147, 51, 234, 0.3);
  --shadow-hover: 0 8px 25px rgba(147, 51, 234, 0.4);

  --button-primary: #9333ea;
  --button-hover: #7c3aed;
}

/* Tema Değiştirme Butonu */
.theme-toggle-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.theme-toggle-btn {
  background: var(--gradient-secondary);
  border: none;
  color: var(--text-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-primary);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin: 0;
  padding: 0;
}

.theme-toggle-btn:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.1);
}

.theme-icon {
  transition: transform 0.3s ease;
}

.theme-toggle-btn:hover .theme-icon {
  transform: rotate(180deg);
}

/* Reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header Logo Styles */
.main-header {
  background: var(--bg-header);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-primary);
  transition: all 0.3s ease;
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

.logo-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-color);
  box-shadow: var(--shadow-primary);
  transition: all 0.3s ease;
}

.logo-image:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: scale(1.05);
}

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

.logo-text h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 600;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.logo-text p {
  margin: 5px 0 0 0;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

@media (max-width: 768px) {
  .header-logo {
    flex-direction: column;
    gap: 15px;
  }

  .logo-image {
    width: 60px;
    height: 60px;
  }

  .logo-text h1 {
    font-size: 2rem;
  }

  .logo-text p {
    font-size: 0.9rem;
  }

  .header-content {
    padding: 15px;
  }
}

/* Header area for auth/profile */
.header-area {
  display: flex;
  justify-content: flex-end;
  padding: 20px;
  background: var(--bg-modal);
}

/* Auth buttons ve Profile section */
#auth-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

#profile-section {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-header);
  padding: 10px 15px;
  border-radius: 25px;
  box-shadow: var(--shadow-primary);
}

#profile-section .greeting {
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}

.container {
  flex: 1;
  display: flex;
  gap: 1rem;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
  width: 100%;
}

/* Sol taraf video analiz paneli */
.video-panel {
  flex: 2;
  background: var(--gradient-primary);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-primary);
  display: flex;
  flex-direction: column;
}

.video-panel h2 {
  color: var(--text-accent);
  margin-bottom: 15px;
  text-shadow: var(--shadow-accent);
}

label {
  margin: 10px 0 5px;
  display: block;
  font-weight: 600;
  color: var(--text-secondary);
}

input[type="text"],
select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Custom File Upload */
.file-upload-wrapper {
  position: relative;
  width: 100%;
  margin-top: 10px;
}

#video-file {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-upload-display {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  background: var(--gradient-primary);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-primary);
}

.file-upload-display:hover {
  border-color: var(--border-hover);
  background: var(--gradient-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.file-upload-icon {
  font-size: 1.5rem;
  color: var(--text-accent);
}

.file-upload-text {
  flex: 1;
}

.file-upload-text .main-text {
  font-weight: 600;
  color: var(--text-secondary);
}

.file-upload-text .sub-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.file-selected {
  border-color: #00ff88;
  background: var(--bg-card);
}

.file-selected .file-upload-icon {
  color: #00ff88;
}

.file-selected .main-text {
  color: #00ff88;
}

input[type="file"] {
  margin-top: 10px;
  color: var(--text-primary);
}

button {
  margin-top: 20px;
  background: var(--button-primary);
  border: none;
  color: white;
  font-weight: 700;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: var(--shadow-accent);
  transition: background-color 0.3s ease;
}

button:hover {
  background: var(--button-hover);
}

.result {
  margin-top: 25px;
  background: var(--bg-card);
  padding: 18px;
  border-radius: 10px;
  font-size: 1.1rem;
  text-align: center;
  color: var(--text-secondary);
  text-shadow: var(--shadow-accent);
  min-height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Keşfet saatleri tablosu */
.discover-times {
  margin-top: auto;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 15px;
  box-shadow: var(--shadow-primary);
  border: 1px solid var(--border-color);
}

.discover-times h3 {
  color: var(--text-accent);
  margin-bottom: 10px;
  text-align: center;
  text-shadow: var(--shadow-accent);
}

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-secondary);
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  font-weight: 600;
}

th {
  background: var(--bg-tertiary);
  color: var(--text-accent);
}

/* Sağ taraf Shopier ürün paneli */
.shopier-panel {
  flex: 1;
  background: var(--gradient-primary);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-secondary);
}

.shopier-panel h2 {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: var(--shadow-accent);
  color: var(--text-accent);
}

.product-card {
  background: var(--bg-card);
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  width: 100%;
  border: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.product-card img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

.product-card h3 {
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-accent);
}

.product-card p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.product-card a {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 30px;
  background: var(--button-primary);
  color: white;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-accent);
  transition: background-color 0.3s ease;
}

.product-card a:hover {
  background: var(--button-hover);
}

/* Grid Layout Mobil Uyumluluk */
@media (max-width: 768px) {
  .services-grid-layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .service-card {
    padding: 15px;
  }

  .service-header .service-icon {
    font-size: 2rem;
  }

  .platform-badge {
    font-size: 0.7rem;
    padding: 3px 6px;
  }

  .service-title {
    font-size: 1.1rem;
  }

  .service-description {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .services-grid-layout {
    gap: 12px;
  }

  .service-card {
    padding: 12px;
  }

  .service-header {
    margin-bottom: 12px;
  }

  .service-content {
    margin-bottom: 12px;
  }
}

/* Responsive mobil */
@media (max-width: 900px) {
  .header-area {
    padding: 10px;
  }

  .container {
    flex-direction: column;
    padding: 10px;
  }

  .video-panel,
  .shopier-panel {
    flex: unset;
    width: 100%;
  }

  #auth-buttons,
  #profile-section {
    font-size: 0.9rem;
  }

  #profile-section .greeting {
    display: block;
    /* Mobilde de kullanıcı adını göster */
    font-size: 0.8rem;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Hizmetler Modal Stilleri */
#services-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#services-modal.active {
  opacity: 1;
}

.services-modal-content {
  background: var(--gradient-primary);
  border-radius: 20px;
  max-width: 1000px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.7);
  transition: transform 0.3s ease;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-primary);
}

#services-modal.active .services-modal-content {
  transform: scale(1);
}

.modal-header {
  background: var(--gradient-secondary);
  padding: 20px;
  border-radius: 18px 18px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-header h2 {
  margin: 0;
  color: white;
  font-size: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.modal-header .close {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.modal-header .close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.modal-body {
  padding: 30px 20px;
}

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

/* Grid Layout Stilleri */
.services-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(209, 60, 247, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(209, 60, 247, 0.4);
  border-color: rgba(209, 60, 247, 0.5);
}

.premium-card {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.1) 100%);
  border: 2px solid #FFD700;
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.premium-card:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 165, 0, 0.15) 100%);
  box-shadow: 0 10px 35px rgba(255, 215, 0, 0.5);
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.service-header .service-icon {
  font-size: 2.5rem;
  min-width: auto;
}

.platform-badge {
  background: var(--gradient-secondary);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.service-content {
  flex: 1;
  margin-bottom: 15px;
}

.service-title {
  color: #ff7bff;
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.service-category {
  background: rgba(142, 45, 226, 0.2);
  color: var(--text-accent);
  padding: 1px 4px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 6px;
}

.service-description {
  color: #c085ff;
  margin: 0 0 12px 0;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.9;
}

.service-content .service-price {
  color: #00ff88;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0;
}

.service-footer {
  margin-top: auto;
}

.service-footer .service-btn {
  width: 100%;
  text-align: center;
  padding: 12px;
  font-size: 0.95rem;
}

.service-category-old {
  background: var(--gradient-primary);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-primary);
}

.service-category h3 {
  color: var(--text-accent);
  margin-bottom: 15px;
  font-size: 1.2rem;
  text-align: center;
  text-shadow: var(--shadow-accent);
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(209, 60, 247, 0.2);
}

.service-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(209, 60, 247, 0.4);
}

.service-icon {
  font-size: 2rem;
  min-width: 50px;
  text-align: center;
}

.service-info {
  flex: 1;
}

.service-info h4 {
  color: #ff7bff;
  margin: 0 0 5px 0;
  font-size: 1.1rem;
}

.service-info p {
  color: #c085ff;
  margin: 0 0 10px 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.service-price {
  color: #00ff88;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.service-btn {
  background: linear-gradient(135deg, #ff33cc, #8e2de2);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(255, 51, 204, 0.4);
}

.service-btn:hover {
  background: linear-gradient(135deg, #e600b8, #7a28c9);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(255, 51, 204, 0.6);
}

/* Premium kategori özel stilleri */
.premium-category {
  background: var(--gradient-primary);
  box-shadow: var(--shadow-primary);
  padding: 25px;
  border-radius: 20px;
  border: 2px solid #FFD700;
  position: relative;
}

.premium-category h3 {
  color: #FFD700;
  text-shadow: 0 0 10px #FFD700aa;
  margin-top: 0;
  margin-bottom: 20px;
}

.premium-item {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.premium-item:hover {
  background: var(--bg-tertiary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.premium-btn {
  background: var(--gradient-accent);
  color: white;
  font-weight: 600;
}

.premium-btn:hover {
  background: var(--gradient-accent);
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Garanti kutusu */
.services-footer {
  margin-top: 30px;
}

.guarantee-box {
  background: var(--bg-card);
  border: 2px solid #00ff88;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
  transition: background-color 0.3s ease;
}

.guarantee-box h4 {
  color: #00ff88;
  margin-bottom: 15px;
  text-shadow: 0 0 10px #00ff88aa;
}

.guarantee-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.guarantee-box li {
  color: var(--text-primary);
  font-weight: 600;
}

/* Custom Scrollbar */
.services-modal-content::-webkit-scrollbar,
.profile-modal-content::-webkit-scrollbar {
  width: 8px;
}

.services-modal-content::-webkit-scrollbar-track,
.profile-modal-content::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

.services-modal-content::-webkit-scrollbar-thumb,
.profile-modal-content::-webkit-scrollbar-thumb {
  background: var(--gradient-secondary);
  border-radius: 4px;
}

.services-modal-content::-webkit-scrollbar-thumb:hover,
.profile-modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-secondary);
  opacity: 0.8;
}

/* Loading Spinner */
.loading-message {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-primary);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(209, 60, 247, 0.3);
  border-left: 4px solid #d13cf7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-message p {
  font-size: 1.1rem;
  margin: 0;
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
  .services-modal-content {
    width: 98%;
    max-height: 95vh;
    margin: 10px;
  }

  .modal-header {
    padding: 15px;
  }

  .modal-header h2 {
    font-size: 1.2rem;
  }

  .modal-body {
    padding: 20px 15px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .service-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

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

  .guarantee-box ul {
    grid-template-columns: 1fr;
  }

  .guarantee-box {
    padding: 15px;
  }
}

/* Profil Modal Stilleri */
#profile-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#profile-modal.active {
  opacity: 1;
}

.profile-modal-content {
  background: var(--gradient-primary);
  border-radius: 20px;
  max-width: 600px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.7);
  transition: transform 0.3s ease;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-primary);
}

#profile-modal.active .profile-modal-content {
  transform: scale(1);
}

.profile-modal-body {
  padding: 30px 25px;
}

/* Profil Avatar Bölümü */
.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(142, 45, 226, 0.3);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  box-shadow: var(--shadow-primary);
}

.profile-username h3 {
  margin: 0 0 5px 0;
  color: var(--text-secondary);
  font-size: 1.5rem;
}

.profile-username p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.avatar-upload-btn {
  background: var(--gradient-secondary);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-primary);
}

.avatar-upload-btn:hover {
  background: var(--gradient-secondary);
  opacity: 0.9;
  transform: translateY(-1px);
}

.avatar-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.avatar-delete-btn {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.avatar-delete-btn:hover {
  background: #c0392b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* Form Bölümleri */
.form-section {
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(142, 45, 226, 0.2);
}

.form-section h4 {
  color: var(--text-accent);
  margin: 0 0 15px 0;
  font-size: 1.1rem;
  text-shadow: var(--shadow-accent);
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

.input-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--border-hover);
  box-shadow: var(--shadow-primary);
}

.input-group input::placeholder {
  color: var(--text-muted);
}

/* Profil Butonları */
.profile-buttons {
  display: flex;
  gap: 10px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.profile-buttons button {
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 140px;
}

.save-btn {
  background: linear-gradient(135deg, #00b894, #00a085);
  color: white;
  box-shadow: 0 5px 15px rgba(0, 184, 148, 0.4);
}

.save-btn:hover {
  background: linear-gradient(135deg, #00a085, #008970);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 184, 148, 0.6);
}

.password-btn {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.password-btn:hover {
  background: linear-gradient(135deg, #f7931e, #e67e22);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

.cancel-btn {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.cancel-btn:hover {
  background: linear-gradient(135deg, #c0392b, #a93226);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6);
}

/* Hesap İstatistikleri */
.account-stats {
  margin-top: 30px;
  padding: 20px;
  background: linear-gradient(145deg, #0a3d0a, #0f4f0f);
  border-radius: 15px;
  border: 1px solid #00ff88;
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.account-stats h4 {
  color: #00ff88;
  margin: 0 0 15px 0;
  text-align: center;
  text-shadow: 0 0 10px #00ff88aa;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background: rgba(0, 255, 136, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.stat-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00ff88;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.8rem;
  color: #66ffaa;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-modal-content {
    width: 98%;
    max-height: 95vh;
  }

  .profile-modal-body {
    padding: 20px 15px;
  }

  .profile-avatar-section {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .profile-buttons {
    flex-direction: column;
  }

  .profile-buttons button {
    min-width: auto;
  }

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

/* ========== ETKİNLİK MODALI VE ANA SAYFA ETKİNLİK BÖLÜMÜ ========== */

/* Etkinlikler Modal */
#events-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-modal);
  backdrop-filter: blur(15px);
  z-index: 1000;
  animation: none;
  transition: all 0.3s ease;
}

#events-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.3s ease forwards;
}

.events-modal-content {
  background: var(--bg-secondary);
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-accent);
  transform: scale(0.8);
  transition: all 0.3s ease;
}

#events-modal.active .events-modal-content {
  transform: scale(1);
}

/* Ana Sayfa Etkinlik Bölümü */
.events-section {
  margin: 40px 0;
  padding: 40px 0;
  background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
  border-radius: 25px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-primary);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 0 20px;
}

.section-header h2 {
  color: var(--text-accent);
  font-size: 2rem;
  margin: 0;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.show-all-btn {
  background: var(--gradient-accent);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.show-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

/* Etkinlik Grid Sistemi */
.homepage-events-grid,
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  padding: 0 20px;
}

.event-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-primary);
  position: relative;
}

.event-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.event-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
}

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

.event-content {
  padding: 20px;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  gap: 10px;
}

.event-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
  flex: 1;
}

.event-price {
  background: var(--gradient-accent);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
}

.event-date {
  background: var(--gradient-secondary);
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: inline-block;
  box-shadow: 0 3px 10px rgba(142, 45, 226, 0.3);
}

.event-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-footer {
  display: flex;
  gap: 10px;
  align-items: center;
}

.event-btn {
  margin-top: 0;
  background: var(--gradient-secondary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  flex: 1;
  box-shadow: 0 3px 10px rgba(142, 45, 226, 0.3);
}

.event-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(142, 45, 226, 0.5);
}

.event-btn.store-btn {
  background: var(--gradient-accent);
  box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
}

.event-btn.store-btn:hover {
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

/* Etkinlik yükleniyor durumu */
.events-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

/* Boş durum mesajı */
.no-events-message {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}

.empty-state h3 {
  color: var(--text-primary);
  margin: 0 0 10px 0;
  font-size: 1.5rem;
}

.empty-state p {
  margin: 0;
  font-size: 1rem;
}

/* Responsive Etkinlik Tasarımı */
@media (max-width: 768px) {
  .events-modal-content {
    width: 95%;
    max-height: 90vh;
    margin: 20px;
  }

  .section-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .homepage-events-grid,
  .events-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .event-card {
    margin: 0;
  }

  .event-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .event-price {
    align-self: flex-end;
  }

  .event-footer {
    flex-direction: column;
  }

  .events-section {
    margin: 20px 0;
    padding: 30px 0;
  }
}

@media (max-width: 480px) {
  .event-content {
    padding: 15px;
  }

  .event-title {
    font-size: 1.1rem;
  }

  .event-image {
    height: 150px;
  }

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

  .empty-state h3 {
    font-size: 1.2rem;
  }
}

/* TikTok Modal Styles */
#tiktok-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-modal);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

#tiktok-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tiktok-modal-content {
  background: var(--bg-secondary);
  border-radius: 16px;
  box-shadow: var(--shadow-primary);
  border: 1px solid var(--border-color);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.7);
  opacity: 0;
  transition: all 0.3s ease;
}

#tiktok-modal.active .tiktok-modal-content {
  transform: scale(1);
  opacity: 1;
}

.tiktok-modal-body {
  padding: 24px;
}

.tiktok-form-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tiktok-form-container form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tiktok-form-container .input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tiktok-form-container .input-group label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.tiktok-form-container .input-group input {
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--bg-input);
  color: var(--text-primary);
  outline: none;
  transition: border 0.2s;
}

.tiktok-form-container .input-group input:focus {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.download-btn {
  background: linear-gradient(135deg, #FF0050, #00F2EA);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 0;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(255, 0, 80, 0.3);
}

.download-btn:hover {
  background: linear-gradient(135deg, #E6004C, #00D4CC);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 0, 80, 0.4);
}

.download-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.status-message {
  min-height: 24px;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
}

.status-message.success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-message.loading {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.video-preview {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-preview video {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  display: block;
}

@media (max-width: 768px) {
  .tiktok-modal-content {
    width: 95%;
    max-height: 85vh;
  }

  .tiktok-modal-body {
    padding: 20px;
  }

  .tiktok-form-container {
    gap: 16px;
  }

  .download-btn {
    padding: 12px 0;
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  #auth-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  #auth-buttons button {
    width: 100%;
    min-width: unset;
  }
}