@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=DM+Sans:wght@400;500;600;700;800&display=swap");



:root {

  --font-sans: "DM Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;


  --bg-primary: #0d0d0d;
  --bg-secondary: #151515;
  --bg-tertiary: #1a1a1a;
  --bg-card: #1c1c1c;
  --bg-card-hover: #222222;
  --bg-elevated: #252525;


  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-subtle: rgba(255, 255, 255, 0.35);


  --brand: #33c17d;
  --brand-hover: #279f65;
  --brand-soft: rgba(51, 193, 125, 0.15);
  --brand-border: rgba(51, 193, 125, 0.3);


  --accent: #f7b955;
  --accent-hover: #e5a640;
  --accent-soft: rgba(247, 185, 85, 0.15);


  --success: var(--brand);
  --warning: #f7b955;
  --error: #ef4444;
  --info: #60a5fa;


  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-focus: var(--brand);


  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(62, 207, 142, 0.15);


  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --max-width: 1200px;
  --header-height: 72px;
}



*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(62, 207, 142, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(247, 185, 85, 0.05), transparent);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-hover);
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

::selection {
  background: var(--brand);
  color: var(--bg-primary);
}



.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
}

.section {
  padding: 40px 0;
}

@media (max-width: 640px) {
  .section {
    padding: 24px 0;
  }
}


.grid {
  display: grid;
  gap: 20px;
}

.grid-1 { grid-template-columns: 1fr; }

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}


.page-login .grid.grid-2 {
  align-items: flex-start !important;
}

.page-login .login-center {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 180px);
  padding: 24px 0;
}

.page-login .login-card {
  width: 100%;
  max-width: 560px;
}


.page-login .login-info {
  padding-top: 24px;
}

@media (max-width: 640px) {
  .page-login .login-info {
    padding-top: 0;
  }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

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

.row.wrap {
  flex-wrap: wrap;
}



.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);

  background: linear-gradient(
    180deg,
    rgba(21, 21, 21, 0.92) 0%,
    rgba(13, 13, 13, 0.72) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(62, 207, 142, 0.10);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 16px;
}


.mw-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(62, 207, 142, 0.1), rgba(247, 185, 85, 0.05));
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 4px 0;
}

.mw-brand:hover {
  background: linear-gradient(135deg, rgba(62, 207, 142, 0.15), rgba(247, 185, 85, 0.08));
  border-color: var(--border-strong);
  transform: translateY(-1px);
  text-decoration: none;
}

.mw-brand-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(51, 193, 125, 0.35));
}

.mw-brand-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.mw-amp {
  color: var(--brand);
}


.mw-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 640px) {
  .mw-brand-name {
    font-size: 16px;
  }

  .mw-brand-icon {
    width: 34px;
    height: 34px;
  }

  .mw-btn-label {
    display: none;
  }

  .mw-btn {
    padding: 10px !important;
  }
}



.btn, .mw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible, .mw-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.btn:disabled, .mw-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


.btn-primary, .mw-btn-login {
  background: var(--brand);

  color: var(--text-primary);
  border-color: var(--brand);
}

.btn-primary:hover, .mw-btn-login:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(62, 207, 142, 0.3);
  text-decoration: none;
}

.btn-primary:active, .mw-btn-login:active {
  transform: translateY(0);
}


.btn-secondary, .mw-btn-ghost, .btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-strong);
}

.btn-secondary:hover, .mw-btn-ghost:hover, .btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  text-decoration: none;
}


.btn-outline, .mw-btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand-border);
}

.btn-outline:hover, .mw-btn-outline:hover {
  background: var(--brand-soft);
  text-decoration: none;
}


.btn-danger {
  background: var(--error);
  color: white;
  border-color: var(--error);
}

.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.btn-danger-outline {
  background: transparent;
  color: var(--error);
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.1);
}


.mw-btn-ico {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mw-btn-ico svg {
  width: 16px;
  height: 16px;
}



.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--border-strong);
}

.card-b {
  padding: 24px;
}

@media (max-width: 640px) {
  .card-b {
    padding: 20px;
  }
}



.input, input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], input[type="search"],
select, textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.input:hover, input:hover, select:hover, textarea:hover {
  border-color: var(--border-strong);
}

.input:focus, input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.input::placeholder, input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}


input[type="checkbox"], input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  cursor: pointer;
}



.h1, h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.h2, h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.h3, h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.p, p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.muted {
  color: var(--text-muted) !important;
}

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 8px;
}

.hr {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
  border: none;
}



.mw-hero {
  position: relative;
  padding: 80px 0 120px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  overflow: hidden;
}

.mw-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 100%;
  background:
    radial-gradient(ellipse 50% 80% at 50% 0%, rgba(62, 207, 142, 0.12), transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 20%, rgba(247, 185, 85, 0.08), transparent 50%);
  pointer-events: none;
}

.mw-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.mw-hero-copy {
  max-width: 600px;
  flex: 1;
}

.mw-news-widget {
  width: 380px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mw-news-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--brand) 0%, #2a9d6a 100%);
  color: #fff;
}

.mw-news-icon {
  font-size: 20px;
}

.mw-news-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.mw-news-title .mw-amp {
  color: #a8f0c8;
}

.mw-news-content {
  padding: 14px;
  max-height: 280px;
  overflow-y: auto;
}

.mw-news-loading,
.mw-news-empty {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.mw-news-item {
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  margin-bottom: 10px;
}

.mw-news-item:last-child {
  margin-bottom: 0;
}

.mw-news-item-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.mw-news-item-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.mw-news-item-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .mw-hero-inner {
    flex-direction: column;
    align-items: stretch;
  }
  
  .mw-news-widget {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .mw-news-widget {
    max-width: 100%;
  }
  
  .mw-news-content {
    max-height: 200px;
  }
}

.mw-h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.mw-lead {
  font-size: clamp(17px, 2.5vw, 20px);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.mw-sub {
  font-size: 15px;
  color: var(--text-muted);
}

.mw-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
}

.mw-wave svg {
  width: 100%;
  height: 100%;
}

.mw-wave path {
  fill: var(--bg-primary);
}

@media (max-width: 640px) {
  .mw-hero {
    padding: 50px 0 80px;
  }
}



.mw-why {
  padding: 60px 0;
}

.mw-why .mw-h2 {
  text-align: center;
  margin-bottom: 40px;
}

.mw-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .mw-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .mw-why-grid {
    grid-template-columns: 1fr;
  }
}

.mw-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: var(--d, 0ms);
  opacity: 0;
}

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

.mw-card:hover {
  border-color: var(--brand-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.mw-card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.mw-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  color: var(--brand);
  flex-shrink: 0;
}

.mw-icon svg {
  width: 24px;
  height: 24px;
}

.mw-card-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
}

.mw-card-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}



.mw-cta {
  padding: 60px 0;
}

.mw-cta-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

@media (max-width: 768px) {
  .mw-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
}

.mw-cta-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.mw-cta-text {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 500px;
}

.mw-cta-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .mw-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .mw-cta-actions .btn,
  .mw-cta-actions .mw-btn {
    width: 100%;
  }
}



.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.tab {
  flex: 1;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab:hover {
  color: var(--text-secondary);
}

.tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}



.mw-pay-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 480px) {
  .mw-pay-methods {
    grid-template-columns: 1fr;
  }
}

.mw-pay-method {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mw-pay-method:hover {
  border-color: var(--border-strong);
  background: var(--bg-tertiary);
}

.mw-pay-method.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 1px var(--brand);
}

.mw-pay-ico {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.mw-pay-method.is-selected .mw-pay-ico {
  background: var(--brand);
  color: var(--bg-primary);
}

.mw-pay-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}


.mw-pay-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-top: 16px;
}

.mw-pay-amount {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.mw-pay-amount span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.mw-pay-amount strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand);
}

.mw-pay-actions {
  margin-top: 20px;
}


.mw-pay-details {
  margin-top: 16px;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: none;
}

.mw-pay-details.is-open {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mw-pay-detail-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.mw-pay-grid {
  display: grid;
  gap: 16px;
}

.mw-pay-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 480px) {
  .mw-pay-row {
    grid-template-columns: 1fr;
  }
}


#stripe-card-element {
  padding: 14px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

#stripe-card-element:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}



.mw-sign-pad {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.mw-sign-pad-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mw-sign-pad-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}

.mw-sign-clear {
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mw-sign-clear:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.mw-sign-pad-box {
  background: var(--bg-tertiary);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.mw-sign-pad-box canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  cursor: crosshair;
}

.mw-sign-pad-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}


.mw-sign-preview {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.mw-sign-frame {
  width: 100%;
  height: 600px;
  min-height: 500px;
  border: none;
  background: white;
}

@media (max-width: 768px) {
  .mw-sign-frame {
    height: 450px;
    min-height: 350px;
  }
}



.mw-collapsible {
  border: none;
}

.mw-collapsible > summary {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 0;
  cursor: pointer;
  list-style: none;
}

.mw-collapsible > summary::-webkit-details-marker {
  display: none;
}

.mw-collapsible-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.mw-collapsible-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: auto;
}

.mw-collapsible-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.mw-collapsible[open] .mw-collapsible-toggle svg {
  transform: rotate(180deg);
}

.mw-collapsible-body {
  margin-top: 20px;
}



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

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.list-item:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.list-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.list-item p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.list-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mw-deposit-label {
  display: none;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .list-meta {
    width: 100%;
    margin-top: 12px;
  }

  .mw-deposit-label {
    display: inline;
  }
}



.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.pill.pending {
  background: rgba(247, 185, 85, 0.15);
  color: var(--accent);
  border-color: rgba(247, 185, 85, 0.3);
}

.pill.approved, .pill.success {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand-border);
}

.pill.rejected, .pill.error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
  border-color: rgba(239, 68, 68, 0.3);
}


.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.badge .dot {
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}



dialog, .mw-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
  width: 600px;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}

dialog::backdrop, .mw-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.mw-dialog-head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.mw-dialog-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.mw-dialog-body {
  padding: 24px;
}

#mwUiDlg {
  width: 420px;
  border-radius: var(--radius-lg);
}

#mwUiDlg .mw-dialog-head {
  padding: 20px 24px 12px;
  border-bottom: none;
}

#mwUiDlg .mw-dialog-body {
  padding: 0 24px 24px;
}

#mwUiDlg .btn {
  min-width: 100px;
}

#mwUiDlg .btn-danger {
  background: #dc2626;
  border-color: #dc2626;
}

#mwUiDlg .btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.mw-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mw-dialog-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}



.toastwrap {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
}

.toast {
  padding: 14px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  pointer-events: auto;
  animation: toastIn 0.3s ease;
}

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



.mw-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.mw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.mw-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.mw-table td {
  padding: 14px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.mw-table tr:last-child td {
  border-bottom: none;
}

.mw-table tr:hover td {
  background: var(--bg-tertiary);
}



.footer {
  padding: 24px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer span {
  font-size: 13px;
  color: var(--text-muted);
}



.kvgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 480px) {
  .kvgrid {
    grid-template-columns: 1fr;
  }
}

.kv {
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

.kv .k {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

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



.mw-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mw-timeline-item {
  position: relative;
  padding-left: 28px;
}

.mw-timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--brand);
  border-radius: 50%;
}

.mw-timeline-item::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 20px;
  width: 2px;
  height: calc(100% + 8px);
  background: var(--border);
}

.mw-timeline-item:last-child::after {
  display: none;
}

.mw-timeline-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.mw-timeline-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.mw-timeline-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}



.mw-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mw-consent:hover {
  border-color: var(--border-strong);
}

.mw-consent input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}

.mw-consent span {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}



.mw-brand-panel {
  position: relative;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mw-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 0% 0%, rgba(62, 207, 142, 0.1), transparent 50%),
    radial-gradient(ellipse 40% 40% at 100% 100%, rgba(247, 185, 85, 0.08), transparent 50%);
  pointer-events: none;
}

.mw-jobs-hero-title {
  position: relative;
}

.mw-jobs-hero-title .mw-accent {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  color: var(--brand);
}

.mw-jobs-title-white {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  color: var(--text-primary);
}

.mw-jobs-title-white .mw-amp {
  color: var(--brand);
}

.mw-jobs-hero-sub {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

.mw-jobs-search {
  padding: 24px;
}



.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }


[data-guest-only] { display: flex; }
[data-auth-only] { display: none; }

body.is-authenticated [data-guest-only] { display: none; }
body.is-authenticated [data-auth-only] { display: flex; }


.mw-menu-wrap {
  position: relative;
}

.mw-menu-btn {
  padding: 8px 12px;
  font-size: 16px;
}

.mw-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 160px;
  margin-top: 4px;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 50;
}

.mw-menu-item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mw-menu-item:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.mw-menu-item.danger {
  color: var(--error);
}

.mw-menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.1);
}



.mw-admin-row {
  align-items: flex-start;
}

.mw-admin-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mw-admin-date-label {
  font-size: 12px;
  color: var(--text-muted);
}

.mw-admin-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.mw-admin-item-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}


.mw-card-section {
  margin-top: 20px;
}


.mw-request-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 12px;
}


.mw-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--bg-primary);
  background: var(--brand);
  border-radius: var(--radius-full);
  margin-left: 8px;
}


.mw-label-like {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}


.mw-consent-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


.mw-sign-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


.mw-hero-text {
  position: relative;
}


input[type="file"] {
  padding: 12px;
  background: var(--bg-secondary);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

input[type="file"]:hover {
  border-color: var(--brand-border);
  background: var(--bg-tertiary);
}

input[type="file"]::file-selector-button {
  padding: 8px 16px;
  margin-right: 12px;
  background: var(--brand);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
  background: var(--brand-hover);
}


.mw-docrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.mw-docleft {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mw-docright {
  display: flex;
  align-items: center;
  gap: 10px;
}


.mw-pay-test {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(247, 185, 85, 0.1);
  border: 1px solid rgba(247, 185, 85, 0.3);
  border-radius: var(--radius-full);
  cursor: pointer;
}

.mw-pay-test span {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}


.mw-pay-mobile {
  padding: 14px;
  background: var(--bg-tertiary);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.mw-pay-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}


.mw-stripe-card {
  margin-top: 12px;
  padding: 14px 14px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
}

.mw-pay-error {
  display: none;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--error);
}


.mw-phonepay {
  text-align: center;
}

.mw-phonepay-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.mw-phonepay-illu {
  display: flex;
  justify-content: center;
  margin: 16px 0;
  color: var(--brand);
}

.mw-phonepay-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}


.mw-btn-current {
  pointer-events: none;
  opacity: 0.7;
}




.mw-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.mw-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.mw-check:hover {
  background: rgba(51, 193, 125, 0.06);
  border-color: var(--brand-border);
}

.mw-check:active {
  transform: translateY(1px);
}


.mw-check input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-secondary);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
  position: relative;
  flex: 0 0 18px;
}

.mw-check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.mw-check input[type="checkbox"]:checked {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(51, 193, 125, 0.18);
}

.mw-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.mw-check span {
  color: var(--text-secondary);
  line-height: 1.45;
}


.mw-file-center {
  grid-column: 1 / -1;
}

.filefield {
  position: relative;
  width: 100%;
  margin-top: 6px;
}

.file-native {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-ui {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.file-ui:hover {
  background: rgba(51, 193, 125, 0.05);
  border-color: var(--brand-border);
}

.file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  border: 1px solid var(--brand);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}

.file-name {
  color: var(--text-muted);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.admin-board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.admin-board-grid.admin-two-cols {
  grid-template-columns: 1fr 1fr;
}

.admin-board-grid.admin-three-cols {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

#adminDossiersCard,
#adminSuiviCard,
#adminNewsCard {
  align-self: stretch;
}

#adminDossiersCard .card-b,
#adminSuiviCard .card-b,
#adminNewsCard .card-b {
  min-height: 340px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-xs {
  padding: 5px 10px;
  font-size: 11px;
}

.btn-danger-outline {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.1);
}

#adminDossiers,
#adminArchives {
  flex: 1;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
}

.admin-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.admin-tab {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-tab:hover {
  color: var(--text-secondary);
}

.admin-tab.active {
  border-bottom-color: var(--accent);
  color: var(--text-primary);
  font-weight: 600;
}

.admin-nav-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.admin-nav-controls .admin-nav-info {
  font-size: 12px;
  color: var(--text-muted);
}

.admin-nav-controls button {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-nav-controls button:hover:not(:disabled) {
  background: var(--bg-tertiary);
  border-color: var(--border-strong);
}

.admin-nav-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.admin-single-item {
  padding: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 8px 0;
  text-align: center;
}

.admin-single-item h3 {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 600;
}

.admin-single-item p {
  margin: 4px 0;
  font-size: 13px;
}

.admin-single-item .admin-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.admin-empty-state {
  text-align: center;
  padding: 30px 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.admin-tab-suivi {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-tab-suivi:hover {
  color: var(--text-secondary);
}

.admin-tab-suivi.active {
  border-bottom-color: var(--accent);
  color: var(--text-primary);
  font-weight: 600;
}

.admin-suivi-content {
  min-height: 200px;
  max-height: 200px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.admin-suivi-content iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

@media (max-width: 1100px) {
  .admin-board-grid.admin-three-cols {
    grid-template-columns: 1fr 1fr;
  }
  
  #adminNewsCard {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .admin-board-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .admin-board-grid.admin-two-cols,
  .admin-board-grid.admin-three-cols {
    grid-template-columns: 1fr;
  }
  
  #adminNewsCard {
    grid-column: span 1;
  }
  
  #panelAdmin {
    padding-top: 0;
  }
  
  #panelAdmin .admin-board {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  #adminDossiersCard .card-b,
  #adminSuiviCard .card-b {
    min-height: auto;
    padding: 14px;
  }
  
  .admin-tabs {
    margin-bottom: 10px;
  }
  
  .admin-tab {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .admin-suivi-content {
    min-height: 180px;
    max-height: 180px;
  }
  
  .admin-suivi-content iframe {
    height: 180px;
  }
  
  .admin-suivi-content {
    min-height: 280px;
    max-height: 280px;
  }
  
  .admin-suivi-content iframe {
    height: 280px;
  }
  
  #adminDossiers,
  #adminArchives {
    min-height: 120px;
    max-height: 180px;
  }
  
  .admin-empty-state {
    padding: 20px 12px;
  }
}

body.admin-suivi-only #adminDossiersCard,
body.admin-suivi-only #adminJobsCard,
body.admin-suivi-only #adminArchivesCard {
  display: none !important;
}

body.admin-suivi-only .admin-board-grid {
  grid-template-columns: 1fr !important;
}

body.admin-suivi-only #adminSuiviCard {
  grid-column: 1 / -1;
}


@media (max-width: 640px) {
  .card-b + .card-b {
    margin-top: 10px;
  }
}




.mw-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.mw-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mw-check:hover {
  background: rgba(51, 193, 125, 0.06);
  border-color: var(--brand-border);
}

.mw-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-secondary);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
  position: relative;
  flex: 0 0 18px;
}

.mw-check input[type="checkbox"]:checked {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.mw-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.mw-check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.mw-check span {
  color: var(--text-secondary);
  line-height: 1.45;
  font-weight: 600;
}


.form-row .mw-file-center {
  grid-column: 1 / -1;
}

.mw-file-center {
  width: 100%;
}

.filefield {
  position: relative;
  width: 100%;
  margin-top: 6px;
}

.file-native {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
}

.file-ui {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.file-ui:hover {
  background: rgba(51, 193, 125, 0.05);
  border-color: var(--brand-border);
}

.file-btn {
  background: var(--brand);
  border: 1px solid var(--brand);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(51, 193, 125, 0.18);
}

.file-name {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.admin-board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

@media (max-width: 900px) {
  .admin-board-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}


@media (max-width: 640px) {
  .admin-board-grid {
    gap: 20px;
  }
}




.mw-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.mw-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.mw-check:hover {
  background: rgba(51, 193, 125, 0.06);
  border-color: var(--brand-border);
}

.mw-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-secondary);
  margin-top: 2px;
  position: relative;
  flex: 0 0 18px;
  cursor: pointer;
}

.mw-check input[type="checkbox"]:checked {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.mw-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.mw-check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.mw-check span {
  color: var(--text-secondary);
  line-height: 1.35;
}


.mw-file-center {
  grid-column: 1 / -1;
}

.filefield {
  position: relative;
  width: 100%;
}

.file-native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.file-ui {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-ui:hover {
  border-color: var(--brand-border);
  background: rgba(51, 193, 125, 0.06);
}

.file-btn {
  background: var(--brand);
  border: 1px solid var(--brand-border);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}

.file-name {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}


.admin-board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

@media (max-width: 900px) {
  .admin-board-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}


@media (max-width: 640px) {
  .admin-board-grid .card {
    margin-bottom: 4px;
  }
}





.mw-journey {
  padding: 4px 2px;
}

.mw-journey-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.mw-journey-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--text-primary);
}

.mw-journey-sub {
  font-size: 12px;
  font-weight: 700;
}

.mw-journey-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mw-journey-step {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.mw-journey-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  margin-top: 2px;
  border: 2px solid var(--border-strong);
  background: var(--bg-tertiary);
}

.mw-journey-step.done .mw-journey-dot {
  background: var(--brand);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 3px rgba(47, 111, 107, 0.22);
}

.mw-journey-step.current {
  border-color: rgba(47, 111, 107, 0.55);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.20);
}

.mw-journey-step.current .mw-journey-dot {
  border-color: var(--brand);
  background: rgba(47, 111, 107, 0.35);
}

.mw-journey-label {
  font-size: 13px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
}

.mw-journey-desc {
  font-size: 12px;
  margin-top: 4px;
}

.mw-journey-state {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  white-space: nowrap;
}

.mw-journey-step.done .mw-journey-state {
  color: #0b2a1b;
  border-color: rgba(47, 111, 107, 0.35);
  background: rgba(47, 111, 107, 0.22);
}

.mw-journey-step.current .mw-journey-state {
  color: var(--text-primary);
  border-color: rgba(47, 111, 107, 0.55);
  background: rgba(47, 111, 107, 0.16);
}

@media (max-width: 520px) {
  .mw-journey-step {
    grid-template-columns: 18px 1fr;
  }
  .mw-journey-state {
    grid-column: 2 / -1;
    justify-self: start;
    margin-top: 8px;
  }
}



#userPaymentCard .mw-pay-summary {
  justify-content: center;
  text-align: center;
}

#userPaymentCard .mw-pay-amount {
  width: 100%;
  justify-content: center;
}

#userPaymentCard .mw-pay-details {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

#userPaymentCard .mw-pay-detail-title,
#userPaymentCard .mw-pay-note {
  text-align: center;
}

#userPaymentCard .mw-stripe-card {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

#userPaymentCard .mw-pay-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#userPaymentCard #paySubmitBtn {
  width: min(360px, 100%);
}

#userPaymentCard #payHint {
  text-align: center;
  max-width: 520px;
}

.page-login .header-row{justify-content:center;position:relative}
.page-login .mw-header-actions{position:absolute;right:0;top:50%;transform:translateY(-50%)}
