/* =====================================================
   WP Reels — Reelo-style Design
   Matches: https://mdfoko-f4e0tcrak-arcadawebapps4.vercel.app
   ===================================================== */

:root {
  --reels-pink: #fe2c55;
  --reels-pink-soft: #ff4d6d;
  --reels-cyan: #25f4ee;
  --reels-purple: #a855f7;
  --reels-orange: #f97316;
  --reels-gold: #fbbf24;
  --reels-green: #10b981;
  --reels-bg: #000000;
  --reels-surface: #0a0a0a;
  --reels-text: #ffffff;
  --reels-muted: rgba(255,255,255,0.65);
  --reels-border: rgba(255,255,255,0.08);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
  padding: 0;
}

.wp-reels-app-container,
#wp-reels-root {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  background: var(--reels-bg);
  color: var(--reels-text);
  position: relative;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

body.wp-reels-theme .wp-reels-app-container,
body.wp-reels-theme #wp-reels-root {
  max-width: 100%;
}

/* ========== TOP HEADER ========== */
.reels-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 10px 14px 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 70%, transparent 100%);
  pointer-events: none;
}

.reels-topbar * {
  pointer-events: auto;
}

.reels-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.reels-logo {
  font-size: 26px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ff6b9d 0%, #c084fc 45%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.reels-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reels-coins-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.reels-coins-badge .coin-icon {
  font-size: 14px;
}

.reels-icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.reels-icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: var(--reels-pink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #000;
}

/* Tabs */
.reels-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 2px;
}

.reels-tab {
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 15px;
  font-weight: 600;
  padding: 6px 0;
  cursor: pointer;
  position: relative;
}

.reels-tab.active {
  color: #fff;
}

.reels-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
}

.reels-tab.live-tab {
  color: rgba(255,255,255,0.55);
}

.reels-tab.live-tab .live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
  animation: pulse-dot 1.5s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ========== STORIES ROW ========== */
.reels-stories {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 14px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: absolute;
  top: 78px;
  left: 0;
  right: 0;
  z-index: 45;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}

.reels-stories::-webkit-scrollbar { display: none; }

.story-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 68px;
  cursor: pointer;
}

.story-avatar-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, #f97316, #ec4899, #a855f7, #3b82f6);
}

.story-avatar-wrap.your-story {
  background: linear-gradient(135deg, #ec4899, #a855f7);
}

.story-avatar-wrap img,
.story-avatar-wrap .story-letter {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #000;
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.story-avatar-wrap .story-plus {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: #3b82f6;
  border-radius: 50%;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.story-live-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--reels-pink);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  border: 1.5px solid #000;
  white-space: nowrap;
}

.story-name {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  text-align: center;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== BONUS BANNER ========== */
.reels-bonus-banner {
  margin: 0 14px 10px;
  background: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
  position: absolute;
  top: 175px;
  left: 0;
  right: 0;
  z-index: 40;
}

.reels-bonus-banner .bonus-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.reels-bonus-banner .bonus-text {
  flex: 1;
  min-width: 0;
}

.reels-bonus-banner .bonus-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reels-bonus-banner .bonus-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}

.reels-bonus-banner .bonus-arrow {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
}

/* ========== FEED ========== */
.reels-feed-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.reels-feed {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #000;
}

.reels-feed::-webkit-scrollbar { display: none; }

.reel-item {
  width: 100%;
  height: 100%;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

/* Overlays */
.reel-overlay-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
  pointer-events: none;
  z-index: 5;
}

.reel-overlay-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 240px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  pointer-events: none;
  z-index: 5;
}

/* Progress */
.reel-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2.5px;
  background: rgba(255,255,255,0.15);
  z-index: 30;
}

.reel-progress-bar {
  height: 100%;
  width: 0%;
  background: #fff;
  transition: width 0.1s linear;
}

/* Sponsored */
.reel-sponsored {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 25;
}

/* Right actions */
.reel-actions {
  position: absolute;
  right: 10px;
  bottom: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 20;
}

.reel-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.reel-action-btn .icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: transform 0.15s, background 0.15s;
}

.reel-action-btn:active .icon-wrap {
  transform: scale(0.88);
}

.reel-action-btn.liked .icon-wrap {
  background: rgba(254, 44, 85, 0.3);
  color: var(--reels-pink);
}

.reel-action-btn .count {
  font-size: 12px;
  line-height: 1;
}

.reel-avatar-btn {
  position: relative;
  margin-bottom: 4px;
}

.reel-avatar-btn img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
}

.reel-avatar-btn .follow-plus {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: var(--reels-pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  border: 2px solid #000;
}

/* Bottom info on video */
.reel-info {
  position: absolute;
  left: 14px;
  right: 70px;
  bottom: 90px;
  z-index: 15;
}

.reel-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.reel-author-row .avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(#000, #000) padding-box,
              linear-gradient(135deg, #f97316, #ec4899, #a855f7) border-box;
  object-fit: cover;
}

.reel-author-row .name {
  font-weight: 700;
  font-size: 14px;
}

.reel-author-row .verified {
  color: #3b82f6;
  font-size: 13px;
}

.reel-author-row .follow-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.reel-author-row .follow-btn.following {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.6);
}

.reel-location {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}

.reel-caption {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.reel-sound {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  opacity: 0.9;
}

.reel-sound .music-icon {
  animation: spin 4s linear infinite;
}

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

/* ========== BOTTOM NAV ========== */
.reels-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(56px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 60;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.reels-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  min-width: 52px;
}

.reels-nav-item.active {
  color: #fff;
}

.reels-nav-item .nav-icon {
  font-size: 22px;
  line-height: 1;
}

.reels-nav-item.create-btn {
  position: relative;
  top: -6px;
}

.reels-nav-item.create-btn .nav-icon {
  width: 48px;
  height: 32px;
  background: linear-gradient(90deg, #25f4ee, #fe2c55);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #000;
  font-weight: 700;
  box-shadow: 0 0 0 3px #000, 0 0 0 5px rgba(254,44,85,0.4);
}

.reels-nav-item .nav-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

/* ========== GIFT MODAL ========== */
.reels-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.reels-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.reels-gift-modal {
  width: 100%;
  max-width: 480px;
  background: #141414;
  border-radius: 20px 20px 0 0;
  padding: 20px 16px calc(30px + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.reels-modal-overlay.open .reels-gift-modal {
  transform: translateY(0);
}

.reels-gift-modal h3 {
  margin: 0 0 16px;
  font-size: 18px;
  text-align: center;
  font-weight: 700;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gift-item {
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 14px 6px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}

.gift-item:hover,
.gift-item.selected {
  border-color: var(--reels-pink);
  background: rgba(254, 44, 85, 0.12);
}

.gift-item .emoji { font-size: 30px; display: block; margin-bottom: 4px; }
.gift-item .name { font-size: 12px; font-weight: 600; }
.gift-item .price { font-size: 11px; color: var(--reels-muted); margin-top: 2px; }

.gift-send-btn {
  margin-top: 16px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #fe2c55, #ff4d6d);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.45;
  pointer-events: none;
}

.gift-send-btn.enabled {
  opacity: 1;
  pointer-events: auto;
}

/* Loading / Empty */
.reels-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  z-index: 70;
  color: #fff;
}

.reels-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--reels-pink);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin-bottom: 14px;
}

.reels-empty {
  text-align: center;
  padding: 40px 24px;
  color: var(--reels-muted);
}

/* Double-tap heart */
.double-tap-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 90px;
  color: var(--reels-pink);
  pointer-events: none;
  z-index: 35;
  text-shadow: 0 4px 24px rgba(254,44,85,0.5);
  animation: heartPop 0.8s ease-out forwards;
}

@keyframes heartPop {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  40% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.45); opacity: 0; }
}

.reel-mute-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 13px;
  z-index: 25;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.reel-mute-indicator.show { opacity: 1; }

.reel-play-pause {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  color: rgba(255,255,255,0.9);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 15;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.reel-play-pause.show { opacity: 1; }

/* Hide stories/bonus when scrolled deep into feed (optional polish) */
.reels-feed-wrap.immersive .reels-stories,
.reels-feed-wrap.immersive .reels-bonus-banner {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

@media (min-width: 768px) {
  .wp-reels-app-container,
  #wp-reels-root {
    max-width: 420px;
    border-left: 1px solid #1a1a1a;
    border-right: 1px solid #1a1a1a;
  }
}

/* =====================================================
   Phase 1 — Profile / Upload / Wallet screens
   ===================================================== */

#screen-area {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: calc(100% - 56px);
  height: calc(100% - 56px - env(safe-area-inset-bottom, 0px));
}

.screen-pad {
  padding: 20px;
  height: 100%;
  overflow-y: auto;
  background: #000;
}

/* Profile */
.profile-screen {
  height: 100%;
  overflow-y: auto;
  background: #000;
  padding-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  position: sticky;
  top: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.back-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 8px 0 0;
}

.profile-handle {
  font-weight: 700;
  font-size: 16px;
}

.icon-btn-sm {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 18px;
}

.profile-avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.profile-stats {
  display: flex;
  flex: 1;
  justify-content: space-around;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.stat span {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.profile-meta {
  padding: 0 18px 12px;
}

.profile-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.profile-bio {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
  white-space: pre-wrap;
}

.profile-actions {
  display: flex;
  gap: 8px;
  padding: 8px 18px 16px;
}

.btn-primary, .btn-outline {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(90deg, #fe2c55, #ff4d6d);
  color: #fff;
}

.btn-primary.following {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

.btn-outline {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-block {
  width: 100%;
  display: block;
  flex: none;
}

.profile-tabs {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ptab {
  flex: 1;
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.ptab.active {
  color: #fff;
  border-bottom: 2px solid #fff;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.grid-item {
  position: relative;
  aspect-ratio: 9/16;
  background: #111;
  overflow: hidden;
}

.grid-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(255,255,255,0.3);
}

.grid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-views {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 11px;
  font-weight: 600;
  text-shadow: 0 1px 3px #000;
}

/* Upload */
.upload-screen {
  height: 100%;
  overflow-y: auto;
  background: #000;
}

.upload-body {
  padding: 16px 18px 40px;
}

.upload-zone {
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.03);
}

.upload-zone:active {
  background: rgba(255,255,255,0.06);
}

.upload-icon { font-size: 48px; margin-bottom: 10px; }
.upload-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.upload-hint { font-size: 12px; color: rgba(255,255,255,0.5); }

.preview-video {
  width: 100%;
  max-height: 320px;
  border-radius: 12px;
  margin-bottom: 16px;
  background: #111;
}

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

.form-group label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
  font-weight: 600;
}

.form-input {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-size: 15px;
  outline: none;
}

.form-input:focus {
  border-color: rgba(254,44,85,0.6);
}

.upload-status {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.upload-status.success { color: #10b981; }
.upload-status.error { color: #ef4444; }

/* Wallet */
.wallet-screen {
  height: 100%;
  overflow-y: auto;
  background: #000;
  padding-bottom: 30px;
}

.wallet-hero {
  margin: 16px 18px;
  padding: 24px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1a0533 0%, #3b0764 40%, #7c3aed 100%);
  text-align: center;
}

.wallet-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}

.wallet-balance {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
}

.wallet-min {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
}

.wallet-actions {
  padding: 0 18px 16px;
}

.wallet-section {
  padding: 12px 18px;
}

.wallet-section h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.7);
}

.tx-list {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  overflow: hidden;
}

.tx-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.tx-icon { font-size: 22px; }

.tx-info { flex: 1; min-width: 0; }

.tx-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-date {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

.tx-amount {
  font-weight: 700;
  font-size: 14px;
}

.tx-amount.positive { color: #10b981; }

.tx-empty {
  padding: 20px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}

.withdraw-form {
  margin: 16px 18px;
  padding: 16px;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
}

.withdraw-form h3 {
  margin-bottom: 12px;
  font-size: 16px;
}
