/* ========================================
   Index Page Styles
   Compatible with Blink 98096 - Absolute Positioning
   ======================================== */

/* ========================================
   User Info (Header) - 单行布局
   ======================================== */
.user-info {
  position: absolute;
  top: 0;
  left: 42px;
  right: 0;
  height: 40px;
  line-height: 40px;
  white-space: nowrap;
  overflow: hidden;
}

.username {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-group {
  display: inline-block;
  vertical-align: middle;
  font-size: 0;
}

.badge-vip {
  display: inline-block;
  vertical-align: middle;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
  padding: 2px 5px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 10px;
  border: 1px solid transparent;
  border-right: none;
}

.badge-expire {
  display: inline-block;
  vertical-align: middle;
  background: rgba(0, 255, 247, 0.1);
  color: var(--cyan);
  padding: 2px 5px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  border: 1px solid rgba(0, 255, 247, 0.2);
  border-left: none;
  line-height: 10px;
}

.status-action {
  display: inline-block;
  vertical-align: middle;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-left: var(--space-2);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.status-action svg {
  display: inline-block;
  vertical-align: middle;
  margin-right: 3px;
}

.status-action:hover {
  color: var(--cyan);
}

/* ========================================
   Agreement Modal
   ======================================== */
.modal-content.agreement-modal {
  position: absolute;
  width: 460px;
  max-height: 90%;
  height: auto;
  left: 50% !important;
  right: auto !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translate(-50%, -50%);
}

.agreement-modal .modal-header {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  height: auto;
  padding: var(--space-3);
  border-bottom: 1px solid var(--border-dim);
  line-height: 1.4;
}

.agreement-modal .modal-header h2 {
  line-height: 1.4;
}

.agreement-modal .modal-body {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  padding: var(--space-3);
  overflow-y: auto;
  max-height: 300px;
}

.agreement-list {
  margin: 0;
  padding-left: var(--space-4);
}

.agreement-list li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-2);
}

.agreement-modal .modal-footer {
  position: relative;
  padding: var(--space-3);
  border-top: 1px solid var(--border-dim);
}

/* ========================================
   Confirm Modal - Cyber Glass Design
   ======================================== */
.confirm-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 15, 0.85);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 2000;
}

.confirm-overlay.active {
  display: block;
}

.confirm-box {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  margin-left: -150px;
  margin-top: -100px;
}

.confirm-glow {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--pink));
  border-radius: 8px;
  opacity: 0.6;
  filter: blur(1px);
}

.confirm-inner {
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(20, 20, 35, 0.98),
    rgba(10, 10, 20, 0.98)
  );
  border-radius: 7px;
  overflow: hidden;
}

.confirm-title {
  padding: 12px 16px 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.confirm-content {
  padding: 10px 16px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.confirm-content ol {
  margin: 0;
  padding-left: 16px;
}

.confirm-content ol li {
  margin-bottom: 6px;
}

.confirm-content ol li::marker {
  color: var(--cyan);
}

.confirm-bottom {
  position: relative;
  height: 44px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
}

/* Custom Checkbox */
.confirm-check {
  position: absolute;
  left: 16px;
  top: 10px;
  height: 24px;
  cursor: pointer;
  user-select: none;
  line-height: 24px;
}

.confirm-check input {
  display: none;
}

.confirm-check-box {
  display: inline-block;
  vertical-align: middle;
  width: 14px;
  height: 14px;
  border: 1px solid var(--border-default);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  transition: all 0.15s ease;
}

.confirm-check input:checked + .confirm-check-box {
  background: var(--cyan);
  border-color: var(--cyan);
}

.confirm-check input:checked + .confirm-check-box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid rgba(0, 0, 0, 0.8);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.confirm-check-text {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.confirm-check:hover .confirm-check-text {
  color: var(--text-secondary);
}

/* Buttons */
.confirm-btns {
  position: absolute;
  right: 16px;
  top: 10px;
  height: 24px;
}

.confirm-btn {
  display: inline-block;
  vertical-align: middle;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  margin-left: 8px;
}

.confirm-btn:first-child {
  margin-left: 0;
}

.confirm-btn-cancel {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-dim);
}

.confirm-btn-cancel:hover {
  color: var(--text-primary);
  border-color: var(--border-default);
  background: rgba(255, 255, 255, 0.03);
}

.confirm-btn-ok {
  background: linear-gradient(135deg, var(--cyan), rgba(0, 200, 200, 0.8));
  color: rgba(0, 0, 0, 0.85);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 255, 247, 0.2);
}

.confirm-btn-ok:hover {
  box-shadow: 0 4px 12px rgba(0, 255, 247, 0.35);
}

/* ========================================
   Tab Navigation - Absolute Positioning
   ======================================== */
.tab-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.tab-btn {
  display: inline-block;
  vertical-align: top;
  height: 26px;
  line-height: 26px;
  padding: 0 var(--space-3);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  margin-right: 2px;
}

.tab-btn svg {
  display: inline-block;
  vertical-align: middle;
  margin-right: var(--space-1);
  margin-top: -2px;
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.tab-btn.active {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 247, 0.12),
    rgba(191, 0, 255, 0.08)
  );
  color: var(--cyan);
}

.tab-count {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  background: rgba(0, 255, 247, 0.1);
  padding: 1px var(--space-1);
  border-radius: var(--radius-sm);
  color: var(--cyan);
  margin-left: var(--space-1);
  line-height: 16px;
}

.tab-btn.active .tab-count {
  background: rgba(0, 255, 247, 0.2);
}

/* ========================================
   Floating Search
   ======================================== */
.search-float {
  position: absolute;
  right: 3px;
  top: 3px;
}

.search-float.active {
  right: 30px;
}

.search-toggle {
  display: inline-block;
  width: 28px;
  height: 26px;
  background: transparent;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  line-height: 24px;
}

.search-toggle svg {
  vertical-align: middle;
}

.search-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.search-float.active .search-toggle {
  display: none;
}

.search-expand {
  display: none;
}

.search-float.active .search-expand {
  display: inline-block;
}

.search-expand input {
  display: inline-block;
  vertical-align: top;
  width: 160px;
  height: 26px;
  padding: 0 var(--space-2);
  font-size: var(--text-xs);
  background: rgba(10, 10, 15, 0.95);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
}

.search-close {
  display: inline-block;
  vertical-align: top;
  width: 24px;
  height: 26px;
  margin-left: var(--space-1);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.search-close:hover {
  color: var(--red);
}

/* ========================================
   Tab Content - Absolute Positioning
   ======================================== */
.tab-content {
  display: none;
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  bottom: 0;
}

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

/* ========================================
   Main Content Area - Absolute Positioning
   ======================================== */
#mainView {
  position: absolute;
  top: 68px;
  left: 12px;
  right: 12px;
  bottom: 12px;
}

.content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* ========================================
   Login View - Absolute Positioning
   ======================================== */
#loginView {
  position: absolute;
  top: 68px;
  left: 12px;
  right: 12px;
  bottom: 12px;
}

/* Login Panel */
.login-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding-top: 50px;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  background: linear-gradient(
    145deg,
    rgba(20, 20, 35, 0.6),
    rgba(10, 10, 20, 0.6)
  );
  border: 1px solid rgba(0, 170, 255, 0.15);
  border-radius: 8px;
  box-sizing: border-box;
}

.login-panel .login-form {
  width: 320px;
  margin: 0 auto;
}

/* Login Logo */
.login-logo {
  width: 68px;
  height: 78px;
  margin: 0 auto 24px;
}

.login-logo svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 24px rgba(64, 253, 255, 0.5));
}

/* Login Form */
.login-form {
  width: 100%;
}

/* Input Group */
.login-input-group {
  position: relative;
  height: 44px;
  margin-bottom: 12px;
}

/* Country Select */
.login-country-select {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 44px;
  background: linear-gradient(135deg, rgba(30, 40, 60, 0.8), rgba(20, 30, 50, 0.8));
  border: 1px solid rgba(0, 170, 255, 0.25);
  border-right: 1px solid rgba(0, 170, 255, 0.15);
  border-radius: 6px 0 0 6px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s;
}

.login-country-select .country-value {
  display: block;
  padding: 0 24px 0 12px;
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 44px;
}

.login-country-select .select-arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  margin-top: -5px;
  color: var(--cyan);
  pointer-events: none;
  transition: transform 0.2s;
}

.login-country-select.open .select-arrow {
  transform: rotate(180deg);
}

/* Country Dropdown */
.country-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -1px;
  width: 160px;
  max-height: 200px;
  margin-top: 4px;
  background: linear-gradient(135deg, rgba(30, 40, 60, 0.98), rgba(20, 30, 50, 0.98));
  border: 1px solid rgba(0, 170, 255, 0.3);
  border-radius: 6px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Scrollbar styling */
.country-dropdown::-webkit-scrollbar {
  width: 6px;
}

.country-dropdown::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.country-dropdown::-webkit-scrollbar-thumb {
  background: rgba(0, 170, 255, 0.4);
  border-radius: 3px;
}

.country-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 170, 255, 0.6);
}

.login-country-select.open .country-dropdown {
  display: block;
}

.country-option {
  padding: 10px 12px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-option:hover {
  background: rgba(0, 255, 247, 0.1);
  color: var(--cyan);
}

.country-option.selected {
  background: rgba(0, 255, 247, 0.15);
  color: var(--cyan);
}

/* Login Input */
.login-input {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 16px;
  background: linear-gradient(135deg, rgba(30, 40, 60, 0.8), rgba(20, 30, 50, 0.8));
  border: 1px solid rgba(0, 170, 255, 0.25);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input::placeholder {
  color: rgba(136, 170, 200, 0.6);
}

.login-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0, 255, 247, 0.1), 0 0 20px rgba(0, 255, 247, 0.1);
}

/* Phone Input */
.login-input.login-phone {
  padding-left: 92px;
  padding-right: 16px;
  border-radius: 0 6px 6px 0;
  border-left: none;
}

/* Phone Input Group Focus State */
.login-input-group.phone-focused .login-country-select {
  border-color: var(--cyan);
  border-right-color: rgba(0, 255, 247, 0.3);
}

.login-input-group.phone-focused .login-input.login-phone,
.login-input-group.phone-focused .login-input.login-phone:focus {
  border-color: var(--cyan);
  border-left: none;
  box-shadow: 0 0 0 2px rgba(0, 255, 247, 0.1), 0 0 20px rgba(0, 255, 247, 0.1);
}

/* Input Icon Button */
.login-input-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  margin-top: -14px;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.2s;
}

.login-input-icon:hover {
  color: var(--cyan);
}

/* Login Button */
.login-btn {
  width: 100%;
  height: 44px;
  margin-top: 4px;
  background: linear-gradient(90deg, #00c8d4, #00a8e8);
  border: none;
  border-radius: 6px;
  color: #0a1628;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 200, 212, 0.4);
}

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

.login-btn-text {
  display: inline-block;
  vertical-align: middle;
}

.login-btn-loading {
  display: inline-block;
  vertical-align: middle;
}

.login-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(10, 22, 40, 0.3);
  border-top-color: #0a1628;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

/* Login Options */
.login-options {
  position: relative;
  height: 24px;
  margin-top: 12px;
}

.login-checkbox {
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
}

.login-checkbox input {
  display: none;
}

.login-checkbox-box {
  display: inline-block;
  vertical-align: middle;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(0, 170, 255, 0.4);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  transition: all 0.15s;
  margin-right: 6px;
}

.login-checkbox input:checked + .login-checkbox-box {
  background: var(--cyan);
  border-color: var(--cyan);
}

.login-checkbox input:checked + .login-checkbox-box::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #0a1628;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.login-checkbox-text {
  display: inline-block;
  vertical-align: middle;
  font-size: 12px;
  color: var(--text-muted);
}

.login-checkbox:hover .login-checkbox-text {
  color: var(--text-secondary);
}

/* Login Links */
.login-links {
  position: absolute;
  right: 0;
  top: 0;
  height: 24px;
  line-height: 24px;
}

.login-links a {
  color: var(--cyan);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s;
}

.login-links a:hover {
  color: #00e5ff;
  text-decoration: underline;
}

.login-link-sep {
  display: inline-block;
  margin: 0 8px;
  color: var(--text-muted);
  font-size: 12px;
}

/* Divider */
.login-divider {
  position: relative;
  height: 24px;
  margin: 16px 0;
  text-align: center;
}

.login-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 170, 255, 0.3), transparent);
}

.login-divider span {
  display: inline-block;
  position: relative;
  padding: 0 16px;
  background: var(--bg-deep);
  color: var(--text-muted);
  font-size: 12px;
}

/* Social Login */
.login-social {
  text-align: center;
  margin-bottom: 16px;
}

.login-social-btn {
  display: inline-block;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #07c160, #06ad56);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.login-social-btn svg {
  width: 24px;
  height: 24px;
  color: white;
  vertical-align: middle;
}

.login-social-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(7, 193, 96, 0.4);
}

/* Agreement */
.login-agreement {
  margin-top: 16px;
  text-align: center;
}

.login-checkbox.login-checkbox-sm .login-checkbox-box {
  width: 12px;
  height: 12px;
}

.login-checkbox.login-checkbox-sm .login-checkbox-text {
  font-size: 11px;
}

.login-checkbox.login-checkbox-sm input:checked + .login-checkbox-box::after {
  left: 3px;
  top: 0px;
  width: 3px;
  height: 7px;
}

.login-agreement a {
  color: var(--cyan);
  text-decoration: none;
}

.login-agreement a:hover {
  text-decoration: underline;
}

/* ========================================
   Campaigns Layout - Absolute Positioning
   ======================================== */
.campaigns-layout {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Status Sidebar - Absolute Positioning */
.status-sidebar {
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 4px;
  box-sizing: border-box;
}

.status-btn {
  display: block;
  width: 100%;
  height: 52px;
  position: relative;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 2px;
  text-align: center;
  padding: 12px 0 8px;
  line-height: 1;
  box-sizing: border-box;
}

.status-btn svg {
  display: block;
  width: 12px;
  height: 12px;
  margin: 0 auto 6px;
  opacity: 0.6;
}

.status-btn-text {
  display: block;
  text-align: center;
}

.status-btn:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.status-btn:hover svg {
  opacity: 0.8;
}

.status-btn.active {
  background: rgba(0, 255, 247, 0.1);
  color: var(--cyan);
}

.status-btn.active svg {
  opacity: 1;
  color: var(--cyan);
}

/* ========================================
   Campaigns Grid - Absolute Positioning
   ======================================== */
.campaigns-grid {
  position: absolute;
  top: 4px;
  left: 80px;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: var(--space-1);
  padding-bottom: 8px;
  font-size: 0;
  letter-spacing: 0;
}

/* Campaign Card - Inline-block layout */
.campaign-card {
  display: inline-block;
  vertical-align: top;
  width: 48%;
  height: 80px;
  margin-right: 2%;
  margin-bottom: 8px;
  position: relative;
  background: rgba(10, 10, 20, 0.6);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition-fast),
    background var(--transition-fast);
  box-sizing: border-box;
  font-size: 13px;
  letter-spacing: normal;
}

.campaign-card:nth-child(2n) {
  margin-right: 0;
  width: 50%;
}

.campaign-card:hover {
  border-color: var(--cyan);
  background: var(--bg-hover);
}

.campaign-card.selected {
  border-color: var(--purple);
  background: rgba(191, 0, 255, 0.05);
}

.campaign-image {
  position: absolute;
  top: 50%;
  left: 8px;
  width: 48px;
  height: 64px;
  margin-top: -32px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
  border: 1px solid var(--border-dim);
}

.campaign-content {
  position: absolute;
  top: 6px;
  left: 64px;
  right: 8px;
  bottom: 6px;
}

.campaign-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  line-height: 14px;
}

.campaign-game {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 12px;
}

.campaign-status-badge {
  display: none;
}

/* Show status badge in campaign card */
.campaign-card .campaign-status-badge.status-running,
.campaign-card .campaign-status-badge.status-queued {
  display: block;
  float: right;
  margin-left: 6px;
  padding: 1px 4px;
  font-size: 9px;
  font-weight: 500;
  line-height: 10px;
  border-radius: 3px;
}

.campaign-card .campaign-status-badge.status-running {
  background: rgba(0, 255, 136, 0.15);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.campaign-card .campaign-status-badge.status-queued {
  background: rgba(255, 165, 0, 0.15);
  color: #ffa500;
  border: 1px solid rgba(255, 165, 0, 0.3);
}

/* Campaign card running state - rainbow border */
.campaign-card.in-queue.running {
  border: 2px solid #00ff88;
  animation: rainbow-border 3s linear infinite;
}

@keyframes rainbow-border {
  0% { border-color: #ff0080; }
  25% { border-color: #ff8c00; }
  50% { border-color: #40e0d0; }
  75% { border-color: #00ff88; }
  100% { border-color: #ff0080; }
}

/* Campaign card queued state - orange border */
.campaign-card.in-queue.queued {
  border: 1px solid rgba(255, 165, 0, 0.5);
}

.campaign-name {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  bottom: 16px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  overflow: hidden;
}

.campaign-time {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  line-height: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.campaign-time svg {
  display: inline-block;
  vertical-align: middle;
  width: 10px;
  height: 10px;
  color: var(--purple);
  margin-right: 2px;
  margin-top: -1px;
}

/* ========================================
   Tasks List - Absolute Positioning
   ======================================== */
.tasks-list {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
}

/* ========================================
   Task Item
   ======================================== */
.task-item {
  position: relative;
  background: rgba(10, 10, 20, 0.6);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-2);
  overflow: hidden;
}

/* Running task animated border */
.task-item.running::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--cyan),
    var(--purple),
    var(--pink),
    var(--cyan)
  );
  background-size: 300% 100%;
  animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

/* Pending task orange top border */
.task-item.pending-task::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffa500;
}

.task-header {
  position: relative;
  height: 28px;
  margin-bottom: var(--space-2);
}

.task-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 200px;
  height: 28px;
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 28px;
}

.task-header-right {
  position: absolute;
  right: 0;
  top: 0;
  height: 28px;
  line-height: 28px;
}

.task-header-right .progress-value {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--cyan);
  line-height: 28px;
  margin-right: var(--space-2);
}

.task-stop-btn {
  display: inline-block;
  vertical-align: middle;
  height: 28px;
  line-height: 16px;
  padding: 6px 12px;
  background: rgba(255, 68, 102, 0.1);
  border: 1px solid rgba(255, 68, 102, 0.3);
  border-radius: var(--radius-sm);
  color: var(--red);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
}

.task-stop-btn:hover {
  background: rgba(255, 68, 102, 0.2);
  border-color: var(--red);
}

.task-stop-btn svg {
  display: inline-block;
  vertical-align: middle;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  margin-top: -2px;
}

.task-badge {
  display: inline-block;
  vertical-align: middle;
  height: 28px;
  line-height: 26px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-left: var(--space-2);
  box-sizing: border-box;
}

.task-badge.running {
  background: rgba(0, 255, 136, 0.12);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.25);
}

.task-badge.pending {
  background: rgba(255, 170, 0, 0.12);
  color: var(--yellow);
  border: 1px solid rgba(255, 170, 0, 0.25);
}

/* ========================================
   Task Progress
   ======================================== */
.task-progress {
  margin-bottom: var(--space-2);
}

.progress-meta {
  position: relative;
  height: 16px;
  margin-top: 6px;
}

.progress-time {
  position: absolute;
  left: 0;
  top: 0;
  height: 16px;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 16px;
}

.running-time {
  position: absolute;
  right: 0;
  top: 0;
  height: 16px;
  color: var(--text-dim);
  cursor: help;
  font-size: 11px;
  line-height: 16px;
}

/* ========================================
   Task Stats Grid - Absolute Positioning
   ======================================== */
.task-stats {
  position: relative;
  height: 48px;
}

.stat-item {
  position: absolute;
  width: 32%;
  height: 48px;
  padding: var(--space-2);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
}

.stat-item:nth-child(1) {
  top: 0;
  left: 0;
}

.stat-item:nth-child(2) {
  top: 0;
  left: 34%;
}

.stat-item:nth-child(3) {
  top: 0;
  right: 0;
}

.stat-item:nth-child(4) {
  top: 56px;
  left: 0;
}

.stat-item:nth-child(5) {
  top: 56px;
  left: 34%;
}

.stat-item:nth-child(6) {
  top: 56px;
  right: 0;
}

.stat-icon {
  position: absolute;
  left: 8px;
  top: 10px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  text-align: center;
  line-height: 28px;
}

.stat-icon svg {
  display: inline-block;
  vertical-align: middle;
  width: 14px;
  height: 14px;
  margin-top: -2px;
}

.stat-icon.channel {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 247, 0.15),
    rgba(0, 170, 255, 0.15)
  );
  color: var(--cyan);
}

.stat-icon.time {
  background: linear-gradient(
    135deg,
    rgba(191, 0, 255, 0.15),
    rgba(255, 0, 170, 0.15)
  );
  color: var(--purple);
}

.stat-icon.drops {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 136, 0.15),
    rgba(0, 204, 102, 0.15)
  );
  color: var(--green);
}

.stat-icon.current {
  background: linear-gradient(
    135deg,
    rgba(255, 170, 0, 0.15),
    rgba(255, 136, 0, 0.15)
  );
  color: var(--yellow);
}

.stat-content {
  position: absolute;
  top: 8px;
  left: 44px;
  right: 8px;
  bottom: 4px;
}

.stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.stat-value {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Clickable stat item */
.stat-item-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}

.stat-item-clickable:hover {
  background: rgba(0, 255, 136, 0.08);
  border-color: rgba(0, 255, 136, 0.3);
}

.stat-arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  margin-top: -8px;
  color: var(--text-muted);
  opacity: 0;
  transition: all 0.2s ease;
}

.stat-item-clickable:hover .stat-arrow {
  opacity: 1;
  color: var(--green);
}

.stat-item-clickable:hover .stat-icon.drops {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 136, 0.25),
    rgba(0, 204, 102, 0.25)
  );
}

.stat-item-clickable:hover .stat-value {
  color: var(--green);
}

/* ========================================
   Pending Task State
   ======================================== */
.task-pending {
  text-align: center;
  padding: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--text-base);
  font-weight: 500;
}

.pending-spinner {
  display: inline-block;
  vertical-align: middle;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-dim);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: var(--space-2);
}

/* ========================================
   Modal
   ======================================== */
.modal {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #333333aa;
  z-index: 1000;
}

.modal.active {
  display: block;
}

.modal-content {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
}

.modal-header {
  position: absolute;
  top: 2px;
  left: 0;
  right: 0;
  height: 44px;
  padding: 0 var(--space-3);
  border-bottom: 1px solid var(--border-dim);
  line-height: 44px;
}

.modal-header h2 {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: none;
  font-size: var(--text-base);
  line-height: 44px;
}

.modal-close {
  position: absolute;
  right: var(--space-3);
  top: 8px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dim);
  background: transparent;
  transition: all var(--transition-fast);
  text-align: center;
  line-height: 26px;
}

.modal-close svg {
  display: inline-block;
  vertical-align: middle;
  width: 14px;
  height: 14px;
  margin-top: -2px;
}

.modal-close:hover {
  background: rgba(255, 68, 102, 0.1);
  border-color: var(--red);
  color: var(--red);
}

.modal-body {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-4);
  overflow-y: auto;
}

/* Risk Warning - Visual Comparison */
.risk-warning {
  text-align: left;
}

.risk-comparison {
  display: block;
}

.risk-bar-group {
  margin-bottom: var(--space-4);
}

.risk-bar-header {
  position: relative;
  height: 20px;
  margin-bottom: var(--space-2);
}

.risk-label {
  position: absolute;
  left: 0;
  top: 0;
  height: 20px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 20px;
}

.risk-value {
  position: absolute;
  right: 0;
  top: 0;
  height: 20px;
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 20px;
}

.risk-value.available {
  color: var(--accent);
}

.risk-value.needed {
  color: #f59e0b;
}

.risk-bar {
  position: relative;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: visible;
}

.risk-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.risk-bar-fill.available {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.risk-bar-fill.needed {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.risk-breakdown {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.risk-breakdown span {
  display: inline-block;
  margin-right: var(--space-1);
}

.risk-sep {
  color: var(--text-muted);
  opacity: 0.5;
}

.risk-overflow-hint {
  margin-top: var(--space-4);
  padding: var(--space-2) var(--space-3);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: #f87171;
  text-align: center;
}

.risk-overflow-hint strong {
  color: #ef4444;
  font-weight: 600;
}

/* ========================================
   Campaign Detail (Modal Content) - Absolute Positioning
   ======================================== */
.detail-grid {
  position: relative;
  height: 96px;
  margin-bottom: var(--space-4);
}

.detail-item {
  position: absolute;
  width: 32%;
  height: 40px;
  padding: var(--space-2) var(--space-3);
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dim);
  box-sizing: border-box;
}

.detail-item:nth-child(1) {
  top: 0;
  left: 0;
}

.detail-item:nth-child(2) {
  top: 0;
  left: 34%;
}

.detail-item:nth-child(3) {
  top: 0;
  right: 0;
}

.detail-item:nth-child(4) {
  top: 48px;
  left: 0;
}

.detail-item:nth-child(5) {
  top: 48px;
  left: 34%;
}

.detail-item:nth-child(6) {
  top: 48px;
  right: 0;
}

.detail-label {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  min-width: 36px;
  line-height: 24px;
}

.detail-value {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 24px;
  margin-left: 8px;
  max-width: calc(100% - 52px);
}

.detail-value a {
  color: var(--cyan);
  text-decoration: none;
}

.detail-value a:hover {
  text-decoration: underline;
}

/* Account Connection Badge */
.account-badge {
  display: inline-block;
  vertical-align: middle;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 18px;
}

.account-badge.connected {
  background: rgba(0, 255, 136, 0.12);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.25);
}

.account-badge.disconnected {
  background: rgba(255, 170, 0, 0.12);
  color: var(--yellow);
  border: 1px solid rgba(255, 170, 0, 0.25);
}

/* ========================================
   Drops Section
   ======================================== */
.drops-section {
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-dim);
}

.drops-header {
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.drops-header .count {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--cyan);
  background: rgba(0, 255, 247, 0.1);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  margin-left: var(--space-2);
}

.drops-list {
  position: relative;
  overflow-y: auto;
  font-size: 0;
  letter-spacing: 0;
}

.drop-item {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: 49%;
  height: 64px;
  margin-right: 2%;
  margin-bottom: 8px;
  padding: var(--space-2);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  font-size: 13px;
  letter-spacing: normal;
}

.drop-item:nth-child(2n) {
  margin-right: 0;
}

.drop-image {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-deep);
  border: 1px solid var(--border-dim);
}

.drop-info {
  position: absolute;
  top: 4px;
  left: 64px;
  right: 8px;
  bottom: 4px;
}

.drop-name {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drop-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drop-meta span {
  display: inline-block;
  margin-right: var(--space-2);
}

.drop-meta svg {
  display: inline-block;
  vertical-align: middle;
  width: 12px;
  height: 12px;
  color: var(--purple);
  margin-right: 4px;
  margin-top: -2px;
}

/* Modal Action Button */
.modal-body > .btn {
  margin-top: var(--space-4);
}

/* ========================================
   Empty State - Absolute Positioning
   ======================================== */
.empty-state {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  margin-left: -100px;
  margin-top: -60px;
  text-align: center;
}

.empty-icon {
  position: relative;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  background: rgba(90, 90, 112, 0.1);
  border: 1px dashed var(--border-dim);
  text-align: center;
  line-height: 48px;
  color: var(--text-muted);
}

.empty-icon svg {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  opacity: 0.5;
  margin-top: -2px;
}

.empty-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin-bottom: var(--space-1);
}

.empty-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ========================================
   Loading Override - Absolute Positioning
   ======================================== */
.campaigns-grid .loading,
.tasks-list .loading {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  margin-left: -100px;
  margin-top: -40px;
  text-align: center;
  font-size: var(--text-base);
}

/* ========================================
   Detail Status Badge (Modal)
   ======================================== */
.detail-value .campaign-status-badge {
  display: inline-block;
  vertical-align: middle;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 18px;
}

.detail-value .campaign-status-badge.status-active {
  background: rgba(0, 255, 136, 0.12);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.25);
}

.detail-value .campaign-status-badge.status-expired {
  background: rgba(136, 136, 160, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(136, 136, 160, 0.25);
}

.detail-value .campaign-status-badge.status-queue {
  background: rgba(64, 253, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(64, 253, 255, 0.25);
}

/* Disabled button style for "already in queue" */
.modal-body .btn[disabled] {
  background: rgba(100, 100, 120, 0.3);
  color: var(--text-secondary);
  border: 1px solid rgba(100, 100, 120, 0.4);
  cursor: not-allowed;
  opacity: 1;
}

/* ========================================
   History Task Item (Completed, Cancelled, Failed)
   ======================================== */
.history-task-item {
  position: relative;
  padding: var(--space-2) var(--space-3);
  background: rgba(10, 10, 20, 0.5);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  border-left: 3px solid;
  transition: background var(--transition-fast);
  margin-bottom: var(--space-2);
}

.history-task-item:hover {
  background: rgba(20, 20, 35, 0.6);
}

/* Status Colors - Left Border */
.history-task-item.completed {
  border-left-color: var(--green);
}

.history-task-item.cancelled {
  border-left-color: var(--text-muted);
}

.history-task-item.failed {
  border-left-color: var(--red);
}

/* Header: Title + Badge - Absolute Positioning */
.history-task-header {
  position: relative;
  height: 24px;
  margin-bottom: var(--space-1);
}

.history-task-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 80px;
  height: 24px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 24px;
}

/* Status Badge */
.history-task-badge {
  position: absolute;
  right: 0;
  top: 0;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 20px;
}

.history-task-badge.completed {
  background: rgba(0, 255, 136, 0.1);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.history-task-badge.cancelled {
  background: rgba(136, 136, 160, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(136, 136, 160, 0.2);
}

.history-task-badge.failed {
  background: rgba(255, 68, 102, 0.1);
  color: var(--red);
  border: 1px solid rgba(255, 68, 102, 0.2);
}

/* Meta Info Row */
.history-task-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.history-task-meta .meta-item {
  display: inline-block;
  margin-right: var(--space-3);
}

.history-task-meta svg {
  display: inline-block;
  vertical-align: middle;
  width: 12px;
  height: 12px;
  opacity: 0.7;
  margin-right: 4px;
  margin-top: -2px;
}

/* Error Message - Failed Tasks Only */
.history-task-error {
  margin-top: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background: rgba(255, 68, 102, 0.08);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--red);
  opacity: 0.9;
}

/* ========================================
   Task Title Link (Entry to Detail)
   ======================================== */
.task-title-link {
  display: inline-block;
  text-decoration: none;
  color: var(--text-primary);
  cursor: pointer;
  max-width: 100%;
  position: relative;
}

.task-title-text {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease;
  max-width: calc(100% - 24px);
  vertical-align: middle;
}

/* Glowing underline effect */
.task-title-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 1px;
  transition: width 0.3s ease;
}

.task-title-arrow {
  display: inline-block;
  vertical-align: middle;
  opacity: 0;
  transition: all 0.25s ease;
  color: var(--cyan);
  margin-left: 6px;
}

.task-title-arrow svg {
  display: inline-block;
  vertical-align: middle;
}

/* Hover state */
.task-title-link:hover .task-title-text {
  color: var(--cyan);
}

.task-title-link:hover .task-title-text::after {
  width: 100%;
}

.task-title-link:hover .task-title-arrow {
  opacity: 1;
}

/* Active/pressed state */
.task-title-link:active .task-title-text {
  color: var(--purple);
}

/* Pending task styling - slightly muted */
.pending-task .task-title-link .task-title-text {
  font-size: var(--text-lg);
}

.pending-task .task-title-link:hover .task-title-text::after {
  background: linear-gradient(90deg, var(--yellow), var(--cyan));
}

.pending-task .task-title-link:hover .task-title-text {
  color: var(--yellow);
}

.pending-task .task-title-link .task-title-arrow {
  color: var(--yellow);
}

/* ========================================
   Drop Progress in Task Detail
   ======================================== */
.drop-item.completed {
  border-color: rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.05);
}

.drop-item.in-progress {
  border-color: rgba(0, 255, 247, 0.3);
}

.drop-item.completed .drop-name {
  color: var(--green);
}

.drop-item .drop-name svg {
  display: inline-block;
  vertical-align: middle;
  width: 12px;
  height: 12px;
  color: var(--green);
  margin-left: 4px;
}

.drop-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 6px 0;
}

.drop-progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
  background: rgba(255, 255, 255, 0.2);
}

.drop-progress-fill.in-progress {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.drop-progress-fill.completed {
  background: var(--green);
}

.drop-progress-text {
  font-weight: 600;
  color: var(--text-secondary);
}

.drop-item.completed .drop-progress-text {
  color: var(--green);
}

.drop-item.in-progress .drop-progress-text {
  color: var(--cyan);
}

/* ========================================
   App Loading - 初始化加载界面
   兼容 Blink 98096 内核
   ======================================== */
.app-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: -webkit-linear-gradient(165deg, rgba(20, 18, 30, 0.99), rgba(12, 10, 20, 0.99));
  background: linear-gradient(165deg, rgba(20, 18, 30, 0.99), rgba(12, 10, 20, 0.99));
  z-index: 1000;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  opacity: 1;
  -webkit-transition: opacity 0.4s ease-out;
  transition: opacity 0.4s ease-out;
}

.app-loading.fade-out {
  opacity: 0;
  pointer-events: none;
}

.app-loading-content {
  text-align: center;
}

.app-loading-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: -webkit-linear-gradient(135deg, var(--cyan), var(--purple));
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: var(--radius-md);
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  color: var(--bg-deep);
  box-shadow: 0 0 30px rgba(0, 255, 247, 0.3);
  -webkit-animation: logoGlow 2s ease-in-out infinite;
  animation: logoGlow 2s ease-in-out infinite;
}

@-webkit-keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 247, 0.3); }
  50% { box-shadow: 0 0 40px rgba(191, 0, 255, 0.4); }
}
@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 247, 0.3); }
  50% { box-shadow: 0 0 40px rgba(191, 0, 255, 0.4); }
}

.app-loading-spinner {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
}

.spinner-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  border: 2px solid transparent;
  border-top-color: var(--cyan);
  border-right-color: var(--cyan);
  border-radius: 50%;
  -webkit-animation: spinnerRotate 1.2s linear infinite;
  animation: spinnerRotate 1.2s linear infinite;
}

.spinner-ring-inner {
  top: 8px;
  left: 8px;
  width: 40px;
  height: 40px;
  border-top-color: var(--purple);
  border-right-color: var(--purple);
  -webkit-animation-direction: reverse;
  animation-direction: reverse;
  -webkit-animation-duration: 0.9s;
  animation-duration: 0.9s;
}

@-webkit-keyframes spinnerRotate {
  to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes spinnerRotate {
  to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

.app-loading-text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.app-loading-dots {
  margin-top: 16px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
}

.app-loading-dots span {
  width: 4px;
  height: 4px;
  margin: 0 3px;
  background: var(--cyan);
  border-radius: 50%;
  -webkit-animation: dotPulse 1.4s ease-in-out infinite;
  animation: dotPulse 1.4s ease-in-out infinite;
}

.app-loading-dots span:nth-child(2) {
  -webkit-animation-delay: 0.2s;
  animation-delay: 0.2s;
  background: var(--purple);
}

.app-loading-dots span:nth-child(3) {
  -webkit-animation-delay: 0.4s;
  animation-delay: 0.4s;
  background: var(--pink);
}

@-webkit-keyframes dotPulse {
  0%, 80%, 100% {
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
    opacity: 1;
  }
}
@keyframes dotPulse {
  0%, 80%, 100% {
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
    opacity: 1;
  }
}

/* ========================================
   VIP Overlay - 过期/未开通界面
   兼容 Blink 98096 内核
   ======================================== */
.vip-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 15, 0.92);
  z-index: 900;
  display: none;
  opacity: 0;
  -webkit-transition: opacity 0.3s ease-out;
  transition: opacity 0.3s ease-out;
}

.vip-overlay.active {
  display: block;
  opacity: 1;
}

.vip-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  margin-left: -160px;
  margin-top: -140px;
}

.vip-card-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: -webkit-linear-gradient(135deg, var(--pink), var(--purple), var(--cyan));
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--cyan));
  border-radius: 10px;
  opacity: 0.7;
  -webkit-filter: blur(2px);
  filter: blur(2px);
  -webkit-animation: vipGlowPulse 3s ease-in-out infinite;
  animation: vipGlowPulse 3s ease-in-out infinite;
}

@-webkit-keyframes vipGlowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}
@keyframes vipGlowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.vip-card-inner {
  position: relative;
  background: linear-gradient(165deg, rgba(20, 18, 30, 0.98), rgba(12, 10, 20, 0.98));
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
  overflow: hidden;
}

.vip-card-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan));
}

.vip-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: rgba(191, 0, 255, 0.08);
  border: 1px solid rgba(191, 0, 255, 0.2);
  border-radius: 50%;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-animation: vipIconFloat 4s ease-in-out infinite;
  animation: vipIconFloat 4s ease-in-out infinite;
}

@-webkit-keyframes vipIconFloat {
  0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
  50% { -webkit-transform: translateY(-4px); transform: translateY(-4px); }
}
@keyframes vipIconFloat {
  0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
  50% { -webkit-transform: translateY(-4px); transform: translateY(-4px); }
}

.vip-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  background: -webkit-linear-gradient(135deg, var(--pink), var(--purple));
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.vip-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  display: inline-block;
}

.vip-status.expired {
  color: var(--yellow);
  border: 1px solid rgba(255, 170, 0, 0.25);
}

.vip-status.not-activated {
  color: var(--text-muted);
  border: 1px solid var(--border-dim);
}

.vip-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.vip-desc strong {
  color: var(--pink);
  font-weight: 600;
}

.vip-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
}

.vip-btn-primary {
  position: relative;
  padding: 10px 32px;
  background: -webkit-linear-gradient(135deg, var(--pink), var(--purple));
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: white;
  cursor: pointer;
  overflow: hidden;
  -webkit-transition: -webkit-transform 0.2s, box-shadow 0.2s;
  transition: transform 0.2s, box-shadow 0.2s;
}

.vip-btn-primary:hover {
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(191, 0, 255, 0.4);
}

.vip-btn-secondary {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.vip-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
}

.vip-btn-secondary svg {
  opacity: 0.8;
}

.vip-btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: -webkit-linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  -webkit-animation: btnShine 3s ease-in-out infinite;
  animation: btnShine 3s ease-in-out infinite;
}

@-webkit-keyframes btnShine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}
@keyframes btnShine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}
