/* ============================================
   iOS 26 Design System - Z1Y1X1 Panel
   ============================================ */

/* CSS Variables */
:root {
  /* iOS System Colors */
  --ios-blue: #007AFF;
  --ios-green: #34C759;
  --ios-indigo: #5856D6;
  --ios-orange: #FF9500;
  --ios-pink: #FF2D55;
  --ios-purple: #AF52DE;
  --ios-red: #FF3B30;
  --ios-teal: #5AC8FA;
  --ios-yellow: #FFCC00;

  /* Dark Mode Background Layers */
  --bg-primary: #000000;
  --bg-secondary: #1C1C1E;
  --bg-tertiary: #2C2C2E;
  --bg-elevated: #3A3A3C;

  /* Glass Effects */
  --glass-bg: rgba(28, 28, 30, 0.72);
  --glass-bg-light: rgba(44, 44, 46, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-light: rgba(255, 255, 255, 0.12);

  /* Text Colors */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(235, 235, 245, 0.6);
  --text-tertiary: rgba(235, 235, 245, 0.3);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(175, 82, 222, 0.3);

  /* Animation */
  --spring-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --spring-smooth: cubic-bezier(0.23, 1, 0.32, 1);
  --ios-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   Base Styles
   ============================================ */
html {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.ios-theme {
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
}

/* Mesh Gradient Background */
body.ios-theme::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(175, 82, 222, 0.08) 0%,
    rgba(88, 86, 214, 0.05) 25%,
    rgba(90, 200, 250, 0.04) 50%,
    rgba(52, 199, 89, 0.05) 75%,
    rgba(255, 45, 85, 0.06) 100%
  );
  pointer-events: none;
  z-index: -1;
}

/* ============================================
   Glass Morphism Components
   ============================================ */

/* Basic Glass */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

/* Enable backdrop-filter only on desktop */
@media (min-width: 640px) {
  .glass {
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
  }
}

/* Glass Card */
.glass-card {
  background: linear-gradient(
    135deg,
    rgba(28, 28, 30, 0.95) 0%,
    rgba(18, 18, 20, 0.98) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.3s var(--ios-ease), box-shadow 0.3s var(--ios-ease);
}

@media (min-width: 640px) {
  .glass-card {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
  }

  .glass-card:hover:not(.ios-modal) {
    transform: translateY(-2px);
    box-shadow:
      0 8px 40px rgba(0, 0, 0, 0.4),
      0 0 60px rgba(175, 82, 222, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
}

/* Modal should not move on hover */
.ios-modal.glass-card {
  transform: translate(-50%, -50%);
}

.ios-modal.glass-card:hover {
  transform: translate(-50%, -50%);
}

/* Logo Link - единый компонент для всех экранов */
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
}

.logo-link-lg {
  gap: 12px;
  font-size: 20px;
}

.logo-icon {
  height: 24px;
  flex-shrink: 0;
  /* Компенсация: SVG 46x53, сердце внизу занимает ~30% высоты */
  margin-top: -4px;
}

.logo-icon-lg {
  height: 32px;
  margin-top: -5px;
}

.logo-text {
  line-height: 1;
}

/* iOS Pill (Dynamic Island style) */
.ios-pill {
  background: rgba(18, 18, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

@media (min-width: 640px) {
  .ios-pill {
    background: rgba(28, 28, 30, 0.85);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
  }
}

/* iOS Widget */
.ios-widget {
  background: linear-gradient(
    145deg,
    rgba(44, 44, 46, 0.8) 0%,
    rgba(28, 28, 30, 0.9) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

@media (min-width: 640px) {
  .ios-widget {
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
  }
}

/* ============================================
   iOS Buttons
   ============================================ */
.ios-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  transition: all 0.3s var(--ios-ease);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.ios-button-primary {
  background: linear-gradient(135deg, var(--ios-purple) 0%, var(--ios-indigo) 100%);
  color: white;
  box-shadow:
    0 4px 20px rgba(175, 82, 222, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ios-button-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 8px 30px rgba(175, 82, 222, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: white;
  text-decoration: none;
}

.ios-button-primary:active {
  transform: translateY(0) scale(0.98);
}

.ios-button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ios-button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
}

.ios-button-sm {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 12px;
}

.ios-button-danger {
  background: linear-gradient(135deg, var(--ios-red) 0%, #CC2F28 100%);
  color: white;
}

.ios-button-danger:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 59, 48, 0.4);
}

/* Ghost/Outline Button Variants */
.ios-button-success-ghost {
  background: rgba(52, 199, 89, 0.2);
  color: var(--ios-green);
  border: 1px solid transparent;
}

.ios-button-success-ghost:hover {
  background: rgba(52, 199, 89, 0.3);
  color: var(--ios-green);
}

.ios-button-warning-ghost {
  background: rgba(255, 149, 0, 0.2);
  color: var(--ios-orange);
  border: 1px solid transparent;
}

.ios-button-warning-ghost:hover {
  background: rgba(255, 149, 0, 0.3);
  color: var(--ios-orange);
}

.ios-button-danger-ghost {
  background: rgba(255, 59, 48, 0.2);
  color: var(--ios-red);
  border: 1px solid transparent;
}

.ios-button-danger-ghost:hover {
  background: rgba(255, 59, 48, 0.3);
  color: var(--ios-red);
}

/* ============================================
   iOS Form Inputs
   ============================================ */
.ios-input {
  width: 100%;
  background: rgba(28, 28, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  color: white;
  font-size: 16px;
  transition: all 0.2s ease;
}

.ios-input:focus {
  outline: none;
  border-color: var(--ios-purple);
  box-shadow: 0 0 0 3px rgba(175, 82, 222, 0.2);
}

.ios-input::placeholder {
  color: var(--text-tertiary);
}

.ios-input-group {
  margin-bottom: 20px;
  position: relative;
}

/* Fix for datepicker requiring non-static positioned container */
.form-group {
  position: relative;
}

.ios-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.ios-select {
  width: 100%;
  background: rgba(28, 28, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}

.ios-select:focus {
  outline: none;
  border-color: var(--ios-purple);
  box-shadow: 0 0 0 3px rgba(175, 82, 222, 0.2);
}

/* ============================================
   Status Badges
   ============================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Active - Purple (выполняется) */
.status-badge-active {
  background: rgba(175, 82, 222, 0.2);
  color: var(--ios-purple);
}

.status-badge-pending {
  background: rgba(255, 149, 0, 0.2);
  color: var(--ios-orange);
}

/* Completed - Green (завершено) */
.status-badge-completed {
  background: rgba(52, 199, 89, 0.2);
  color: var(--ios-green);
}

/* Error - Red (ошибка) */
.status-badge-error {
  background: rgba(255, 59, 48, 0.2);
  color: var(--ios-red);
}

.status-badge-paused {
  background: rgba(142, 142, 147, 0.2);
  color: #8E8E93;
}

/* ============================================
   Progress Bar
   ============================================ */
.ios-progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.ios-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--ios-purple), var(--ios-teal));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.ios-progress-lg {
  height: 12px;
  border-radius: 6px;
}

.ios-progress-lg .ios-progress-bar {
  border-radius: 6px;
}

/* Progress with Label (status inside progress bar) */
.ios-progress-with-label {
  position: relative;
  height: 22px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  overflow: hidden;
}

.ios-progress-with-label .ios-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  min-width: 15%;
  border-radius: 11px;
}

.ios-progress-label {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Panel Sidebar
   ============================================ */
.panel-sidebar {
  background: rgba(18, 18, 20, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 1024px) {
  .panel-sidebar {
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
  }
}

/* Navigation Group Title */
.nav-group-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  padding: 0 16px;
  margin-bottom: 4px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  text-decoration: none;
}

.sidebar-nav-item.active {
  background: rgba(175, 82, 222, 0.15);
  color: var(--ios-purple);
}

.sidebar-nav-item i {
  width: 24px;
  text-align: center;
}

/* ============================================
   Mobile Bottom Navigation
   ============================================ */
.mobile-nav {
  background: rgba(18, 18, 20, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 16px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

@media (min-width: 640px) {
  .mobile-nav {
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 10px;
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--ios-purple);
  text-decoration: none;
}

.mobile-nav-item i {
  font-size: 20px;
}

.mobile-nav-item-primary {
  background: linear-gradient(135deg, var(--ios-purple) 0%, var(--ios-indigo) 100%);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  margin-top: -20px;
  color: white;
  box-shadow: 0 4px 20px rgba(175, 82, 222, 0.4);
  justify-content: center;
}

.mobile-nav-item-primary:hover,
.mobile-nav-item-primary.active {
  color: white;
}

.mobile-nav-item-primary i {
  font-size: 24px;
}

/* ============================================
   Task Card (Mobile)
   ============================================ */
.task-card {
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
}

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

.task-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.task-card-platform {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-card-platform img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.task-card-body {
  margin-bottom: 12px;
}

.task-card-link {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 4px;
  word-break: break-all;
}

.task-card-meta {
  display: flex;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 13px;
}

/* ============================================
   Balance Widget
   ============================================ */
.balance-widget {
  background: linear-gradient(135deg, rgba(175, 82, 222, 0.2) 0%, rgba(88, 86, 214, 0.15) 100%);
  border: 1px solid rgba(175, 82, 222, 0.3);
}

.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(175, 82, 222, 0.2);
  border: 1px solid rgba(175, 82, 222, 0.3);
  border-radius: 20px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.balance-pill:hover {
  background: rgba(175, 82, 222, 0.3);
  color: white;
  text-decoration: none;
}

.balance-pill-low {
  background: rgba(255, 149, 0, 0.2);
  border-color: rgba(255, 149, 0, 0.3);
}

.balance-pill-critical {
  background: rgba(255, 59, 48, 0.2);
  border-color: rgba(255, 59, 48, 0.3);
}

/* ============================================
   Glass Table (Enhanced for DataTables)
   ============================================ */
.glass-table-wrapper {
  background: var(--glass-bg);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
}

@media (min-width: 640px) {
  .glass-table-wrapper {
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
  }
}

.glass-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.glass-table thead th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  position: relative;
}

.glass-table thead th:first-child {
  border-radius: 12px 0 0 0;
}

.glass-table thead th:last-child {
  border-radius: 0 12px 0 0;
}

/* Sortable columns */
.glass-table thead th[data-orderable="true"],
.glass-table thead th.sorting {
  cursor: pointer;
  padding-right: 28px;
  user-select: none;
  transition: background 0.15s ease;
}

.glass-table thead th[data-orderable="true"]:hover,
.glass-table thead th.sorting:hover {
  background: rgba(255, 255, 255, 0.06);
}

.glass-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 14px;
  vertical-align: middle;
}

.glass-table tbody tr {
  transition: background 0.15s ease;
}

.glass-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.glass-table tbody tr.selected {
  background: rgba(175, 82, 222, 0.1);
}

.glass-table tbody tr.selected:hover {
  background: rgba(175, 82, 222, 0.15);
}

.glass-table tbody tr:last-child td {
  border-bottom: none;
}

/* Progress bars in tables */
.glass-table .ios-progress {
  margin: 0;
  width: 100%;
  max-width: 120px;
}

/* Actions column */
.glass-table td.actions,
.glass-table th.actions {
  text-align: right;
  white-space: nowrap;
}

/* Compact variant */
.glass-table-compact thead th {
  padding: 10px 12px;
  font-size: 10px;
}

.glass-table-compact tbody td {
  padding: 10px 12px;
  font-size: 13px;
}

/* Striped variant */
.glass-table-striped tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.glass-table-striped tbody tr:nth-child(odd):hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   Modals
   ============================================ */
.ios-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ios-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1001;
}

@media (min-width: 640px) {
  .ios-modal {
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
  }
}

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

.ios-modal-title {
  font-size: 18px;
  font-weight: 600;
}

.ios-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ios-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

/* ============================================
   Payment Cards
   ============================================ */
.payment-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-pill:hover {
  background: rgba(255, 255, 255, 0.08);
}

.payment-pill.selected {
  background: rgba(175, 82, 222, 0.15);
  border-color: var(--ios-purple);
}

.payment-pill img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Quick Amount Buttons */
.quick-amount {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-amount:hover {
  background: rgba(255, 255, 255, 0.1);
}

.quick-amount.selected {
  background: var(--ios-purple);
  border-color: var(--ios-purple);
}

/* ============================================
   Empty States
   ============================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 64px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.empty-state-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ============================================
   Filter Chips
   ============================================ */
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-chip {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.filter-chip:focus,
.filter-chip:focus-visible,
.filter-chip:active {
  outline: none;
  box-shadow: none;
}

.filter-chip.active {
  background: rgba(175, 82, 222, 0.2);
  color: var(--ios-purple);
}

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

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

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(175, 82, 222, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(175, 82, 222, 0.6);
  }
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.4s var(--ios-ease) forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.3s var(--ios-ease) forwards;
}

.animate-slide-up {
  animation: slideUp 0.3s var(--ios-ease) forwards;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--ios-purple) 50%, var(--ios-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-purple {
  box-shadow: 0 0 40px rgba(175, 82, 222, 0.4);
}

.ios-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  margin: 16px 0;
}

.text-ios-purple { color: var(--ios-purple); }
.text-ios-green { color: var(--ios-green); }
.text-ios-red { color: var(--ios-red); }
.text-ios-orange { color: var(--ios-orange); }
.text-ios-teal { color: var(--ios-teal); }
.text-ios-pink { color: var(--ios-pink); }

.bg-ios-purple { background-color: var(--ios-purple); }
.bg-ios-green { background-color: var(--ios-green); }
.bg-ios-red { background-color: var(--ios-red); }
.bg-ios-orange { background-color: var(--ios-orange); }

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   iOS Toggle Switch
   ============================================ */
.ios-toggle {
  position: relative;
  width: 51px;
  height: 31px;
  cursor: pointer;
}

.ios-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ios-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(120, 120, 128, 0.32);
  transition: 0.4s;
  border-radius: 31px;
}

.ios-toggle-slider:before {
  position: absolute;
  content: "";
  height: 27px;
  width: 27px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.16);
}

.ios-toggle input:checked + .ios-toggle-slider {
  background-color: var(--ios-green);
}

.ios-toggle input:checked + .ios-toggle-slider:before {
  transform: translateX(20px);
}

/* Toggle item container */
.ios-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  color: var(--text-primary);
}

.ios-toggle-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ios-toggle-item span {
  color: var(--text-primary);
}

/* Custom checkbox style */
input.ios-toggle,
.checkboxList__checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

input.ios-toggle:hover,
.checkboxList__checkbox:hover {
  border-color: var(--ios-purple);
  background: rgba(175, 82, 222, 0.1);
}

input.ios-toggle:checked,
.checkboxList__checkbox:checked {
  background: var(--ios-purple);
  border-color: var(--ios-purple);
}

input.ios-toggle::before,
.checkboxList__checkbox::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%) rotate(45deg) scale(0);
  transition: transform 0.2s ease;
}

input.ios-toggle:checked::before,
.checkboxList__checkbox:checked::before {
  transform: translate(-50%, -60%) rotate(45deg) scale(1);
}

/* Legacy checkboxList support */
.checkboxList__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  color: var(--text-primary);
}

.checkboxList__item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.checkboxList__item > div,
.checkboxList__item > span {
  flex: 1;
  color: var(--text-primary);
}

/* Hide the old label with checkmark icon */
.checkboxList__item > label[for] {
  display: none;
}

/* ============================================
   Flatpickr Time Picker Styling
   ============================================ */
.flatpickr-calendar {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif !important;
}

.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after,
.flatpickr-calendar.arrowBottom::before,
.flatpickr-calendar.arrowBottom::after {
  display: none !important;
}

.flatpickr-time {
  background: transparent !important;
  border: none !important;
  max-height: none !important;
  height: auto !important;
  padding: 20px !important;
}

.flatpickr-time input {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 12px !important;
  color: white !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  height: 60px !important;
  padding: 0 !important;
  text-align: center !important;
}

.flatpickr-time input:hover,
.flatpickr-time input:focus {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: var(--ios-purple) !important;
}

.flatpickr-time .flatpickr-time-separator {
  color: white !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  height: 60px !important;
  line-height: 60px !important;
}

.flatpickr-time .numInputWrapper {
  height: 60px !important;
}

.flatpickr-time .numInputWrapper span {
  background: var(--ios-purple) !important;
  border: none !important;
  border-radius: 6px !important;
  width: 20px !important;
  height: 20px !important;
  opacity: 1 !important;
  right: 5px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.flatpickr-time .numInputWrapper span:hover {
  background: var(--ios-blue) !important;
}

.flatpickr-time .numInputWrapper span.arrowUp {
  top: 5px !important;
}

.flatpickr-time .numInputWrapper span.arrowDown {
  bottom: 5px !important;
}

.flatpickr-time .numInputWrapper span::after {
  content: '' !important;
  border: solid white !important;
  border-width: 0 2px 2px 0 !important;
  padding: 3px !important;
  display: inline-block !important;
}

.flatpickr-time .numInputWrapper span.arrowUp::after {
  transform: rotate(-135deg) !important;
  margin-top: 2px !important;
}

.flatpickr-time .numInputWrapper span.arrowDown::after {
  transform: rotate(45deg) !important;
  margin-bottom: 2px !important;
}

.flatpickr-am-pm {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 12px !important;
  color: white !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  height: 60px !important;
}

.flatpickr-am-pm:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

/* ============================================
   Alerts
   ============================================ */
.ios-alert {
  padding: 16px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ios-alert-success {
  background: rgba(52, 199, 89, 0.15);
  border: 1px solid rgba(52, 199, 89, 0.3);
  color: var(--ios-green);
}

.ios-alert-error {
  background: rgba(255, 59, 48, 0.15);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: var(--ios-red);
}

.ios-alert-warning {
  background: rgba(255, 149, 0, 0.15);
  border: 1px solid rgba(255, 149, 0, 0.3);
  color: var(--ios-orange);
}

.ios-alert-info {
  background: rgba(90, 200, 250, 0.15);
  border: 1px solid rgba(90, 200, 250, 0.3);
  color: var(--ios-teal);
}

/* ============================================
   Override Bootstrap (temporary)
   ============================================ */
body.ios-theme .card {
  background: transparent;
  border: none;
}

body.ios-theme .btn {
  border-radius: 12px;
}

body.ios-theme .form-control {
  background: rgba(28, 28, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 12px;
}

body.ios-theme .form-control:focus {
  background: rgba(28, 28, 30, 0.9);
  border-color: var(--ios-purple);
  box-shadow: 0 0 0 3px rgba(175, 82, 222, 0.2);
  color: white;
}

body.ios-theme .alert {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.ios-theme .alert-success {
  background: rgba(52, 199, 89, 0.15);
  color: var(--ios-green);
  border-color: rgba(52, 199, 89, 0.3);
}

body.ios-theme .alert-danger {
  background: rgba(255, 59, 48, 0.15);
  color: var(--ios-red);
  border-color: rgba(255, 59, 48, 0.3);
}

body.ios-theme .alert-info {
  background: rgba(90, 200, 250, 0.15);
  color: var(--ios-teal);
  border-color: rgba(90, 200, 250, 0.3);
}

body.ios-theme .alert-warning {
  background: rgba(255, 149, 0, 0.15);
  color: var(--ios-orange);
  border-color: rgba(255, 149, 0, 0.3);
}

body.ios-theme .modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
}

body.ios-theme .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.ios-theme .modal-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.ios-theme .dropdown-menu {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 8px;
}

body.ios-theme .dropdown-item {
  color: var(--text-primary);
  border-radius: 8px;
  padding: 10px 16px;
}

body.ios-theme .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

body.ios-theme .close {
  color: var(--text-secondary);
  text-shadow: none;
  opacity: 0.8;
}

body.ios-theme .close:hover {
  color: var(--text-primary);
  opacity: 1;
}

body.ios-theme .table {
  color: var(--text-primary);
}

body.ios-theme .page-link {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

body.ios-theme .page-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

body.ios-theme .page-item.active .page-link {
  background: var(--ios-purple);
  border-color: var(--ios-purple);
}

/* ============================================
   DataTables iOS Redesign
   ============================================ */

/* Wrapper Container */
body.ios-theme .dataTables_wrapper {
  padding: 0;
}

/* Header Controls - Search & Length */
body.ios-theme .dataTables_wrapper .dataTables_length,
body.ios-theme .dataTables_wrapper .dataTables_filter {
  margin-bottom: 20px;
}

body.ios-theme .dataTables_wrapper .dataTables_length label,
body.ios-theme .dataTables_wrapper .dataTables_filter label {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.ios-theme .dataTables_wrapper .dataTables_length select {
  background: rgba(28, 28, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 10px;
  padding: 10px 36px 10px 14px;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.6)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  transition: all 0.2s ease;
}

body.ios-theme .dataTables_wrapper .dataTables_length select:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(28, 28, 30, 0.95);
}

body.ios-theme .dataTables_wrapper .dataTables_length select:focus {
  outline: none;
  border-color: var(--ios-purple);
  box-shadow: 0 0 0 3px rgba(175, 82, 222, 0.2);
}

body.ios-theme .dataTables_wrapper .dataTables_filter input {
  background: rgba(28, 28, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 12px;
  padding: 12px 16px 12px 40px;
  font-size: 14px;
  min-width: 240px;
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.4)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 18px;
}

body.ios-theme .dataTables_wrapper .dataTables_filter input:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(28, 28, 30, 0.95);
}

body.ios-theme .dataTables_wrapper .dataTables_filter input:focus {
  outline: none;
  border-color: var(--ios-purple);
  box-shadow: 0 0 0 3px rgba(175, 82, 222, 0.2);
}

body.ios-theme .dataTables_wrapper .dataTables_filter input::placeholder {
  color: var(--text-tertiary);
}

/* Table Base Styles */
body.ios-theme table.dataTable {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

body.ios-theme table.dataTable thead th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  position: relative;
  white-space: nowrap;
}

body.ios-theme table.dataTable thead th:first-child {
  border-radius: 12px 0 0 0;
}

body.ios-theme table.dataTable thead th:last-child {
  border-radius: 0 12px 0 0;
}

/* Sorting Indicators */
body.ios-theme table.dataTable thead th.sorting,
body.ios-theme table.dataTable thead th.sorting_asc,
body.ios-theme table.dataTable thead th.sorting_desc {
  cursor: pointer;
  padding-right: 28px;
}

body.ios-theme table.dataTable thead th.sorting::after,
body.ios-theme table.dataTable thead th.sorting_asc::after,
body.ios-theme table.dataTable thead th.sorting_desc::after {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

body.ios-theme table.dataTable thead th.sorting::after {
  content: '↕';
}

body.ios-theme table.dataTable thead th.sorting_asc::after {
  content: '↑';
  opacity: 1;
  color: var(--ios-purple);
}

body.ios-theme table.dataTable thead th.sorting_desc::after {
  content: '↓';
  opacity: 1;
  color: var(--ios-purple);
}

body.ios-theme table.dataTable thead th.sorting:hover::after {
  opacity: 0.8;
}

/* Table Body */
body.ios-theme table.dataTable tbody tr {
  background: transparent;
  transition: background 0.15s ease;
}

body.ios-theme table.dataTable tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

body.ios-theme table.dataTable tbody tr.selected {
  background: rgba(175, 82, 222, 0.1);
}

body.ios-theme table.dataTable tbody tr.selected:hover {
  background: rgba(175, 82, 222, 0.15);
}

body.ios-theme table.dataTable tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 14px;
  vertical-align: middle;
}

body.ios-theme table.dataTable tbody tr:last-child td {
  border-bottom: none;
}

/* Empty State */
body.ios-theme .dataTables_wrapper .dataTables_empty {
  padding: 60px 20px;
  color: var(--text-tertiary);
  text-align: center;
  font-size: 14px;
}

/* Info Text */
body.ios-theme .dataTables_wrapper .dataTables_info {
  color: var(--text-secondary);
  font-size: 13px;
  padding: 16px 0;
}

/* Pagination */
body.ios-theme .dataTables_wrapper .dataTables_paginate {
  padding: 16px 0 0;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

body.ios-theme .dataTables_wrapper .dataTables_paginate .paginate_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

body.ios-theme .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  text-decoration: none;
}

body.ios-theme .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: linear-gradient(135deg, var(--ios-purple) 0%, var(--ios-indigo) 100%);
  border-color: transparent;
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(175, 82, 222, 0.3);
}

body.ios-theme .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: linear-gradient(135deg, var(--ios-purple) 0%, var(--ios-indigo) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(175, 82, 222, 0.4);
}

body.ios-theme .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

body.ios-theme .dataTables_wrapper .dataTables_paginate .paginate_button.previous,
body.ios-theme .dataTables_wrapper .dataTables_paginate .paginate_button.next {
  font-weight: 500;
}

/* Ellipsis in pagination */
body.ios-theme .dataTables_wrapper .dataTables_paginate .ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* Processing Overlay */
body.ios-theme .dataTables_wrapper .dataTables_processing {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(18, 18, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px 32px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

@media (min-width: 640px) {
  body.ios-theme .dataTables_wrapper .dataTables_processing {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

/* Checkbox Column */
body.ios-theme table.dataTable th.dt-checkboxes-cell,
body.ios-theme table.dataTable td.dt-checkboxes-cell {
  text-align: center;
  vertical-align: middle;
}

/* iOS Style Checkbox */
body.ios-theme .dt-checkboxes-select-all,
body.ios-theme .dt-checkboxes {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--ios-purple);
}

/* Custom iOS Checkbox using iCheck overrides */
body.ios-theme .icheckbox_flat-pink,
body.ios-theme .iradio_flat-pink {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  width: 22px;
  height: 22px;
  transition: all 0.2s ease;
}

body.ios-theme .icheckbox_flat-pink:hover,
body.ios-theme .iradio_flat-pink:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

body.ios-theme .icheckbox_flat-pink.checked,
body.ios-theme .iradio_flat-pink.checked {
  background: linear-gradient(135deg, var(--ios-purple) 0%, var(--ios-indigo) 100%);
  border-color: transparent;
  position: relative;
}

body.ios-theme .icheckbox_flat-pink.checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: 600;
}

/* Responsive DataTables */
body.ios-theme table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
body.ios-theme table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
  position: relative;
  padding-left: 36px;
  cursor: pointer;
}

body.ios-theme table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
body.ios-theme table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
  content: '+';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ios-purple);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

body.ios-theme table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control::before,
body.ios-theme table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control::before {
  content: '−';
  background: var(--ios-red);
}

/* Child Row (responsive details) */
body.ios-theme table.dataTable > tbody > tr.child {
  background: rgba(255, 255, 255, 0.02);
}

body.ios-theme table.dataTable > tbody > tr.child ul.dtr-details {
  display: block;
  list-style: none;
  padding: 12px 16px;
  margin: 0;
}

body.ios-theme table.dataTable > tbody > tr.child ul.dtr-details > li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.ios-theme table.dataTable > tbody > tr.child ul.dtr-details > li:last-child {
  border-bottom: none;
}

body.ios-theme table.dataTable > tbody > tr.child ul.dtr-details > li .dtr-title {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.ios-theme table.dataTable > tbody > tr.child ul.dtr-details > li .dtr-data {
  color: var(--text-primary);
  font-size: 14px;
}

/* DataTable inside glass-card */
.glass-card .dataTables_wrapper {
  margin: 0 -24px -24px;
  padding: 0 24px 24px;
}

.glass-card .dataTables_wrapper .dataTables_length,
.glass-card .dataTables_wrapper .dataTables_filter {
  padding-top: 4px;
}

/* Header row layout */
body.ios-theme .dataTables_wrapper .row:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

/* Footer row layout */
body.ios-theme .dataTables_wrapper .row:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 8px;
  padding-top: 16px;
}

/* Buttons Extension */
body.ios-theme .dt-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

body.ios-theme .dt-buttons .dt-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

body.ios-theme .dt-buttons .dt-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

body.ios-theme .dt-buttons .dt-button:active {
  transform: scale(0.98);
}

/* Row striping (subtle) */
body.ios-theme table.dataTable.stripe tbody tr.odd {
  background: rgba(255, 255, 255, 0.01);
}

/* Table cell actions alignment */
body.ios-theme table.dataTable td.btns-right,
body.ios-theme table.dataTable th.btns-right {
  text-align: right;
}

body.ios-theme table.dataTable td.text-center,
body.ios-theme table.dataTable th.text-center {
  text-align: center;
}

/* Mobile-friendly adjustments */
@media (max-width: 767px) {
  body.ios-theme .dataTables_wrapper .dataTables_length,
  body.ios-theme .dataTables_wrapper .dataTables_filter {
    width: 100%;
    text-align: left;
  }

  body.ios-theme .dataTables_wrapper .dataTables_filter input {
    width: 100%;
    min-width: unset;
  }

  body.ios-theme .dataTables_wrapper .dataTables_info,
  body.ios-theme .dataTables_wrapper .dataTables_paginate {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  body.ios-theme .dataTables_wrapper .dataTables_paginate {
    flex-wrap: wrap;
  }

  /* Уменьшаем шрифт в полях ввода на мобильных для лучшей читаемости placeholder */
  .ios-input,
  .ios-input::placeholder,
  .z1-form-control,
  .z1-form-control::placeholder,
  select.ios-input {
    font-size: 13px;
  }
}

/* Ещё меньше для очень маленьких экранов */
@media (max-width: 374px) {
  .ios-input,
  .ios-input::placeholder,
  .z1-form-control,
  .z1-form-control::placeholder,
  select.ios-input {
    font-size: 12px;
  }
}

/* Loading state shimmer effect */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

body.ios-theme table.dataTable tbody tr.loading td {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.02) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ============================================
   Login Page Specific
   ============================================ */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.login-logo img {
  height: 48px;
  filter: drop-shadow(0 0 20px rgba(175, 82, 222, 0.5));
  /* Компенсация: SVG 46x53, сердце внизу */
  margin-top: -8px;
}

.login-logo span {
  font-size: 28px;
  font-weight: 700;
  color: white;
  line-height: 1;
}

/* Disable hover animation on login/register forms */
.login-container .glass-card,
.login-container .glass-card:hover {
  transition: none !important;
  transform: none !important;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
}

.password-toggle:hover {
  color: var(--text-secondary);
}

/* ============================================
   Hunter Cards
   ============================================ */
.hunter-card {
  background: linear-gradient(
    135deg,
    rgba(28, 28, 30, 0.95) 0%,
    rgba(18, 18, 20, 0.98) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px;
  transition: all 0.3s ease;
}

.hunter-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hunter-card-active {
  border-color: rgba(52, 199, 89, 0.4);
  box-shadow: 0 0 20px rgba(52, 199, 89, 0.1);
}

.hunter-card-paused {
  border-color: rgba(142, 142, 147, 0.3);
  opacity: 0.7;
}

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

.hunter-card-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.hunter-card-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.hunter-card-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hunter-stat {
  text-align: center;
}

.hunter-stat-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.hunter-stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   Responsive Helpers
   ============================================ */
@media (max-width: 1023px) {
  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .mobile-only {
    display: none !important;
  }
}

/* ============================================
   SweetAlert iOS Style Override
   ============================================ */
.swal-overlay {
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.swal-modal {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--glass-border);
  border-radius: 20px !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 24px !important;
}

.swal-title {
  color: var(--text-primary) !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
}

.swal-text {
  color: var(--text-secondary) !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

.swal-icon {
  margin-bottom: 16px !important;
}

.swal-icon--warning {
  border-color: var(--ios-orange) !important;
}

.swal-icon--warning__body,
.swal-icon--warning__dot {
  background-color: var(--ios-orange) !important;
}

.swal-icon--success {
  border-color: var(--ios-green) !important;
}

.swal-icon--success__line {
  background-color: var(--ios-green) !important;
}

.swal-icon--success__ring {
  border-color: rgba(52, 199, 89, 0.3) !important;
}

.swal-icon--error {
  border-color: var(--ios-red) !important;
}

.swal-icon--error__line {
  background-color: var(--ios-red) !important;
}

.swal-button-container {
  margin: 8px 4px 0 4px !important;
}

.swal-button {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--ios-blue) !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  padding: 12px 24px !important;
  transition: all 0.2s ease !important;
}

.swal-button:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

.swal-button:focus {
  box-shadow: none !important;
}

.swal-button--cancel {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-secondary) !important;
}

.swal-button--cancel:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

.swal-button--danger {
  background: rgba(255, 59, 48, 0.15) !important;
  color: var(--ios-red) !important;
}

.swal-button--danger:hover {
  background: rgba(255, 59, 48, 0.25) !important;
}

.swal-button--confirm {
  background: var(--ios-blue) !important;
  color: white !important;
}

.swal-button--confirm:hover {
  background: #0066d6 !important;
}

.swal-footer {
  background: transparent !important;
  border: none !important;
  padding: 16px 0 0 0 !important;
  text-align: center !important;
}

/* ============================================
   Vue Multiselect iOS Style Override
   ============================================ */
.multiselect {
  background: var(--bg-tertiary) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px !important;
  min-height: 48px !important;
  color: var(--text-primary) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.multiselect:hover,
.multiselect--active {
  border-color: var(--ios-purple) !important;
}

.multiselect__tags {
  background: transparent !important;
  border: none !important;
  padding: 12px 40px 12px 16px !important;
  min-height: 48px !important;
  border-radius: 12px !important;
}

.multiselect__single {
  background: transparent !important;
  color: var(--text-primary) !important;
  font-size: 15px !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.multiselect__placeholder {
  color: var(--text-tertiary) !important;
  padding: 0 !important;
  margin: 0 !important;
}

.multiselect__select {
  height: 48px !important;
  width: 40px !important;
  padding: 0 !important;
  top: 0 !important;
  right: 0 !important;
}

.multiselect__select:before {
  border-color: var(--text-secondary) transparent transparent transparent !important;
  top: 55% !important;
}

.multiselect--active .multiselect__select:before {
  border-color: transparent transparent var(--text-secondary) transparent !important;
  top: 45% !important;
}

.multiselect__content-wrapper {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow-lg) !important;
  margin-top: 4px !important;
  overflow: hidden !important;
}

.multiselect__content {
  margin: 0 !important;
  padding: 4px !important;
}

.multiselect__element {
  margin: 0 !important;
}

.multiselect__option {
  background: transparent !important;
  color: var(--text-primary) !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  border-radius: 8px !important;
  min-height: auto !important;
  transition: background 0.15s ease !important;
}

.multiselect__option:hover,
.multiselect__option--highlight {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-primary) !important;
}

.multiselect__option--selected {
  background: rgba(175, 82, 222, 0.15) !important;
  color: var(--ios-purple) !important;
  font-weight: 500 !important;
}

.multiselect__option--selected.multiselect__option--highlight {
  background: rgba(175, 82, 222, 0.25) !important;
}

.multiselect__spinner {
  background: var(--bg-tertiary) !important;
}

.multiselect__spinner:before,
.multiselect__spinner:after {
  border-color: var(--ios-purple) transparent transparent !important;
}

.multiselect__input {
  background: transparent !important;
  color: var(--text-primary) !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 15px !important;
}

.multiselect__input::placeholder {
  color: var(--text-tertiary) !important;
}

/* Service option styling */
.service-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-option-content .title {
  color: var(--text-primary);
  font-weight: 500;
}

.service-id-label {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Form group override for multiselect */
.form-group:has(.multiselect) {
  margin-bottom: 16px;
}

.form-group:has(.multiselect) > label {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group:has(.multiselect) > p {
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 1.5;
}

/* ============================================
   Flatpickr Time Picker Style Override
   ============================================ */
.flatpickr-calendar {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-lg) !important;
  font-family: inherit !important;
}

.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after,
.flatpickr-calendar.arrowBottom:before,
.flatpickr-calendar.arrowBottom:after {
  display: none !important;
}

.flatpickr-time {
  background: transparent !important;
  border: none !important;
  max-height: none !important;
  height: auto !important;
  padding: 16px !important;
}

.flatpickr-time input {
  background: var(--bg-tertiary) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px !important;
  color: var(--text-primary) !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  height: 60px !important;
}

.flatpickr-time input:hover,
.flatpickr-time input:focus {
  background: var(--bg-elevated) !important;
  border-color: var(--ios-purple) !important;
}

.flatpickr-time .numInputWrapper {
  height: 60px !important;
}

.flatpickr-time .numInputWrapper:hover {
  background: transparent !important;
}

.flatpickr-time .numInputWrapper span {
  border: none !important;
  background: var(--ios-purple) !important;
  border-radius: 6px !important;
  opacity: 1 !important;
  width: 20px !important;
  height: 20px !important;
  right: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.flatpickr-time .numInputWrapper span:hover {
  background: #9a4ed8 !important;
}

.flatpickr-time .numInputWrapper span:after {
  content: '' !important;
  border: solid white !important;
  border-width: 0 2px 2px 0 !important;
  padding: 3px !important;
  display: inline-block !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
}

.flatpickr-time .numInputWrapper span.arrowUp {
  top: 4px !important;
}

.flatpickr-time .numInputWrapper span.arrowUp:after {
  transform: rotate(-135deg) !important;
  margin-top: 2px !important;
}

.flatpickr-time .numInputWrapper span.arrowDown {
  bottom: 4px !important;
}

.flatpickr-time .numInputWrapper span.arrowDown:after {
  transform: rotate(45deg) !important;
  margin-bottom: 2px !important;
}

.flatpickr-time-separator {
  color: var(--text-primary) !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  height: 60px !important;
  line-height: 60px !important;
}

.flatpickr-am-pm {
  background: var(--bg-tertiary) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px !important;
  color: var(--text-primary) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  height: 60px !important;
}

.flatpickr-am-pm:hover,
.flatpickr-am-pm:focus {
  background: var(--bg-elevated) !important;
  border-color: var(--ios-purple) !important;
}

/* Time picker input field */
.timepicker-input {
  cursor: pointer;
}

.timepicker-input:read-only {
  background: rgba(28, 28, 30, 0.8);
}

/* ============================================
   Order Form Styles
   ============================================ */
[v-cloak] {
  display: none;
}

/* Search Results */
.search-results-list {
  max-height: 600px;
  overflow-y: auto;
}

.search-no-results {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 14px;
}

/* Z1 Form Controls - legacy support */
.z1-form-control,
.z1-form-group input,
.z1-form-group select,
.z1-form-group textarea {
  width: 100%;
  background: rgba(28, 28, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  color: white;
  font-size: 16px;
  transition: all 0.2s ease;
}

.z1-form-control:focus,
.z1-form-group input:focus,
.z1-form-group select:focus,
.z1-form-group textarea:focus {
  outline: none;
  border-color: var(--ios-purple);
  box-shadow: 0 0 0 3px rgba(175, 82, 222, 0.2);
}

.z1-form-control::placeholder {
  color: rgba(235, 235, 245, 0.3);
}

/* Z1 Buttons - legacy support */
.z1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.z1-btn-primary {
  background: linear-gradient(135deg, #AF52DE 0%, #5856D6 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(175, 82, 222, 0.4);
}

.z1-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(175, 82, 222, 0.5);
}

.z1-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.z1-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.z1-btn-danger {
  background: rgba(255, 59, 48, 0.2);
  color: #FF3B30;
}

.z1-btn-danger:hover {
  background: rgba(255, 59, 48, 0.3);
}

.z1-btn-dropdown {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 16px;
  color: white;
  font-size: 14px;
}

/* Z1 Card Header */
.z1-card-header {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 0;
}

/* Card styling for order forms */
.card {
  background: linear-gradient(135deg, rgba(28, 28, 30, 0.95) 0%, rgba(18, 18, 20, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 16px;
}

/* Alert styling */
.alert-danger {
  background: rgba(255, 59, 48, 0.15);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: #FF3B30;
  border-radius: 16px;
  padding: 16px;
}

.alert-info {
  background: rgba(90, 200, 250, 0.15);
  border: 1px solid rgba(90, 200, 250, 0.3);
  color: #5AC8FA;
  border-radius: 16px;
  padding: 16px;
}

.alert-warning {
  background: rgba(255, 149, 0, 0.15);
  border: 1px solid rgba(255, 149, 0, 0.3);
  color: #FF9500;
  border-radius: 16px;
  padding: 16px;
}

/* Modal styling */
.modal-content {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px;
}

.bl-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
}

/* Price display */
.pull-right {
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.rub-color {
  color: #34C759;
}

/* Loader */
.box-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.box-loader::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid rgba(175, 82, 222, 0.2);
  border-top-color: #AF52DE;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Row gap fix for Bootstrap grid */
.row {
  margin-left: -8px;
  margin-right: -8px;
}

.row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

small {
  color: rgba(235, 235, 245, 0.5);
  font-size: 12px;
}

.text-danger {
  color: #FF3B30 !important;
}

/* Footer margin */
.footer-margin-sm {
  margin-bottom: 8px;
}

/* Mobile responsive for cards */
@media (max-width: 768px) {
  .card {
    padding: 16px;
    border-radius: 20px;
  }

  .z1-btn {
    padding: 12px 16px;
    font-size: 13px;
  }
}

/* ============================================
   Chatra Widget Position
   ============================================ */
@media (max-width: 1023px) {
  #chatra:not(.chatra--expanded),
  .chatra--pos-br {
    bottom: 90px !important;
  }
}

/* ============================================
   Logo Alignment Fix
   ============================================ */
/* Fix logo alignment in sidebar and mobile header */
.panel-sidebar a[href="/panel"],
.ios-pill a[href="/panel"],
header a[href="/panel"] {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-sidebar a[href="/panel"] img,
.ios-pill a[href="/panel"] img,
header a[href="/panel"] img {
  flex-shrink: 0;
  vertical-align: middle;
}

/* ============================================
   Task Progress Bar Status Colors
   ============================================ */
/* Completed - Green */
.ios-progress-bar.progress-completed,
.ios-progress-completed .ios-progress-bar {
  background: linear-gradient(90deg, var(--ios-green), #2da44e);
}

/* In Progress - Purple */
.ios-progress-bar.progress-in-progress,
.ios-progress-in-progress .ios-progress-bar {
  background: linear-gradient(90deg, var(--ios-purple), var(--ios-indigo));
}

/* Failed - Red */
.ios-progress-bar.progress-failed,
.ios-progress-failed .ios-progress-bar {
  background: linear-gradient(90deg, var(--ios-red), #cc2f28);
}

/* ============================================
   Override Default Selection/Hover Colors
   ============================================ */
::selection {
  background: rgba(175, 82, 222, 0.4);
  color: white;
}

::-moz-selection {
  background: rgba(175, 82, 222, 0.4);
  color: white;
}

/* Override browser focus outline color */
:focus-visible {
  outline: 2px solid var(--ios-purple);
  outline-offset: 2px;
}

/* Links hover color - фиолетовый на весь сайт */
body.ios-theme a:hover,
.ios-theme a:hover {
  color: var(--ios-purple) !important;
}

/* Исключения для кнопок и ссылок с белым текстом */
body.ios-theme a.ios-button:hover,
body.ios-theme a.text-white:hover,
body.ios-theme a.hover\:text-white:hover,
body.ios-theme .balance-pill:hover,
body.ios-theme .sidebar-nav-item:hover {
  color: inherit !important;
}

/* ============================================
   Native Select Styling
   ============================================ */
body.ios-theme select,
body.ios-theme select.z1-form-control,
body.ios-theme select.ios-input {
  background: rgba(28, 28, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 40px 14px 16px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.6)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  transition: all 0.2s ease;
}

body.ios-theme select:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(28, 28, 30, 0.95);
}

body.ios-theme select:focus {
  outline: none;
  border-color: var(--ios-purple);
  box-shadow: 0 0 0 3px rgba(175, 82, 222, 0.2);
}

body.ios-theme select option {
  background: var(--bg-secondary);
  color: white;
  padding: 12px;
}

/* ============================================
   Mobile Button Compact Styles
   ============================================ */
@media (max-width: 1023px) {
  /* Уменьшаем padding для маленьких кнопок на мобилках */
  .ios-button-sm {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 10px;
  }
}

/* ============================================
   Favorite Star Button
   ============================================ */
.favorite-star {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 18px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.2s var(--ios-ease);
  border-radius: 8px;
}

.favorite-star:hover {
  color: var(--ios-yellow);
  background: rgba(255, 204, 0, 0.1);
}

.favorite-star.is-favorite {
  color: var(--ios-yellow);
}

.favorite-star.is-favorite:hover {
  color: #FFD633;
}

/* Small favorite star for multiselect options */
.favorite-star-sm {
  font-size: 14px;
  padding: 4px 6px;
}

/* iOS Yellow text utility */
.text-ios-yellow {
  color: var(--ios-yellow);
}
