/* ==========================================================================
   ANIRJAN CONNECT — "View My Share" Specialized Equity Portal Styles
   Theme: Cosmic Zen, Obsidian Glass, Radiant Gold (#f3c276) & Mint (#4deeeb)
   ========================================================================== */

/* Universal Utility for Hidden State */
.hidden {
  display: none !important;
}

/* Section Wrapper */
.share-portal-section {
  position: relative;
  padding: 80px 0 100px 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 25%, rgba(243, 194, 118, 0.07) 0%, rgba(5, 7, 12, 0.95) 70%);
}

.share-portal-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   1. AUTHENTICATION & LOOKUP CARD (Default Active View)
   ========================================================================== */
.share-auth-box {
  background: rgba(18, 22, 34, 0.85) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border: 1px solid rgba(243, 194, 118, 0.3) !important;
  border-radius: 20px !important;
  padding: 48px 36px !important;
  max-width: 680px !important;
  margin: 0 auto !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(243, 194, 118, 0.1) !important;
  text-align: center !important;
  position: relative;
  display: block;
  transition: all 0.3s ease;
}

.share-auth-box.hidden {
  display: none !important;
}

.share-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(243, 194, 118, 0.12);
  border: 1px solid rgba(243, 194, 118, 0.35);
  padding: 6px 18px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f3c276;
  margin-bottom: 22px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.share-auth-title {
  font-family: 'Syne', sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.share-auth-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  color: #a0aec0;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 30px auto;
}

/* Social Buttons */
.auth-social-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.btn-auth-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  height: 48px;
  padding: 0 24px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-google-social {
  background: #ffffff !important;
  color: #1f1f1f !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

.btn-google-social:hover {
  background: #f1f3f4 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25) !important;
}

.btn-facebook-social {
  background: #1877F2 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35) !important;
}

.btn-facebook-social:hover {
  background: #166fe5 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.5) !important;
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 26px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-divider span {
  padding: 0 16px;
}

/* Direct Input Group */
.direct-input-group {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 24px auto;
}

.direct-input {
  flex: 1;
  background: rgba(5, 7, 12, 0.75) !important;
  border: 1px solid rgba(243, 194, 118, 0.35) !important;
  border-radius: 9999px !important;
  padding: 14px 22px !important;
  color: #ffffff !important;
  font-size: 0.95rem !important;
  outline: none !important;
  transition: all 0.25s ease;
}

.direct-input:focus {
  border-color: #f3c276 !important;
  box-shadow: 0 0 16px rgba(243, 194, 118, 0.3) !important;
  background: rgba(5, 7, 12, 0.9) !important;
}

/* Quick Test Profile Chips */
.quick-profiles-label {
  font-size: 0.8rem;
  color: #f3c276;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-weight: 700;
}

.demo-chips-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.demo-chip-btn {
  background: rgba(243, 194, 118, 0.08) !important;
  border: 1px solid rgba(243, 194, 118, 0.3) !important;
  border-radius: 9999px !important;
  padding: 8px 18px !important;
  color: #e2e8f0 !important;
  font-size: 0.84rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.demo-chip-btn:hover {
  background: rgba(243, 194, 118, 0.22) !important;
  border-color: #f3c276 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.demo-chip-badge {
  color: #f3c276;
  font-weight: 700;
}

/* Security Notice Box */
.auth-sec-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 14px;
}

/* ==========================================================================
   2. PORTFOLIO DASHBOARD (Revealed Upon Authentication)
   ========================================================================== */
.share-portfolio-box {
  background: rgba(18, 22, 34, 0.9) !important;
  backdrop-filter: blur(30px) !important;
  -webkit-backdrop-filter: blur(30px) !important;
  border: 1px solid rgba(243, 194, 118, 0.35) !important;
  border-radius: 20px !important;
  padding: 44px !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(243, 194, 118, 0.12) !important;
  position: relative;
  transition: all 0.3s ease;
}

.share-portfolio-box.hidden {
  display: none !important;
}

/* Header */
.port-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 36px;
}

.port-user-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.port-avatar-wrapper {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid #f3c276;
  box-shadow: 0 0 20px rgba(243, 194, 118, 0.4);
  overflow: hidden;
  background: #0d111a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.port-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.port-avatar-fallback {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #f3c276;
}

.port-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.port-role {
  font-size: 0.92rem;
  color: #a0aec0;
  margin-bottom: 8px;
}

.port-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.port-tier-badge {
  background: rgba(243, 194, 118, 0.15);
  border: 1px solid #f3c276;
  color: #f3c276;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.port-cert-id-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #c9d1d9;
  font-family: monospace;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 9999px;
}

.port-verified-badge {
  background: rgba(77, 238, 234, 0.12);
  border: 1px solid rgba(77, 238, 234, 0.35);
  color: #4deeeb;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
}

/* Bento Metrics Grid */
.port-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.port-tile {
  background: rgba(10, 14, 23, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  padding: 24px 20px !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.port-tile:hover {
  border-color: rgba(243, 194, 118, 0.4) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.port-tile.featured-gold {
  background: linear-gradient(145deg, rgba(243, 194, 118, 0.15) 0%, rgba(10, 14, 23, 0.85) 100%) !important;
  border: 1px solid rgba(243, 194, 118, 0.45) !important;
}

.port-tile-lbl {
  font-size: 0.78rem;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  font-weight: 600;
}

.port-tile-val {
  font-family: 'Syne', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 6px;
}

.port-tile-val.gold-text {
  color: #f3c276 !important;
  text-shadow: 0 0 20px rgba(243, 194, 118, 0.35);
}

.port-tile-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Milestone Growth Simulator */
.port-simulator-box {
  background: rgba(10, 14, 23, 0.6) !important;
  border: 1px solid rgba(243, 194, 118, 0.25) !important;
  border-radius: 14px !important;
  padding: 28px !important;
  margin-bottom: 36px;
}

.port-sim-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.port-sim-desc {
  font-size: 0.88rem;
  color: #a0aec0;
  margin-bottom: 22px;
}

.val-slider-wrap {
  margin-bottom: 20px;
}

.val-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18) !important;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.val-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f3c276;
  box-shadow: 0 0 14px #f3c276;
  cursor: pointer;
  transition: all 0.2s;
}

.val-presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.val-preset-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 9999px !important;
  padding: 6px 16px !important;
  color: #d1d5db !important;
  font-size: 0.82rem !important;
  cursor: pointer !important;
  transition: all 0.2s;
}

.val-preset-btn:hover {
  border-color: #f3c276 !important;
  color: #ffffff !important;
  background: rgba(243, 194, 118, 0.18) !important;
}

.port-sim-results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sim-res-val {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #f3c276;
}

/* Digital Shareholder Certificate */
.share-cert-container {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cert-card {
  position: relative;
  background: linear-gradient(135deg, #0f1422 0%, #07090e 100%) !important;
  border: 2px solid rgba(243, 194, 118, 0.55) !important;
  border-radius: 14px !important;
  padding: 44px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), inset 0 0 50px rgba(243, 194, 118, 0.06) !important;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 1px dashed rgba(243, 194, 118, 0.35);
  border-radius: 8px;
  pointer-events: none;
}

.cert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.cert-emblem {
  width: 54px;
  height: 54px;
}

.cert-title-wrap {
  text-align: right;
}

.cert-title {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  letter-spacing: 2px;
  color: #f3c276;
  text-transform: uppercase;
}

.cert-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 1px;
}

.cert-body {
  text-align: center;
  margin: 36px 0;
  position: relative;
  z-index: 2;
}

.cert-presents {
  font-size: 0.88rem;
  color: #a0aec0;
  font-style: italic;
  margin-bottom: 10px;
}

.cert-name {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(243, 194, 118, 0.35);
}

.cert-role {
  font-size: 0.95rem;
  color: #f3c276;
  font-weight: 600;
  margin-bottom: 24px;
}

.cert-holding-box {
  display: inline-block;
  background: rgba(243, 194, 118, 0.1);
  border: 1px solid rgba(243, 194, 118, 0.35);
  padding: 14px 32px;
  border-radius: 8px;
  margin-bottom: 22px;
}

.cert-shares {
  font-family: 'Syne', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: #f3c276;
  letter-spacing: 1px;
}

.cert-par {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

.cert-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 2;
}

.cert-foot-block {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.cert-foot-block strong {
  color: #ffffff;
}

/* ==========================================================================
   3. MODALS & POPUPS (Hidden by Default!)
   ========================================================================== */
.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  z-index: 99999 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
}

.modal-overlay.active {
  display: flex !important;
}

.modal-card {
  background: #111522 !important;
  border: 1px solid rgba(243, 194, 118, 0.45) !important;
  border-radius: 16px !important;
  padding: 36px !important;
  max-width: 520px !important;
  width: 100% !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8) !important;
  position: relative !important;
}

.admin-modal-card {
  max-width: 900px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
}

/* Dual-Class Share Badges & Structure */
.class-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.class-badge-core {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #d8b4fe;
}

.class-badge-callable {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.dual-class-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.dual-class-card,
.port-class-card {
  background: rgba(10, 14, 23, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  padding: 26px 24px !important;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.dual-class-card.card-core,
.port-class-card.class-card-core {
  border-color: rgba(168, 85, 247, 0.4) !important;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(10, 14, 23, 0.95) 100%) !important;
}

.dual-class-card.card-callable,
.port-class-card.class-card-callable {
  border-color: rgba(16, 185, 129, 0.4) !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(10, 14, 23, 0.95) 100%) !important;
}

.dual-class-card:hover,
.port-class-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
}

.class-card-header,
.dual-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.class-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 6px 0 0 0;
}

/* ==========================================================================
   Ecosystem Benchmark Summary Card
   ========================================================================== */
.benchmark-summary-card {
  background: linear-gradient(135deg, rgba(20, 28, 48, 0.85) 0%, rgba(10, 14, 23, 0.95) 100%) !important;
  border: 1px solid rgba(243, 194, 118, 0.35) !important;
  border-left: 4px solid var(--gold-primary) !important;
  border-radius: 14px !important;
  padding: 24px 28px !important;
  margin-top: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5) !important;
}

.benchmark-summary-left {
  flex: 1 1 340px;
}

.benchmark-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.benchmark-val-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  line-height: 1.25;
}

.benchmark-val-formula {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

.benchmark-val-formula strong {
  color: var(--gold-light);
  font-family: monospace;
  font-size: 0.9rem;
}

.benchmark-metrics-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.benchmark-pill {
  background: rgba(10, 14, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  min-width: 135px;
}

.benchmark-pill-label {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.benchmark-pill-val {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Syne', sans-serif;
}

.benchmark-pill-val.gold-val {
  color: var(--gold-primary);
}

.benchmark-pill-val.emerald-val {
  color: #6ee7b7;
}

@media (max-width: 768px) {
  .benchmark-summary-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .benchmark-metrics-strip {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dual-card-shares {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.dual-card-val {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.dual-card-desc {
  font-size: 0.82rem;
  color: #a0aec0;
  line-height: 1.55;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

/* Founder Buyback & Liquidity Window Card */
.port-buyback-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(10, 14, 23, 0.95) 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  border-radius: 16px !important;
  padding: 30px !important;
  margin-bottom: 36px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(16, 185, 129, 0.08) !important;
  position: relative;
}

.buyback-content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.buyback-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.buyback-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.buyback-desc {
  font-size: 0.88rem;
  color: #a0aec0;
  max-width: 620px;
  line-height: 1.6;
}

.buyback-action-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.btn-buyback-open {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  cursor: pointer !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35) !important;
  transition: all 0.25s ease !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-buyback-open:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.5) !important;
}

.btn-buyback-open:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.buyback-disclaimer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Buyback Cashout Modal Specifics */
.buyback-modal-card {
  max-width: 560px !important;
}

.payout-calculation-box {
  background: rgba(5, 7, 12, 0.85);
  border: 1px solid rgba(243, 194, 118, 0.3);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.payout-calc-lbl {
  font-size: 0.8rem;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.payout-calc-amount {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #34d399;
}

.buyback-receipt-card {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  padding: 24px;
  margin-top: 16px;
  text-align: left;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
}

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

.receipt-lbl {
  color: #a0aec0;
}

.receipt-val {
  color: #ffffff;
  font-weight: 600;
}

/* Responsive Rules */
@media (max-width: 992px) {
  .port-bento-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .dual-class-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .port-bento-grid {
    grid-template-columns: 1fr !important;
  }
  .direct-input-group {
    flex-direction: column !important;
  }
  .port-header {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .buyback-content-row {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .buyback-action-wrap {
    align-items: flex-start !important;
    width: 100%;
  }
  .btn-buyback-open {
    width: 100% !important;
    justify-content: center;
  }
  .cert-card {
    padding: 24px !important;
  }
  .cert-header, .cert-footer {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }
  .cert-title-wrap {
    text-align: left !important;
  }
}

/* ==========================================================================
   ENTERPRISE-GRADE CONNECT LAYOUT STYLES
   ========================================================================== */

/* Executive Bento Metric Strip */
.connect-bento-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1120px;
  margin: 36px auto 0 auto;
}

.connect-bento-card {
  background: rgba(14, 18, 28, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 22px 20px;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.connect-bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.connect-bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(243, 194, 118, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.connect-bento-card:hover::before {
  opacity: 1;
}

.connect-bento-icon {
  font-size: 1.4rem;
  margin-bottom: 10px;
  display: inline-block;
}

.connect-bento-val {
  font-family: 'Syne', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.connect-bento-val.gold {
  color: #f3c276;
}

.connect-bento-val.mint {
  color: #6ee7b7;
}

.connect-bento-val.purple {
  color: #d8b4fe;
}

.connect-bento-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.connect-bento-sub {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

/* 3-Step Growth Engine Cards */
.growth-engine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1120px;
  margin: 32px auto 0 auto;
}

.growth-engine-card {
  background: rgba(14, 18, 28, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 32px 26px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.growth-engine-card:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 194, 118, 0.25);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.growth-step-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f3c276;
  margin-bottom: 12px;
  display: inline-block;
}

.growth-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(243, 194, 118, 0.1);
  border: 1px solid rgba(243, 194, 118, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.growth-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.growth-card-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* Executive Leadership Showcase */
.council-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1120px;
  margin: 36px auto 0 auto;
}

.council-card {
  background: rgba(14, 18, 28, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.council-card:hover {
  transform: translateY(-5px);
  border-color: rgba(243, 194, 118, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.council-photo-wrap {
  width: 100%;
  height: 240px;
  position: relative;
  overflow: hidden;
  background: #0a0d16;
}

.council-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.council-card:hover .council-photo {
  transform: scale(1.04);
}

.council-photo-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14, 18, 28, 0.95) 100%);
}

.council-role-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 14, 24, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(243, 194, 118, 0.4);
  color: #f3c276;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.4px;
}

.council-body {
  padding: 22px 24px 26px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.council-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.council-role-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f3c276;
  margin-bottom: 12px;
}

.council-bio {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}

.council-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: all 0.2s ease;
}

.council-action-btn:hover {
  background: rgba(243, 194, 118, 0.12);
  border-color: rgba(243, 194, 118, 0.4);
  color: #f3c276;
}

@media (max-width: 992px) {
  .connect-bento-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .growth-engine-grid {
    grid-template-columns: 1fr;
  }
  .council-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

@media (max-width: 600px) {
  .connect-bento-strip {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   LIVE OPERATION & AUTH LOADING SCREEN (Observability Overlay)
   ========================================================================== */
.share-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 12, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.share-loading-card {
  background: linear-gradient(135deg, rgba(18, 24, 38, 0.95), rgba(11, 15, 25, 0.98));
  border: 1px solid rgba(243, 194, 118, 0.4);
  border-radius: 24px;
  padding: 40px 36px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(243, 194, 118, 0.15);
  position: relative;
  overflow: hidden;
}

.share-loading-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f3c276, #4deeeb, transparent);
  animation: loadingBeam 2s infinite linear;
}

@keyframes loadingBeam {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

.loading-spinner-ring {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner-ring .ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(243, 194, 118, 0.15);
  border-top-color: #f3c276;
  animation: spinOuter 1.2s infinite cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.loading-spinner-ring .ring-inner {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px dashed rgba(77, 238, 235, 0.4);
  border-bottom-color: #4deeeb;
  animation: spinInner 2s infinite linear reverse;
}

.loading-spinner-ring .ring-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f3c276;
  box-shadow: 0 0 16px #f3c276, 0 0 30px #f3c276;
  animation: pulseDot 1.4s infinite alternate ease-in-out;
}

@keyframes spinOuter {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinInner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

.loading-main-title {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.loading-subtext {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 20px;
  min-height: 42px;
}

.loading-steps-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  justify-content: center;
}

.loading-step-segment {
  height: 4px;
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: all 0.4s ease;
}

.loading-step-segment.active {
  background: #f3c276;
  box-shadow: 0 0 10px rgba(243, 194, 118, 0.6);
}

.loading-step-segment.done {
  background: #34d399;
}

.loading-cancel-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.loading-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* Sync status badge in dashboard header */
.sync-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  padding: 4px 12px;
  border-radius: 14px;
  margin-top: 6px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.sync-status-badge.live {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #34d399;
}

.sync-status-badge.fallback {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}
