/* ==========================================================================
   FRYNZY CLOUD URL — ULTRA LUXURY WHITE THEME & PROFESSIONAL DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-alt: #f1f5f9;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.18);

  --moncash-red: #e02a27;
  --moncash-dark: #b81c19;
  --moncash-light: #fff5f5;

  --accent-gold: #f59e0b;
  --accent-gold-dark: #d97706;
  --accent-gold-light: #fffbeb;

  --success: #10b981;
  --success-light: #ecfdf5;
  --danger: #ef4444;
  --danger-light: #fef2f2;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.09);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.15);

  --font-primary: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

html {
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body.light-luxury-theme {
  font-family: var(--font-primary);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.app-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.94);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-back-home {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-alt);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.btn-back-home:hover {
  background: #e2e8f0;
  color: var(--text-main);
  transform: translateX(-2px);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.brand-highlight {
  color: var(--primary);
}

.brand-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* User Profile Header Pill */
.user-profile-header-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.user-profile-header-pill:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.user-avatar-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--primary);
  flex-shrink: 0;
}

.header-user-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-meta-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-display-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-plan-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--primary);
}

.btn-login-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #eff6ff;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-login-header:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Live Quota Widget */
.quota-pill-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px 6px 10px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
}

.quota-progress-ring {
  width: 32px;
  height: 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circular-chart {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 3.8;
}

.circle-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3.8;
  stroke-linecap: round;
  transition: stroke-dasharray 0.5s ease;
}

.quota-percentage {
  position: absolute;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--primary);
}

.quota-info-text {
  display: flex;
  flex-direction: column;
}

.quota-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.quota-plan-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--success);
}

.btn-upgrade-glow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-upgrade-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.main-content-layout {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 24px 60px;
  flex: 1;
  box-sizing: border-box;
  min-width: 0;
  overflow-x: hidden;
}

.hero-intro-section {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 36px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.hero-main-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--text-main);
  margin-bottom: 14px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  word-break: break-word;
}

/* Plan Limits Strip */
.plan-limits-strip {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 22px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 100%;
  box-sizing: border-box;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.strip-item i {
  color: var(--primary);
}

.strip-item strong {
  color: var(--text-main);
}

.strip-divider {
  width: 1px;
  height: 16px;
  background: var(--border-color);
}

/* ==========================================================================
   WORKSPACE GRID & CARDS
   ========================================================================== */

.workspace-grid-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 36px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.card-white {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: box-shadow 0.3s ease;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.card-white:hover {
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   DROPZONE AREA
   ========================================================================== */

.dropzone-area {
  border: 2.5px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 44px 24px;
  text-align: center;
  background: #fafcff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropzone-area:hover, .dropzone-area.drag-over {
  border-color: var(--primary);
  background: #f0f7ff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.dropzone-ambient-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.dropzone-icon-box {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--primary);
  font-size: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.dropzone-area:hover .dropzone-icon-box {
  transform: scale(1.08) rotate(-4deg);
}

.dropzone-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.dropzone-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.btn-browse-trigger {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.supported-formats-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pill-format {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.pill-format i {
  color: var(--primary);
}

/* Options Box */
.uploader-options-box {
  margin-top: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.options-header {
  padding: 14px 20px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  user-select: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  gap: 10px;
}

.opt-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.opt-title span {
  word-break: break-word;
  overflow-wrap: break-word;
}

.opt-title i {
  color: var(--primary);
  flex-shrink: 0;
}

.toggle-arrow {
  transition: transform 0.3s ease;
  color: var(--text-muted);
  flex-shrink: 0;
}

.toggle-arrow.open {
  transform: rotate(180deg);
}

.options-body {
  display: none;
  padding: 20px;
  border-top: 1px solid var(--border-color);
  animation: fadeIn 0.25s ease;
}

.options-body.open {
  display: block;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.opt-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.opt-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-opt {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--success);
  font-weight: 800;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  font-size: 0.9rem;
}

.input-with-icon input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  color: var(--text-main);
  transition: border-color 0.2s ease;
}

.input-with-icon input:focus {
  border-color: var(--primary);
}

.compression-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card-alt);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

/* Switch control */
.switch-control {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}

.switch-control input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-toggle {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  border-radius: 22px;
  transition: 0.3s;
}

.slider-toggle:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

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

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

.slider-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.slider-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.slider-wrapper input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Queue Container */
.upload-queue-container {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-color);
}

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

.queue-header h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-text-action {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-text-action:hover {
  text-decoration: underline;
}

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 18px;
}

.queue-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  gap: 12px;
}

.queue-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
}

.queue-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.queue-item-details {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
}

.queue-file-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  width: 100%;
}

.queue-file-size {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-remove-queue-item {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.btn-remove-queue-item:hover {
  color: var(--danger);
}

/* Master Upload Button */
.btn-master-upload {
  width: 100%;
  max-width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.32);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.btn-master-upload span {
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

.btn-master-upload:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
}

.btn-master-upload:active {
  transform: translateY(0);
}

.btn-master-upload:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Shimmer Animation on Button */
.btn-shimmer-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: btnShimmer 2.5s infinite;
}

@keyframes btnShimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* ==========================================================================
   RESULT & MULTI-FORMAT EXPORTER
   ========================================================================== */

.result-section {
  animation: fadeIn 0.35s ease;
}

.result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.result-status-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--success);
}

.provider-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
}

/* Media Preview Holder */
.media-preview-container {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  max-height: 240px;
  overflow: hidden;
  position: relative;
}

.media-preview-container img {
  max-height: 200px;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.25s ease;
}

.media-preview-container img:hover {
  transform: scale(1.03);
}

/* Audio Player */
.audio-player-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
}

.btn-play-audio {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-play-audio:hover {
  transform: scale(1.08);
}

.audio-track-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.audio-track-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-scrubber {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

/* File Metadata */
.file-metadata-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.meta-val {
  font-size: 0.85rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Export Tabs */
.export-tabs-wrapper {
  margin-bottom: 20px;
}

.export-tabs-nav {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow-x: auto;
}

.tab-nav-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.tab-nav-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.export-tab-pane {
  display: none;
}

.export-tab-pane.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

.copy-url-group {
  display: flex;
  gap: 8px;
}

.url-input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
}

.url-input:focus {
  border-color: var(--primary);
}

.btn-copy-url {
  padding: 0 20px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-copy-url:hover {
  background: var(--primary-hover);
}

.btn-copy-url.copied {
  background: var(--success);
}

.btn-open-url {
  width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-open-url:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* QR Code Display */
.qrcode-view-box {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #f8fafc;
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.qr-canvas-holder {
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qr-canvas-holder img, .qr-canvas-holder canvas {
  width: 100% !important;
  height: 100% !important;
}

.qr-download-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qr-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.btn-download-qr {
  align-self: flex-start;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-download-qr:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Social Share Strip */
.social-share-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.share-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.social-btn-group {
  display: flex;
  gap: 8px;
}

.btn-social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-social:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-whatsapp:hover { background: #25d366; border-color: #25d366; }
.btn-telegram:hover { background: #0088cc; border-color: #0088cc; }
.btn-twitter:hover { background: #000000; border-color: #000000; }
.btn-facebook:hover { background: #1877f2; border-color: #1877f2; }
.btn-email:hover { background: #ea4335; border-color: #ea4335; }

/* ==========================================================================
   HISTORY SUITE & FILE MANAGER
   ========================================================================== */

.history-suite-section {
  margin-top: 10px;
}

.history-suite-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.header-left-title h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.header-left-title p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.history-toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-tool {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tool:hover {
  border-color: #cbd5e1;
  color: var(--text-main);
  background: #f8fafc;
}

.btn-danger-soft {
  color: var(--danger);
}

.btn-danger-soft:hover {
  background: var(--danger-light);
  border-color: #fecaca;
}

/* History Filter Bar */
.history-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.search-field-wrapper {
  position: relative;
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
}

.search-field-wrapper i {
  position: absolute;
  left: 14px;
  color: #94a3b8;
}

.search-field-wrapper input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  background: #ffffff;
}

.search-field-wrapper input:focus {
  border-color: var(--primary);
}

.category-chips-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-filter {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.chip-filter:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.chip-filter.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* History Grid Cards */
.history-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.history-card-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-card-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.hcard-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hcard-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hcard-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.hcard-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hcard-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.hcard-bottom-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.btn-hcard-copy {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-hcard-copy:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-hcard-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-hcard-icon:hover {
  border-color: #cbd5e1;
  color: var(--text-main);
}

.btn-hcard-icon.delete:hover {
  background: var(--danger-light);
  border-color: #fecaca;
  color: var(--danger);
}

/* History Empty State */
.history-empty-state {
  text-align: center;
  padding: 60px 20px;
  display: none;
}

.empty-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.history-empty-state h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.history-empty-state p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Shimmer Loading State for History */
.history-shimmer-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shimmer-row {
  height: 68px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmerAnim 1.5s infinite;
}

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

/* ==========================================================================
   SUBSCRIPTION & PRICING MODAL
   ========================================================================== */

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-container-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 1040px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.btn-close-modal {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.modal-header-box {
  text-align: center;
  margin-bottom: 36px;
}

.badge-upgrade-modal {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: #eff6ff;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.modal-header-box h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.modal-header-box p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.plans-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.pricing-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.featured-starter {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.12);
}

.vip-card {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.14);
}

.featured-badge-pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.vip-badge-pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.pricing-card-header {
  margin-bottom: 20px;
}

.plan-type {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  display: block;
  margin-bottom: 8px;
}

.plan-price-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}

.price-val {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.price-cycle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.plan-perks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  border-top: 1px dashed var(--border-color);
  padding-top: 18px;
}

.plan-perks-list li {
  font-size: 0.85rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-perks-list li i {
  color: var(--success);
  font-size: 0.9rem;
}

.btn-plan-select {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-plan-free {
  background: #f1f5f9;
  color: var(--text-muted);
  cursor: default;
}

.btn-plan-action {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-plan-action:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-plan-vip {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-plan-vip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.modal-gateways-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.modal-gateways-footer span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.gateways-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.gt-badge.moncash-badge {
  background: #fff5f5;
  border-color: #fed7d7;
  color: var(--moncash-red);
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */

.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
}

.lightbox-content-holder {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content-holder img, .lightbox-content-holder video {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.btn-close-lightbox {
  position: absolute;
  top: -46px;
  right: -10px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-notification {
  pointer-events: auto;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  min-width: 280px;
  max-width: 420px;
  animation: toastSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
}

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

.toast-notification.success i { color: var(--success); }
.toast-notification.error i { color: var(--danger); }
.toast-notification.info i { color: var(--primary); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.app-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Desktop vs Mobile Header Controls */
.mobile-only-header {
  display: none;
}

.desktop-only-header {
  display: flex;
}

/* Mobile Header Button */
.btn-mobile-header-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  color: var(--text-main);
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.btn-mobile-header-menu:hover, .btn-mobile-header-menu:active {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: scale(0.98);
}

.mobile-avatar-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  flex-shrink: 0;
}

.mobile-avatar-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile Slide-Down Drawer Sheet */
.mobile-drawer-sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.mobile-drawer-sheet.open {
  display: block;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.25s ease;
}

.mobile-drawer-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  padding: 24px 20px 28px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  border-bottom: 1px solid var(--border-color);
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

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

.drawer-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.drawer-user-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary);
}

.drawer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-user-info {
  display: flex;
  flex-direction: column;
}

.drawer-user-info strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.drawer-plan-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.btn-close-drawer {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 1.1rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Drawer Quota Box */
.drawer-quota-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.drawer-quota-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.drawer-progress-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.drawer-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #7c3aed);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.drawer-quota-sub {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Drawer Actions List */
.drawer-actions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-drawer-action {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-drawer-action.highlight-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.btn-drawer-action:hover {
  transform: translateY(-1px);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile, Tablet, Large Displays)
   ========================================================================== */

@media (max-width: 1024px) {
  .workspace-grid-container {
    grid-template-columns: 1fr;
  }
  .plans-cards-grid {
    grid-template-columns: 1fr;
  }
  .options-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* ── Header ── */
  .desktop-only-header {
    display: none !important;
  }
  .mobile-only-header {
    display: flex !important;
  }
  .header-container {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 14px;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .btn-back-text {
    display: none;
  }
  .btn-back-home {
    padding: 8px 10px;
    gap: 0;
  }
  .brand-tag {
    display: none;
  }
  .brand-main {
    font-size: 1rem;
  }

  /* ── Main layout ── */
  .main-content-layout {
    padding: 20px 12px 48px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .workspace-grid-container {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* ── Hero ── */
  .hero-intro-section {
    margin-bottom: 20px;
    width: 100% !important;
    max-width: 100% !important;
  }
  .hero-main-title {
    font-size: 1.55rem;
    letter-spacing: -0.5px;
  }
  .hero-subtext {
    font-size: 0.92rem;
  }
  .plan-limits-strip {
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column;
    border-radius: var(--radius-md);
    gap: 8px;
    text-align: left;
    box-sizing: border-box;
  }
  .strip-divider {
    display: none;
  }
  .strip-item {
    font-size: 0.82rem;
  }

  /* ── Cards ── */
  .card-white {
    padding: 16px 14px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
  }

  .uploader-section, .result-section, .history-suite-section {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  /* ── Dropzone ── */
  .dropzone-area {
    padding: 28px 14px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .dropzone-icon-box {
    width: 54px;
    height: 54px;
    font-size: 1.4rem;
  }
  .dropzone-title {
    font-size: 1rem;
  }
  .dropzone-subtitle {
    font-size: 0.85rem;
  }
  .supported-formats-pills {
    gap: 6px;
  }
  .pill-format {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  /* ── Options box ── */
  .uploader-options-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .options-header {
    padding: 12px 14px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .opt-title span {
    font-size: 0.8rem;
  }
  .options-body {
    padding: 16px 14px;
  }

  /* ── Queue items: prevent overflow ── */
  .upload-queue-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .queue-list {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .queue-item-card {
    padding: 10px 12px;
    gap: 8px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  .queue-item-left {
    min-width: 0 !important;
    flex: 1 1 0% !important;
    gap: 8px;
    overflow: hidden;
  }
  .queue-item-details {
    min-width: 0 !important;
    flex: 1 1 0% !important;
    overflow: hidden;
  }
  .queue-file-name {
    display: block !important;
    font-size: 0.82rem;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .queue-file-size {
    font-size: 0.72rem;
  }
  .queue-item-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  /* ── Upload Button ── */
  .btn-master-upload {
    padding: 14px 14px;
    font-size: 0.92rem;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* ── Result Section ── */
  .file-metadata-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .copy-url-group {
    flex-direction: column;
    gap: 10px;
  }
  .url-input {
    font-size: 0.82rem;
    padding: 10px 12px;
    width: 100% !important;
    box-sizing: border-box;
  }
  .btn-copy-url {
    width: 100% !important;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
  }
  .btn-open-url {
    width: 100% !important;
    padding: 10px;
    justify-content: center;
    box-sizing: border-box;
  }
  .export-tabs-nav {
    gap: 4px;
  }
  .tab-nav-btn {
    font-size: 0.75rem;
    padding: 7px 8px;
    gap: 4px;
  }
  .tab-nav-btn span {
    display: none;
  }

  /* ── QR Code ── */
  .qrcode-view-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .btn-download-qr {
    align-self: stretch;
    justify-content: center;
  }

  /* ── Social Share ── */
  .social-share-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .social-btn-group {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* ── History toolbar ── */
  .history-suite-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .history-toolbar-actions {
    width: 100% !important;
    gap: 8px;
    box-sizing: border-box;
  }
  .btn-tool {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.78rem;
    gap: 6px;
  }
  .btn-tool span {
    display: none;
  }
  .history-filter-bar {
    flex-direction: column;
    gap: 12px;
  }
  .search-field-wrapper {
    min-width: unset;
    width: 100% !important;
    box-sizing: border-box;
  }
  .category-chips-filter {
    width: 100% !important;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    box-sizing: border-box;
  }
  .chip-filter {
    font-size: 0.76rem;
    padding: 6px 12px;
    flex-shrink: 0;
  }

  /* ── History Cards ── */
  .history-items-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100% !important;
    box-sizing: border-box;
  }
  .hcard-title {
    font-size: 0.85rem;
  }
  .hcard-bottom-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  .btn-hcard-copy {
    flex: 1;
    justify-content: center;
  }

  /* ── Modal ── */
  .modal-container-card {
    padding: 20px 16px;
    margin: 0 12px;
    max-height: 90vh;
    overflow-y: auto;
    width: calc(100% - 24px) !important;
    box-sizing: border-box;
  }
  .plans-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* ── Options accordion ── */
  .options-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Extra small screens (≤ 380px) */
@media (max-width: 380px) {
  .brand-main {
    display: none;
  }
  .hero-main-title {
    font-size: 1.35rem;
  }
  .btn-tool span {
    display: none;
  }
  .tab-nav-btn span {
    display: none;
  }
  .queue-item-icon {
    display: none;
  }
}

/* ==========================================================================
   LANGUAGE SELECTOR DROPDOWN & DRAWER STYLES
   ========================================================================== */

.lang-selector-dropdown {
  position: relative;
  display: inline-block;
}

.btn-lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-lang-toggle:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.lang-current-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.lang-current-code {
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.lang-chevron {
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.lang-selector-dropdown.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 230px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.02);
  padding: 8px;
  z-index: 1000;
  display: none;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-selector-dropdown.open .lang-menu-panel {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lang-menu-header {
  padding: 8px 12px 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4px;
}

.lang-menu-list {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 2px;
}

.lang-menu-list::-webkit-scrollbar {
  width: 5px;
}

.lang-menu-list::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 10px;
}

.lang-option-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.15s ease;
  text-align: left;
}

.lang-option-btn:hover {
  background: #f8fafc;
  color: var(--primary);
}

.lang-option-btn.active {
  background: #eef2ff;
  color: var(--primary);
  font-weight: 700;
}

.lang-option-btn .opt-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.lang-option-btn .opt-name {
  flex: 1;
}

.lang-option-btn .opt-code {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 800;
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Mobile Drawer Language Section */
.drawer-lang-section {
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-top: 14px;
}

.drawer-lang-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.drawer-lang-chips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.mobile-lang-chip {
  padding: 7px 4px;
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  white-space: nowrap;
}

.mobile-lang-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-lang-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.3);
}

/* RTL Direction Support for Arabic */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .header-left {
  flex-direction: row-reverse;
}

[dir="rtl"] .header-right {
  flex-direction: row-reverse;
}

[dir="rtl"] .btn-back-home i {
  transform: rotate(180deg);
}

[dir="rtl"] .lang-menu-panel {
  right: auto;
  left: 0;
}

[dir="rtl"] .lang-option-btn {
  text-align: right;
}

[dir="rtl"] .input-icon {
  left: auto;
  right: 14px;
}

[dir="rtl"] .input-custom-with-icon {
  padding-left: 14px;
  padding-right: 42px;
}