@import "/assets/cyber2077.css";

:root {
  --bg: #030305;
  --red: #ff003c;
  --red-glow: #ff0055;
  --card-bg: #0a0a0f;
  --text: #ffffff;
  --text-dim: #a1a1aa;

  /* Cyberpunk Construction Banner Colors */
  --banner-accent: rgba(255, 0, 60, 0.25);
  --banner-glow: rgba(255, 0, 60, 0.8);
  --banner-border: rgba(255, 0, 60, 0.5);
  --banner-shadow: rgba(255, 0, 60, 0.4);
}

/* Site Under Construction Banner */
.k-construction-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(90deg, var(--banner-accent) 0%, rgba(10, 10, 15, 0.95) 50%, var(--banner-accent) 100%);
  border-bottom: 1px solid var(--banner-border);
  box-shadow: 0 2px 12px var(--banner-shadow);
  color: #ff3366;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 9999;
  pointer-events: auto;
  text-shadow: 0 0 8px var(--banner-glow);
}

/* Page Top Floating Construction Banner (for standalone terms/privacy pages) */
.k-page-construction-banner {
  position: sticky;
  top: 0;
  width: 100%;
  height: 32px;
  background: linear-gradient(90deg, var(--banner-accent) 0%, rgba(10, 10, 15, 0.95) 50%, var(--banner-accent) 100%);
  border-bottom: 1px solid var(--banner-border);
  box-shadow: 0 2px 12px var(--banner-shadow);
  color: #ff3366;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 9999;
  text-shadow: 0 0 8px var(--banner-glow);
  box-sizing: border-border;
}

.k-page-construction-banner .k-banner-svg-icon,
.k-construction-banner .k-banner-svg-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.k-page-construction-banner .k-banner-svg-icon.spin,
.k-construction-banner .k-banner-svg-icon.spin {
  animation: bannerSpin 8s linear infinite;
}

/* Construction Chip Badge for buttons/features */
.under-construction-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #ff3366;
  padding: 0 4px;
  pointer-events: auto;
  filter: drop-shadow(0 0 6px rgba(255, 0, 60, 0.8));
}

.k-sidebar-btn .under-construction-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  padding: 0;
}

.k-sidebar-btn {
  position: relative;
}

.under-construction-badge .k-banner-svg-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.under-construction-badge .k-banner-svg-icon.spin {
  animation: bannerSpin 8s linear infinite;
}

.under-construction-badge.disabled-btn {
  cursor: not-allowed;
  opacity: 0.9;
}

@keyframes bannerSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

body {
  background-color: var(--bg);
  color: var(--text);
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* 🛸 CYBERPUNK 2077 CHASSIS OVERRIDES FOR TMW */
.k-cyber-chassis-full {
  padding-top: 28px;
}

.tmw-header-left, .tmw-header-right, .tmw-brand-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tmw-header-logo {
  height: 28px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(255, 0, 85, 0.8));
}

.tmw-brand-name {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 0, 85, 0.6);
}

.tmw-login-btn {
  background: transparent;
  border: none;
  color: var(--red, #ff0055);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 8px 12px;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  clip-path: none;
  box-shadow: none;
}

.tmw-login-btn-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 0, 85, 0.8));
}

.tmw-login-btn:hover {
  background: transparent;
  box-shadow: none;
  color: #ffffff;
  transform: none;
}

.tmw-login-btn.logged-in {
  border: none;
  color: #00ffaa;
  background: transparent;
  box-shadow: none;
}

/* 42 Char Llama 3.2 Question Card Elements */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: 2;
}

.favorite-heart-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  user-select: none;
}
.favorite-heart-btn svg {
  transition: all 0.2s ease;
}
.favorite-heart-btn:hover svg {
  stroke: #ff0055;
  transform: scale(1.15);
}
.favorite-heart-btn.active svg {
  fill: #ff0055;
  stroke: #ff0055;
  filter: drop-shadow(0 0 6px rgba(255, 0, 85, 0.7));
}
.favorite-heart-btn.disabled {
  display: none !important;
}

.card-brand-profile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: none;
  box-shadow: none;
  flex-shrink: 0;
}

.card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-brand-text {
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.card-handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--red);
  font-weight: 700;
}

/* QA Sticker & Input */
.qa-sticker {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin: 0.6rem 0;
  position: relative;
  z-index: 2;
}

.qa-input-wrapper {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0.3rem 0;
  clip-path: none;
  box-shadow: none;
}

.qa-input-wrapper:focus-within {
  box-shadow: none;
}

.qa-input-wrapper input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0;
  margin: 0;
  text-align: center;
}

.qa-input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
}

.qa-sub-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
}

.char-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0;
  background: none !important;
  box-shadow: none !important;
}

.char-badge.ok { color: var(--red); }
.char-badge.mid { color: #ffaa00; }
.char-badge.low { color: var(--red); }

.inline-submit-btn {
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  flex-shrink: 0;
  clip-path: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.inline-submit-btn:hover {
  transform: scale(1.1);
  box-shadow: none;
}

/* Void / Neant Disappear Animation on Click/Send */
.inline-submit-btn.send-void {
  animation: sendIntoVoid 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

@keyframes sendIntoVoid {
  0% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 10px rgba(255, 0, 85, 0.8)) drop-shadow(0 0 20px rgba(255, 0, 60, 0.9));
    opacity: 1;
  }
  30% {
    transform: scale(1.35) rotate(10deg);
    filter: drop-shadow(0 0 25px rgba(255, 0, 85, 1)) drop-shadow(0 0 35px rgba(255, 0, 60, 1));
    opacity: 1;
  }
  100% {
    transform: scale(0) rotate(-180deg) translateY(20px);
    filter: drop-shadow(0 0 0px transparent);
    opacity: 0;
  }
}

.inline-submit-btn img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px rgba(255, 0, 85, 0.7));
  transition: filter 0.2s ease;
}

.inline-submit-btn:hover img {
  filter: drop-shadow(0 0 12px rgba(255, 0, 85, 0.9)) drop-shadow(0 0 18px rgba(255, 0, 60, 0.8));
}

/* Report Form Cyber Design */
.tmw-report-reasons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.8rem;
  width: 100%;
  padding: 0.5rem 0 0.1rem 0;
}

.tmw-radio-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  padding: 0.1rem 0.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tmw-radio-chip.align-right {
  justify-content: flex-end;
}

.tmw-radio-chip input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 0, 85, 0.6);
  background: transparent;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.tmw-radio-chip input[type="radio"]:checked {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 6px var(--red);
}

.tmw-radio-chip:has(input[type="radio"]:checked) .chip-text {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(255, 0, 60, 0.5);
}

.tmw-radio-chip .chip-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: #cbd5e1;
  white-space: nowrap;
}

.tmw-field-wrapper {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(4, 7, 12, 0.45);
  border-radius: 4px;
  border-bottom: 1px solid rgba(255, 0, 85, 0.4);
  padding: 0.4rem 0.6rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.tmw-field-wrapper.flex-textarea {
  flex: 1;
  min-height: 120px;
  align-items: stretch;
}

.tmw-field-wrapper:focus-within {
  background: rgba(4, 7, 12, 0.7);
  border-bottom-color: var(--red);
  box-shadow: 0 1px 8px rgba(255, 0, 85, 0.3);
}

/* Share View Card Back Styling */
.tmw-share-card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  padding: 0.5rem 0;
}

.tmw-share-input-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(4, 7, 12, 0.5);
  border-radius: 4px;
  border-bottom: 1px solid rgba(255, 0, 85, 0.4);
  padding: 0.4rem 0.6rem;
  transition: all 0.2s ease;
}

.tmw-share-input-wrapper:focus-within {
  border-bottom-color: var(--red);
  box-shadow: 0 1px 8px rgba(255, 0, 85, 0.3);
}

.tmw-share-url-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.tmw-share-copy-btn {
  background: transparent;
  border: none;
  outline: none;
  color: var(--red);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.tmw-share-copy-btn:hover {
  color: #ffffff;
  background: rgba(255, 0, 85, 0.15);
  box-shadow: 0 0 8px rgba(255, 0, 85, 0.3);
}

.tmw-share-copy-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.tmw-share-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.tmw-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #a1a1aa;
  transition: all 0.2s ease;
  text-decoration: none;
}

.tmw-social-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.tmw-social-btn.wa:hover {
  color: #25D366;
  filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.8));
  transform: none;
}

.tmw-social-btn.insta:hover {
  color: #E1306C;
  filter: drop-shadow(0 0 8px rgba(225, 48, 108, 0.8));
  transform: none;
}

.tmw-social-btn.snap:hover {
  color: #FFFC00;
  filter: drop-shadow(0 0 8px rgba(255, 252, 0, 0.8));
  transform: none;
}

.tmw-card-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

.tmw-card-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
}

.tmw-card-textarea {
  width: 100%;
  height: 100%;
  min-height: 110px;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  resize: none;
  line-height: 1.45;
}

.tmw-card-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
}

.tmw-report-submit-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 0.4rem;
}

.tmw-confirm-card-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  width: 100%;
  height: 100%;
  padding: 1.5rem 0.5rem;
}

.card-center-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 650px;
  gap: 0.6rem;
}

/* Card Body & Answer Area */
.card-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin: 0.2rem 0;
}

.answer-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  word-break: break-word;
  text-align: center;
}

.answer-text.error {
  color: #ff003c;
  text-shadow: 0 0 10px rgba(255, 0, 60, 0.8);
}

.card-error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  width: 100%;
}

.card-error-icon-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 0.2rem;
}

.card-error-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 0, 60, 0.95));
}

.card-error-title {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 1.5px;
  color: #ff003c;
  text-transform: uppercase;
}

.card-error-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ff003c;
  line-height: 1.4;
}

.card-error-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.card-error-code {
  color: #ff003c;
  letter-spacing: 0.5px;
}

.card-error-report-link {
  background: transparent;
  border: none;
  color: #ff003c;
  text-decoration: underline;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0;
  transition: opacity 0.2s ease;
}

.card-error-report-link:hover {
  opacity: 0.8;
  color: #ffffff;
}

/* Typewriter Cursor (Smooth 1.0s neon pulse) */
.typewriter-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--red, #ff0055);
  margin-left: 2px;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(255, 0, 85, 0.8);
  animation: smoothCursorPulse 1.0s ease-in-out infinite;
  will-change: opacity;
}

@keyframes smoothCursorPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

/* Card Footer */
.card-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 0.2rem;
  margin-top: 0.2rem;
  position: relative;
  z-index: 2;
}

.card-footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.card-footer-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
}

.card-footer-title span {
  color: var(--red);
}

.card-footer-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  color: var(--text-dim, #94a3b8);
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  margin-top: 0.2rem;
  line-height: 1.2;
}

/* Social Action Buttons Below Card */
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.8rem;
}

.card-actions.centered {
  justify-content: center;
}

.report-issue-link {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.report-issue-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.report-issue-link:hover {
  color: #ffffff;
}

.action-btn.primary {
  background: rgba(255, 0, 60, 0.15);
  border: 1px solid rgba(255, 0, 60, 0.5);
  color: #ffffff;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 0 10px rgba(255, 0, 60, 0.2);
  transition: all 0.2s ease;
}

.action-btn.primary svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.action-btn.primary:hover {
  background: rgba(255, 0, 60, 0.85);
  box-shadow: 0 0 18px rgba(255, 0, 60, 0.6);
}

/* 42 Char Llama 3.2 Question Card */
.card-front, .card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: transparent;
  border: none;
  box-shadow: none;
  clip-path: none;
  animation: none;
}

.stage {
  width: 100%;
  max-width: 600px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.card-flipper-container {
  perspective: 1000px;
  width: 100%;
  flex: 1;
  min-height: 400px;
}

.story-card-frame {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-front {
  transform: rotateY(0deg);
}

.card-back {
  transform: rotateY(180deg);
}

.story-card-frame.flipped {
  transform: rotateY(180deg);
}

/* Tab Cards (Profile, History, Report) */
.tmw-tab-content {
  display: none;
  width: 100%;
  max-width: 700px;
  flex: 1;
  animation: fadeInTab 0.3s ease;
}

.tmw-tab-content.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#tabAskView {
  max-width: 100%;
  height: 100%;
}

#tabAskView .stage {
  max-width: 100%;
  height: 100%;
}

.card-front, .card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
  clip-path: none;
  animation: none;
}

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

.tmw-panel-card {
  width: 100%;
  background: linear-gradient(145deg, rgba(22, 28, 38, 0.95) 0%, rgba(10, 14, 22, 0.97) 60%, rgba(4, 7, 12, 0.99) 100%);
  border: 1px solid rgba(255, 0, 85, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(0, 0, 0, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.85), 0 8px 24px rgba(0, 0, 0, 0.85), 0 0 12px rgba(255, 0, 85, 0.15);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.tmw-panel-card::before {
  content: "•";
  position: absolute;
  top: 4px;
  right: 18px;
  font-size: 9px;
  color: rgba(255, 0, 85, 0.6);
  text-shadow: 0 0 6px rgba(255, 0, 85, 0.8), 0 1px 1px #000;
  pointer-events: none;
}

.tmw-panel-header {
  border-bottom: 1px dashed rgba(255, 0, 85, 0.25);
  padding-bottom: 10px;
}

.tmw-panel-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 900;
  color: var(--red, #ff0055);
  letter-spacing: 1.5px;
  text-shadow: 0 0 8px rgba(255, 0, 85, 0.5);
}

.tmw-panel-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-top: 2px;
}

.tmw-panel-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Global Form Focus & Auth Validation Styling */
input:focus, textarea:focus, select:focus, button:focus {
  outline: none !important;
  box-shadow: none;
}

.tmw-field-valid {
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2) !important;
}

.tmw-field-error {
  border-color: #ff0055 !important;
  box-shadow: 0 0 8px rgba(255, 0, 85, 0.5) !important;
}

@keyframes tmwPulseSending {
  0% {
    border-color: rgba(255, 0, 85, 0.4);
    box-shadow: 0 0 4px rgba(255, 0, 85, 0.2);
  }
  50% {
    border-color: #ff007f;
    box-shadow: 0 0 12px rgba(255, 0, 127, 0.8);
  }
  100% {
    border-color: rgba(255, 0, 85, 0.4);
    box-shadow: 0 0 4px rgba(255, 0, 85, 0.2);
  }
}

.tmw-field-sending {
  animation: tmwPulseSending 1s infinite !important;
}

/* Auth Cards & Buttons inside Panel */
.tmw-auth-box {
  background: rgba(255, 0, 85, 0.03);
  border: 1px solid rgba(255, 0, 85, 0.15);
  padding: 16px;
  border-radius: 4px;
}

.tmw-auth-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 800;
  color: #ff0055;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.tmw-auth-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 14px;
}

.tmw-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tmw-auth-provider-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.tmw-auth-provider-btn:not(.disabled):not([disabled]) {
  background: #00f0ff !important;
  color: #000000 !important;
  border-color: #00f0ff !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5) !important;
  opacity: 1 !important;
  cursor: pointer !important;
}

.tmw-auth-provider-btn:not(.disabled):not([disabled]):hover {
  background: #33f3ff !important;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.8) !important;
}

.tmw-auth-provider-btn.passkey { color: #ffffff; }
.tmw-auth-provider-btn.gmail { color: #ffffff; }

.tmw-auth-provider-btn.insta { color: #e1306c; border-color: rgba(225, 48, 108, 0.4); }
.tmw-auth-provider-btn.insta:hover { background: rgba(225, 48, 108, 0.15); box-shadow: 0 0 10px rgba(225, 48, 108, 0.3); }

.tmw-auth-provider-btn.fb { color: #1877f2; border-color: rgba(24, 119, 242, 0.4); }
.tmw-auth-provider-btn.fb:hover { background: rgba(24, 119, 242, 0.15); box-shadow: 0 0 10px rgba(24, 119, 242, 0.3); }

/* Profile Authenticated View */
.tmw-user-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 255, 170, 0.05);
  border: 1px solid rgba(0, 255, 170, 0.25);
  padding: 12px 16px;
  border-radius: 4px;
}

.tmw-user-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #ff0055);
  color: #000000;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 900;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
}

.tmw-user-handle {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 14px;
  color: #ffffff;
}

.tmw-user-provider {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #00ffaa;
  margin-top: 2px;
}

.tmw-profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.tmw-stat-card {
  background: rgba(12, 18, 26, 0.8);
  border: 1px solid rgba(255, 0, 85, 0.15);
  padding: 10px;
  text-align: center;
  border-radius: 2px;
}

.tmw-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 900;
  color: var(--red, #ff0055);
}

.tmw-stat-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-dim);
  margin-top: 4px;
}

.tmw-logout-btn {
  background: rgba(255, 0, 60, 0.12);
  border: 1px solid rgba(255, 0, 60, 0.4);
  color: #ff003c;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 11px;
  padding: 8px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tmw-logout-btn:hover {
  background: rgba(255, 0, 60, 0.25);
  box-shadow: 0 0 10px rgba(255, 0, 60, 0.4);
}

/* History List */
.tmw-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tmw-history-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 0;
  border-radius: 0;
}

.tmw-history-q {
  font-weight: 700;
  color: #ffffff;
  font-size: 12px;
  margin-bottom: 4px;
}

.tmw-history-a {
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.3;
}

.tmw-empty-history {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  padding: 20px;
}

/* Modal Popup Overlay */
.tmw-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.tmw-modal-overlay.active {
  display: flex;
}

.tmw-modal-box {
  width: 90%;
  max-width: 520px;
  background: linear-gradient(145deg, rgba(22, 28, 38, 0.98) 0%, rgba(10, 14, 22, 0.99) 100%);
  border: 1px solid rgba(255, 0, 85, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 0, 85, 0.35);
  padding: 24px 28px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  position: relative;
}

.tmw-modal-box::before {
  content: "•";
  position: absolute;
  top: 4px;
  right: 18px;
  font-size: 9px;
  color: rgba(255, 0, 85, 0.6);
  text-shadow: 0 0 6px rgba(255, 0, 85, 0.8), 0 1px 1px #000;
  pointer-events: none;
}

.tmw-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 0, 85, 0.3);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.tmw-modal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 900;
  color: var(--red, #ff0055);
  letter-spacing: 1px;
}

.tmw-modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
}

.tmw-modal-close:hover {
  color: #ff0055;
}

/* Toast Notification (Angevil Toast) */
.angevil-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(10, 14, 23, 0.95);
  border: 1px solid var(--red);
  border-left: 4px solid var(--red);
  padding: 10px 18px;
  border-radius: 4px;
  z-index: 99999;
  box-shadow: 0 0 20px rgba(255, 0, 60, 0.5), inset 0 0 10px rgba(255, 0, 60, 0.2);
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.angevil-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.angevil-toast-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 1px;
}

.angevil-toast-msg {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
}

/* Header Language Switcher & Status Badge */
.lang-switcher {
  position: absolute;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
}

.lang-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 10px;
  user-select: none;
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.lang-btn:hover:not(.active) {
  color: rgba(255, 255, 255, 0.8);
}

.lang-btn.active {
  background: transparent !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.9) !important;
  box-shadow: none !important;
}

/* Sidebar Custom Elements */
.tmw-icon-square {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tmw-sidebar-footer {
  margin-top: auto;
  padding-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.tmw-sidebar-insta-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.tmw-sidebar-insta-link:hover {
  transform: scale(1.08);
}

.tmw-sidebar-insta-handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Modal Close Button Override for Back Card */
.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--red);
}

@media (max-width: 768px) {
  .tmw-auth-grid {
    grid-template-columns: 1fr;
  }
}
