:root {
  --tg-theme-bg-color: #0a0a0a;
  --tg-theme-text-color: #ffffff;
  --tg-theme-hint-color: #666666;
  --tg-theme-link-color: #ff0080;
  --tg-theme-button-color: #ff0080;
  --tg-theme-button-text-color: #ffffff;
  --pink-primary: #ff0080;
  --pink-light: #ff3399;
  --pink-dark: #cc0066;
  --black-primary: #0a0a0a;
  --black-secondary: #1a1a1a;
  --black-tertiary: #2a2a2a;
}

/* Prevent external SVG loading errors */
*::before, *::after {
  background-image: none !important;
}

body {
  background-color: var(--black-primary);
  color: var(--tg-theme-text-color);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(env(safe-area-inset-bottom) + 80px);
  transition: opacity ease-in 0.2s;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

body[unresolved] {
  opacity: 0;
  display: block;
  overflow: hidden;
  position: relative;
}

.page {
  display: none !important;
  animation: fadeIn 0.2s ease-in;
  width: 100%;
  min-height: 100vh;
}

.page.active {
  display: block !important;
}

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

@keyframes slideIn {
  from { 
    opacity: 0; 
    transform: translateX(-20px) scale(0.95);
  }
  to { 
    opacity: 1; 
    transform: translateX(0) scale(1);
  }
}

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

.animate-slide-in {
  animation: slideIn 0.4s ease-out forwards;
}

.animate-fade-in {
  animation: fadeInUp 0.3s ease-out forwards;
}

/* Schedule tab enhancements */
.schedule-tab {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.schedule-tab:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

.schedule-tab.active {
  color: white !important;
}

#tab-indicator {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: var(--black-secondary);
  border: 1px solid rgba(255, 0, 128, 0.2);
  border-radius: 24px;
  padding: 6px;
  padding-bottom: calc(env(safe-area-inset-bottom) + 6px);
  z-index: 50;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(255, 0, 128, 0.15), 0 0 0 1px rgba(255, 0, 128, 0.1);
}

.bottom-nav::before {
  content: '';
  position: absolute;
  bottom: -16px;
  left: -12px;
  right: -12px;
  height: calc(100% + 32px);
  background: rgba(255, 0, 128, 0.08);
  border: 1px solid rgba(255, 0, 128, 0.15);
  border-radius: 32px;
  z-index: -1;
  backdrop-filter: blur(10px);
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.blur-preview {
  filter: blur(20px);
  pointer-events: none;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: none;
}

.modal-overlay.active {
  display: flex;
  align-items: flex-end;
  animation: fadeIn 0.2s ease-in;
}

.modal-content {
  background: white;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.gradient-bg {
  background: linear-gradient(135deg, #ff0080 0%, #ff3399 50%, #ff0080 100%);
}

.nav-btn {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn.active {
  color: var(--pink-primary);
}

.nav-btn.active::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 0, 128, 0.1);
  border-radius: 16px;
  z-index: -1;
}

.nav-btn:active {
  transform: scale(0.95);
}

.creator-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.creator-card:active {
  transform: scale(0.98);
}

.glass-card {
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pink-glow {
  box-shadow: 0 0 20px rgba(255, 0, 128, 0.3);
}

/* Creator Dashboard Styles */
.creator-dashboard {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

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

.dashboard-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 10px;
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.kpi-card {
  background: var(--black-secondary);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s, border-color 0.2s;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 0, 128, 0.3);
}

.kpi-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.kpi-icon.balance {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.kpi-icon.earnings {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.kpi-icon.subscribers {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.kpi-icon.lives {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.kpi-content {
  flex: 1;
}

.kpi-label {
  color: var(--tg-theme-hint-color);
  font-size: 13px;
  margin: 0 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-value {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.kpi-change {
  font-size: 12px;
  margin: 0;
}

.kpi-change.positive {
  color: #43e97b;
}

.kpi-change.negative {
  color: #f5576c;
}

.kpi-link {
  color: var(--pink-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.kpi-link:hover {
  text-decoration: underline;
}

/* Quick Actions */
.quick-actions-section {
  margin-bottom: 30px;
}

.quick-actions-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px 0;
}

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

.quick-action-btn {
  background: var(--black-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--tg-theme-text-color);
}

.quick-action-btn:hover {
  border-color: var(--pink-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 128, 0.2);
}

.quick-action-btn.primary {
  background: linear-gradient(135deg, var(--pink-primary), var(--pink-light));
  border-color: var(--pink-primary);
}

.quick-action-btn i {
  font-size: 32px;
}

.quick-action-btn span {
  font-size: 14px;
  font-weight: 500;
}

/* Dashboard Content Grid */
.dashboard-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.dashboard-card {
  background: var(--black-secondary);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.dashboard-card.full-width {
  grid-column: 1 / -1;
  margin-bottom: 30px;
}

.card-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-all {
  color: var(--pink-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.view-all:hover {
  text-decoration: underline;
}

.card-content {
  padding: 20px;
}

/* Transactions List */
.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.transaction-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--black-tertiary);
  border-radius: 10px;
}

.transaction-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.transaction-icon.earning {
  background: rgba(67, 233, 123, 0.1);
  color: #43e97b;
}

.transaction-icon.withdrawal {
  background: rgba(245, 87, 108, 0.1);
  color: #f5576c;
}

.transaction-details {
  flex: 1;
}

.transaction-title {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 500;
}

.transaction-date {
  margin: 0;
  font-size: 12px;
  color: var(--tg-theme-hint-color);
}

.transaction-amount {
  font-size: 16px;
  font-weight: 600;
}

.transaction-amount.earning {
  color: #43e97b;
}

.transaction-amount.withdrawal {
  color: #f5576c;
}

/* Messages Preview */
.messages-preview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message-preview-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--black-tertiary);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}

.message-preview-item:hover {
  background: rgba(255, 0, 128, 0.1);
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

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

.message-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.message-preview-name {
  font-size: 14px;
  font-weight: 500;
}

.message-preview-time {
  font-size: 12px;
  color: var(--tg-theme-hint-color);
}

.message-preview-text {
  margin: 0;
  font-size: 13px;
  color: var(--tg-theme-hint-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unread-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--pink-primary);
  border-radius: 50%;
}

/* Scheduled Lives */
.scheduled-lives-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.scheduled-live-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: var(--black-tertiary);
  border-radius: 12px;
  align-items: center;
}

.live-thumbnail {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--pink-primary), var(--pink-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.live-details {
  flex: 1;
  min-width: 0;
}

.live-details h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
}

.live-description {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: var(--tg-theme-hint-color);
}

.live-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: var(--tg-theme-hint-color);
}

.live-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.live-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--tg-theme-hint-color);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  margin: 0 0 20px 0;
  font-size: 14px;
}

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

.modal-content {
  background: var(--black-secondary);
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.close-modal {
  background: none;
  border: none;
  color: var(--tg-theme-text-color);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: var(--black-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--tg-theme-text-color);
  font-size: 14px;
}

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

.form-group input.empty-field,
.form-group textarea.empty-field,
.form-group select.empty-field {
  border: 2px solid rgba(255, 0, 128, 0.5);
  background: rgba(255, 0, 128, 0.05);
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Tag Input Styles */
.tag-input-container {
  width: 100%;
  min-height: 50px;
  max-height: 150px;
  overflow-y: auto;
  padding: 8px;
  background: var(--black-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
  cursor: text;
}

.tag-input-container:focus-within {
  border-color: var(--pink-primary);
}

.tag-input-container .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 0 0 auto;
  max-width: 100%;
}

.tag-input-container .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--pink-primary), var(--pink-light));
  color: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  animation: tagAppear 0.2s ease;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes tagAppear {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.tag-input-container .tag .remove {
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.tag-input-container .tag .remove:hover {
  opacity: 1;
}

.tag-input-container input {
  flex: 1 1 120px;
  min-width: 120px;
  max-width: 100%;
  border: none;
  background: transparent;
  color: var(--tg-theme-text-color);
  font-size: 14px;
  padding: 6px;
  outline: none;
}

.tag-input-container input::placeholder {
  color: #666;
}

.tag-input-container.max-tags input {
  display: none;
}

/* Suggested Tags */
.suggested-tags {
  margin-top: 8px;
}

.suggested-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.suggested-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.suggested-tag:hover {
  background: rgba(255, 0, 128, 0.1);
  border-color: var(--pink-primary);
  color: var(--pink-primary);
  transform: translateY(-1px);
}

.suggested-tag.added {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* Button Styles */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.btn-primary:hover {
  background: var(--pink-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 0, 128, 0.3);
}

.btn-secondary {
  background: var(--black-tertiary);
  color: var(--tg-theme-text-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: rgba(245, 87, 108, 0.1);
  color: #f5576c;
  border: 1px solid rgba(245, 87, 108, 0.2);
}

.btn-danger:hover {
  background: rgba(245, 87, 108, 0.2);
}

.btn-small {
  padding: 8px 16px;
  font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .header-actions {
    width: 100%;
  }
  
  .header-actions .btn {
    flex: 1;
    justify-content: center;
  }
  
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dashboard-content-grid {
    grid-template-columns: 1fr;
  }
  
  .scheduled-live-item {
    flex-direction: column;
    text-align: center;
  }
  
  .live-actions {
    width: 100%;
  }
  
  .live-actions .btn {
    flex: 1;
  }
}

/* Creator Registration Styles */
.register-container {
  max-width: 600px;
  margin: 0 auto;
  background: #1a1a1a;
  border-radius: 20px;
  border: 1px solid rgba(255, 0, 128, 0.2);
  box-shadow: 0 20px 60px rgba(255, 0, 128, 0.15);
  overflow: hidden;
}

.register-header {
  background: linear-gradient(135deg, #ff0080 0%, #cc0066 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

.register-header h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.register-header p {
  opacity: 0.9;
  font-size: 14px;
}

.register-content {
  padding: 40px;
  background: #1a1a1a;
  color: #ffffff;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #2a2a2a;
  z-index: -1;
}

.step:last-child::after {
  display: none;
}

.step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2a2a2a;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #666;
}

.step.active .step-circle {
  background: #ff0080;
  color: white;
  box-shadow: 0 0 20px rgba(255, 0, 128, 0.5);
}

.step.completed .step-circle {
  background: #22c55e;
  color: white;
}

.step-label {
  font-size: 12px;
  color: #666;
}

.step.active .step-label {
  color: #ff0080;
  font-weight: 600;
}

.form-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.form-section.active {
  display: block;
}

.form-section h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
  color: var(--tg-theme-text-color);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  color: #ccc;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group h3 {
  color: #fff;
  margin-bottom: 15px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #2a2a2a;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #0a0a0a;
  color: #fff;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #ff0080;
  box-shadow: 0 0 0 3px rgba(255, 0, 128, 0.1);
}

.upload-area {
  border: 2px dashed #2a2a2a;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #0a0a0a;
}

.upload-area:hover {
  border-color: #ff0080;
  background: rgba(255, 0, 128, 0.05);
}

.upload-area.has-file {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.05);
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.upload-text {
  color: #666;
  font-size: 14px;
}

.preview-image {
  max-width: 100%;
  max-height: 200px;
  border-radius: 10px;
  margin-top: 15px;
}

.camera-container {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

#camera {
  width: 100%;
  border-radius: 10px;
}

#canvas {
  display: none;
}

.camera-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #ff0080 0%, #cc0066 100%);
  color: white;
  flex: 1;
}

.btn-secondary {
  background: #2a2a2a;
  color: #ccc;
  flex: 1;
}

.btn-secondary:hover {
  background: #333;
}

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

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
}

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

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

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}

.note {
  background: rgba(255, 193, 7, 0.1);
  border-left: 4px solid #ffc107;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #ccc;
  margin-top: 10px;
}

/* Allow text selection for input fields */
input, textarea, select {
  -webkit-user-select: text;
  user-select: text;
}

/* Prevent zoom on double tap */
* {
  touch-action: manipulation;
}

/* Loading Overlay */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#loadingOverlay.active {
  display: flex;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 0, 128, 0.2);
  border-top-color: #ff0080;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Progress Bar */
#uploadProgress {
  margin: 20px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-container {
  width: 100%;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff0080 0%, #ff4da6 100%);
  border-radius: 10px;
  transition: width 0.3s ease;
  width: 0%;
  box-shadow: 0 0 10px rgba(255, 0, 128, 0.5);
}

.progress-text {
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* Custom Alert Styles */
.custom-alert {
  position: fixed !important;
  top: 20px;
  right: 20px;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 280px;
  max-width: 400px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(450px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999999 !important;
  pointer-events: auto;
}

.custom-alert.show {
  transform: translateX(0);
  opacity: 1;
}

.custom-alert-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-alert-icon {
  font-size: 24px;
  font-weight: bold;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.custom-alert-success .custom-alert-icon {
  background: rgba(46, 213, 115, 0.2);
  color: #2ed573;
}

.custom-alert-error .custom-alert-icon {
  background: rgba(255, 71, 87, 0.2);
  color: #ff4757;
}

.custom-alert-info .custom-alert-icon {
  background: rgba(255, 0, 128, 0.2);
  color: #ff0080;
}

.custom-alert-message {
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}

/* Custom Confirm/Prompt Styles */
.custom-confirm-overlay {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999998 !important;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  pointer-events: auto;
}

.custom-confirm-overlay.show {
  opacity: 1;
}

.custom-confirm-box {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.custom-confirm-overlay.show .custom-confirm-box {
  transform: scale(1);
}

.custom-confirm-message {
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}

.custom-prompt-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  margin-bottom: 20px;
  outline: none;
  transition: all 0.3s ease;
}

.custom-prompt-input:focus {
  border-color: #ff0080;
  box-shadow: 0 0 0 3px rgba(255, 0, 128, 0.1);
}

.custom-prompt-input::placeholder {
  color: #666;
}

.custom-confirm-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.custom-confirm-cancel,
.custom-confirm-ok {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.custom-confirm-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-confirm-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.custom-confirm-ok {
  background: linear-gradient(135deg, #ff0080 0%, #ff3399 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 0, 128, 0.3);
}

.custom-confirm-ok:hover {
  background: linear-gradient(135deg, #ff3399 0%, #ff66b2 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 0, 128, 0.4);
}

.custom-confirm-ok:active,
.custom-confirm-cancel:active {
  transform: translateY(0);
}

/* Explore Page Filter Buttons */
.filter-btn {
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #374151;
  color: #9ca3af;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: rgba(255, 0, 128, 0.1);
  border-color: rgba(255, 0, 128, 0.3);
  color: #ff3399;
}

.filter-btn.active {
  background: rgba(255, 0, 128, 0.2);
  border-color: rgba(255, 0, 128, 0.3);
  color: #ff3399;
}

/* Line Clamp Utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
