/**
 * Qubic.id - Shared Universal Global CSS
 * Shared between Root index, Subdomain profiles, and /app/ Builder
 * Contains Header, Footer, Branding, and Universal Wallet & Subscription Panels
 */

/* ==========================================================================
   1. Universal Site Header & Branding
   ========================================================================== */
.qubic-navbar {
  background: rgba(8, 12, 20, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.qubic-header-logo {
  width: 130px;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

@media (max-width: 480px) {
  .qubic-header-logo {
    width: 120px;
  }
}

.qubic-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00e5ff 0%, #0072ff 100%);
  color: #000000;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.qubic-brand-title {
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, #00e5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#btnConnectWallet.btn-outline-info {
  color: #00e5ff !important;
  border-color: #00e5ff !important;
  background-color: transparent !important;
}

#btnConnectWallet.btn-outline-info i,
#btnConnectWallet.btn-outline-info span {
  color: #00e5ff !important;
}

#btnConnectWallet.btn-outline-info:hover {
  background-color: #00e5ff !important;
  border-color: #00e5ff !important;
  color: #000000 !important;
}

#btnConnectWallet.btn-outline-info:hover i,
#btnConnectWallet.btn-outline-info:hover span {
  color: #000000 !important;
}

#btnConnectWallet.btn-info {
  background-color: #00e5ff !important;
  border-color: #00e5ff !important;
  color: #000000 !important;
}

#btnConnectWallet.btn-info i,
#btnConnectWallet.btn-info span {
  color: #000000 !important;
}

/* ==========================================================================
   2. Universal Footer
   ========================================================================== */
.qubic-builder-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 0;
  margin-top: 4rem;
  color: #94a3b8;
  font-size: 0.88rem;
}

.qubic-footer-link {
  transition: color 0.15s ease-in-out;
}

.qubic-footer-link:hover {
  color: #ffffff !important;
}

/* ==========================================================================
   3. Universal Wallet Offcanvas & Modals
   ========================================================================== */
.qubic-wallet-offcanvas {
  width: 380px;
  max-width: 100vw;
  background-color: #0b111e !important;
  color: #e2e8f0;
  border-left: 1px solid rgba(0, 229, 255, 0.15) !important;
  z-index: 1100 !important;
}

.wallet-option-btn {
  background: rgba(18, 25, 41, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.wallet-option-btn:hover:not(:disabled) {
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateY(-1px);
}

.wallet-option-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.wallet-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wallet-title {
  font-size: 0.95rem;
}

.wallet-desc {
  font-size: 0.78rem;
}

.wallet-badge-soon {
  font-size: 0.65rem;
}

.wallet-spinner-dot {
  width: 6px;
  height: 6px;
}

.wallet-btn-action {
  font-size: 0.72rem;
  padding: 0.25rem 0.5rem;
}

.wallet-label-meta {
  font-size: 0.72rem;
}

.wallet-full-id {
  font-size: 0.68rem;
}

.wallet-count-badge {
  font-size: 0.7rem;
}

.wallet-subdomain-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-subdomain-meta {
  font-size: 0.7rem;
}

.wallet-btn-sm {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.modal-sm-custom {
  max-width: 380px;
}

.qubic-modal-content {
  background: #0b111e;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.wallet-qr-box {
  display: inline-block;
  padding: 1rem;
  background: #ffffff;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  line-height: 0;
}

.wallet-auth-card {
  max-width: 520px;
  background: rgba(11, 17, 30, 0.85);
  backdrop-filter: blur(12px);
}

/* Subscription Plan Cards in Wallet Offcanvas */
.wallet-plan-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.2s ease;
}

.wallet-plan-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 229, 255, 0.35);
}

.wallet-plan-card.plan-card-active {
  background: rgba(0, 229, 255, 0.06);
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.12);
}

.wallet-plan-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wallet-plan-price {
  font-family: var(--bs-font-monospace);
  font-size: 0.95rem;
  font-weight: 700;
  color: #00e5ff;
}

.wallet-plan-features-header {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.35rem;
}

.wallet-plan-features-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
}

.wallet-plan-features-list li {
  padding: 0.2rem 0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.wallet-plan-features-list li:last-child {
  border-bottom: none;
}

.badge-plan-tier {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.badge-plan-tier-0,
.badge-plan-free {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.badge-plan-tier-1,
.badge-plan-plus {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.badge-plan-tier-2,
.badge-plan-premium {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-plan-tier-default {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.btn-plan-upgrade-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  line-height: 1;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  vertical-align: middle;
}

.btn-plan-upgrade-badge:hover:not(:disabled):not(.disabled) {
  background: rgba(245, 158, 11, 0.3);
  color: #fef08a;
  border-color: #fbbf24;
}

.btn-plan-upgrade-badge:disabled,
.btn-plan-upgrade-badge.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.2);
}

.wallet-signing-spinner {
  width: 3.25rem;
  height: 3.25rem;
}