/**
 * Vinteum Partner Portal — Design System & Base Styles
 *
 * Fully isolated from WordPress themes. Uses .vtm-portal namespace.
 * Designed to Impeccable standards: WCAG AA contrast compliance, responsive drawer navigation,
 * semantic z-indexes, accessible focus rings, and high-performance transitions.
 */

/* ========== Design Tokens ========== */
:root {
  /* Official Vinteum Brand Colors */
  --vtm-primary: #0047BA;
  --vtm-primary-light: #1363DF;
  --vtm-primary-dark: #0B2545;
  --vtm-accent: #008765;
  --vtm-accent-hover: #007054;
  --vtm-accent-light: #E6FAF5;
  --vtm-warning: #B45309;
  --vtm-warning-bg: #FEF3C7;
  --vtm-danger: #DC2626;
  --vtm-danger-bg: #FEE2E2;
  --vtm-info: #0284C7;
  --vtm-info-bg: #E0F2FE;

  /* Neutrals (High Contrast & Clean Hierarchy) */
  --vtm-bg: #F8FAFC;
  --vtm-surface: #FFFFFF;
  --vtm-surface-hover: #F1F5F9;
  --vtm-border: #CBD5E1;
  --vtm-border-light: #E2E8F0;
  --vtm-text: #0F172A;
  --vtm-text-secondary: #334155;
  --vtm-text-muted: #64748B;

  /* Typography */
  --vtm-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --vtm-font-display: 'Outfit', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --vtm-font-mono: 'SF Mono', 'Fira Code', 'Roboto Mono', monospace;

  /* Spacing Scale */
  --vtm-space-xs: 4px;
  --vtm-space-sm: 8px;
  --vtm-space-md: 16px;
  --vtm-space-lg: 24px;
  --vtm-space-xl: 32px;
  --vtm-space-2xl: 48px;

  /* Radius Scale */
  --vtm-radius-sm: 6px;
  --vtm-radius-md: 10px;
  --vtm-radius-lg: 16px;
  --vtm-radius-full: 9999px;

  /* Elevation Shadows */
  --vtm-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --vtm-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --vtm-shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);

  /* Semantic Z-Index Scale */
  --vtm-z-dropdown: 20;
  --vtm-z-header: 50;
  --vtm-z-sidebar: 100;
  --vtm-z-backdrop: 200;
  --vtm-z-modal: 300;
  --vtm-z-toast: 400;

  /* Transitions */
  --vtm-transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --vtm-transition-slow: 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout Dimensions */
  --vtm-sidebar-width: 260px;
  --vtm-header-height: 68px;
}

/* ========== Reset (scoped) ========== */
.vtm-portal,
.vtm-portal * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.vtm-portal {
  font-family: var(--vtm-font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--vtm-text);
  background: var(--vtm-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.vtm-portal h1,
.vtm-portal h2,
.vtm-portal h3,
.vtm-portal h4,
.vtm-login-brand-name,
.vtm-login-title,
.vtm-metric-value,
.vtm-header-title {
  font-family: var(--vtm-font-display);
}

/* Accessible Focus Indicators */
.vtm-portal a:focus-visible,
.vtm-portal button:focus-visible,
.vtm-portal input:focus-visible,
.vtm-portal select:focus-visible,
.vtm-portal textarea:focus-visible {
  outline: 2px solid var(--vtm-primary);
  outline-offset: 2px;
}

/* ========== Exclusive Login & Auth Views ========== */
.vtm-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: radial-gradient(circle at 50% 20%, #0B2545 0%, #06152B 100%);
  position: relative;
  overflow: hidden;
}

.vtm-login-page::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 71, 186, 0.3) 0%, rgba(0, 210, 160, 0.1) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.vtm-login-card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 40px;
  max-width: 440px;
  width: 100%;
  position: relative;
  z-index: 10;
  animation: vtmFadeUp 0.35s ease-out;
}

.vtm-login-header {
  text-align: center;
  margin-bottom: 28px;
}

.vtm-login-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.vtm-login-logo svg {
  width: 36px;
  height: 36px;
}

.vtm-login-brand-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--vtm-primary-dark);
  letter-spacing: -0.5px;
}

.vtm-login-brand-tag {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--vtm-primary);
  margin-top: 2px;
}

.vtm-login-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--vtm-text);
  margin-bottom: 6px;
}

.vtm-login-subtitle {
  font-size: 13px;
  color: var(--vtm-text-secondary);
}

.vtm-form-group {
  margin-bottom: 18px;
}

.vtm-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--vtm-text);
  margin-bottom: 6px;
}

.vtm-form-input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--vtm-font);
  font-size: 14px;
  color: var(--vtm-text);
  background: var(--vtm-bg);
  border: 1px solid var(--vtm-border);
  border-radius: var(--vtm-radius-md);
  transition: all var(--vtm-transition);
  outline: none;
  min-height: 44px;
}

.vtm-form-input:focus {
  background: #FFFFFF;
  border-color: var(--vtm-primary);
  box-shadow: 0 0 0 3px rgba(0, 71, 186, 0.15);
}

.vtm-form-row-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-size: 13px;
}

.vtm-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--vtm-text-secondary);
  cursor: pointer;
  user-select: none;
  min-height: 44px;
}

.vtm-link-btn {
  color: var(--vtm-primary);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--vtm-transition);
  display: inline-flex;
  align-items: center;
}

.vtm-link-btn:hover {
  color: var(--vtm-primary-light);
  text-decoration: underline;
}

.vtm-alert {
  padding: 12px 16px;
  border-radius: var(--vtm-radius-md);
  font-size: 13px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.vtm-alert-error {
  background: var(--vtm-danger-bg);
  border: 1px solid #FECACA;
  color: #991B1B;
}

.vtm-alert-success {
  background: var(--vtm-accent-light);
  border: 1px solid #BBF7D0;
  color: #065F46;
}

/* ========== Layout ========== */
.vtm-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.vtm-sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: var(--vtm-z-backdrop);
}

.vtm-sidebar {
  width: var(--vtm-sidebar-width);
  background: linear-gradient(180deg, var(--vtm-primary-dark) 0%, #06152B 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: var(--vtm-z-sidebar);
  transition: transform var(--vtm-transition-slow);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.vtm-sidebar-logo {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vtm-sidebar-logo img {
  max-height: 44px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.vtm-login-logo img {
  max-height: 52px;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

.vtm-sidebar-logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.vtm-sidebar-logo h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
  line-height: 1.2;
}

.vtm-sidebar-logo span {
  font-size: 11px;
  color: #00D2A0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.vtm-sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.vtm-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-radius: var(--vtm-radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--vtm-transition);
  cursor: pointer;
  margin-bottom: 4px;
  min-height: 44px;
}

.vtm-nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.vtm-nav-item.active {
  color: #fff;
  background: var(--vtm-primary);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 71, 186, 0.35);
}

.vtm-nav-icon {
  font-size: 18px;
  line-height: 1;
}

.vtm-sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.15);
}

.vtm-sidebar-footer .vtm-user-info {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

/* ========== Main Content ========== */
.vtm-main {
  flex: 1;
  margin-left: var(--vtm-sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.vtm-header {
  height: var(--vtm-header-height);
  background: var(--vtm-surface);
  border-bottom: 1px solid var(--vtm-border);
  padding: 0 var(--vtm-space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: var(--vtm-z-header);
}

.vtm-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vtm-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--vtm-border);
  border-radius: var(--vtm-radius-sm);
  padding: 8px;
  cursor: pointer;
  color: var(--vtm-text);
  font-size: 18px;
  min-height: 40px;
  min-width: 40px;
  align-items: center;
  justify-content: center;
}

.vtm-header-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--vtm-text);
  letter-spacing: -0.3px;
}

.vtm-content {
  flex: 1;
  padding: var(--vtm-space-xl);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* ========== Cards & Metrics ========== */
.vtm-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.vtm-metric-card {
  background: var(--vtm-surface);
  border: 1px solid var(--vtm-border);
  border-radius: var(--vtm-radius-md);
  padding: 20px;
  box-shadow: var(--vtm-shadow-sm);
  transition: transform var(--vtm-transition), box-shadow var(--vtm-transition);
}

.vtm-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--vtm-shadow-md);
}

.vtm-metric-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--vtm-text);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.vtm-metric-label {
  font-size: 13px;
  color: var(--vtm-text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

.vtm-metric-earned .vtm-metric-value {
  color: var(--vtm-primary);
}

.vtm-metric-unpaid .vtm-metric-value {
  color: #047857;
}

.vtm-metric-clawback .vtm-metric-value {
  color: var(--vtm-danger);
}

.vtm-card {
  background: var(--vtm-surface);
  border: 1px solid var(--vtm-border);
  border-radius: var(--vtm-radius-md);
  padding: 24px;
  box-shadow: var(--vtm-shadow-sm);
  margin-bottom: 24px;
}

.vtm-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.vtm-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--vtm-text);
}

/* ========== Buttons ========== */
.vtm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--vtm-font);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--vtm-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--vtm-transition);
  outline: none;
  min-height: 44px;
}

.vtm-btn-primary {
  background: var(--vtm-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 71, 186, 0.25);
}

.vtm-btn-primary:hover {
  background: var(--vtm-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 71, 186, 0.35);
}

.vtm-btn-accent {
  background: #00D2A0;
  color: #064E3B;
  font-weight: 700;
}

.vtm-btn-accent:hover {
  background: #00B88C;
  color: #064E3B;
}

.vtm-btn-secondary {
  background: var(--vtm-surface);
  border-color: var(--vtm-border);
  color: var(--vtm-text);
}

.vtm-btn-secondary:hover {
  background: var(--vtm-surface-hover);
}

.vtm-btn-sm {
  padding: 8px 14px;
  font-size: 12px;
  min-height: 36px;
}

/* ========== Copy Groups ========== */
.vtm-copy-group {
  position: relative;
  display: flex;
  gap: 8px;
  background: var(--vtm-bg);
  border: 1px solid var(--vtm-border);
  border-radius: var(--vtm-radius-md);
  padding: 4px 6px 4px 14px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.vtm-copy-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  font-family: var(--vtm-font-mono);
  font-size: 13px;
  color: var(--vtm-primary-dark);
  font-weight: 600;
  outline: none;
  height: 38px;
  line-height: 38px;
}

.vtm-copy-btn {
  white-space: nowrap !important;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--vtm-primary);
  color: #fff;
  border: none;
  padding: 0 16px;
  border-radius: var(--vtm-radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--vtm-transition);
  height: 38px;
  line-height: 38px;
  box-sizing: border-box;
}

.vtm-copy-btn:hover {
  background: var(--vtm-primary-light);
}

.vtm-copy-btn.copied,
.vtm-btn.copied,
.vtm-copy-btn.vtm-btn-copied,
.vtm-btn.vtm-btn-copied {
  background: #10B981 !important;
  background-color: #10B981 !important;
  border-color: #10B981 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25) !important;
  transform: scale(1.02);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.vtm-copy-btn.copied svg,
.vtm-btn.copied svg,
.vtm-copy-btn.vtm-btn-copied svg,
.vtm-btn.vtm-btn-copied svg {
  stroke: #FFFFFF !important;
}

/* ========== Creatives Tabs & Media Kit Cards ========== */
.vtm-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--vtm-border);
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.vtm-tab {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--vtm-text-secondary);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--vtm-transition);
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.vtm-tab:hover {
  color: var(--vtm-primary);
}

.vtm-tab.active {
  color: var(--vtm-primary);
  border-bottom-color: var(--vtm-primary);
}

.vtm-creatives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.vtm-creative-card {
  background: var(--vtm-surface);
  border: 1px solid var(--vtm-border);
  border-radius: var(--vtm-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--vtm-shadow-sm);
  transition: transform var(--vtm-transition), box-shadow var(--vtm-transition);
}

.vtm-creative-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--vtm-shadow-md);
}

.vtm-creative-preview {
  background: #F1F5F9;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 180px;
  overflow: hidden;
  margin: 12px 0;
}

.vtm-creative-preview img {
  max-width: 100%;
  max-height: 150px;
  height: auto;
  object-fit: contain;
}

/* ========== Tables ========== */
.vtm-table-wrapper {
  overflow-x: auto;
  border-radius: var(--vtm-radius-md);
  border: 1px solid var(--vtm-border);
}

.vtm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.vtm-table th {
  text-align: left;
  padding: 12px 14px;
  color: var(--vtm-text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--vtm-border);
  background: #F8FAFC;
}

.vtm-table td {
  padding: 14px;
  border-bottom: 1px solid var(--vtm-border-light);
  color: var(--vtm-text);
}

.vtm-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--vtm-radius-full);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.vtm-badge-active, .vtm-badge-paid {
  background: var(--vtm-accent-light);
  color: #065F46;
}

.vtm-badge-pending, .vtm-badge-trial {
  background: var(--vtm-warning-bg);
  color: var(--vtm-warning);
}

.vtm-badge-unpaid {
  background: var(--vtm-info-bg);
  color: #0369A1;
}

.vtm-badge-clawback, .vtm-badge-rejected {
  background: var(--vtm-danger-bg);
  color: #991B1B;
}

/* ========== Shimmer Loading Skeletons ========== */
.vtm-skeleton {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: vtmShimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes vtmShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========== Animations ========== */
@keyframes vtmFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .vtm-portal *,
  .vtm-login-card,
  .vtm-metric-card,
  .vtm-creative-card {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .vtm-sidebar {
    transform: translateX(-100%);
  }
  .vtm-sidebar.open {
    transform: translateX(0);
  }
  .vtm-sidebar-backdrop.open {
    display: block;
  }
  .vtm-main {
    margin-left: 0;
  }
  .vtm-menu-toggle {
    display: inline-flex;
  }
  .vtm-header {
    padding: 0 16px;
  }
  .vtm-content {
    padding: 16px;
  }
  .vtm-metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Vinteum Modal Dialog System (SweetAlert-Style Pure Native Engine)
   ========================================================================== */
.vtm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease;
  box-sizing: border-box;
}

.vtm-modal-overlay.vtm-modal-visible {
  opacity: 1;
  visibility: visible;
}

.vtm-modal-box {
  background: #FFFFFF;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  padding: 28px 24px 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.05);
  text-align: center;
  transform: scale(0.9) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vtm-modal-overlay.vtm-modal-visible .vtm-modal-box {
  transform: scale(1) translateY(0);
}

.vtm-modal-icon-wrap {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  flex-shrink: 0;
}

.vtm-modal-icon-wrap.vtm-icon-success {
  background: #ECFDF5;
  color: #059669;
  border: 2.5px solid #A7F3D0;
}

.vtm-modal-icon-wrap.vtm-icon-warning,
.vtm-modal-icon-wrap.vtm-icon-question {
  background: #FFFBEB;
  color: #D97706;
  border: 2.5px solid #FDE68A;
}

.vtm-modal-icon-wrap.vtm-icon-error {
  background: #FEF2F2;
  color: #DC2626;
  border: 2.5px solid #FECDD3;
}

.vtm-modal-icon-wrap.vtm-icon-info {
  background: #EFF6FF;
  color: #2563EB;
  border: 2.5px solid #BFDBFE;
}

.vtm-modal-title {
  font-size: 19px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 8px;
  line-height: 1.35;
  font-family: var(--vtm-font-display, inherit);
  flex-shrink: 0;
}

.vtm-modal-text {
  font-size: 14px;
  color: #475569;
  margin: 0 0 20px;
  line-height: 1.55;
  word-break: break-word;
  max-height: 55vh;
  overflow-y: auto;
  padding: 0 4px;
}

.vtm-modal-input-wrap {
  margin-bottom: 20px;
  text-align: left;
}

.vtm-modal-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  font-size: 14px;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  outline: none;
  background: #FFFFFF;
  color: #0F172A;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vtm-modal-input:focus {
  border-color: #0047BA;
  box-shadow: 0 0 0 3px rgba(0, 71, 186, 0.15);
}

.vtm-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.vtm-modal-btn {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  font-family: var(--vtm-font, inherit);
}

.vtm-modal-btn-confirm {
  background: #0047BA;
  color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(0, 71, 186, 0.2);
}

.vtm-modal-btn-confirm:hover {
  background: #003794;
}

.vtm-modal-btn-danger {
  background: #DC2626;
  color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.vtm-modal-btn-danger:hover {
  background: #B91C1C;
}

.vtm-modal-btn-cancel {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

.vtm-modal-btn-cancel:hover {
  background: #E2E8F0;
  color: #1E293B;
}

/* ==========================================================================
   Vinteum Toast Notification Pills
   ========================================================================== */
.vtm-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100001;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  box-sizing: border-box;
}

.vtm-toast {
  pointer-events: auto;
  background: #0F172A;
  color: #F8FAFC;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15), 0 4px 6px -2px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--vtm-font, inherit);
}

.vtm-toast.vtm-toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.vtm-toast.vtm-toast-success { border-left: 4px solid #10B981; }
.vtm-toast.vtm-toast-error   { border-left: 4px solid #EF4444; }
.vtm-toast.vtm-toast-warning { border-left: 4px solid #F59E0B; }
.vtm-toast.vtm-toast-info    { border-left: 4px solid #3B82F6; }

/* ==========================================================================
   Vinteum Link Copying Protection & Educational Tooltips
   ========================================================================== */
.vtm-copy-input-unselectable {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  cursor: default !important;
  background-color: #F8FAFC !important;
  color: #334155 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 12.5px !important;
  letter-spacing: -0.2px !important;
}

.vtm-copy-input-unselectable::selection {
  background: transparent !important;
  color: inherit !important;
}

.vtm-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vtm-tooltip-trigger {
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  line-height: 1;
  outline: none;
}

.vtm-tooltip-trigger:hover,
.vtm-tooltip-trigger:focus,
.vtm-tooltip-wrap:hover .vtm-tooltip-trigger {
  color: #0047BA;
  background: #EFF6FF;
}

.vtm-tooltip-content {
  display: none !important;
  position: absolute;
  bottom: calc(100% + 10px);
  right: -4px;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 8px;
  width: 290px;
  max-width: 85vw;
  text-align: left;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.35), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
  z-index: 99999;
  pointer-events: none;
  white-space: normal;
  box-sizing: border-box;
}

.vtm-tooltip-content::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 12px;
  border: 6px solid transparent;
  border-top-color: #0F172A;
}

.vtm-tooltip-wrap:hover .vtm-tooltip-content,
.vtm-tooltip-wrap:focus-within .vtm-tooltip-content,
.vtm-tooltip-wrap.vtm-tooltip-active .vtm-tooltip-content {
  display: block !important;
}


