/* Web3Luma Portal & Suite Product Styling */

[hidden] {
  display: none !important;
}

/* Header Auth Slot & Account Dropdown */
.portal-auth-slot,
.portal-account {
  position: relative;
}

.portal-auth-slot {
  display: flex;
  align-items: center;
}

.portal-account > summary {
  list-style: none;
  cursor: pointer;
}

.portal-account > summary::-webkit-details-marker {
  display: none;
}

.portal-avatar {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  object-fit: cover;
}

.mobile-account-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mobile-account-identity .portal-avatar {
  width: 30px;
  height: 30px;
}

.portal-account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 260px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(14, 21, 33, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.portal-account-menu strong {
  display: block;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.portal-account-menu p {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.portal-account-menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mint);
  transition: color 0.2s;
}

.portal-account-menu a:hover {
  color: var(--mint-bright);
}

.portal-account-divider {
  height: 1px;
  background: var(--line);
  margin: 12px 0 10px;
}

.portal-account-menu .portal-account-signout {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.portal-account-menu .portal-account-signout:hover {
  color: var(--text);
}

.portal-auth-slot .header-cta {
  white-space: nowrap;
}

.portal-auth-slot [aria-disabled="true"] {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: default;
}

.portal-session-feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 11px 24px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.07);
  color: #f4d7a0;
  font-size: 13px;
  line-height: 1.5;
}

.portal-session-feedback p {
  margin: 0;
}

.portal-session-feedback button {
  min-height: 36px;
  flex: none;
  padding: 0 13px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-full);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.portal-session-feedback button:hover {
  border-color: #f4d7a0;
  background: rgba(255, 255, 255, 0.09);
}

.portal-session-feedback button:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Suite Section Heading ("Meet the next three") */
.suite-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 72px 0 32px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.suite-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

.suite-heading p {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.65;
}

.suite-heading > a {
  font-size: 13px;
  font-weight: 600;
  flex: none;
  color: var(--mint);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, transform 0.2s;
}

.suite-heading > a:hover {
  color: var(--mint-bright);
  transform: translateX(2px);
}

/* Suite Grid & Cards */
.suite-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.suite-card {
  --tool-color: #5ce6b0;
  --tool-glow: rgba(92, 230, 176, 0.2);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 26px 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(14, 21, 33, 0.85), rgba(9, 14, 23, 0.92));
  backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-card);
}

.suite-card:hover {
  transform: translateY(-4px);
  border-color: var(--tool-color);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 30px var(--tool-glow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}


.suite-card[data-product="walletscope"] {
  --tool-color: #a855f7;
  --tool-glow: rgba(168, 85, 247, 0.25);
  background: linear-gradient(145deg, rgba(20, 16, 36, 0.85), rgba(10, 12, 24, 0.92));
}


.suite-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.suite-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: var(--tool-color);
  font-size: 20px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.suite-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.tab-icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  flex: none;
  vertical-align: -2px;
}

.suite-top .pill {
  font-size: 11px;
  padding: 5px 10px;
  color: var(--tool-color);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

.suite-card h3 {
  margin: 20px 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.suite-tagline {
  margin: 0;
  color: var(--tool-color);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.suite-copy {
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.suite-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 110px;
  margin-top: auto;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(6, 9, 14, 0.6);
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--soft);
}

.suite-visual > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.suite-visual strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.suite-visual small {
  font-size: 11px;
  font-weight: 600;
  color: var(--tool-color);
}

.suite-visual-line {
  height: 1px;
  background: var(--line);
}

.suite-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  min-height: 58px;
  border-top: 1px solid var(--line);
}

.suite-bottom > a {
  font-size: 13px;
  font-weight: 600;
  color: var(--tool-color);
  transition: all 0.2s;
  white-space: nowrap;
}

.suite-bottom > a:hover {
  opacity: 0.85;
}

.suite-bottom > a.suite-app-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.suite-bottom > a.suite-app-link:hover {
  background: var(--tool-color);
  color: #04120a;
  border-color: var(--tool-color);
  opacity: 1;
  box-shadow: 0 0 16px var(--tool-glow);
}

.suite-bottom > a.suite-app-link[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.suite-bottom > a[data-select-product] {
  color: var(--tool-color);
  font-weight: 550;
}

.suite-bottom > a[data-open-progress] {
  color: var(--muted);
  font-weight: 500;
}

.suite-bottom > a[data-open-progress]:hover {
  color: var(--text);
}

/* Workspace Preview Area (#workspace) */
.home-workspace {
  padding: 88px 0 96px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 17, 26, 0.8) 0%, rgba(6, 9, 14, 0.95) 100%);
}

.home-workspace .section-heading {
  margin-bottom: 36px;
}

.home-workspace .section-heading h2 {
  font-size: clamp(34px, 4vw, 52px);
}

.product-switcher {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.product-switcher button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  background: rgba(14, 21, 33, 0.8);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 550;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-switcher button:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
  background: rgba(20, 30, 48, 0.9);
}

.product-switcher button[aria-pressed="true"] {
  border-color: var(--mint);
  color: #fff;
  background: rgba(92, 230, 176, 0.15);
  box-shadow: 0 0 20px var(--mint-glow);
}

.product-switcher img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

@media (max-width: 540px) {
  .product-switcher { gap: 8px; }
  .product-switcher button { flex: 1 1 0; min-width: 0; justify-content: center; gap: 6px; padding: 0 8px; font-size: 14px; }
}

@media (max-width: 389px) {
  .product-switcher img,
  .product-switcher .tab-icon { display: none; }
  .product-switcher button { padding: 0 6px; font-size: 13px; }
}

.embedded-product {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

.embedded-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 15, 24, 0.6);
}

.embedded-toolbar h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.embedded-toolbar p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.embedded-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}

.embedded-actions a,
.embedded-actions button {
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--soft);
  transition: color 0.2s;
}

.embedded-actions button:not([hidden]) {
  cursor: pointer;
}

.embedded-actions #preview-show-frame {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  color: var(--mint);
}

.embedded-actions a:hover,
.embedded-actions button:hover {
  color: var(--mint);
}

.embedded-actions .button {
  padding: 0 20px;
  min-height: 40px;
  background: var(--mint);
  color: #04120a;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.embedded-actions a[aria-disabled="true"] {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--dim);
  cursor: default;
}

.embedded-notice {
  margin: 0;
  padding: 12px 24px;
  background: rgba(92, 230, 176, 0.05);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
  color: var(--soft);
}

.embedded-frame {
  height: 680px;
  min-height: 500px;
  background: #06090e;
}

.embedded-status {
  margin: 0;
  padding: 11px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 13px;
  line-height: 1.55;
}

.embedded-status[data-state="opening"] {
  color: var(--text);
}

.embedded-status[data-state="opened-unconfirmed"] {
  color: #d9c99f;
}

.embedded-status[data-state="failed"],
.embedded-status[data-state="timed-out"] {
  color: #ffc0b7;
}

.embedded-status[data-state="idle"] {
  color: var(--soft);
}

.embedded-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #06090e;
}

.embedded-empty {
  padding: 72px 28px;
  text-align: center;
  color: var(--soft);
}

.embedded-empty h4 {
  margin: 16px 0 10px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.embedded-empty p {
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.embedded-empty img {
  width: 64px;
  height: 64px;
  margin: 0 auto;
}

.preview-help {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--dim);
}

/* Progress Section */
.visible-progress {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.visible-progress > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  color: var(--text);
}

.visible-progress > summary::-webkit-details-marker {
  display: none;
}

.visible-progress > summary span {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--mint);
}

.progress-rows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 8px 0 28px;
}

.progress-rows article {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.progress-rows small {
  font-size: 11px;
  font-weight: 600;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-rows h4 {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.progress-rows p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.progress-disclaimer {
  padding-bottom: 24px;
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--dim);
}

/* Responsive Media Queries for Suite & Workspace */
@media (max-width: 1100px) {
  .suite-grid {
    gap: 18px;
  }
  .suite-card {
    padding: 24px 20px 0;
  }
}

@media (max-width: 900px) {
  .suite-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .progress-rows {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.mobile-nav-auth {
  display: none;
}

@media (max-width: 768px) {
  .portal-session-feedback {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 20px;
    font-size: 12px;
  }
  .portal-session-feedback button {
    min-height: 40px;
  }
  .suite-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 48px;
  }
  .home-workspace {
    padding: 64px 0 72px;
  }
  .embedded-toolbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
  }
  .embedded-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 14px;
  }
  .embedded-empty {
    padding: 48px 20px;
  }
  .embedded-empty h4 {
    font-size: 22px;
  }
  .portal-account-menu {
    width: 230px;
    max-width: calc(100vw - 32px);
    right: 0;
  }
  .mobile-nav-auth {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .mobile-nav-sign-in {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    background: var(--mint);
    color: #04120a !important;
    font-weight: 650;
    text-align: center;
    font-size: 14px;
  }
  .mobile-nav-signed-in {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
  }
  .mobile-account-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
  }
  .mobile-nav-account-link {
    font-size: 13px;
    color: var(--mint) !important;
    font-weight: 600;
  }
  .mobile-nav-sign-out {
    font-size: 12px;
    color: var(--muted) !important;
    font-weight: 500;
  }
  .suite-bottom {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0 16px;
    min-height: auto;
  }
  .suite-bottom > a.suite-app-link {
    order: -1;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
  }
}
