/* ==========================================================
   UNIQ 2K — Design System & Stylesheet
   Modern Glassmorphic Dark Theme with Electric Violet & Emerald
   ========================================================== */

:root {
  color-scheme: dark;
  --bg-main: #0a0d14;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 35, 55, 0.85);
  --bg-surface: #141c2e;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.35);

  --primary: #8b5cf6;
  --primary-hover: #7c3aed;
  --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
  --primary-glow: rgba(139, 92, 246, 0.4);

  --emerald: #10b981;
  --emerald-hover: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.3);

  --amber: #f59e0b;
  --amber-hover: #d97706;
  --amber-glow: rgba(245, 158, 11, 0.35);

  --gray-muted: #94a3b8;
  --gray-dark: #334155;
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px var(--border-subtle);
  --shadow-glow: 0 0 25px var(--primary-glow);
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  background-color: #0a0d14 !important;
  color-scheme: dark;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #0a0d14 !important;
  background-image: 
    radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(217, 70, 239, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  color-scheme: dark;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

h1, h2, h3, .brand-text {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

/* App Wrapper */
.app-container {
  width: 100%;
  max-width: 580px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px 16px calc(80px + env(safe-area-inset-bottom, 16px)) 16px;
  position: relative;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 16px 0;
}

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

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.brand-text h1 {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-2k {
  font-size: 11px;
  font-weight: 800;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #fff;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.subtitle {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: -2px;
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-shrink: 1;
}

.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  border-radius: var(--radius-full);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}

.balance-pill:hover {
  background: rgba(245, 158, 11, 0.25);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
}

.bal-icon {
  font-size: 13px;
}

.bal-unit {
  font-size: 10px;
  color: #fde68a;
  font-weight: 600;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px 4px 5px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  min-width: 0;
  flex-shrink: 1;
}

.user-pill:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.user-avatar {
  width: 25px;
  height: 25px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.user-name {
  font-size: 12.5px;
  font-weight: 600;
  max-width: 75px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mobile App Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(10, 14, 23, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.7);
  padding-bottom: env(safe-area-inset-bottom, 6px);
}

.bottom-nav-inner {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 8px 6px 8px;
  gap: 4px;
}

.nav-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-btn:hover {
  color: #94a3b8;
}

#tabBtnSupport:hover {
  color: #34d399;
}

#tabBtnSupport:active .nav-icon-wrap {
  transform: translateY(-2px) scale(1.14);
  filter: drop-shadow(0 2px 10px rgba(52, 211, 153, 0.5));
}

.nav-icon-wrap {
  position: relative;
  width: 36px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
  line-height: 1.2;
}

.nav-btn.active {
  color: #c084fc;
}

.nav-btn.active .nav-icon-wrap {
  transform: translateY(-2px) scale(1.14);
  filter: drop-shadow(0 2px 10px rgba(192, 132, 252, 0.5));
}

.nav-btn.active .nav-label {
  color: #ffffff;
  font-weight: 700;
}

.nav-btn.active::before {
  content: '';
  position: absolute;
  top: 4px;
  width: 46px;
  height: 28px;
  background: rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-full);
  z-index: 0;
  animation: navPillPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes navPillPop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.nav-counter {
  position: absolute;
  top: -4px;
  right: -6px;
  font-size: 10px;
  background: var(--amber);
  color: #000;
  padding: 1px 5px;
  border-radius: var(--radius-full);
  font-weight: 800;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.7);
  border: 1.5px solid #0a0e17;
  line-height: 1.3;
  z-index: 2;
}

/* Content Container */
.content-container {
  flex: 1;
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 24px));
}

.tab-view {
  display: none;
  animation: fadeIn 0.25s ease;
}

.tab-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Glass Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.card-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-header p, .card-sub {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 18px;
}

/* Source Mode Selector (URL vs Direct Upload) */
.source-mode-selector {
  display: flex;
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 16px;
}

.source-mode-btn {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 9px;
  color: var(--text-sub);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.source-mode-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.source-mode-btn.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(99, 102, 241, 0.25));
  color: #ffffff;
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.2);
  font-weight: 700;
}

/* Video File Upload Dropzone */
.file-upload-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 16px;
  background: rgba(168, 85, 247, 0.03);
  border: 2px dashed rgba(168, 85, 247, 0.35);
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
  background: rgba(168, 85, 247, 0.09);
  border-color: #a855f7;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.15);
}

.upload-dropzone .dropzone-icon {
  font-size: 34px;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 8px rgba(168, 85, 247, 0.3));
  transition: transform 0.2s ease;
}

.upload-dropzone:hover .dropzone-icon {
  transform: scale(1.1);
}

.upload-dropzone .dropzone-text {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 6px;
}

.upload-dropzone .dropzone-hint {
  font-size: 12px;
  color: var(--text-sub);
}

/* Uploaded File Preview Card */
.uploaded-file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(22, 30, 49, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  animation: fileCardSlide 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.file-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  flex: 1;
}

.file-icon-badge {
  font-size: 22px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.file-info-text .file-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.file-info-text .file-size {
  font-size: 12px;
  color: #94a3b8;
}

.btn-remove-file {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-sub);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 8px;
}

.btn-remove-file:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}

/* Upload Progress Container */
.upload-progress-container {
  padding: 10px 12px;
  background: rgba(16, 22, 36, 0.9);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upload-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-sub);
}

.upload-progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.upload-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #6366f1);
  border-radius: 999px;
  transition: width 0.15s ease-out;
}

.upload-note {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
  padding: 2px 4px;
}

/* Inputs */
.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

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

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  color: var(--text-sub);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.input-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-paste {
  position: absolute;
  right: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-paste:hover {
  background: rgba(255, 255, 255, 0.16);
}

.platform-tags {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.platform-tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-sub);
  transition: var(--transition);
}

.platform-tag.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* Copies Range Section */
.form-section {
  margin-bottom: 22px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title-row label, .section-label {
  font-size: 13px;
  font-weight: 600;
}

/* Manual Counter & Input */
.manual-counter-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(10, 14, 23, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2px 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn-step {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-step:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.copies-number-input {
  width: 44px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}

.copies-number-input::-webkit-outer-spin-button,
.copies-number-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.copies-unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  margin-right: 4px;
}

/* Admin Card Link in Profile */
.admin-card {
  border-color: rgba(139, 92, 246, 0.3);
  background: linear-gradient(135deg, rgba(18, 24, 38, 0.8) 0%, rgba(30, 20, 50, 0.8) 100%);
  margin-top: 16px;
}

.admin-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-card-icon {
  font-size: 24px;
}

.admin-card-title {
  font-size: 14px;
  font-weight: 700;
}

.admin-card-desc {
  font-size: 11px;
  color: var(--text-sub);
}

.btn-admin-link {
  padding: 8px 14px;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: var(--transition);
}

.btn-admin-link:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.slider-container {
  margin-bottom: 4px;
}

input[type=range] {
  width: 100%;
  height: 6px;
  background: var(--gray-dark);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-glow);
  transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.pills-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.pill-btn {
  flex: 1;
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

.pill-btn.active {
  background: rgba(139, 92, 246, 0.25);
  border-color: var(--primary);
  color: #fff;
}

/* Toggles Grid */
.toggles-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.toggle-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.toggle-title {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toggle-desc {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 2px;
}

/* Switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.slider.round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-dark);
  transition: .3s;
  border-radius: 24px;
}

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

input:checked + .slider.round {
  background: var(--primary-gradient);
}

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

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(1px);
}

#btnSubmit {
  margin-bottom: 14px;
}

.btn-secondary {
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

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

.btn-group .btn-secondary, .btn-group .btn-primary {
  flex: 1;
}

/* Active Status Card */
.status-card {
  border-color: var(--primary);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.25);
  animation: slideUp 0.3s ease;
}

#activeTaskCard {
  margin-top: 18px;
}

.btn-feed-jump {
  transition: all 0.2s ease;
}

.btn-feed-jump:hover {
  background: rgba(139, 92, 246, 0.25) !important;
  color: #e9d5ff !important;
  transform: translateY(-1px);
}

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

.task-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.pulse-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 20px var(--primary); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.task-status-msg {
  font-size: 13px;
  color: var(--text-sub);
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-sub);
}

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.4;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

/* Feed View */
.feed-header-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.feed-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.btn-refresh {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: transform 0.3s;
}

.btn-refresh:hover {
  transform: rotate(180deg);
}

.feed-header-card p {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.filter-pills {
  display: flex;
  gap: 8px;
}

.filter-btn {
  flex: 1;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.filter-btn.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--primary);
  color: #fff;
}

.pill-count {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.count-undownloaded {
  background: #f59e0b;
  color: #000;
  font-weight: 800;
}

/* Feed Item Card */
.feed-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.feed-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.feed-card-header {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.feed-thumb {
  width: 70px;
  height: 94px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: #0f1422;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

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

.feed-title {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.feed-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.feed-options-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.opt-pill {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-sub);
}


/* Copies List */
.copies-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

/* Card Status Banner */
.card-status-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  margin-bottom: 12px;
}

.card-status-banner.undownloaded {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.card-status-banner.downloaded {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-sub);
}

.card-status-banner.processing {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #d8b4fe;
}

.pulse-indicator-small {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 10px #a855f7;
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
  display: inline-block;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.yellow {
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
}

.status-dot.green {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-dot.gray {
  background: #94a3b8;
}

.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(10, 14, 23, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  gap: 12px;
}

.copy-row.undownloaded {
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-left: 5px solid var(--amber);
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.14);
}

.copy-row.downloaded {
  opacity: 0.7;
  background: rgba(255, 255, 255, 0.02);
  border-left: 5px solid #64748b;
}

.copy-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.copy-title {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.copy-tech-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  line-height: 1.2;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-sub);
  white-space: nowrap;
}

.tech-tag.tech-res {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  font-weight: 700;
}

.tech-tag.tech-size {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  font-weight: 600;
}

.tech-tag.tech-hash {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-family: monospace;
  font-size: 10px;
}

.tech-tag.tech-hash code {
  color: #93c5fd;
  margin-left: 2px;
}

.copy-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

/* Badges for status */
.badge-status {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.02em;
}

.badge-status.undownloaded {
  background: rgba(245, 158, 11, 0.22);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 12px var(--amber-glow);
}

.badge-status.downloaded {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-download-copy {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.copy-actions-btns {
  display: flex;
  gap: 6px;
  align-items: center;
}

.copy-actions-btns .btn-download-copy {
  padding: 6px 10px;
  font-size: 11.5px;
}

.btn-download-copy.primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

.btn-download-copy.primary:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-download-copy.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-download-copy.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-toggle-status-text {
  background: transparent;
  border: none;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-toggle-status-text.btn-mark {
  color: #fbbf24;
}

.btn-toggle-status-text.btn-mark:hover {
  text-decoration: underline;
}

.btn-toggle-status-text.btn-reset {
  color: var(--text-sub);
}

.btn-toggle-status-text.btn-reset:hover {
  color: #fff;
  text-decoration: underline;
}

.btn-download-copy:hover {
  filter: brightness(1.15);
}

.btn-toggle-status {
  background: transparent;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  color: var(--text-sub);
  transition: var(--transition);
}

.btn-toggle-status:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Profile View */
.profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.prof-sub {
  font-size: 12px;
  color: var(--text-sub);
}

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

.stat-box {
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.stat-box.highlight {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.07);
}

.stat-number {
  font-size: 24px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #fff;
}

.stat-box.highlight .stat-number {
  color: #fbbf24;
}

.stat-label {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 2px;
}

.account-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.account-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-icon {
  font-size: 20px;
}

.account-title {
  font-size: 13px;
  font-weight: 600;
}

.account-val {
  font-size: 11px;
  color: var(--text-sub);
}

.badge-status-linked {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  font-weight: 600;
}

.btn-sm {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-sm:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-icon {
  font-size: 44px;
  margin-bottom: 12px;
  opacity: 0.8;
}

.empty-state h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 16px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 2000;
  padding: 16px 12px;
  padding-top: max(16px, env(safe-area-inset-top, 16px));
  padding-bottom: max(32px, env(safe-area-inset-bottom, 32px));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}

.modal-overlay::before,
.modal-overlay::after {
  content: '';
  display: block;
  flex: 1 0 auto;
  height: 0;
  min-height: 0;
}

body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

.modal-box {
  background: #141c2e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-card);
  animation: scaleIn 0.2s ease;
  flex-shrink: 0;
  position: relative;
  margin: 0;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

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

.modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-sub);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.modal-desc {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.modal-input {
  width: 100%;
  padding: 12px;
  background: rgba(10, 14, 23, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 15px;
  outline: none;
}

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

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.modal-actions button {
  flex: 1;
}

/* Toast */
.toast {
  position: fixed;
  bottom: calc(85px + env(safe-area-inset-bottom, 20px));
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(30, 41, 59, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  z-index: 10001;
  pointer-events: none;
  opacity: 0;
  max-width: calc(100% - 32px);
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Mode Switcher: Standard vs Pro */
.mode-selector-wrapper {
  margin-bottom: 18px;
}

.mode-selector {
  display: flex;
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 6px;
}

.mode-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-sub);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}

.mode-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.mode-btn.active {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.mode-btn-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

/* Standard Mode Auto Preset Banner */
.standard-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(217, 70, 239, 0.08) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 14px;
  margin-bottom: 0;
  animation: fadeIn 0.2s ease;
}

.std-banner-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 10px;
}

.std-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.std-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.18);
  color: #d8b4fe;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.std-subtext {
  font-size: 11px;
  color: var(--text-sub);
  line-height: 1.4;
}

/* Balance Preview Card in Generator */
.balance-preview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(10, 14, 23, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-sub);
  transition: var(--transition);
}

.bal-stats-grid {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

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

.bal-stat-icon {
  font-size: 15px;
  line-height: 1;
}

.bal-stat-content {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.bal-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 600;
}

.bal-stat-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.bal-stat-value strong {
  color: #fbbf24;
  font-size: 14px;
}

.bal-stat-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
}

.btn-topup-mini {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-topup-mini:hover {
  background: rgba(245, 158, 11, 0.22);
  transform: translateY(-1px);
}

/* Balance Profile Card */
.balance-profile-card {
  margin-bottom: 16px;
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(18, 24, 38, 0.8) 0%, rgba(35, 25, 15, 0.6) 100%);
}

.bal-profile-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.bal-profile-title {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bal-profile-number {
  font-size: 24px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #fff;
  margin: 2px 0;
}

.bal-profile-number small {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
}

.bal-profile-details {
  font-size: 11px;
  color: var(--text-sub);
}

/* Referral Program Card in Profile */
.referral-profile-card {
  margin-bottom: 16px;
  border-color: rgba(99, 102, 241, 0.35);
  background: linear-gradient(135deg, rgba(18, 24, 38, 0.85) 0%, rgba(26, 20, 48, 0.65) 100%);
  position: relative;
  overflow: hidden;
}

.referral-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ref-code-badge {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #a5b4fc;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-family: monospace;
}

.ref-code-badge b {
  color: #fff;
  letter-spacing: 0.05em;
}

.ref-link-group {
  margin-top: 12px;
}

.ref-link-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ref-input-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ref-input {
  flex: 1;
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm, 8px);
  padding: 9px 12px;
  font-size: 12px;
  font-family: monospace;
  color: #e2e8f0;
  outline: none;
  transition: border-color 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ref-input:focus {
  border-color: #6366f1;
}

.btn-copy-ref {
  flex-shrink: 0;
  padding: 8px 12px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ref-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.stat-box.highlight-green {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.stat-box.highlight-green .stat-number {
  color: #34d399;
}

.ref-footer-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-withdraw-ref {
  width: 100%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.3) 100%);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #34d399;
  border-radius: var(--radius-md, 10px);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all 0.2s ease;
}

.btn-withdraw-ref:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(5, 150, 105, 0.45) 100%);
  border-color: #34d399;
  transform: translateY(-1px);
}

.btn-withdraw-ref .btn-subtext {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 480px) {
  .ref-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .ref-stats-grid .stat-box {
    padding: 10px 4px;
  }
  .ref-stats-grid .stat-number {
    font-size: 18px;
  }
  .ref-stats-grid .stat-label {
    font-size: 10px;
  }
}

/* Partner Program Banner Trigger in Referral Card */
.ref-partner-banner-btn {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16) 0%, rgba(168, 85, 247, 0.14) 50%, rgba(245, 158, 11, 0.1) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-md, 12px);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.ref-partner-banner-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: left 0.6s ease;
}

.ref-partner-banner-btn:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.22) 50%, rgba(245, 158, 11, 0.16) 100%);
  border-color: rgba(168, 85, 247, 0.6);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.22);
}

.ref-partner-banner-btn:hover::before {
  left: 100%;
}

.ref-p-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ref-p-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md, 10px);
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-p-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ref-p-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.ref-p-desc {
  font-size: 11px;
  color: #c4b5fd;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ref-p-arrow {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #f59e0b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 10px;
  border-radius: 20px;
  transition: all 0.2s;
  white-space: nowrap;
}

.ref-partner-banner-btn:hover .ref-p-arrow {
  background: rgba(245, 158, 11, 0.22);
  border-color: #f59e0b;
  color: #fbbf24;
  transform: translateX(2px);
}

/* ==========================================
   Leader Program Modal (7-Page PDF Redesign)
   ========================================== */

.leader-modal-box {
  max-width: 660px;
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: radial-gradient(circle at 50% 0%, rgba(30, 41, 59, 0.95), rgba(10, 14, 23, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 158, 11, 0.08);
}

.leader-modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.leader-program-badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 3px 10px;
  border-radius: 20px;
}

.leader-program-tag {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.leader-modal-h3 {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
  color: #fff;
  margin: 2px 0 0;
  letter-spacing: -0.02em;
}

.leader-modal-sub {
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 4px 0 0;
}

.leader-modal-sub b {
  color: #34d399;
}

.leader-modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 18px;
}

/* 1. KPI Grid */
.leader-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.leader-kpi-card {
  background: rgba(18, 24, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md, 12px);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.leader-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.4);
}

.leader-kpi-card .lk-num {
  font-size: 24px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  line-height: 1;
}

.leader-kpi-card .lk-label {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.35;
}

.highlight-emerald { color: #34d399 !important; }
.highlight-gold { color: #fbbf24 !important; }
.highlight-sky { color: #38bdf8 !important; }
.highlight-purple { color: #c084fc !important; }

/* Leader Section Common */
.leader-section {
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg, 14px);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leader-sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sec-num-icon {
  font-size: 18px;
}

.leader-sec-title h4 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.leader-sec-subtitle {
  font-size: 11.5px;
  color: #94a3b8;
  margin-left: auto;
}

/* 2. Steps Grid */
.leader-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.leader-step-card {
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md, 10px);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body strong {
  display: block;
  font-size: 12px;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.step-body p {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
}

/* 3. Flow Card ("Кто сколько получит за 10 секунд") */
.leader-flow-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(10, 14, 23, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm, 8px);
  padding: 10px 12px;
}

.flow-row.highlight-row {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
}

.flow-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flow-arrow {
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
}

.flow-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
}

.flow-tag.team-tag {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.flow-val {
  font-size: 15px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
}

.flow-val.emerald { color: #34d399; }
.flow-val.gold { color: #fbbf24; }

.flow-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-sm, 8px);
  padding: 10px 14px;
  margin-top: 4px;
}

.fsb-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.fsb-label {
  font-size: 13px;
  font-weight: 700;
  color: #a7f3d0;
}

.fsb-total {
  font-size: 20px;
  font-weight: 900;
  color: #34d399;
  font-family: 'Outfit', sans-serif;
}

.fsb-note {
  font-size: 11.5px;
  color: #cbd5e1;
}

.flow-compare-hint {
  font-size: 11.5px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm, 8px);
  padding: 8px 12px;
  line-height: 1.4;
}

/* 4. Tiers Ladder */
.leader-tiers-ladder {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.ladder-item {
  background: rgba(10, 14, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm, 8px);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.ladder-item.max-tier {
  background: linear-gradient(135deg, rgba(20, 26, 44, 0.95), rgba(45, 34, 16, 0.9));
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.15);
}

.ladder-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ladder-name {
  font-size: 11.5px;
  font-weight: 800;
  color: #e2e8f0;
}

.ladder-pct {
  font-size: 18px;
  font-weight: 900;
  color: #34d399;
  font-family: 'Outfit', sans-serif;
}

.ladder-pct.vip-gold {
  color: #fbbf24;
}

.ladder-cond {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.3;
}

.ladder-footnote {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
}

/* 5. Case Study 50 people */
.case-study-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cs-kpi {
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm, 8px);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-kpi.highlight {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}

.cs-val {
  font-size: 18px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: #fff;
}

.cs-kpi.highlight .cs-val {
  color: #34d399;
}

.cs-desc {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.35;
}

.case-study-result-card {
  background: rgba(10, 14, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm, 8px);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.csr-header {
  font-size: 12px;
  font-weight: 800;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.csr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #94a3b8;
}

.csr-row.highlight-csr {
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
}

.csr-price {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: #34d399;
  font-size: 14px;
}

.csr-price.muted {
  color: #64748b;
}

.csr-price.large-gold {
  color: #fbbf24;
  font-size: 18px;
}

.csr-footnote {
  font-size: 10.5px;
  color: #64748b;
  line-height: 1.4;
  margin: 4px 0 0;
}

/* 6. Rules Grid */
.leader-rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lr-card {
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg, 14px);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lr-card h5 {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.lr-item b {
  display: block;
  font-size: 11.5px;
  color: #f1f5f9;
  margin-bottom: 2px;
}

.lr-item p {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
}

.text-emerald { color: #34d399 !important; }
.text-sky { color: #38bdf8 !important; }
.text-gold { color: #fbbf24 !important; }
.text-muted { color: #64748b !important; }

/* 7. Cap Banner (Потолок 50%) */
.leader-cap-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md, 12px);
  padding: 12px 14px;
}

.lcb-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.lcb-body strong {
  display: block;
  font-size: 12.5px;
  color: #fbbf24;
  margin-bottom: 3px;
}

.lcb-body p {
  font-size: 11.5px;
  color: #fde68a;
  line-height: 1.45;
  margin: 0;
}

/* 8. Leader Calculator */
.leader-calc-box {
  background: linear-gradient(135deg, rgba(20, 26, 44, 0.95) 0%, rgba(28, 20, 48, 0.95) 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: var(--radius-lg, 14px);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.12);
}

.lc-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lc-icon {
  font-size: 24px;
}

.lc-header h5 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.lc-header p {
  font-size: 11.5px;
  color: #94a3b8;
  margin: 2px 0 0;
}

.lc-controls-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md, 10px);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lc-control-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lc-label-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lc-label-wrap label {
  font-size: 11.5px;
  color: #cbd5e1;
}

.lc-number-input {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Outfit', monospace;
  width: 130px;
  text-align: right;
  outline: none;
}

.lc-number-input:focus {
  border-color: #a855f7;
}

.lc-slider {
  width: 100%;
  accent-color: #a855f7;
  cursor: pointer;
}

.lc-results-card {
  background: rgba(10, 14, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md, 10px);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lc-tier-chip {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 3px 10px;
  border-radius: 20px;
}

.lc-month-display {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lc-month-lbl {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.lc-month-val {
  font-size: 28px;
  font-weight: 900;
  color: #34d399;
  font-family: 'Outfit', sans-serif;
  text-shadow: 0 0 16px rgba(52, 211, 153, 0.3);
}

.lc-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lcb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
}

.lcb-row .lcb-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #e2e8f0;
}

.lcb-row.highlight-diff {
  padding-top: 4px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.lcb-row.highlight-gold-row {
  font-weight: 700;
  color: #fbbf24;
}

.lcb-row.highlight-net-row {
  padding-top: 4px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-weight: 800;
  color: #34d399;
}

.lc-next-hint {
  font-size: 11.5px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}

/* 9. Payout Box (Вывод денег) */
.payout-terms-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11.5px;
  color: #cbd5e1;
}

.pt-item b {
  color: #fff;
}

.pt-item.highlight-hold {
  color: #38bdf8;
  font-weight: 600;
}

.payout-interactive-card {
  background: rgba(10, 14, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md, 10px);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.payout-interactive-card h5 {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.pic-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pic-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pic-field.full-width {
  grid-column: 1 / -1;
}

.pic-field label {
  font-size: 11px;
  color: #94a3b8;
}

.lc-select-input,
.lc-text-input {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 10px;
  color: #fff;
  font-size: 12px;
  outline: none;
}

.lc-select-input:focus,
.lc-text-input:focus {
  border-color: #38bdf8;
}

.pic-calc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm, 8px);
}

.pcs-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pcs-item.total {
  align-items: flex-end;
}

.pcs-label {
  font-size: 11px;
  color: #94a3b8;
}

.pcs-val {
  font-size: 15px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #fff;
}

.pic-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm, 8px);
  padding: 10px 12px;
}

.pic-preview-header {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
}

.pic-preview-box {
  font-family: monospace;
  font-size: 11.5px;
  color: #cbd5e1;
  white-space: pre-wrap;
  margin: 0;
  padding: 6px 0;
}

.pic-preview-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.pic-preview-actions button {
  flex: 1;
}

/* 10. Short Rules */
.short-rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.45;
}

.short-rules-list li b {
  color: #e2e8f0;
}

.rules-footnote {
  font-size: 10.5px;
  color: #64748b;
  text-align: right;
  margin-top: 4px;
}

/* 11. Leader Modal Actions */
.leader-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.leader-modal-actions .btn-primary,
.leader-modal-actions .btn-secondary {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md, 10px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .leader-modal-box {
    padding: 16px 12px;
  }
  .leader-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .leader-steps-grid {
    grid-template-columns: 1fr;
  }
  .leader-tiers-ladder {
    grid-template-columns: 1fr;
  }
  .ladder-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  .case-study-kpis {
    grid-template-columns: 1fr;
  }
  .leader-rules-grid {
    grid-template-columns: 1fr;
  }
  .pic-inputs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .partner-modal-box {
    padding: 16px 12px;
  }
  .ref-partner-banner-btn {
    padding: 10px 12px;
  }
  .ref-p-title {
    font-size: 12.5px;
  }
  .ref-p-desc {
    font-size: 10.5px;
  }
  .partner-highlights-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .partner-tier-card {
    padding: 8px 10px;
  }
  .tier-title {
    font-size: 13px;
  }
  .tier-rate-cell .rate-val {
    font-size: 13px;
  }
  .pe-total-val {
    font-size: 22px;
  }
}

/* Pricing Modal */
.pricing-modal-box {
  max-width: 480px;
}

.current-bal-box {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 16px;
  text-align: center;
}

.cur-bal-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
}

.cur-bal-val {
  font-size: 16px;
  color: #fbbf24;
  font-weight: 800;
}

.cur-bal-breakdown {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 4px;
}

.pricing-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-card {
  background: rgba(10, 14, 23, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  transition: var(--transition);
}

.pricing-card.featured {
  border-color: rgba(245, 158, 11, 0.6);
  background: linear-gradient(135deg, rgba(20, 26, 42, 0.9) 0%, rgba(35, 25, 15, 0.8) 100%);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

.price-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.price-card-badge.hot {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
}

.pricing-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.price-val {
  font-size: 22px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #fff;
  margin-bottom: 6px;
}

.price-val small {
  font-size: 12px;
  color: #fbbf24;
  font-weight: 600;
}

.price-desc {
  font-size: 11px;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.price-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #cbd5e1;
}

.price-perks li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-status-chip {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
}

.btn-buy {
  width: 100%;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.btn-buy:hover {
  filter: brightness(1.15);
}

/* Storage Retention Perks & Notice */
.perk-storage-item {
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  margin: 3px 0;
  font-size: 11.5px;
}

.perk-storage-item.free {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.perk-storage-item.pro {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

/* ==========================================================
   New 8-Tier Pricing Layout & PRO Perks Styles
   ========================================================== */
.pro-perks-summary-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.pro-perks-summary-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 8px;
}

.pro-perks-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pro-tag-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 3px 9px;
  font-size: 11px;
  color: #e2e8f0;
  font-weight: 500;
}

.tariffs-promo-heading {
  margin: 6px 0 2px 0;
  text-align: center;
}

.tariffs-promo-heading h4 {
  font-size: 14px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.tariffs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tariff-row {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.tariff-row:hover {
  background: rgba(26, 36, 60, 0.95);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.tariff-row.featured {
  background: linear-gradient(135deg, rgba(30, 38, 58, 0.95) 0%, rgba(45, 32, 16, 0.85) 100%);
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.18);
}

.tariff-row.max-tier {
  background: linear-gradient(135deg, rgba(20, 36, 40, 0.95) 0%, rgba(15, 26, 36, 0.9) 100%);
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.18);
}

.tariff-row-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tariff-row-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tariff-row-name .unit-label {
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 600;
}

.t-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
}

.t-badge.hot {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
}

.t-badge.max {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #000;
}

.t-badge.pro {
  background: rgba(139, 92, 246, 0.25);
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #c4b5fd;
}

.t-badge.good {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #93c5fd;
}

.t-badge.opt {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
}

.tariff-row-per {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
}

.tariff-row-per.special {
  color: #34d399;
  font-weight: 700;
}

.tariff-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.tariff-row-price {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
}

.tariff-row-price.highlight {
  color: #fbbf24;
}

.tariff-row-price.highlight-emerald {
  color: #34d399;
}

.btn-tariff-action {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-tariff-action:hover,
.tariff-row:hover .btn-tariff-action {
  background: #f59e0b;
  color: #000;
  border-color: #f59e0b;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.btn-tariff-action.featured {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  border: none;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.btn-tariff-action.featured:hover {
  filter: brightness(1.15);
}

.btn-tariff-action.emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #000;
  border: none;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.btn-tariff-action.emerald:hover {
  filter: brightness(1.15);
}

.storage-policy-notice {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.storage-notice-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
}

.storage-notice-icon {
  font-size: 14px;
}

.storage-notice-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 480px) {
  .storage-notice-cards {
    grid-template-columns: 1fr;
  }
}

.storage-notice-item {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  line-height: 1.35;
}

.storage-notice-item.free {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.storage-notice-item.free .sni-title {
  color: #fbbf24;
  font-weight: 700;
  margin-bottom: 2px;
}

.storage-notice-item.free .sni-desc {
  color: #cbd5e1;
}

.storage-notice-item.pro {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.storage-notice-item.pro .sni-title {
  color: #34d399;
  font-weight: 700;
  margin-bottom: 2px;
}

.storage-notice-item.pro .sni-desc {
  color: #cbd5e1;
}

.bal-storage-tag {
  font-size: 11.5px;
  color: var(--text-sub);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bal-storage-tag b {
  color: #f1f5f9;
}

.opt-pill.storage-free {
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.opt-pill.storage-pro {
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.opt-pill.storage-expired {
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
}

/* Download Spinner & Loading State */
.btn-spinner.mini {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

.btn-download-copy.secondary .btn-spinner.mini {
  border-color: rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
}

.btn-download-copy:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  pointer-events: none;
}

.copy-extra-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.btn-tg-send {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-tg-send:hover {
  background: rgba(14, 165, 233, 0.3);
  color: #fff;
}

/* iOS Save to Gallery Modal */
.ios-modal-box {
  max-width: 420px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.ios-preview-wrapper {
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  max-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ios-preview-wrapper video {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.ios-status-tag {
  font-size: 12px;
  color: #10b981;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.ios-hint-text {
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.4;
}

.btn-ios-share {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  font-weight: 800;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 14px;
}

.btn-ios-share:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.ios-instructions-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 12px;
}

.ios-inst-header {
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 8px;
}

.ios-inst-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #e2e8f0;
  margin-bottom: 6px;
  line-height: 1.4;
}

.ios-inst-step:last-child {
  margin-bottom: 0;
}

.inst-num {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ios-alt-actions {
  text-align: center;
  margin-top: 8px;
}

.btn-alt-download {
  background: transparent;
  border: none;
  font-size: 12px;
  color: var(--text-sub);
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
}

.btn-alt-download:hover {
  color: #fff;
}

/* Telegram & Safari Integration Styles */
.btn-header-safari {
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #93c5fd;
  font-size: 15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-header-safari:hover {
  background: rgba(59, 130, 246, 0.28);
  color: #fff;
  border-color: rgba(96, 165, 250, 0.6);
  transform: translateY(-1px);
}

/* Telegram Binding Banner & Triggers */
.tg-bind-warning-banner {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.18) 0%, rgba(180, 83, 9, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.tg-bind-warning-banner:hover {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.25) 0%, rgba(180, 83, 9, 0.15) 100%);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

.tg-warn-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #fef3c7;
  line-height: 1.35;
}

.tg-warn-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.btn-warn-bind {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #fff;
  border: none;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
  flex-shrink: 0;
}

.btn-header-link-tg {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c084fc;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-header-link-tg:hover {
  background: rgba(139, 92, 246, 0.28);
  color: #e9d5ff;
  transform: translateY(-1px);
}

.tg-bind-modal-box {
  max-width: 420px;
  width: 92%;
}

.tg-safari-banner {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.35) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  backdrop-filter: blur(10px);
}

.tg-safari-banner .tg-banner-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.tg-safari-banner .tg-banner-content {
  flex: 1;
}

.tg-safari-banner .tg-banner-title {
  font-size: 13px;
  font-weight: 700;
  color: #93c5fd;
  margin-bottom: 2px;
}

.tg-safari-banner .tg-banner-desc {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.35;
}

.btn-banner-safari {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-banner-safari:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-modal-safari {
  width: 100%;
  padding: 13px;
  font-size: 14px;
  font-weight: 800;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  border: none;
  cursor: pointer;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: var(--transition);
}

.btn-modal-safari:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-modal-tg {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: var(--transition);
}

.btn-modal-tg:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-modal-open-app {
  width: 100%;
  padding: 11px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  cursor: pointer;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-modal-open-app:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.tg-modal-warning {
  font-size: 12px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 9px;
  line-height: 1.35;
}

.btn-download-copy.btn-tg-send {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35);
}

.btn-download-copy.btn-safari-dl {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

.btn-copy-more {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-sub);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy-more:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.tg-size-notice {
  font-size: 10px;
  color: #fbbf24;
  font-weight: 600;
  white-space: nowrap;
}

.btn-send-link-chat {
  width: 100%;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-send-link-chat:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-send-link-chat:active {
  transform: translateY(0);
}

.btn-send-link-chat.secondary {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  box-shadow: none;
}

.btn-send-link-chat.secondary:hover {
  background: rgba(16, 185, 129, 0.25);
}

.btn-send-link-chat:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-send-video-chat {
  width: 100%;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.35);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-send-video-chat:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-send-video-chat:active {
  transform: translateY(0);
}

.btn-send-video-chat.secondary {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  box-shadow: none;
}

.btn-send-video-chat.secondary:hover {
  background: rgba(16, 185, 129, 0.25);
}

.btn-send-video-chat:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ==========================================================
   Mobile Responsive Rules & Overflow Protection
   ========================================================== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 520px) {
  .app-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .copy-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .copy-right {
    width: 100%;
  }

  .btn-send-link-chat,
  .btn-send-video-chat {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
  }

  .btn-download-copy {
    flex: 1;
    justify-content: center;
    padding: 9px 12px;
    font-size: 12px;
  }

  .copy-title {
    flex-wrap: wrap;
    gap: 6px;
  }

  .badge-status {
    font-size: 10px;
    padding: 2px 6px;
  }

  .pricing-modal-box {
    padding: 16px 12px;
  }

  .pricing-card {
    padding: 12px;
  }

  .current-bal-box {
    padding: 8px 10px;
    margin-bottom: 12px;
  }

  .price-perks {
    gap: 4px;
    margin-bottom: 10px;
    font-size: 11.5px;
  }

  .balance-preview-card {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px;
    gap: 8px;
  }

  .bal-profile-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .bal-profile-inner .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .bal-stats-grid {
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 6px 10px;
  }

  .bal-stat-item {
    gap: 6px;
  }

  .btn-topup-mini {
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
  }

  .brand-text .subtitle {
    display: none;
  }

  .app-header {
    padding: 6px 0 12px 0;
  }

  .modal-overlay {
    padding: 12px 8px;
    padding-top: max(12px, env(safe-area-inset-top, 12px));
    padding-bottom: max(28px, env(safe-area-inset-bottom, 28px));
  }

  .modal-box {
    padding: 18px 14px;
  }
}

@media (max-width: 480px) {
  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .brand-text h1 {
    font-size: 18px;
    gap: 4px;
  }

  .badge-2k {
    font-size: 9.5px;
    padding: 1px 5px;
  }

  .header-right-group {
    gap: 5px;
  }

  .btn-header-safari {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .bal-unit {
    display: none;
  }

  .balance-pill {
    padding: 4px 7px;
    font-size: 11.5px;
    gap: 3px;
  }

  .user-pill {
    padding: 3px 7px 3px 4px;
    gap: 4px;
    max-width: 90px;
  }

  .user-avatar {
    width: 22px;
    height: 22px;
    font-size: 11.5px;
  }

  .user-name {
    font-size: 11.5px;
    max-width: 50px;
  }

  .tariff-row {
    padding: 10px 12px;
    gap: 8px;
  }

  .tariff-row-name {
    font-size: 15px;
  }

  .tariff-row-price {
    font-size: 15px;
  }

  .btn-tariff-action {
    padding: 5px 11px;
    font-size: 11.5px;
  }

  .tariffs-promo-heading h4 {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .brand-text h1 {
    font-size: 16px;
  }

  .user-name {
    max-width: 36px;
    font-size: 11px;
  }

  .user-pill {
    max-width: 76px;
  }

  .tariff-row {
    padding: 9px 10px;
    gap: 6px;
  }

  .tariff-row-name {
    font-size: 14px;
    gap: 4px;
  }

  .tariff-row-name .unit-label {
    font-size: 11.5px;
  }

  .tariff-row-price {
    font-size: 14px;
  }

  .btn-tariff-action {
    padding: 4px 9px;
    font-size: 11px;
  }
}

/* ==========================================================
   Checkout / Payment Gateway Modal Styles
   ========================================================== */
.checkout-modal-box {
  max-width: 440px;
  width: 92%;
  border-color: rgba(245, 158, 11, 0.35);
}

.checkout-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkout-summary-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(18, 24, 38, 0.85) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.checkout-pkg-title {
  font-size: 16px;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 4px;
}

.checkout-pkg-desc {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 12px;
  line-height: 1.4;
}

.checkout-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.checkout-price-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.checkout-price-value {
  font-size: 20px;
  font-weight: 800;
  color: #fbbf24;
}

.checkout-methods-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-methods-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.checkout-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.checkout-method-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.checkout-method-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

.checkout-method-badge .method-radio-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background: transparent;
}

.checkout-method-badge.active {
  background: rgba(37, 99, 235, 0.2) !important;
  border: 2px solid #3b82f6 !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.45) !important;
}

.checkout-method-badge.active .method-radio-dot {
  border-color: #3b82f6 !important;
  background: #3b82f6 !important;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.8) !important;
}

.checkout-method-badge.active .method-radio-dot::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
}

.checkout-gateway-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 12px;
  line-height: 1.4;
}

.gateway-alert-icon {
  font-size: 18px;
  line-height: 1;
}

.gateway-alert-text strong {
  display: block;
  color: #93c5fd;
  margin-bottom: 2px;
  font-size: 12px;
}

.gateway-alert-text p {
  margin: 0;
  color: var(--text-sub);
  font-size: 11px;
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.btn-checkout-proceed {
  width: 100%;
  padding: 13px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* ==========================================================
   Feed Processing State & Real-Time Loader Styles
   ========================================================== */
.badge-status.processing {
  background: rgba(168, 85, 247, 0.22);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.copy-row.processing {
  border-left: 5px solid #a855f7;
  background: rgba(168, 85, 247, 0.06);
}

.feed-processing-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: rgba(15, 18, 30, 0.65);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-md);
}

.feed-proc-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-bar-container.mini {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.feed-proc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.feed-proc-pct {
  font-weight: 800;
  color: #c084fc;
  font-size: 13px;
}

.feed-proc-status {
  color: var(--text-sub);
  font-weight: 500;
}

.feed-pending-copies-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-proc-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  padding: 4px 2px 0;
}

.btn-download-copy.disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-sub);
}

.btn-spinner-mini {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #a855f7;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  margin-right: 6px;
}

/* Generator Running Notice Banner */
.gen-running-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.15) 100%);
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  font-size: 12px;
  color: #e9d5ff;
  cursor: pointer;
  transition: var(--transition);
}

.gen-running-banner:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(59, 130, 246, 0.25) 100%);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}

/* Header Support Button */
.btn-header-support {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  border-radius: 9999px;
  padding: 6px 11px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-header-support:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
}
@media (max-width: 480px) {
  .header-support-label {
    display: none;
  }
  .btn-header-support {
    padding: 6px 8px;
  }
}

/* Video Duration Warning Banner (Anti-Detection) */
.video-duration-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.45;
  color: #fef3c7;
  transition: all 0.3s ease;
}
.video-duration-banner .v-duration-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.2;
}
.video-duration-banner .v-duration-title {
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 2px;
}
.video-duration-banner .v-duration-text {
  color: var(--text-main);
  font-size: 11.5px;
}
.video-duration-banner.warning-highlight {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(245, 158, 11, 0.15) 100%);
  border-color: #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
  animation: durationWarnPulse 1.8s infinite ease-in-out;
}
@keyframes durationWarnPulse {
  0%, 100% { border-color: #f59e0b; }
  50% { border-color: #ef4444; }
}

/* Support Profile Card */
.support-profile-card {
  margin-top: 14px;
  border-color: rgba(16, 185, 129, 0.25);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(10, 13, 20, 0.6) 100%);
  overflow: hidden;
}
.support-profile-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.support-profile-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.support-profile-icon {
  font-size: 26px;
  flex-shrink: 0;
}
.support-profile-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.support-profile-sub {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.35;
}
.btn-support-profile {
  width: auto;
  max-width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #fff !important;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
  box-sizing: border-box;
}
@media (max-width: 540px) {
  .support-profile-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .btn-support-profile {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Vibrant Downloaded & Undownloaded Buttons */
.btn-download-copy.downloaded {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  font-weight: 800;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}
.btn-download-copy.downloaded:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-download-copy.undownloaded {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #000000 !important;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}
.btn-download-copy.undownloaded:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.badge-status.downloaded {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  cursor: pointer;
  user-select: none;
}
.badge-status.undownloaded {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  cursor: pointer;
  user-select: none;
}

/* Red Blinking Countdown Pulse when <= 2 days left */
@keyframes redBlinkPulse {
  0%, 100% {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
    color: #fca5a5;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
    transform: scale(1);
  }
  50% {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    box-shadow: 0 0 3px rgba(239, 68, 68, 0.1);
    transform: scale(0.98);
  }
}

.opt-pill.storage-expiring-soon-pulse {
  animation: redBlinkPulse 1.2s infinite ease-in-out !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px;
}

/* ================= TASK RESTART & FAILED STATE ================= */

.feed-restart-wrap {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-restart-task {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  user-select: none;
}

.btn-restart-task.btn-restart-active {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  color: #ffffff;
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.35);
}

.btn-restart-task.btn-restart-active:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.5);
}

.btn-restart-task.btn-restart-disabled {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
  opacity: 0.8;
}

.restart-hint-text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
  text-align: center;
  padding: 0 4px;
}

.restart-hint-text.active {
  color: #d8b4fe;
}

/* Card Failed Banner & Box */
.card-status-banner.failed {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.status-dot.red {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.feed-failed-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
}

.feed-failed-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  color: #fca5a5;
}

.feed-failed-msg {
  font-size: 12px;
  color: #fecaca;
  line-height: 1.45;
}

/* ==========================================================
   Compliance & Site Footer
   ========================================================== */

.site-footer {
  margin-top: 48px;
  padding: 36px 16px calc(100px + env(safe-area-inset-bottom, 20px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.4) 0%, rgba(6, 9, 15, 0.95) 100%);
  position: relative;
  width: 100%;
}

.footer-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-brand-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-logo .logo-icon-sm {
  font-size: 20px;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}

.footer-brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #fff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.5;
  margin: 0;
}

/* Payment Systems Badges */
.footer-payments-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.payments-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text-sub);
}

.payment-badges-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  transition: all 0.2s ease;
  user-select: none;
}

.pay-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.25);
}

.pay-badge.mir {
  background: rgba(0, 150, 94, 0.16);
  border-color: rgba(0, 150, 94, 0.45);
  color: #34d399;
}

.pay-badge.sbp {
  background: rgba(30, 58, 138, 0.25);
  border-color: rgba(59, 130, 246, 0.45);
  color: #93c5fd;
}

.pay-badge.sber {
  background: rgba(5, 150, 105, 0.2);
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.pay-badge.visa {
  background: rgba(26, 31, 113, 0.35);
  border-color: rgba(96, 165, 250, 0.35);
  color: #bfdbfe;
}

.pay-badge.mc {
  background: rgba(235, 0, 27, 0.15);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fca5a5;
}

.pay-badge.secure {
  background: rgba(124, 58, 237, 0.16);
  border-color: rgba(167, 139, 250, 0.4);
  color: #c4b5fd;
}

.pay-badge.ssl {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
}

/* Legal Links Grid */
.footer-links-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  font-size: 12px;
}

.footer-link {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s ease;
  font-weight: 500;
  cursor: pointer;
}

.footer-link:hover {
  color: #fbbf24;
  text-decoration: underline;
}

.footer-link.contact-link {
  color: #60a5fa;
  font-weight: 600;
}

.footer-link.contact-link:hover {
  color: #93c5fd;
}

.f-dot {
  color: rgba(255, 255, 255, 0.2);
  user-select: none;
}

/* Requisites in Footer */
.footer-requisites-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md, 10px);
  font-size: 11.5px;
  color: var(--text-sub);
  width: 100%;
  max-width: 580px;
}

.footer-requisites-card .req-item {
  white-space: nowrap;
}

.footer-requisites-card .req-item b {
  color: #e2e8f0;
}

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 500px;
}

/* Legal bar inside pricing modal */
.pricing-modal-legal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: var(--text-muted);
}

.pricing-modal-legal-bar a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.pricing-modal-legal-bar a:hover {
  color: #fbbf24;
  text-decoration: underline;
}

/* Direct Payment Requisites in Checkout Modal */
.checkout-requisites-box {
  margin: 14px 0 10px;
  padding: 12px 14px;
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md, 10px);
}

.crb-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #34d399;
  margin-bottom: 8px;
}

.crb-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(10, 14, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm, 8px);
  padding: 8px 10px;
  margin-bottom: 8px;
  overflow: hidden;
}

.crb-card-num {
  font-family: monospace;
  font-size: clamp(11.5px, 3.4vw, 13px);
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

.btn-copy-card {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .crb-card-row {
    padding: 6px 8px;
    gap: 6px;
  }
  .crb-card-num {
    font-size: 11.5px;
    letter-spacing: 0;
  }
  .btn-copy-card {
    padding: 4px 7px;
    font-size: 10px;
  }
}

@media (max-width: 320px) {
  .crb-card-num {
    font-size: 10.5px;
  }
}

.btn-copy-card:hover {
  background: rgba(245, 158, 11, 0.28);
  border-color: #fbbf24;
  transform: translateY(-1px);
}

.crb-details-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: #cbd5e1;
}

.crb-details-grid b {
  color: #fff;
}

.crb-recipient {
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.crb-notice {
  margin-top: 10px;
  padding: 8px 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-sm, 8px);
  font-size: 11.5px;
  line-height: 1.4;
  color: #fde68a;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.crb-notice-icon {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

/* Checkout Legal Disclaimer */
.checkout-legal-disclaimer {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
  margin: 12px 0 16px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm, 8px);
}

.checkout-legal-disclaimer a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkout-legal-disclaimer a:hover {
  color: #60a5fa;
}

/* ==========================================================
   Interactive Legal Documents Modal
   ========================================================== */

.legal-modal-box {
  max-width: 700px;
  width: 100%;
  padding: 22px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.legal-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-title-icon {
  font-size: 24px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md, 12px);
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.legal-modal-title-wrap h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0;
  color: #fff;
}

/* Legal Tabs Bar */
.legal-tabs-bar {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 10px);
  margin: 14px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}

.legal-tab-btn {
  flex: 1;
  min-width: fit-content;
  padding: 8px 12px;
  border-radius: var(--radius-sm, 8px);
  border: none;
  background: transparent;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.legal-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.legal-tab-btn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
}

/* Modal Body */
.legal-modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 6px;
  margin-bottom: 16px;
  flex: 1;
  min-height: 200px;
}

.legal-modal-body::-webkit-scrollbar {
  width: 6px;
}

.legal-modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.legal-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.legal-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.legal-tab-pane {
  display: none;
  animation: fadeIn 0.2s ease;
}

.legal-tab-pane.active {
  display: block;
}

.legal-doc-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-doc-header h4 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.35;
}

.legal-doc-meta {
  font-size: 11.5px;
  color: var(--text-sub);
}

.legal-text-content {
  font-size: 12.5px;
  line-height: 1.6;
  color: #cbd5e1;
}

.legal-p {
  margin: 0 0 12px;
}

.legal-p b {
  color: #f1f5f9;
}

.legal-text-content h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: #fbbf24;
  margin: 16px 0 8px;
}

.legal-text-content a {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-text-content a:hover {
  color: #93c5fd;
}

/* Highlight Banners in Legal (Delivery & Refund) */
.legal-highlight-banner {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md, 10px);
  margin: 14px 0;
}

.legal-highlight-banner.refund {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.lh-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.lh-body strong {
  display: block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 6px;
}

.lh-body p {
  font-size: 12px;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0;
}

/* Legal Requisites Box inside Terms */
.legal-requisites-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md, 10px);
  padding: 14px 16px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

/* Full Requisites Card (Requisites Pane) */
.requisites-full-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md, 12px);
  padding: 8px 16px;
  margin-bottom: 14px;
}

.rfc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 12px;
  font-size: 12.5px;
}

.rfc-row:last-child {
  border-bottom: none;
}

.rfc-label {
  color: var(--text-sub);
  font-weight: 500;
  flex-shrink: 0;
}

.rfc-val {
  color: #fff;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.rfc-val.mono {
  font-family: monospace;
  font-size: 13px;
  color: #fbbf24;
  letter-spacing: 0.04em;
}

.rfc-note {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm, 8px);
}

/* Legal Modal Actions Footer */
.legal-modal-actions {
  display: flex;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.legal-modal-actions button {
  flex: 1;
}

@media (max-width: 600px) {
  .site-footer {
    padding: 30px 12px calc(90px + env(safe-area-inset-bottom, 20px));
  }
  .rfc-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .rfc-val {
    text-align: left;
  }
  .legal-modal-actions {
    flex-direction: column;
  }
}

/* --- Dual Tabs in Partner Program Modal --- */
.partner-nav-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.p-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: var(--radius-md, 12px);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.p-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.p-tab-btn.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(99, 102, 241, 0.25));
  border-color: rgba(168, 85, 247, 0.6);
  color: #fff;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.25);
}

.p-tab-pill {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* --- Seller Calc Box & Teaser --- */
.seller-calc-box {
  border-color: rgba(16, 185, 129, 0.25) !important;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.08);
}

.seller-results-card {
  border-color: rgba(16, 185, 129, 0.3) !important;
}

.seller-calc-share-box {
  margin-top: 18px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md, 12px);
}

.scs-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 8px;
}

.seller-to-leader-teaser {
  margin-top: 20px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg, 16px);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.seller-to-leader-teaser:hover {
  border-color: rgba(245, 158, 11, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
}

.stlt-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stlt-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.stlt-title {
  font-size: 14px;
  font-weight: 800;
  color: #fde68a;
  margin-bottom: 3px;
}

.stlt-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}

/* --- Dual Links & 5-Cols Stats in Profile Card --- */
.ref-link-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 8px;
}

.ref-badge-sub {
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 7px;
  border-radius: 6px;
}

.ref-badge-sub.gold {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
}

.btn-gold-subtle {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  color: #fde68a !important;
}

.btn-gold-subtle:hover {
  background: rgba(245, 158, 11, 0.3) !important;
  color: #fff !important;
}

.ref-5cols-grid {
  grid-template-columns: repeat(5, 1fr) !important;
  margin-top: 14px;
}

@media (max-width: 768px) {
  .partner-nav-tabs {
    padding: 8px 0 12px;
  }
  .p-tab-btn {
    font-size: 12px;
    padding: 8px 10px;
  }
  .seller-to-leader-teaser {
    flex-direction: column;
    align-items: flex-start;
  }
  .ref-5cols-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .ref-5cols-grid .stat-box:last-child {
    grid-column: span 2;
  }
}

/* ========================================================
   SUBSCRIPTION SYSTEM & YOOKASSA CANCELLATION MODAL STYLES
   ======================================================== */

.my-sub-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

.my-sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.my-sub-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.my-sub-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.my-sub-badge.cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.my-sub-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.25);
  padding: 12px;
  border-radius: 12px;
}

.my-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.my-sub-row b {
  color: #f1f5f9;
}

.btn-sub-cancel-trigger {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
}

.btn-sub-cancel-trigger:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.5);
}

/* Subscription Plan Cards */
.sub-plans-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.sub-plan-card {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 20px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.sub-plan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.6);
}

.sub-plan-card.featured {
  background: linear-gradient(145deg, rgba(30, 27, 75, 0.95) 0%, rgba(49, 46, 129, 0.85) 100%);
  border: 2px solid #8b5cf6;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
}

.sub-plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: #fff;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.45);
  white-space: nowrap;
}

.sub-plan-header {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.sub-plan-name {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.sub-plan-price-wrap {
  margin: 6px 0 4px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.sub-plan-price {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.5px;
}

.sub-plan-period {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 500;
}

.sub-plan-unit-cost {
  font-size: 12.5px;
  color: #38bdf8;
  font-weight: 600;
  margin-bottom: 4px;
  text-align: center;
}

.sub-plan-features {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 20px 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
  width: 100%;
}

.sub-plan-features li {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  list-style: none !important;
}

.sub-plan-features li .check-icon {
  color: #10b981;
  font-weight: 800;
}

.btn-sub-choose {
  width: 100% !important;
  padding: 14px 20px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  border: none !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.4) !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.btn-sub-choose:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-sub-choose.btn-pro {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #6366f1 100%) !important;
  box-shadow: 0 4px 22px rgba(139, 92, 246, 0.45) !important;
  color: #ffffff !important;
}

.btn-sub-choose.btn-pro:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.sub-legal-note {
  margin: 18px auto 10px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  max-width: 520px;
}

.sub-legal-note b, .sub-legal-note strong {
  color: #cbd5e1;
}

/* ========================================================
   YooKassa Cancellation Modal Styles (Matches Screenshot)
   ======================================================== */
.cancel-sub-modal-box {
  max-width: 420px !important;
  width: 90% !important;
  background: #18181b !important;
  border: 1px solid #27272a !important;
  border-radius: 24px !important;
  padding: 32px 24px 24px !important;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
}

.cancel-sub-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.cancel-sub-alert-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #ef4444;
  color: #ef4444;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.cancel-sub-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 6px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.cancel-sub-subtitle {
  font-size: 14px;
  color: #a1a1aa;
  margin: 0 0 20px;
}

.cancel-sub-card-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cancel-sub-card-icon {
  width: 44px;
  height: 32px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.cancel-sub-card-info {
  display: flex;
  flex-direction: column;
}

.cancel-sub-card-lbl {
  font-size: 12px;
  color: #71717a;
  font-weight: 500;
}

.cancel-sub-card-val {
  font-size: 15px;
  font-weight: 700;
  color: #09090b;
  letter-spacing: 0.5px;
}

.cancel-sub-notice-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  margin-bottom: 24px;
}

.cancel-sub-notice-icon {
  color: #ef4444;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.cancel-sub-notice-text {
  font-size: 12px;
  color: #7f1d1d;
  line-height: 1.45;
}

.cancel-sub-notice-text b {
  font-weight: 700;
  color: #450a0a;
}

.cancel-sub-actions {
  display: flex;
  gap: 12px;
}

.btn-cancel-sub-confirm {
  flex: 1;
  background: #ef4444;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-cancel-sub-confirm:hover {
  background: #dc2626;
}

.btn-cancel-sub-back {
  flex: 1;
  background: #ffffff;
  color: #09090b;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel-sub-back:hover {
  background: #f4f4f5;
}

/* ==========================================================
   Unique Mode Selector (Form Strip & Modal 3 Variants)
   ========================================================== */
.unique-mode-section {
  margin-top: 14px;
  margin-bottom: 14px;
}

.mode-active-pill {
  font-size: 11px;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: 0.2px;
}

.unique-modes-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.mode-strip-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.22s ease;
  user-select: none;
  -webkit-appearance: none;
}

.mode-strip-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.mode-strip-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22) 0%, rgba(99, 102, 241, 0.15) 100%);
  border-color: #3b82f6;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.25);
}

.msb-icon {
  font-size: 20px;
  line-height: 1;
}

.msb-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.msb-title {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}

.mode-strip-btn.active .msb-title {
  color: #60a5fa;
}

.msb-sub {
  font-size: 10px;
  color: var(--text-muted);
}

.msb-fire {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 11px;
}

/* Unique Mode Modal */
.unique-mode-modal-box {
  max-width: 520px;
  width: 94%;
  background: #12141a;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(37, 99, 235, 0.15);
}

.unique-mode-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.unique-mode-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.unique-mode-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.unique-mode-item.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16) 0%, rgba(139, 92, 246, 0.12) 100%);
  border-color: #3b82f6;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
}

.umi-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  margin-top: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.unique-mode-item.active .umi-radio {
  border-color: #3b82f6;
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

.unique-mode-item.active .umi-radio::after {
  content: "";
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
}

.umi-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.umi-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.umi-icon {
  font-size: 16px;
}

.umi-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
}

.unique-mode-item.active .umi-title {
  color: #60a5fa;
}

.umi-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.clean-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.rec-badge {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.pro-badge {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.umi-desc {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.45;
}

.umi-desc b {
  color: #e2e8f0;
}

.umi-footer {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.checkout-autorenew-card label {
  cursor: pointer;
}

.checkout-autorenew-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
}








