/*
  YalaBobo - Professional Reels Feature
  TikTok/Instagram Reels Style Interface
*/

/* ============================================
   Reels Viewer Overlay
   ============================================ */
.reels-viewer-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99998;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ============================================
   Reels Creator Overlay
   ============================================ */
.reels-creator-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.reels-creator-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.reels-creator-preview {
  flex: 1;
  position: relative;
  background: #0a0a0a;
  overflow: hidden;
}

.reels-creator-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.reels-creator-preview canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recording-indicator {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.9);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.recording-dot {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  animation: recordingPulse 1s infinite;
}

@keyframes recordingPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.recording-time {
  font-family: var(--font-tajawal);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* ============================================
   Reels Creator Header
   ============================================ */
.reels-creator-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.reels-creator-close-btn,
.reels-creator-switch-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  color: #fff;
}

.reels-creator-close-btn:hover,
.reels-creator-switch-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.reels-creator-title {
  font-family: var(--font-cairo);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* ============================================
   Reels Creator Controls
   ============================================ */
.reels-creator-controls {
  position: absolute;
  bottom: 100px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  z-index: 100;
}

.reels-record-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 4px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.reels-record-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.reels-record-btn.recording {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.5);
}

.record-btn-inner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  transition: all 0.3s ease;
}

.reels-record-btn.recording .record-btn-inner {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #EF4444;
}

.reels-upload-btn,
.reels-filters-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  color: #fff;
}

.reels-upload-btn:hover,
.reels-filters-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* ============================================
   Filters Panel
   ============================================ */
.reels-filters-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px 24px 0 0;
  z-index: 200;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.reels-filters-panel.active {
  transform: translateY(0);
}

.filters-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.filters-panel-header span {
  font-family: var(--font-cairo);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.filters-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.filters-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

.filter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-item:hover {
  transform: scale(1.05);
}

.filter-item.active {
  transform: scale(1.1);
}

.filter-item.active .filter-preview {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
}

.filter-preview {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.filter-item span {
  font-family: var(--font-tajawal);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   Upload Panel
   ============================================ */
.reels-upload-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px 24px 0 0;
  z-index: 200;
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.reels-upload-panel.active {
  transform: translateY(0);
}

.upload-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.upload-panel-header span {
  font-family: var(--font-cairo);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.upload-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.upload-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.upload-area:hover {
  border-color: var(--primary);
  background: rgba(37, 211, 102, 0.05);
}

.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
}

.upload-label svg {
  color: var(--primary);
}

.upload-label span:first-of-type {
  font-family: var(--font-tajawal);
  font-size: 16px;
  font-weight: 600;
}

.upload-hint {
  font-family: var(--font-tajawal);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.upload-preview {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
}

.upload-preview video {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  background: #0a0a0a;
}

/* ============================================
   Caption Panel
   ============================================ */
.reels-caption-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px 24px 0 0;
  z-index: 200;
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: block !important;
}

.reels-caption-panel.active {
  transform: translateY(0);
}

.caption-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.caption-panel-header span {
  font-family: var(--font-cairo);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.caption-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.caption-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.caption-input-area {
  position: relative;
  margin-bottom: 20px;
}

#reelCaptionInput {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-tajawal);
  font-size: 15px;
  resize: none;
  outline: none;
  transition: all 0.3s ease;
}

#reelCaptionInput::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#reelCaptionInput:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.15);
}

.caption-char-count {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-family: var(--font-tajawal);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.caption-publish-btn {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-cairo);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.caption-publish-btn:hover {
  background: var(--accent);
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.caption-publish-btn:active {
  transform: scale(0.98);
}

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

.caption-extra-options {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.caption-option-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-tajawal);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.caption-option-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--primary);
}

.caption-option-btn svg {
  color: var(--primary);
}

/* ============================================
   Reels Container
   ============================================ */
.reels-container {
  flex: 1;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* ============================================
   Reels Empty State
   ============================================ */
.reels-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.reels-empty-state svg {
  margin-bottom: 24px;
  opacity: 0.5;
}

.reels-empty-state h3 {
  font-family: var(--font-cairo);
  font-size: 24px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

.reels-empty-state p {
  font-family: var(--font-tajawal);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 32px;
}

.reels-empty-create-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 16px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-cairo);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.reels-empty-create-btn:hover {
  background: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ============================================
   Reel Detail Overlay
   ============================================ */
.reel-detail-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.reel-detail-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.reel-detail-video {
  position: relative;
  flex: 1;
  background: #0a0a0a;
  overflow: hidden;
}

.reel-detail-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-detail-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.reel-detail-back-btn,
.reel-detail-more-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  color: #fff;
}

.reel-detail-back-btn:hover,
.reel-detail-more-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.reel-detail-title {
  font-family: var(--font-cairo);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.reel-detail-content {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  max-height: 50%;
  overflow-y: auto;
}

.reel-detail-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.reel-detail-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.reel-detail-user-details {
  flex: 1;
}

.reel-detail-username {
  font-family: var(--font-cairo);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.reel-detail-time {
  font-family: var(--font-tajawal);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.reel-detail-follow-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-cairo);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reel-detail-follow-btn.following {
  background: rgba(255, 255, 255, 0.1);
}

.reel-detail-description {
  font-family: var(--font-tajawal);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  line-height: 1.6;
}

.reel-detail-description .reel-hashtag {
  color: var(--primary);
  font-weight: 700;
}

.reel-detail-music-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.reel-detail-music-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.reel-detail-music-text {
  font-family: var(--font-tajawal);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.reel-detail-actions {
  display: flex;
  justify-content: space-around;
  margin-bottom: 24px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reel-detail-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reel-detail-action:hover {
  transform: scale(1.1);
}

.reel-detail-action svg {
  color: rgba(255, 255, 255, 0.8);
}

.reel-detail-action.liked svg {
  color: #EF4444;
  fill: #EF4444;
}

.reel-detail-action span {
  font-family: var(--font-tajawal);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.reel-detail-comments-section {
  margin-bottom: 16px;
}

.reel-detail-comments-header {
  font-family: var(--font-cairo);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.reel-detail-comments-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.reel-detail-comment-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.reel-detail-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.reel-detail-comment-content {
  flex: 1;
}

.reel-detail-comment-username {
  font-family: var(--font-cairo);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.reel-detail-comment-text {
  font-family: var(--font-tajawal);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.reel-detail-comment-time {
  font-family: var(--font-tajawal);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.reel-detail-comment-input {
  display: flex;
  gap: 12px;
  align-items: center;
}

.reel-detail-comment-input input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-tajawal);
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.reel-detail-comment-input input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.reel-detail-comment-input input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.15);
}

.reel-detail-comment-input button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reel-detail-comment-input button:hover {
  background: var(--accent);
  transform: scale(1.05);
}

/* ============================================
   Reel Detail Share Panel
   ============================================ */
.reel-detail-share-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px 24px 0 0;
  z-index: 200;
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.reel-detail-share-panel.active {
  transform: translateY(0);
}

.reel-detail-share-title {
  font-family: var(--font-cairo);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.reel-detail-share-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.reel-detail-share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reel-detail-share-option:hover {
  transform: scale(1.1);
}

.reel-detail-share-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel-detail-share-label {
  font-family: var(--font-tajawal);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

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

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

.reel-video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

.reel-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  flex-direction: column;
  gap: 20px;
}

.reel-placeholder-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(37, 211, 102, 0.3);
  animation: pulse 2s infinite;
}

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

.reel-placeholder-text {
  color: var(--text-secondary);
  font-size: 16px;
  font-family: var(--font-tajawal);
  font-weight: 500;
}

/* ============================================
   Reels Header
   ============================================ */
.reels-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.reels-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  color: #fff;
}

.reels-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

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

.reels-title {
  font-family: var(--font-cairo);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.reels-camera-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  color: #fff;
}

.reels-camera-btn:hover {
  background: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

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

/* ============================================
   Reels Navigation Dots
   ============================================ */
.reels-nav-dots {
  position: absolute;
  top: 80px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
}

.reels-nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

.reels-nav-dot.active {
  background: var(--primary);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
}

.reels-nav-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Reel Content Overlay
   ============================================ */
.reel-content-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  z-index: 50;
}

.reel-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.reel-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  object-fit: cover;
  background: #1a1a2e;
}

.reel-user-details {
  flex: 1;
}

.reel-username {
  font-family: var(--font-cairo);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.reel-follow-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-tajawal);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.reel-follow-btn:hover {
  background: var(--accent);
  transform: scale(1.05);
}

.reel-follow-btn.following {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.reel-description {
  font-family: var(--font-tajawal);
  font-size: 14px;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 12px;
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
  max-width: 70%;
}

.reel-hashtag {
  color: var(--primary);
  font-weight: 600;
}

.reel-music-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.reel-music-icon {
  width: 24px;
  height: 24px;
  animation: spin 3s linear infinite;
}

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

.reel-music-text {
  font-family: var(--font-tajawal);
  font-size: 13px;
  color: #fff;
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* ============================================
   Reel Actions Sidebar
   ============================================ */
.reel-actions-sidebar {
  position: absolute;
  right: 16px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 100;
}

.reel-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reel-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
  border: none;
}

.reel-action-icon:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.reel-action-icon.liked {
  background: rgba(239, 68, 68, 0.3);
  color: #EF4444;
  animation: likeBounce 0.5s ease;
}

@keyframes likeBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.reel-action-count {
  font-family: var(--font-tajawal);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.reel-action-label {
  font-family: var(--font-tajawal);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* ============================================
   Reel Comments Panel
   ============================================ */
.reel-comments-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px 24px 0 0;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.reel-comments-panel.active {
  transform: translateY(0);
}

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

.reel-comments-title {
  font-family: var(--font-cairo);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.reel-comments-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.3s ease;
}

.reel-comments-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.reel-comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.reel-comments-list::-webkit-scrollbar {
  width: 6px;
}

.reel-comments-list::-webkit-scrollbar-track {
  background: transparent;
}

.reel-comments-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.reel-comment-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.reel-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #1a1a2e;
}

.reel-comment-content {
  flex: 1;
}

.reel-comment-username {
  font-family: var(--font-cairo);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.reel-comment-text {
  font-family: var(--font-tajawal);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.reel-comment-time {
  font-family: var(--font-tajawal);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.reel-comments-input {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 12px;
}

.reel-comment-input-field {
  flex: 1;
  padding: 12px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-tajawal);
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.reel-comment-input-field::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.reel-comment-input-field:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.15);
}

.reel-comment-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.reel-comment-send-btn:hover {
  background: var(--accent);
  transform: scale(1.05);
}

/* ============================================
   Reel Share Panel
   ============================================ */
.reel-share-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px 24px 0 0;
  z-index: 200;
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.reel-share-panel.active {
  transform: translateY(0);
}

.reel-share-title {
  font-family: var(--font-cairo);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  text-align: center;
}

.reel-share-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.reel-share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reel-share-option:hover {
  transform: scale(1.1);
}

.reel-share-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.reel-share-label {
  font-family: var(--font-tajawal);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  .reel-description {
    max-width: 60%;
    font-size: 13px;
  }
  
  .reel-action-icon {
    width: 44px;
    height: 44px;
  }
  
  .reel-user-avatar {
    width: 44px;
    height: 44px;
  }
  
  .reel-username {
    font-size: 14px;
  }
  
  .reel-share-options {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  
  .reel-share-icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .reel-description {
    max-width: 55%;
    font-size: 12px;
  }
  
  .reel-action-icon {
    width: 40px;
    height: 40px;
  }
  
  .reel-action-count {
    font-size: 11px;
  }
  
  .reel-action-label {
    font-size: 10px;
  }
  
  .reel-user-avatar {
    width: 40px;
    height: 40px;
  }
  
  .reel-username {
    font-size: 13px;
  }
  
  .reel-follow-btn {
    padding: 5px 12px;
    font-size: 12px;
  }
}

/* ============================================
   New Advanced Features Panels
   ============================================ */

/* Music Panel */
.reels-music-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px 24px 0 0;
  z-index: 200;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.reels-music-panel.active {
  transform: translateY(0);
}

.music-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.music-panel-header span {
  font-family: var(--font-cairo);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.music-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.music-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.music-search {
  margin-bottom: 16px;
}

.music-search input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-tajawal);
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.music-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.music-search input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.15);
}

.music-categories {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.music-categories::-webkit-scrollbar {
  display: none;
}

.music-category {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-tajawal);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.music-category:hover {
  background: rgba(255, 255, 255, 0.1);
}

.music-category.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.music-list {
  flex: 1;
  overflow-y: auto;
}

.music-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.music-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.02);
}

.music-info {
  flex: 1;
}

.music-title {
  font-family: var(--font-cairo);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.music-artist {
  font-family: var(--font-tajawal);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.music-preview-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.3s ease;
}

.music-preview-btn:hover {
  background: var(--accent);
  transform: scale(1.1);
}

/* Text Panel */
.reels-text-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px 24px 0 0;
  z-index: 200;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  max-height: 70%;
  overflow-y: auto;
}

.reels-text-panel.active {
  transform: translateY(0);
}

.text-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.text-panel-header span {
  font-family: var(--font-cairo);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.text-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.text-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.text-input-area {
  margin-bottom: 16px;
}

.text-input-area input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-tajawal);
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.text-input-area input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.text-input-area input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.15);
}

.text-style-options {
  margin-bottom: 16px;
}

.text-style-group {
  margin-bottom: 16px;
}

.text-style-group label {
  font-family: var(--font-cairo);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  display: block;
}

.color-picker,
.size-picker,
.font-picker,
.animation-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-btn,
.size-btn,
.font-btn,
.animation-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-tajawal);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.color-btn:hover,
.size-btn:hover,
.font-btn:hover,
.animation-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.color-btn.active,
.size-btn.active,
.font-btn.active,
.animation-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.text-add-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-cairo);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.text-add-btn:hover {
  background: var(--accent);
  transform: scale(1.02);
}

/* Text Overlay Styles */
.text-overlay {
  position: absolute;
  font-family: var(--font-cairo);
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  pointer-events: auto;
  user-select: none;
  z-index: 50;
}

/* Stickers Panel */
.reels-stickers-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px 24px 0 0;
  z-index: 200;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.reels-stickers-panel.active {
  transform: translateY(0);
}

.stickers-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.stickers-panel-header span {
  font-family: var(--font-cairo);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.stickers-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.stickers-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.stickers-categories {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.stickers-categories::-webkit-scrollbar {
  display: none;
}

.sticker-category {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-tajawal);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.sticker-category:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sticker-category.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.stickers-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  overflow-y: auto;
}

.sticker-item {
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.sticker-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.2);
}

/* Sticker Overlay Styles */
.sticker-overlay {
  pointer-events: auto;
  user-select: none;
  z-index: 60;
}

/* Speed Panel */
.reels-speed-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px 24px 0 0;
  z-index: 200;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.reels-speed-panel.active {
  transform: translateY(0);
}

.speed-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.speed-panel-header span {
  font-family: var(--font-cairo);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.speed-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.speed-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.speed-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.speed-option {
  flex: 1;
  min-width: 80px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-cairo);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.speed-option:hover {
  background: rgba(255, 255, 255, 0.2);
}

.speed-option.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Timer Panel */
.reels-timer-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px 24px 0 0;
  z-index: 200;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.reels-timer-panel.active {
  transform: translateY(0);
}

.timer-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.timer-panel-header span {
  font-family: var(--font-cairo);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.timer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.timer-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.timer-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.timer-option {
  flex: 1;
  min-width: 100px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-cairo);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.timer-option:hover {
  background: rgba(255, 255, 255, 0.2);
}

.timer-option.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Location Panel */
.reels-location-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px 24px 0 0;
  z-index: 200;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.reels-location-panel.active {
  transform: translateY(0);
}

.location-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.location-panel-header span {
  font-family: var(--font-cairo);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.location-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.location-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.location-search {
  margin-bottom: 16px;
}

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

.location-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.location-search input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.15);
}

.location-current-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--primary);
  background: rgba(37, 211, 102, 0.1);
  color: var(--primary);
  font-family: var(--font-cairo);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.location-current-btn:hover {
  background: var(--primary);
  color: #fff;
}

.location-suggestions {
  flex: 1;
  overflow-y: auto;
}

.location-item {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-tajawal);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.location-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Schedule Panel */
.reels-schedule-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px 24px 0 0;
  z-index: 200;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.reels-schedule-panel.active {
  transform: translateY(0);
}

.schedule-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.schedule-panel-header span {
  font-family: var(--font-cairo);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.schedule-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.schedule-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.schedule-options {
  margin-bottom: 16px;
}

.schedule-option-item {
  margin-bottom: 12px;
}

.schedule-option-item label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.schedule-option-item input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.schedule-option-item span {
  font-family: var(--font-tajawal);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.schedule-datetime {
  margin-top: 16px;
}

.schedule-datetime input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-tajawal);
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.schedule-datetime input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.15);
}

/* Preview Panel */
.reels-preview-panel {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 300;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.reels-preview-panel.active {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

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

.preview-panel-header span {
  font-family: var(--font-cairo);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.preview-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.preview-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.preview-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.preview-video-container {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0a;
}

.preview-video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preview-details {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
}

.preview-details > div {
  margin-bottom: 8px;
  font-family: var(--font-tajawal);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.preview-details > div:last-child {
  margin-bottom: 0;
}

.preview-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.preview-back-btn,
.preview-publish-btn {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-family: var(--font-cairo);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.preview-back-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.preview-back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.preview-publish-btn {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.preview-publish-btn:hover {
  background: var(--accent);
  transform: scale(1.02);
}

/* New Control Buttons */
.reels-music-btn,
.reels-text-btn,
.reels-stickers-btn,
.reels-speed-btn,
.reels-timer-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  color: #fff;
}

.reels-music-btn:hover,
.reels-text-btn:hover,
.reels-stickers-btn:hover,
.reels-speed-btn:hover,
.reels-timer-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* Adjust controls layout for more buttons */
.reels-creator-controls {
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

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

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

@keyframes zoomIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive for new panels */
@media (max-width: 768px) {
  .reels-creator-controls {
    gap: 12px;
  }

  .reels-music-btn,
  .reels-text-btn,
  .reels-stickers-btn,
  .reels-speed-btn,
  .reels-timer-btn {
    width: 48px;
    height: 48px;
  }

  .stickers-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .sticker-item {
    font-size: 28px;
    padding: 8px;
  }
}
