:root {
  --bg-color: #080c16;
  --glass-bg: rgba(19, 27, 46, 0.8);
  --glass-card: rgba(26, 38, 64, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-active: rgba(99, 102, 241, 0.5);
  --primary-color: #6366f1;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --primary-hover: #4f46e5;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --success-color: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --warning-color: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --error-color: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.12);
  --input-bg: rgba(12, 18, 34, 0.75);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0, transparent 50%), 
    radial-gradient(at 50% 10%, rgba(168, 85, 247, 0.15) 0, transparent 50%), 
    radial-gradient(at 100% 90%, rgba(14, 165, 233, 0.15) 0, transparent 50%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background-attachment: fixed;
}

.container {
  width: 100%;
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  padding: 2.2rem;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Login Card */
.login-card {
  text-align: center;
  padding: 2.5rem 1.8rem;
}

.lock-icon {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.pin-input {
  width: 100%;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  padding: 0.9rem;
  background: var(--input-bg);
  border: 2px solid var(--glass-border);
  border-radius: 16px;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.pin-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25);
}

.auth-error-badge {
  background: var(--error-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  margin-bottom: 1.2rem;
}

.remember-row {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

/* Client Profile Card */
.client-profile-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.4rem;
  gap: 0.85rem;
}

.profile-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.profile-bottom-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.profile-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(236, 72, 153, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.profile-login {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.profile-meta-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.plan-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
}
.status-badge.active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.status-badge.suspended {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.expire-pill {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.profile-limits-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.limit-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.limit-count {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1f5f9;
}
.limit-count b {
  color: #38bdf8;
}

.btn-logout {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 0.45rem 0.95rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

h1 {
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  text-align: center;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1.6rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  color: var(--text-primary);
}

.label-with-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}

.label-with-action label {
  margin-bottom: 0;
}

.btn-toggle-limits {
  background: none;
  border: none;
  color: #818cf8;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-toggle-limits:hover {
  color: #c7d2fe;
  text-decoration: underline;
}

/* File Drop Area */
.file-drop-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.8rem 1.2rem;
  border: 2px dashed var(--glass-border);
  border-radius: 20px;
  background: var(--input-bg);
  transition: all 0.25s ease;
  cursor: pointer;
  text-align: center;
}

.file-drop-area:hover, .file-drop-area.dragover {
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.06);
}

.file-drop-area input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.file-icon {
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
}

.file-msg {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

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

/* Video Analysis Card */
.video-analysis-card {
  margin-top: 1rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 18px;
  padding: 1.2rem;
  animation: fadeIn 0.3s ease forwards;
}

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

.analysis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.analysis-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #c7d2fe;
}

.analysis-status {
  font-size: 0.8rem;
  font-weight: 600;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.analysis-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

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

.item-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Optimization Toggle Cards */
.compression-option-row {
  margin: 0.7rem 0;
  padding: 0.8rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 14px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
}

.checkbox-container input {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
  flex-shrink: 0;
}

.option-text {
  font-size: 0.84rem;
  color: #e0e7ff;
  line-height: 1.35;
}

/* Platform Compatibility Tags Grid */
.platform-compat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.45rem;
  margin-top: 0.8rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.compat-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  line-height: 1.3;
}

.compat-tag.ok {
  background: var(--success-bg);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.compat-tag.warn {
  background: var(--warning-bg);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Limits Accordion */
.limits-accordion {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.limits-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.limit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.7rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  font-size: 0.8rem;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.badge-yt { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-tt { background: rgba(236, 72, 153, 0.2); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.badge-ig { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-fb { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-th { background: rgba(255, 255, 255, 0.15); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.25); }

.limit-desc {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

/* Textarea */
textarea {
  width: 100%;
  min-height: 120px;
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  resize: vertical;
  transition: all 0.25s ease;
}

textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Platform Grid */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin-top: 0.3rem;
}

.platform-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.platform-checkbox:hover {
  border-color: var(--glass-border-active);
  background: rgba(30, 41, 59, 0.7);
}

.platform-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--glass-border);
  border-radius: 6px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
}

.platform-checkbox input:checked ~ .checkmark {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.checkmark::after {
  content: "";
  display: none;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.platform-checkbox input:checked ~ .checkmark::after {
  display: block;
}

.platform-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.platform-name {
  font-weight: 700;
  font-size: 0.88rem;
}

.platform-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 1.1rem;
  border: none;
  border-radius: 18px;
  background: var(--primary-gradient);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.4);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -6px rgba(99, 102, 241, 0.6);
}

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

/* Modal Overlay: ALWAYS hidden by default */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1rem;
  margin: 0;
}

.modal-card {
  background: #162036;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 1.8rem;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

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

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.btn-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
}

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

.modal-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1.2rem;
}

.modal-desc a {
  color: #818cf8;
  text-decoration: underline;
}

/* Token Tabs */
.token-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  background: rgba(10, 15, 29, 0.6);
  padding: 0.35rem;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
}

.tab-btn {
  flex: 1;
  padding: 0.65rem 0.8rem;
  background: none;
  border: none;
  border-radius: 10px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.btn-save-token {
  margin-top: 0.6rem;
  padding: 0.85rem;
  font-size: 0.95rem;
}

.btn-modal-done {
  width: 100%;
  padding: 0.9rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-done:hover {
  background: rgba(16, 185, 129, 0.3);
}

.modal-result {
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.modal-result.success {
  background: var(--success-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.modal-result.error {
  background: var(--error-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Progress Card Elements */
.progress-card {
  max-width: 520px;
}

.stage-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.stage-name {
  font-size: 1rem;
  font-weight: 700;
  color: #c7d2fe;
}

.stage-percent {
  font-size: 1.15rem;
  font-weight: 800;
  color: #38bdf8;
}

.progress-bar-container {
  width: 100%;
  height: 10px;
  background: rgba(10, 15, 29, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #38bdf8, #10b981);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.progress-sub-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  text-align: right;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
}

.step-item.active {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.4);
}

.step-item.completed {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}

.step-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.step-content {
  flex-grow: 1;
}

.step-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.step-status {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.platform-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.platform-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: rgba(10, 15, 29, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  font-size: 0.84rem;
}

.platform-result-item .p-name {
  font-weight: 700;
  color: var(--text-primary);
}

.platform-result-item .p-status.loading { color: #fbbf24; font-size: 0.78rem; }
.platform-result-item .p-status.success { color: #34d399; font-weight: 700; font-size: 0.8rem; }
.platform-result-item .p-status.error { color: #f87171; font-weight: 700; font-size: 0.8rem; }

/* Warning Banner for 55+ days */
.warning-banner {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
  padding: 0.85rem 1.2rem;
  border-radius: 16px;
  font-size: 0.88rem;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.warning-banner a {
  color: #fef08a;
  text-decoration: underline;
  font-weight: 700;
  cursor: pointer;
}

/* Token Tabs Styling */
.token-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.token-tabs .tab-btn {
  flex: 1;
  padding: 0.6rem 0.5rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.token-tabs .tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.token-tabs .tab-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 0.9rem 1.4rem;
  background: rgba(22, 32, 54, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--primary-color);
  border-radius: 12px;
  color: white;
  transform: translateX(140%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999999;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
  font-size: 0.9rem;
  font-weight: 600;
}

.toast.show { transform: translateX(0); }
.toast.success { border-left-color: var(--success-color); }
.toast.error { border-left-color: var(--error-color); }

/* Loading Spinner */
.loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s ease-in-out infinite;
  margin: 0 auto;
}

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

.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .loading-spinner { display: block; }

@media (max-width: 580px) {
  body {
    padding: 0.75rem 0.5rem;
  }
  .glass-card {
    padding: 1.4rem 1.1rem;
    border-radius: 20px;
  }
  .platforms-grid {
    grid-template-columns: 1fr;
  }
  .analysis-grid {
    grid-template-columns: 1fr;
  }
  .platform-compat-row {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 1.6rem;
  }
}
