/* ============================================
   EARNFORTH DESIGN SYSTEM
   A comprehensive, responsive design system
   ============================================ */

/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Colors */
  --primary-color: #fe2c55;
  --primary-dark: #d91d42;
  --primary-light: #ff4d6d;
  --secondary-color: #25f4ee;
  --secondary-dark: #1dd1cc;
  --bg-primary: #000000;
  --bg-secondary: #121212;
  --bg-tertiary: #1a1a1a;
  --bg-card: #1e1e1e;
  --bg-modal: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-tertiary: #707070;
  --text-muted: #505050;
  --success: #00d68f;
  --warning: #ffaa00;
  --error: #ff3860;
  --info: #00b8d4;
  --light-bg-primary: #ffffff;
  --light-bg-secondary: #f5f5f5;
  --light-bg-tertiary: #e5e5e5;
  --light-text-primary: #000000;
  --light-text-secondary: #505050;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
  --gradient-success: linear-gradient(135deg, var(--success) 0%, #00b894 100%);
  --gradient-premium: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  --gradient-dark: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.95) 100%);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
  --shadow-md: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.6);

  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-xxl: 2rem;

  /* Z-Index */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Layout */
  --sidebar-width: 250px;
  --bottom-nav-height: 60px;
  --top-header-height: 60px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

/* ============================================
   LAYOUT SYSTEM
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-md);
}

/* Desktop Layout with Sidebar */
@media (min-width: 769px) {
  .app-wrapper {
    display: flex;
    min-height: 100vh;
  }

  .main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    overflow-y: auto;
    height: 100vh;
  }

  .page-content {
    padding: var(--space-xl);
  }
}

/* Mobile Layout with Bottom Nav */
@media (max-width: 768px) {
  .app-wrapper {
    min-height: 100vh;
    padding-bottom: var(--bottom-nav-height);
  }

  .main-content {
    overflow-y: auto;
    height: calc(100vh - var(--bottom-nav-height));
  }

  .page-content {
    padding: var(--space-md);
  }

}

/* ============================================
   SIDEBAR (Desktop)
   ============================================ */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  z-index: var(--z-fixed);
  overflow-y: auto;
}

.sidebar-header {
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-md) 0;
}

.sidebar-nav .nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  color: var(--text-secondary);
  transition: all var(--transition-base);
  position: relative;
  cursor: pointer;
}

.sidebar-nav .nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav .nav-item.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav .nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-color);
}

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-md) var(--space-lg);
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
}

/* ============================================
   TOP HEADER (Mobile)
   ============================================ */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--top-header-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 var(--space-md);
  display: none;
  align-items: center;
  justify-content: space-between;
  z-index: var(--z-fixed);
}

@media (max-width: 768px) {
  .top-header {
    display: flex;
  }
}

/* ============================================
   BOTTOM NAVIGATION (Mobile)
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(30px);
  display: none;
  justify-content: space-around;
  align-items: center;
  z-index: var(--z-fixed);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  min-width: 60px;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-base);
}

.bottom-nav .nav-item:active {
  transform: scale(0.92);
}

.bottom-nav .nav-item.active {
  color: white;
}

.bottom-nav .nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 0 0 3px 3px;
}

.bottom-nav .nav-item svg {
  width: 24px;
  height: 24px;
  transition: all var(--transition-base);
}

.bottom-nav .nav-item.active svg {
  transform: scale(1.15);
}

.bottom-nav .nav-item span {
  font-size: 0.7rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
}

.col {
  flex: 1;
  padding: 0 0.5rem;
}

.col-1 {
  flex: 0 0 8.333333%;
  max-width: 8.333333%;
}

.col-2 {
  flex: 0 0 16.666667%;
  max-width: 16.666667%;
}

.col-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.col-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.col-5 {
  flex: 0 0 41.666667%;
  max-width: 41.666667%;
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-7 {
  flex: 0 0 58.333333%;
  max-width: 58.333333%;
}

.col-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}

.col-9 {
  flex: 0 0 75%;
  max-width: 75%;
}

.col-10 {
  flex: 0 0 83.333333%;
  max-width: 83.333333%;
}

.col-11 {
  flex: 0 0 91.666667%;
  max-width: 91.666667%;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  .col-sm-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
  }

  .col-sm-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }

  .col-sm-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .col-sm-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .col-sm-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }

  .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-sm-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }

  .col-sm-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }

  .col-sm-9 {
    flex: 0 0 75%;
    max-width: 75%;
  }

  .col-sm-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }

  .col-sm-11 {
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
  }

  .col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: var(--font-size-md);
  font-weight: 600;
  font-family: var(--font-primary);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  white-space: nowrap;
  user-select: none;
  outline: none;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Button Variants */
.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--bg-primary);
  box-shadow: var(--shadow-md);
}

.btn-success {
  background: var(--gradient-success);
  color: var(--text-primary);
}

.btn-warning {
  background: var(--warning);
  color: var(--bg-primary);
}

.btn-danger {
  background: var(--error);
  color: var(--text-primary);
}

.btn-info {
  background: var(--info);
  color: var(--text-primary);
}

.btn-light {
  background: var(--light-bg-secondary);
  color: var(--light-text-primary);
}

.btn-dark {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--text-primary);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Button Sizes */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
}

.btn-block {
  width: 100%;
  display: flex;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

.btn-icon-sm {
  width: 36px;
  height: 36px;
}

.btn-icon-lg {
  width: 56px;
  height: 56px;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.form-control,
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-tertiary);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--font-size-md);
  font-family: var(--font-primary);
  transition: all var(--transition-base);
  outline: none;
}

.form-control:focus,
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary-color);
  background: var(--bg-secondary);
}

.form-control::placeholder,
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-control-sm {
  padding: 0.5rem 0.75rem;
  font-size: var(--font-size-sm);
}

.form-control-lg {
  padding: 1rem 1.25rem;
  font-size: var(--font-size-lg);
}

.form-error {
  color: var(--error);
  font-size: var(--font-size-sm);
  margin-top: var(--space-xs);
}

.form-control.is-invalid,
.form-input.error {
  border-color: var(--error);
}

.form-control.is-valid {
  border-color: var(--success);
}

/* Checkboxes and Radios */
.form-check {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.form-check-input {
  width: 20px;
  height: 20px;
  margin-right: var(--space-sm);
  cursor: pointer;
  accent-color: var(--primary-color);
}

.form-check-label {
  cursor: pointer;
  user-select: none;
}

/* Switch */
.form-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.form-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.form-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-tertiary);
  transition: var(--transition-base);
  border-radius: var(--radius-full);
}

.form-switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: var(--transition-base);
  border-radius: 50%;
}

.form-switch input:checked+.form-switch-slider {
  background: var(--gradient-primary);
}

.form-switch input:checked+.form-switch-slider:before {
  transform: translateX(22px);
}

/* Input Groups */
.input-group {
  display: flex;
  align-items: stretch;
}

.input-group .form-control {
  border-radius: 0;
}

.input-group .form-control:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group .form-control:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  background: var(--bg-secondary);
  border: 2px solid transparent;
  color: var(--text-secondary);
  white-space: nowrap;
}

.input-group-text:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group-text:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  margin-bottom: var(--space-md);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-header {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.card-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.card-body {
  margin-bottom: var(--space-md);
}

.card-footer {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-img-top {
  width: 100%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: calc(var(--space-lg) * -1) calc(var(--space-lg) * -1) var(--space-lg);
}

.card-premium {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 237, 78, 0.1) 100%);
  border: 2px solid rgba(255, 215, 0, 0.3);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  animation: slideInDown 0.3s ease;
  position: relative;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: rgba(0, 214, 143, 0.15);
  border-left: 4px solid var(--success);
  color: var(--success);
}

.alert-error,
.alert-danger {
  background: rgba(255, 56, 96, 0.15);
  border-left: 4px solid var(--error);
  color: var(--error);
}

.alert-warning {
  background: rgba(255, 170, 0, 0.15);
  border-left: 4px solid var(--warning);
  color: var(--warning);
}

.alert-info {
  background: rgba(0, 184, 212, 0.15);
  border-left: 4px solid var(--info);
  color: var(--info);
}

.alert-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.alert-message {
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

.alert-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font-size: 1.25rem;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
  margin-left: auto;
}

.alert-close:hover {
  opacity: 1;
}

/* ============================================
   MODALS (Desktop)
   ============================================ */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: var(--z-modal-backdrop);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-backdrop.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  background: var(--bg-modal);
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.3s ease;
  box-shadow: var(--shadow-xl);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--space-lg);
}

.modal-footer {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
  padding: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   SHEET PANEL (Mobile)
   ============================================ */
.sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-modal);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  max-height: 80vh;
  overflow-y: auto;
  z-index: var(--z-modal);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  margin: var(--space-md) auto;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg) var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sheet-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sheet-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-body {
  padding: var(--space-lg);
}

.sheet-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.sheet-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sheet-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.sheet-item-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-item-text {
  flex: 1;
}

.sheet-item-title {
  font-weight: 500;
  color: var(--text-primary);
}

.sheet-item-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ============================================
   TABLES
   ============================================ */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-lg);
}

.table thead {
  background: var(--bg-secondary);
}

.table th,
.table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table th {
  font-weight: 600;
  color: var(--text-primary);
}

.table td {
  color: var(--text-secondary);
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.table-striped tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.table-bordered {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-bordered th,
.table-bordered td {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: var(--gradient-primary);
  color: white;
}

.badge-secondary {
  background: var(--gradient-secondary);
  color: var(--bg-primary);
}

.badge-success {
  background: var(--gradient-success);
  color: white;
}

.badge-warning {
  background: var(--warning);
  color: var(--bg-primary);
}

.badge-danger {
  background: var(--error);
  color: white;
}

.badge-info {
  background: var(--info);
  color: white;
}

.badge-light {
  background: var(--light-bg-secondary);
  color: var(--light-text-primary);
}

.badge-dark {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.badge-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

/* ============================================
   PROGRESS BARS
   ============================================ */
.progress {
  height: 20px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.progress-bar-success {
  background: var(--gradient-success);
}

.progress-bar-warning {
  background: var(--warning);
}

.progress-bar-danger {
  background: var(--error);
}

.progress-bar-striped {
  background-image: linear-gradient(45deg,
      rgba(255, 255, 255, 0.15) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255, 255, 255, 0.15) 50%,
      rgba(255, 255, 255, 0.15) 75%,
      transparent 75%,
      transparent);
  background-size: 1rem 1rem;
}

.progress-bar-animated {
  animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
  0% {
    background-position: 1rem 0;
  }

  100% {
    background-position: 0 0;
  }
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  list-style: none;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: "/";
  padding: 0 var(--space-sm);
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: var(--text-primary);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  gap: var(--space-sm);
  list-style: none;
  margin-bottom: var(--space-lg);
}

.page-item {
  display: inline-block;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-md);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.page-link:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.page-item.active .page-link {
  background: var(--primary-color);
  color: white;
}

.page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================
   LIST GROUPS
   ============================================ */
.list-group {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: var(--space-lg);
}

.list-group-item {
  position: relative;
  display: block;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--transition-fast);
}

.list-group-item:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.list-group-item:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border-bottom: none;
}

.list-group-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.list-group-item.active {
  background: var(--primary-color);
  color: white;
}

.list-group-item-action {
  cursor: pointer;
}

/* ============================================
   ACCORDION
   ============================================ */
.accordion {
  margin-bottom: var(--space-lg);
}

.accordion-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  transition: background var(--transition-fast);
  user-select: none;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.accordion-title {
  font-weight: 600;
  color: var(--text-primary);
}

.accordion-icon {
  transition: transform var(--transition-base);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-body {
  max-height: 1000px;
}

.accordion-content {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-secondary);
}

/* ============================================
   TOASTS
   ============================================ */
.toast-container {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-tooltip);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 400px;
}

.toast {
  background: var(--bg-modal);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  font-size: 1.25rem;
}

/* ============================================
   AVATARS
   ============================================ */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-tertiary);
}

.avatar-sm {
  width: 32px;
  height: 32px;
}

.avatar-lg {
  width: 56px;
  height: 56px;
}

.avatar-xl {
  width: 80px;
  height: 80px;
}

.avatar-group {
  display: flex;
  align-items: center;
}

.avatar-group .avatar {
  margin-left: -12px;
  border: 3px solid var(--bg-primary);
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}

/* ============================================
   SPINNERS
   ============================================ */
.reel-spin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: clamp(4rem, 10vw, 5rem);
  height: clamp(4rem, 10vw, 5rem);
  border: clamp(0.25rem, 0.5vw, 0.25rem) solid rgba(255, 255, 255, 0.2);
  border-top-color: #fe2c55;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 8;
  opacity: 0;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(clamp(0.3125rem, 1vw, 0.3125rem));
  box-sizing: border-box;
  box-shadow: 0 0 0 clamp(0.125rem, 0.25vw, 0.125rem) rgba(255, 255, 255, 0.5);
}

.reel-spin.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner-sm {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
}

.spinner-lg {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255, 255, 255, 0.1);
  border-top: 6px solid var(--primary-color);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
/* Display */
.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-inline {
  display: inline !important;
}

.d-inline-block {
  display: inline-block !important;
}

.d-flex {
  display: flex !important;
}

.d-inline-flex {
  display: inline-flex !important;
}

/* Flex */
.flex-row {
  flex-direction: row !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.flex-nowrap {
  flex-wrap: nowrap !important;
}

.justify-content-start {
  justify-content: flex-start !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-around {
  justify-content: space-around !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.align-items-end {
  align-items: flex-end !important;
}

.align-items-center {
  align-items: center !important;
}

.align-items-baseline {
  align-items: baseline !important;
}

.align-items-stretch {
  align-items: stretch !important;
}

.flex-1 {
  flex: 1 !important;
}

/* Spacing */
.m-0 {
  margin: 0 !important;
}

.m-1 {
  margin: var(--space-xs) !important;
}

.m-2 {
  margin: var(--space-sm) !important;
}

.m-3 {
  margin: var(--space-md) !important;
}

.m-4 {
  margin: var(--space-lg) !important;
}

.m-5 {
  margin: var(--space-xl) !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: var(--space-xs) !important;
}

.mt-2 {
  margin-top: var(--space-sm) !important;
}

.mt-3 {
  margin-top: var(--space-md) !important;
}

.mt-4 {
  margin-top: var(--space-lg) !important;
}

.mt-5 {
  margin-top: var(--space-xl) !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: var(--space-xs) !important;
}

.mb-2 {
  margin-bottom: var(--space-sm) !important;
}

.mb-3 {
  margin-bottom: var(--space-md) !important;
}

.mb-4 {
  margin-bottom: var(--space-lg) !important;
}

.mb-5 {
  margin-bottom: var(--space-xl) !important;
}

.p-0 {
  padding: 0 !important;
}

.p-1 {
  padding: var(--space-xs) !important;
}

.p-2 {
  padding: var(--space-sm) !important;
}

.p-3 {
  padding: var(--space-md) !important;
}

.p-4 {
  padding: var(--space-lg) !important;
}

.p-5 {
  padding: var(--space-xl) !important;
}

/* Text */
.text-left {
  text-align: left !important;
}

.text-center {
  text-align: center !important;
}

.text-right {
  text-align: right !important;
}

.text-primary {
  color: var(--text-primary) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-success {
  color: var(--success) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-danger {
  color: var(--error) !important;
}

.text-info {
  color: var(--info) !important;
}

.font-weight-light {
  font-weight: 300 !important;
}

.font-weight-normal {
  font-weight: 400 !important;
}

.font-weight-medium {
  font-weight: 500 !important;
}

.font-weight-semibold {
  font-weight: 600 !important;
}

.font-weight-bold {
  font-weight: 700 !important;
}

.text-uppercase {
  text-transform: uppercase !important;
}

.text-lowercase {
  text-transform: lowercase !important;
}

.text-capitalize {
  text-transform: capitalize !important;
}

/* Background */
.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-secondary {
  background-color: var(--bg-secondary) !important;
}

.bg-success {
  background-color: var(--success) !important;
}

.bg-warning {
  background-color: var(--warning) !important;
}

.bg-danger {
  background-color: var(--error) !important;
}

.bg-info {
  background-color: var(--info) !important;
}

.bg-dark {
  background-color: var(--bg-tertiary) !important;
}

.bg-light {
  background-color: var(--light-bg-secondary) !important;
}

/* Border */
.border {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.border-0 {
  border: 0 !important;
}

.border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.border-bottom {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.border-left {
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.border-right {
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.rounded {
  border-radius: var(--radius-md) !important;
}

.rounded-sm {
  border-radius: var(--radius-sm) !important;
}

.rounded-lg {
  border-radius: var(--radius-lg) !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

.rounded-pill {
  border-radius: var(--radius-full) !important;
}

/* Width & Height */
.w-25 {
  width: 25% !important;
}

.w-50 {
  width: 50% !important;
}

.w-75 {
  width: 75% !important;
}

.w-100 {
  width: 100% !important;
}

.h-25 {
  height: 25% !important;
}

.h-50 {
  height: 50% !important;
}

.h-75 {
  height: 75% !important;
}

.h-100 {
  height: 100% !important;
}

/* Position */
.position-static {
  position: static !important;
}

.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.position-fixed {
  position: fixed !important;
}

.position-sticky {
  position: sticky !important;
}

/* Overflow */
.overflow-auto {
  overflow: auto !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

.overflow-visible {
  overflow: visible !important;
}

.overflow-scroll {
  overflow: scroll !important;
}

/* Cursor */
.cursor-pointer {
  cursor: pointer !important;
}

.cursor-default {
  cursor: default !important;
}

.cursor-not-allowed {
  cursor: not-allowed !important;
}

/* Shadow */
.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow {
  box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

.shadow-none {
  box-shadow: none !important;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .show-mobile {
    display: block !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }

  .show-desktop {
    display: block !important;
  }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   REELS-SPECIFIC STYLES (Preserved)
   ============================================ */

.mainreels {
  background-color: #000000;
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.filter-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--top-header-height);
  background: var(--bg-secondary);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  z-index: 1001;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 1rem;
}

@media (min-width: 769px) {
  .filter-bar {
    left: var(--sidebar-width);
  }
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 1.25rem;
  position: relative;
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

.filter-btn.active {
  color: white;
  background: rgba(254, 44, 85, 0.15);
}

.filter-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: #fe2c55;
  border-radius: 3px 3px 0 0;
}

.back-btn,
.fullscreen-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:active,
.fullscreen-btn:active {
  transform: scale(0.9);
}

.back-btn svg,
.fullscreen-btn svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.reels-container {
  height: 100vh;
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-top: clamp(3rem, 7vw, 3.5rem);
}

.reels-container::-webkit-scrollbar {
  display: none;
}

.reels-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}


.reel {
  height: calc(100vh - clamp(3rem, 7vw, 3.5rem));
  height: calc(100dvh - clamp(3rem, 7vw, 3.5rem));
  width: 100%;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  margin-bottom: clamp(3rem, 7vw, 3.5rem);
}

.reel.hidden {
  display: none;
}

.reel video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.reel-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.reel-text-content,
.reel-poll-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(2rem, 5vw, 2.5rem) clamp(1rem, 3vw, 1.5rem);
  text-align: center;
}

.reel-text-content h2,
.reel-poll-content h2 {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  margin-bottom: clamp(1rem, 3vw, 1.25rem);
  color: #333;
  font-weight: 700;
}

.reel-text-content p {
  font-size: clamp(1rem, 3vw, 1.125rem);
  line-height: 1.6;
  color: #555;
  max-width: clamp(30rem, 80vw, 37.5rem);
}

.poll-options {
  width: 100%;
  max-width: clamp(20rem, 60vw, 25rem);
  margin-top: clamp(1.25rem, 3.5vw, 1.5rem);
}

.poll-option {
  position: relative;
  padding: clamp(0.8rem, 2.5vw, 1rem) clamp(1rem, 3vw, 1.25rem);
  margin: clamp(0.5rem, 1.5vw, 0.75rem) 0;
  background: #fff;
  border: 0.125rem solid #e0e0e0;
  border-radius: clamp(0.75rem, 1.5vw, 0.75rem);
  cursor: pointer;
  overflow: hidden;
  font-weight: 600;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  color: #333;
  transition: all 0.3s ease;
  text-align: left;
}

.poll-option:hover {
  border-color: #fe2c55;
  transform: translateY(-0.125rem);
}

.poll-option.voted {
  border-color: #fe2c55;
  background: rgba(254, 44, 85, 0.05);
}

.poll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(254, 44, 85, 0.15);
  transition: width 0.5s ease;
  z-index: 0;
}

.poll-option-text {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.poll-percentage {
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: 700;
  color: #fe2c55;
}

.reel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: clamp(5.625rem, 10vw, 5.625rem);
  padding: clamp(1.25rem, 3.5vw, 1.5rem) clamp(1rem, 3vw, 1.25rem);
  padding-bottom: calc(clamp(3.125rem, 6vw, 3.125rem) + env(safe-area-inset-bottom));
  color: white;
  z-index: 5;
  pointer-events: none;
}

.reel-overlay>* {
  pointer-events: auto;
}

.reel-user-info {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 0.75rem);
  margin-bottom: clamp(0.75rem, 1.5vw, 0.75rem);
}

.reel-avatar {
  width: clamp(2.25rem, 5.5vw, 2.625rem);
  height: clamp(2.25rem, 5.5vw, 2.625rem);
  border-radius: 50%;
  border: 0.125rem solid white;
  object-fit: cover;
}

.reel-username {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  font-weight: 700;
  letter-spacing: clamp(-0.01875rem, -0.1vw, -0.01875rem);
}

.follow-btn {
  margin-left: auto;
  padding: clamp(0.4rem, 1.5vw, 0.5rem) clamp(1.25rem, 3.5vw, 1.5rem);
  background: #fe2c55;
  border: none;
  border-radius: clamp(0.375rem, 0.75vw, 0.375rem);
  color: white;
  font-weight: 700;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  cursor: pointer;
  transition: all 0.2s ease;
}

.follow-btn:active {
  transform: scale(0.95);
}

.follow-btn.following {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.reel-description {
  font-size: clamp(0.8rem, 2.5vw, 0.9375rem);
  line-height: 1.5;
  margin-bottom: clamp(0.625rem, 1.25vw, 0.625rem);
  font-weight: 500;
  color: white;
  text-shadow:
    clamp(-0.0625rem, -0.1vw, -0.0625rem) clamp(-0.0625rem, -0.1vw, -0.0625rem) 0 #000,
    clamp(0.0625rem, 0.1vw, 0.0625rem) clamp(-0.0625rem, -0.1vw, -0.0625rem) 0 #000,
    clamp(-0.0625rem, -0.1vw, -0.0625rem) clamp(0.0625rem, 0.1vw, 0.0625rem) 0 #000,
    clamp(0.0625rem, 0.1vw, 0.0625rem) clamp(0.0625rem, 0.1vw, 0.0625rem) 0 #000;
}

.reel-music {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1vw, 0.5rem);
  font-size: clamp(0.75rem, 2vw, 0.8125rem);
  opacity: 0.95;
  font-weight: 500;
}

.side-actions {
  position: absolute;
  right: 1rem;
  bottom: calc(70px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  z-index: 10;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.375rem, 0.75vw, 0.375rem);
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  position: relative;
}

.action-btn:active {
  transform: scale(0.85);
}

.action-icon-wrapper {
  width: clamp(2.5rem, 6vw, 2.8125rem);
  height: clamp(2.5rem, 6vw, 2.8125rem);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.action-btn:hover .action-icon-wrapper {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.action-btn svg {
  width: clamp(1.5rem, 4vw, 1.75rem);
  height: clamp(1.5rem, 4vw, 1.75rem);
  filter: drop-shadow(0 clamp(0.125rem, 0.25vw, 0.125rem) clamp(0.5rem, 1vw, 0.5rem) rgba(0, 0, 0, 0.5));
}

.action-btn span {
  font-size: clamp(0.75rem, 2vw, 0.8125rem);
  font-weight: 700;
  text-shadow: 0 clamp(0.0625rem, 0.125vw, 0.0625rem) clamp(0.25rem, 0.5vw, 0.25rem) rgba(0, 0, 0, 0.6);
}

.action-btn.liked .action-icon-wrapper {
  background: #fe2c55;
  animation: likeAnimation 0.4s ease;
}

.action-btn.liked svg {
  fill: white;
  stroke: white;
}

@keyframes likeAnimation {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }
}

.mute-btn {
  position: absolute;
  top: max(70px, env(safe-area-inset-top) + 66px);
  left: 1.25rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.mute-btn svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.create-btn .nav-icon {
  width: clamp(3.0rem, 7vw, 3.0rem);
  height: clamp(3.0rem, 7vw, 3.0rem);
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  color: white;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-base);
}

.create-btn:hover .nav-icon {
  transform: scale(1.05) rotate(90deg);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}


.play-pause-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(4rem, 10vw, 5rem);
  height: clamp(4rem, 10vw, 5rem);
  z-index: 8;
  pointer-events: none;
}


.play-pause-btn {
  width: clamp(4rem, 10vw, 5rem);
  height: clamp(4rem, 10vw, 5rem);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(clamp(0.3125rem, 1vw, 0.3125rem));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  pointer-events: auto;
  cursor: pointer;
  border: clamp(0.125rem, 0.25vw, 0.125rem) solid rgba(255, 255, 255, 0.5);
  box-sizing: border-box;
}

.play-pause-btn svg {
  width: clamp(2rem, 5vw, 2.5rem);
  height: clamp(2rem, 5vw, 2.5rem);
  fill: white;
  filter: drop-shadow(0 clamp(0.125rem, 0.25vw, 0.125rem) clamp(0.25rem, 0.5vw, 0.25rem) rgba(0, 0, 0, 0.3));
  display: block;
}

.play-pause-overlay.visible .play-pause-btn {
  opacity: 1;
  transform: scale(1);
}

.mute-btn:active {
  transform: scale(0.88);
}

.mute-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
}

.mute-btn svg {
  width: clamp(1.25rem, 4vw, 1.5rem);
  height: clamp(1.25rem, 4vw, 1.5rem);
  fill: white;
}

.reel-bar {
  position: absolute;
  bottom: clamp(1.875rem, 3.75vw, 1.875rem);
  left: clamp(1.25rem, 2.5vw, 1.25rem);
  right: clamp(1.25rem, 2.5vw, 1.25rem);
  height: clamp(0.25rem, 0.5vw, 0.25rem);
  background: rgba(255, 255, 255, 0.2);
  z-index: 15;
  cursor: pointer;
  touch-action: none;
}

.reel-fill {
  height: 100%;
  background: linear-gradient(90deg, #fe2c55, #ff6b9d);
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

.reel-handle {
  position: absolute;
  bottom: clamp(0.125rem, 0.25vw, 0.125rem);
  transform: translate(-50%, 0);
  width: clamp(0.75rem, 1.5vw, 0.75rem);
  height: clamp(0.75rem, 1.5vw, 0.75rem);
  background: #fe2c55;
  border-radius: 50%;
  border: clamp(0.125rem, 0.25vw, 0.125rem) solid white;
  box-shadow: 0 0 clamp(0.25rem, 0.5vw, 0.25rem) rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 16;
}

.reel-bar:hover .reel-handle,
.reel-bar.seeking .reel-handle {
  opacity: 1;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

  .no-print,
  .sidebar,
  .bottom-nav,
  .top-header,
  .modal-backdrop {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .main-content {
    margin-left: 0;
  }
}