* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { background: #0f172a; color: #f8fafc; min-height: 100vh; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; background: #1e293b; border-bottom: 1px solid #334155; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-size: 1.25rem; font-weight: 700; }
.tailscale-badge { background: #0284c7; color: white; padding: 0.2rem 0.6rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
.capacity-pill { background: #334155; padding: 0.35rem 0.75rem; border-radius: 9999px; font-size: 0.85rem; }
.user-pill { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; }
.container { max-width: 1080px; margin: 2rem auto; padding: 0 1rem; }
.card { background: #1e293b; border: 1px solid #334155; border-radius: 0.75rem; padding: 1.5rem; }
.auth-card { max-width: 480px; margin: 3rem auto; }
.tabs { display: flex; border-bottom: 1px solid #334155; margin-bottom: 1.5rem; }
.tab { flex: 1; padding: 0.75rem; background: transparent; border: none; color: #94a3b8; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; }
.tab.active { color: #38bdf8; border-bottom-color: #38bdf8; }
.form-body h2 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.subtitle { color: #94a3b8; font-size: 0.85rem; margin-bottom: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.form-group input { width: 100%; padding: 0.75rem; background: #0f172a; border: 1px solid #475569; border-radius: 0.5rem; color: white; }
.form-group input:focus { outline: none; border-color: #38bdf8; }
.btn { padding: 0.75rem 1.25rem; border-radius: 0.5rem; font-weight: 600; cursor: pointer; border: none; }
.btn-primary { background: #0284c7; color: white; }
.btn-primary:hover { background: #0369a1; }
.btn-success { background: #10b981; color: white; }
.btn-outline { background: transparent; border: 1px solid #475569; color: white; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; border-radius: 0.35rem; }
.btn-upgrade { background: #f59e0b; color: #000; font-weight: 700; border: none; border-radius: 0.35rem; padding: 0.4rem 0.8rem; cursor: pointer; }
.w-full { width: 100%; }
.alert { padding: 0.75rem; border-radius: 0.5rem; font-size: 0.85rem; margin-top: 1rem; }
.alert.error { background: #7f1d1d; color: #fecaca; }
.alert.success { background: #064e3b; color: #a7f3d0; }
.hidden { display: none !important; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center; z-index: 100; backdrop-filter: blur(4px); }
.modal-content { background: #1e293b; padding: 2rem; border-radius: 0.75rem; max-width: 520px; width: 92%; border: 1px solid #475569; }
.otp-input { font-size: 1.75rem; letter-spacing: 0.5rem; text-align: center; width: 100%; padding: 0.75rem; margin: 1.25rem 0; background: #0f172a; border: 1px solid #475569; border-radius: 0.5rem; color: white; }
.status-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #334155; padding-bottom: 1rem; margin-bottom: 1.5rem; }
.countdown-box { display: flex; align-items: center; gap: 0.75rem; background: #0f172a; padding: 0.5rem 1rem; border-radius: 0.5rem; border: 1px solid #475569; }
.timer-value { font-family: monospace; font-size: 1.25rem; color: #f59e0b; font-weight: 700; }
.empty-state { padding: 1.5rem 0; }
.activation-hub { text-align: left; }
.activation-hub h2 { font-size: 1.4rem; margin-bottom: 0.35rem; }
.template-selector-box { margin: 1.5rem 0; }
.template-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; }
.template-card { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; background: #0f172a; border: 1px solid #475569; border-radius: 0.5rem; cursor: pointer; }
.template-card.selected { border-color: #38bdf8; background: #1e293b; }
.card-icon { font-size: 1.5rem; }
.card-info b { display: block; font-size: 0.85rem; }
.card-info span { font-size: 0.7rem; color: #94a3b8; }
.activation-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
@media (max-width: 768px) { .activation-split { grid-template-columns: 1fr; } }
.activation-card { background: #0f172a; border: 1px solid #334155; border-radius: 0.5rem; padding: 1.5rem; position: relative; }
.opt-badge { position: absolute; top: -10px; right: 12px; background: #10b981; color: white; font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 9999px; }
.opt-badge.paid { background: #38bdf8; color: #000; }
.activation-card h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.workspace-tabs { display: flex; gap: 0.5rem; border-bottom: 1px solid #334155; margin-bottom: 1rem; }
.panel { background: #0f172a; border: 1px solid #334155; border-radius: 0.5rem; overflow: hidden; }
.terminal-screen { height: 350px; padding: 1rem; overflow-y: auto; font-family: monospace; font-size: 0.9rem; background: #050811; color: #38bdf8; }
.term-line { margin-bottom: 0.35rem; }
.term-line.prompt { color: #10b981; font-weight: 700; }
.term-line.info { color: #94a3b8; }
.term-line.out { color: #f8fafc; white-space: pre-wrap; }
.term-line.err { color: #f87171; white-space: pre-wrap; }
.terminal-input-bar { display: flex; align-items: center; padding: 0.5rem 1rem; background: #0f172a; border-top: 1px solid #334155; }
.term-prompt { color: #10b981; font-family: monospace; font-size: 0.9rem; margin-right: 0.5rem; }
.terminal-input-bar input { flex: 1; background: transparent; border: none; color: white; font-family: monospace; outline: none; }
.filemgr-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; background: #1e293b; border-bottom: 1px solid #334155; }
.quota-meter { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.8rem; }
.progress-bar { width: 140px; height: 6px; background: #334155; border-radius: 9999px; overflow: hidden; }
.progress-fill { height: 100%; background: #38bdf8; width: 0%; transition: width 0.3s; }
.filemgr-actions { display: flex; gap: 0.5rem; }
.file-list { padding: 1rem; min-height: 250px; max-height: 380px; overflow-y: auto; }
.file-item { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem; border-bottom: 1px solid #1e293b; font-size: 0.9rem; }
.file-item:hover { background: #1e293b; border-radius: 4px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
.gallery-card { background: #1e293b; border: 1px solid #334155; border-radius: 0.5rem; padding: 0.5rem; text-align: center; cursor: pointer; transition: transform 0.2s; }
.gallery-card:hover { transform: translateY(-2px); border-color: #38bdf8; }
.gallery-thumb { width: 100%; height: 90px; object-fit: cover; border-radius: 4px; margin-bottom: 0.35rem; }
.gallery-name { font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-lightbox { max-width: 800px; width: 95%; }
.media-body { text-align: center; margin-top: 1rem; max-height: 70vh; overflow: auto; }
.media-body img { max-width: 100%; max-height: 65vh; border-radius: 6px; }
.media-body video { max-width: 100%; max-height: 65vh; border-radius: 6px; }
.pricing-modal { max-width: 800px; width: 95%; text-align: left; }
.pricing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.pricing-card { background: #0f172a; border: 1px solid #334155; border-radius: 0.5rem; padding: 1.25rem; display: flex; flex-direction: column; justify-content: space-between; }
.pricing-card.featured { border-color: #38bdf8; position: relative; }
.badge-featured { position: absolute; top: -10px; right: 10px; background: #38bdf8; color: #000; font-size: 0.7rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 9999px; }
.pricing-card .price { font-size: 1.75rem; font-weight: 700; margin: 0.5rem 0; color: #38bdf8; }
.close-btn { background: none; border: none; color: #94a3b8; font-size: 1.5rem; cursor: pointer; }
.modal-header { display: flex; justify-content: space-between; align-items: center; }
.success-icon { font-size: 3.5rem; margin-bottom: 0.75rem; text-align: center; }

/* Linux Distro Live Password Strength Meter */
.strength-container {
  margin-top: 0.6rem;
  padding: 0.65rem 0.85rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 0.5rem;
}
.strength-bar-wrapper {
  height: 6px;
  background: #1e293b;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.45rem;
}
.strength-bar {
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}
.strength-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  margin-bottom: 0.45rem;
}
.strength-label {
  color: #94a3b8;
}
.strength-status {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.strength-criteria {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.crit-item {
  font-size: 0.7rem;
  color: #64748b;
  background: #1e293b;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.crit-item.met {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  font-weight: 600;
}
