/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #111128;
  --bg-card: #161633;
  --bg-input: #1a1a3e;
  --border: #2a2a5a;
  --text-primary: #e8e8f0;
  --text-secondary: #9898b8;
  --text-hint: #6868a0;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.3);
  --accent-bright: #818cf8;
  --stellar-blue: #4f9cff;
  --success: #22c55e;
  --success-glow: rgba(34, 197, 94, 0.2);
  --error: #ef4444;
  --user-bubble: #2d2b6b;
  --assistant-bubble: #1e1e42;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow: hidden;
}

/* === Stars Background === */
#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* === App Layout === */
.app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Header === */
.header {
  text-align: center;
  padding: 24px 0 16px;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.logo-icon {
  font-size: 32px;
  color: var(--accent-bright);
  filter: drop-shadow(0 0 8px var(--accent-glow));
  animation: pulse-glow 3s ease-in-out infinite;
}

.logo h1 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-bright), var(--stellar-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 8px;
}

/* === Main Layout === */
.main {
  display: flex;
  gap: 20px;
  flex: 1;
  min-height: 0;
  padding-bottom: 20px;
}

/* === Chat Container === */
.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* === Messages === */
.message {
  display: flex;
  gap: 12px;
  max-width: 85%;
  animation: fade-in 0.3s ease;
}

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.message.assistant .message-avatar {
  background: linear-gradient(135deg, var(--accent), var(--stellar-blue));
  color: white;
}

.message.user .message-avatar {
  background: var(--user-bubble);
  color: var(--accent-bright);
  font-size: 14px;
}

.message-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  line-height: 1.5;
  font-size: 14px;
}

.message.assistant .message-bubble {
  background: var(--assistant-bubble);
  border: 1px solid var(--border);
  border-top-left-radius: 4px;
}

.message.user .message-bubble {
  background: var(--user-bubble);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-top-right-radius: 4px;
  color: var(--text-primary);
}

.message-bubble p {
  margin-bottom: 8px;
}

.message-bubble p:last-child {
  margin-bottom: 0;
}

.hint {
  color: var(--text-hint);
  font-size: 13px;
  font-style: italic;
}

/* === Chat Input === */
.chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  transition: border-color 0.2s;
}

.input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: none;
  outline: none;
  max-height: 120px;
}

textarea::placeholder {
  color: var(--text-hint);
}

.send-btn {
  background: var(--accent);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.send-btn:hover {
  background: var(--accent-bright);
  transform: scale(1.05);
}

.send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* === Result Panel === */
.result-panel {
  width: 480px;
  display: none;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.result-panel::-webkit-scrollbar {
  width: 6px;
}

.result-panel::-webkit-scrollbar-track {
  background: transparent;
}

.result-panel::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.result-panel.visible {
  display: flex;
}

/* === Token Result Card === */
.token-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  animation: slide-in 0.5s ease;
}

.token-card.success {
  border-color: var(--success);
  box-shadow: 0 0 20px var(--success-glow);
}

.token-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.token-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), #15803d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.token-card-title {
  font-size: 18px;
  font-weight: 600;
}

.token-card-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.token-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.token-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(42, 42, 90, 0.5);
}

.token-detail:last-child {
  border-bottom: none;
}

.token-detail-label {
  color: var(--text-secondary);
  font-size: 13px;
}

.token-detail-value {
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}

.token-detail-value.code {
  color: var(--accent-bright);
  font-family: 'Courier New', monospace;
  font-size: 13px;
  word-break: break-all;
  max-width: 200px;
}

.flag-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.flag-badge.on {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.flag-badge.off {
  background: rgba(152, 152, 184, 0.1);
  color: var(--text-hint);
}

.explorer-link {
  display: block;
  margin-top: 16px;
  padding: 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  color: var(--accent-bright);
  text-decoration: none;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.explorer-link:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-1px);
}

/* === Comparison Card === */
.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  animation: slide-in 0.5s ease 0.3s both;
}

.comparison-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 10px 8px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid rgba(42, 42, 90, 0.5);
}

.comparison-table th {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table td:first-child {
  color: var(--text-secondary);
}

.comparison-table .stellar {
  color: var(--stellar-blue);
  font-weight: 600;
}

.comparison-table .ethereum {
  color: var(--text-hint);
}

/* === Loading Dots === */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 0;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-hint);
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

/* === Creating State === */
.creating-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 26, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fade-in 0.3s ease;
}

.creating-card {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 0 40px var(--accent-glow);
}

.creating-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent-bright);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

.creating-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.creating-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

.creating-step {
  margin-top: 16px;
  font-size: 13px;
  color: var(--accent-bright);
  min-height: 20px;
}

/* === Animations === */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 8px var(--accent-glow)); }
  50% { filter: drop-shadow(0 0 16px var(--accent-glow)); }
}

@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === Hidden Utility === */
.hidden {
  display: none !important;
}

/* === API Key Screen === */
.api-key-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.api-key-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.1);
  animation: fade-in 0.5s ease;
}

.api-key-card .logo {
  margin-bottom: 24px;
}

.api-key-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.api-key-input-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.api-key-input-wrapper input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.api-key-input-wrapper input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.api-key-input-wrapper input::placeholder {
  color: var(--text-hint);
}

.api-key-btn {
  background: var(--accent);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.api-key-btn:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
}

.api-key-hint {
  color: var(--text-hint);
  font-size: 12px;
}

.api-key-hint a {
  color: var(--accent-bright);
  text-decoration: none;
}

.api-key-hint a:hover {
  text-decoration: underline;
}

/* === Admin Dashboard === */
.dashboard-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 20px;
  animation: slide-in 0.4s ease;
}

.dashboard-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--stellar-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.dashboard-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.dashboard-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.explorer-link-small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 6px 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 6px;
  color: var(--accent-bright);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
}

.explorer-link-small:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-1px);
}

/* === Dashboard Stats Bar === */
.dashboard-stats-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  animation: slide-in 0.4s ease 0.05s both;
}

.stats-row {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-hint);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.mint-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(42, 42, 90, 0.5);
}

.mint-btn {
  flex: 1;
  text-align: center;
  padding: 8px 16px !important;
  font-size: 13px !important;
  background: rgba(34, 197, 94, 0.1) !important;
  border-color: rgba(34, 197, 94, 0.3) !important;
  color: var(--success) !important;
}

.mint-btn:hover {
  background: rgba(34, 197, 94, 0.2) !important;
  border-color: var(--success) !important;
}

.stat-item.burned .stat-label {
  color: #ef4444;
}

.stat-item.burned .stat-value {
  color: #f87171;
}

/* === Dashboard Info Card === */
.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  animation: slide-in 0.4s ease 0.1s both;
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.dashboard-card-header:hover {
  background: rgba(99, 102, 241, 0.05);
}

.dashboard-card-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.collapse-chevron {
  font-size: 12px;
  color: var(--text-hint);
  transition: transform 0.3s ease;
}

.dashboard-card.collapsed .collapse-chevron {
  transform: rotate(-90deg);
}

.dashboard-card-body {
  padding: 0 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s ease;
}

.dashboard-card.collapsed .dashboard-card-body {
  display: none;
}

.token-flags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.flag-with-info {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* === Holders Section === */
.holders-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  animation: slide-in 0.4s ease 0.2s both;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.holders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.holders-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.holders-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.holders-count {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
}

.refresh-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}

.refresh-btn:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: rgba(99, 102, 241, 0.1);
}

.refresh-btn.spinning {
  animation: spin 0.8s linear infinite;
  pointer-events: none;
}

/* === Holders List === */
.holders-list {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
}

.holders-list::-webkit-scrollbar {
  width: 4px;
}

.holders-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.holders-loading,
.holders-empty,
.holders-error {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.holders-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.holders-error {
  color: var(--error);
}

/* === Holder Row === */
.holder-row {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(42, 42, 90, 0.4);
  transition: background 0.15s;
}

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

.holder-row:hover {
  background: rgba(99, 102, 241, 0.03);
}

.holder-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.holder-account {
  display: flex;
  align-items: center;
  gap: 8px;
}

.holder-id {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--text-primary);
  opacity: 0.85;
}

.distributor-badge {
  background: rgba(79, 156, 255, 0.15);
  color: var(--stellar-blue);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.distributor-badge.demo {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-bright);
}

.holder-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.holder-balance {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* === Auth Status Badges === */
.auth-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.auth-badge.authorized {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.auth-badge.frozen {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}

.auth-badge.unauthorized {
  background: rgba(152, 152, 184, 0.1);
  color: var(--text-hint);
}

/* === Holder Action Buttons === */
.holder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.action-btn-wrapper {
  display: flex;
  align-items: center;
  gap: 2px;
}

.action-btn {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--accent-bright);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.action-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.action-btn:disabled {
  background: rgba(152, 152, 184, 0.05);
  border-color: rgba(152, 152, 184, 0.15);
  color: var(--text-hint);
  cursor: not-allowed;
  transform: none;
}

.action-btn.active {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--error);
}

.action-btn.active:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--error);
}

.action-btn.loading {
  pointer-events: none;
  opacity: 0.6;
}

/* === Info Button === */
.info-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(152, 152, 184, 0.1);
  border: 1px solid rgba(152, 152, 184, 0.2);
  color: var(--text-hint);
  font-size: 11px;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.info-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent);
  color: var(--accent-bright);
}

/* === Tooltip === */
.admin-tooltip {
  position: fixed;
  z-index: 200;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 12px 16px;
  max-width: min(340px, calc(100vw - 24px));
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
  box-shadow: 0 0 24px var(--accent-glow), 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: fade-in 0.2s ease;
  pointer-events: none;
  word-wrap: break-word;
}

/* === Toast Notifications === */
.action-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: toast-in 0.3s ease;
  transition: opacity 0.3s, transform 0.3s;
}

.action-toast.success {
  background: linear-gradient(135deg, #16a34a, #15803d);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.action-toast.error {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.action-toast.fade-out {
  opacity: 0;
  transform: translateY(8px);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* === Mini Spinner (inside buttons) === */
.mini-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 4px;
}

/* === Responsive === */
@media (max-width: 900px) {
  .main {
    flex-direction: column;
  }

  .result-panel {
    width: 100%;
  }

  .message {
    max-width: 95%;
  }

  .logo h1 {
    font-size: 22px;
  }

  .holder-actions {
    gap: 4px;
  }

  .action-btn {
    padding: 4px 10px;
    font-size: 11px;
  }

  .admin-tooltip {
    max-width: 260px;
    left: 16px !important;
    right: 16px;
  }

  .action-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}
