/* =========================================================
   DEFAULT TEXT (NON-AUTH PAGES)
   ========================================================= */
body {
  color: #eaeaea;
}

main,
.main-content,
.container {
  color: #eaeaea;
}

.alert {
  color: #fff;
}


/* =========================================================
   GLOBAL
   ========================================================= */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  font-family: "Inter", "Segoe UI", sans-serif;
}

/* =========================================================
   CENTER LAYOUT (AUTH ONLY)
   ========================================================= */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   AUTH CARD
   ========================================================= */
.auth-card {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 30px;
  width: 420px; /* wider for larger logo */
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  text-align: center;
}

/* =========================================================
   LOGO (DOUBLE SIZE)
   ========================================================= */
.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.logo-circle {
  width: 280px;     /* ⬅️ DOUBLE SIZE */
  height: 280px;
  background: #65;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-circle img {
  width: 190px;     /* ⬅️ DOUBLE SIZE */
  height: auto;
}

/* =========================================================
   HEADINGS
   ========================================================= */
.auth-card h2 {
  color: #fff;
  margin-bottom: 8px;
}

.subtitle {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 18px;
}

/* =========================================================
   AUTH INPUTS / SELECTS / BUTTONS (SCOPED)
   ========================================================= */
.page-wrapper .auth-card input,
.page-wrapper .auth-card select,
.page-wrapper .auth-card button {
  width: 100%;
  height: 44px;              /* SAME HEIGHT */
  padding: 0 12px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  color: #000;
  font-size: 14px;
  box-sizing: border-box;
}

/* Placeholders */
.page-wrapper .auth-card input::placeholder {
  color: #777;
}

/* =========================================================
   DROPDOWNS
   ========================================================= */
.page-wrapper .auth-card select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  cursor: pointer;
}

/* =========================================================
   BUTTON
   ========================================================= */
.page-wrapper .auth-card button {
  background: #fff;
  color: #000;
  font-weight: 600;
  cursor: pointer;
}

.page-wrapper .auth-card button:hover {
  background: #eaeaea;
}

/* =========================================================
   PASSWORD STRENGTH INDICATOR
   ========================================================= */
.password-strength {
  width: 100%;
  height: 6px;
  background: #ddd;
  border-radius: 4px;
  margin-top: -6px;
  margin-bottom: 6px;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  width: 0%;
  background: red;
  transition: width 0.3s ease, background 0.3s ease;
}

.strength-text {
  font-size: 12px;
  margin-bottom: 12px;
  text-align: left;
}

/* =========================================================
   LINKS (AUTH)
   ========================================================= */
.auth-card a {
  color: #9ad;
  text-decoration: none;
  font-size: 13px;
}

.auth-card a:hover {
  text-decoration: underline;
}

/* =========================================================
   FOOTER (AUTH CARD)
   ========================================================= */
.footer {
  margin-top: 16px;
  font-size: 12px;
  color: #fff;
}

a.url_text_footer {
  color: #fff;
  text-decoration: none;
  position: relative;
}

a.url_text_footer:hover,
a.url_text_footer:focus-visible {
  text-decoration: none; /* 👈 kill native underline */
}

/* custom underline */
a.url_text_footer::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: #fff;
  transition: width 0.25s ease;
}

/* hover effect */
a.url_text_footer:hover::after,
a.url_text_footer:focus-visible::after {
  width: 100%;
}

/* =========================================================
   HEADER / DASHBOARD SAFETY
   ========================================================= */
header,
nav,
header a {
  color: #eaeaea;
}

header a:hover {
  color: #fff;
}

/* =========================================================
   BRAND LAYOUT (VERIFY / DASHBOARD / FORGOT / ADMIN)
   ========================================================= */

.brand-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #000;
  padding-top: 40px;
}

/* =========================================================
   BRAND HEADER (WIDE WHITE BANNER)
   ========================================================= */

.brand-header {
  background: #fff;                 /* WHITE BANNER */
  width: 80%;                       /* LONG, RESPONSIVE */
  max-width: 1000px;                /* LIMIT FOR LARGE SCREENS */
  height: 120px;                    /* TALL ENOUGH FOR LOGO */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

/* DOCMANWIN LOGO INSIDE BANNER */
.brand-header img {
  height: 64px;                     /* LOGO LETTER SIZE */
  width: auto;
}

/* ===== SEPARATOR LINE ===== */
.brand-separator {
  width: 80%;
  max-width: 1000px;
  height: 2px;
  background: #fff;
  margin: 24px 0 32px;
  opacity: 0.9;
}

/* ===== CONTENT CARD ===== */
.brand-content {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 30px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  color: #fff;
  text-align: center;
}

/* ===== FORMS INSIDE BRAND CONTENT ===== */
.brand-content input,
.brand-content select,
.brand-content button {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  color: #000;
  font-size: 14px;
  box-sizing: border-box;
}

/* ===== BUTTON ===== */
.brand-content button {
  background: #fff;
  color: #000;
  font-weight: 600;
  cursor: pointer;
}

.brand-content button:hover {
  background: #eaeaea;
}

/* ===== ADMIN TABLE ===== */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 10px;
  border-bottom: 1px solid #444;
  text-align: center;
  color: #fff;
}

.admin-table th {
  background: #111;
}

.admin-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.document {
  width: 60px;
  height: auto;
  border-radius: 4px;
}

.missing {
  color: #f39c12;
  font-size: 13px;
}

.actions button {
  width: 100%;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;      
  justify-content: center;  
  min-height: 100vh;        
}

/* ================================
   Reusable Button (Anchor + Button)
   ================================ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 14px;
  border-radius: 10px;

  background: #000;
  color: #fff;

  border: 1px solid #000;

  font-size: 14px;
  font-weight: 600;
  line-height: 1;

  text-decoration: none; /* IMPORTANT */
  cursor: pointer;

  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease;
}

/* Hover */
.button:hover {
  background: #111;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* Active */
.button:active {
  transform: translateY(1px);
}

/* Remove visited link color */
.button:visited {
  color: #fff;
}

/* Focus (keyboard accessibility) */
.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.35);
}

.main-footer {
  display: flex;
  flex-direction: column;
  align-items: center;        
}

.file-label {
  display: block;
  margin-top: 14px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}


.auth-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border-radius: 10px;
  background: #111; /* or white */
  color: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.message {
  text-align: center;
  margin-bottom: 24px;
}

.message h1 {
  margin-bottom: 8px;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin-top: 12px;
  font-size: 13px;
}

input {
  margin-top: 6px;
  padding: 10px;
}

/* ================================
   Password hint rules interactions 
   ================================ */

.password-wrapper {
  position: relative;
}

.password-hint {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 6px;
  font-size: 13px;
  z-index: 10;

  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* visible */
.password-hint.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* rules */
.password-rules {
  list-style: none;
  padding: 0;
  margin: 0;
}

.password-rules li {
  color: #888;
  margin: 4px 0;
  padding-left: 18px;
  position: relative;
}

.password-rules li::before {
  content: "•";
  position: absolute;
  left: 0;
}

/* satisfied */
.password-rules li.valid {
  color: #2ecc71;
}

.password-rules li.valid::before {
  content: "✔";
  color: #2ecc71;
}

/* ================================
   Dashboard admin approved rejected 
   ================================ */
   
.status-approved {
  color: #2ecc71;
  font-weight: bold;
}

.status-rejected {
  color: #e74c3c;
  font-weight: bold;
}

.language-flags {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
}

.flag-button {
  width: 18px !important;
  height: 12px !important;

  min-width: 18px !important;
  max-width: 18px !important;
  min-height: 12px !important;
  max-height: 12px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  margin: 0 !important;

  border: none !important;
  background: transparent !important;
  box-shadow: none !important;

  border-radius: 2px !important;
  overflow: hidden !important;

  flex: 0 0 18px !important;
  line-height: 0 !important;
}

.flag-button img {
  width: 18px !important;
  height: 12px !important;

  min-width: 18px !important;
  max-width: 18px !important;
  min-height: 12px !important;
  max-height: 12px !important;

  display: block !important;
  object-fit: cover !important;
  border-radius: 2px !important;
}

.flag-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* Mobile */
@media (max-width: 768px) {
  .flag-button {
    width: 16px !important;
    height: 10px !important;

    min-width: 16px !important;
    max-width: 16px !important;
    min-height: 10px !important;
    max-height: 10px !important;

    flex: 0 0 16px !important;
  }

  .flag-button img {
    width: 16px !important;
    height: 10px !important;

    min-width: 16px !important;
    max-width: 16px !important;
    min-height: 10px !important;
    max-height: 10px !important;
  }
}



/* RAV3 dashboard/admin additions */
.header-logo img{width:115px;height:auto;display:block}.brand-header{background:#100a18;border:1px solid rgba(192,132,252,.2);box-shadow:0 18px 50px rgba(0,0,0,.35)}.brand-header img{height:72px;max-width:70%;filter:none}.brand-content{background:#100a18!important;border:1px solid rgba(192,132,252,.16)!important;color:#fff!important}.brand-content h1,.brand-content h2,.brand-content h3{color:#c084fc}.admin-content{width:min(1280px,92vw)!important;max-width:none!important}.admin-section{margin-top:30px;padding:22px;border:1px solid rgba(192,132,252,.14);border-radius:16px;background:#0b0711}.admin-section__title{display:flex;align-items:center;justify-content:space-between}.admin-section__title span{display:grid;width:34px;height:34px;place-items:center;border-radius:50%;background:#7c3aed}.admin-scroll{overflow:auto}.admin-table{min-width:1050px}.actions{display:flex;gap:8px}.actions form{margin:0}.actions button,.event-approval-actions button{width:auto!important;margin:0!important;background:#7c3aed!important;color:#fff!important;border-color:#a855f7!important}.actions .danger,.event-approval-actions .danger{background:#3a1421!important;border-color:#ef476f!important}.event-approval-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:18px}.event-approval-card{overflow:hidden;border:1px solid rgba(192,132,252,.16);border-radius:16px;background:#14101d}.event-approval-flyer{aspect-ratio:16/10;background:#08050d}.event-approval-flyer img{width:100%;height:100%;object-fit:cover}.event-approval-body{padding:18px}.event-approval-body dl{display:grid;gap:8px}.event-approval-body dl div{display:flex;justify-content:space-between;gap:20px}.event-approval-body dt{color:#a9a2b8}.event-approval-body dd{margin:0;text-align:right}.event-approval-actions{display:flex;gap:10px;flex-wrap:wrap}.event-approval-actions form{display:flex;gap:7px}.event-approval-actions input{min-width:130px;padding:8px;border-radius:7px;border:1px solid #4a3a5d;background:#08050d;color:#fff}.event-form-card{width:min(720px,92vw)!important}.event-submission-form{display:grid;gap:16px;text-align:left}.event-submission-form label{display:grid;gap:7px;color:#ddd}.event-submission-form input,.event-submission-form select,.event-submission-form textarea{width:100%;padding:12px;border:1px solid #4a3a5d;border-radius:8px;background:#08050d;color:#fff;box-sizing:border-box}.form-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.dashboard-actions{display:flex;gap:12px;justify-content:center;margin:24px 0}.dashboard-link{padding:12px 16px;border:1px solid #6b4d8b;border-radius:9px;color:#fff;text-decoration:none}.dashboard-link.primary{background:#7c3aed}.my-events{margin:28px 0;text-align:left}.my-events article{display:flex;justify-content:space-between;gap:20px;padding:13px;border-bottom:1px solid rgba(255,255,255,.08)}.my-events article div{display:grid;gap:4px}.my-events small{color:#aaa}.submission-status{padding:5px 9px;border-radius:999px;font-size:11px}.status-pending{background:#4a3714;color:#fde68a}.status-approved{background:#123a29;color:#86efac}.status-rejected{background:#421727;color:#fda4af}.validation-card{max-width:520px!important;text-align:center}.validation-icon{display:grid;width:90px;height:90px;margin:auto;place-items:center;border-radius:50%;font-size:52px;font-weight:900}.validation-icon.valid{background:#22c55e;color:#04140a}.validation-icon.invalid{background:#ef4444;color:#fff}@media(max-width:650px){.form-two{grid-template-columns:1fr}.event-approval-actions form{width:100%;flex-direction:column}.dashboard-actions{flex-direction:column}}


/* =========================================================
   ORGANIZER REGISTRATION
   ========================================================= */

.registration-page {
  align-items: flex-start;
  padding: 32px 24px 80px;
  box-sizing: border-box;
}

.auth-card--registration {
  width: min(1560px, calc(100vw - 48px));
  max-width: none;
  padding: 42px 48px;
  text-align: left;
}

.auth-card--registration > h2,
.auth-card--registration > .subtitle,
.auth-card--registration > .footer {
  text-align: center;
}

.registration-logo .logo-circle {
  width: 190px;
  height: 190px;
}

.registration-logo .logo-circle img {
  width: 135px;
}

.organizer-policy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 36px;
  padding: 28px;
  border: 1px solid rgba(192, 132, 252, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.16), transparent 34%),
    rgba(124, 58, 237, 0.06);
  color: #eaeaea;
}

.organizer-policy h3 {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: #ffffff;
  font-size: 24px;
}

.organizer-policy__block {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.16);
}

.organizer-policy__block:last-of-type {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.organizer-policy__block--featured {
  border-color: rgba(192, 132, 252, 0.38);
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(0, 0, 0, 0.18));
}

.organizer-policy__block h4 {
  margin: 0 0 7px;
  color: #d8b4fe;
  font-size: 14px;
}

.organizer-policy__block p,
.organizer-policy__block li,
.organizer-policy__legal {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.68;
}

.organizer-policy__block p {
  margin: 0;
}

.organizer-policy__block ol {
  margin: 0;
  padding-left: 22px;
}

.organizer-policy__block li + li {
  margin-top: 8px;
}

.organizer-policy__legal {
  grid-column: 1 / -1;
  margin: 0;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.24);
}

.organizer-policy__free-highlight {
  margin: 0 0 13px !important;
  padding: 13px 15px;
  border: 1px solid rgba(216, 180, 254, 0.36);
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.16);
  color: #ffffff !important;
  font-size: 15px !important;
}

.organizer-policy__free-highlight strong {
  color: #ffffff;
}

.organizer-policy__free-contract {
  margin: 15px 0 0 !important;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.organizer-registration-form {
  display: grid;
  width: min(920px, 100%);
  margin: 0 auto;
}

.registration-section-title {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0 14px;
}

.registration-section-title > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(192, 132, 252, 0.42);
  border-radius: 50%;
  color: #d8b4fe;
  font-size: 11px;
  font-weight: 800;
}

.registration-section-title h3 {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
}

.auth-card--registration .file-label {
  margin: 6px 0 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
}

.registration-file-note {
  margin: -2px 0 16px;
  color: rgba(255, 255, 255, 0.50);
  font-size: 11px;
}

.organizer-acceptance {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0 18px;
  padding: 14px;
  border: 1px solid rgba(192, 132, 252, 0.20);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.5;
}

.page-wrapper .auth-card .organizer-acceptance input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: #a855f7;
}

@media (max-width: 1050px) {
  .auth-card--registration {
    width: min(100% - 32px, 980px);
    padding: 34px 30px;
  }

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

  .organizer-policy h3,
  .organizer-policy__legal {
    grid-column: 1;
  }
}

@media (max-width: 620px) {
  .registration-page {
    padding: 20px 9px 60px;
  }

  .auth-card--registration {
    width: calc(100vw - 18px);
    padding: 22px 16px;
  }

  .organizer-policy {
    padding: 14px;
    gap: 12px;
  }

  .organizer-policy__block {
    padding: 16px;
  }

  .organizer-policy__block p,
  .organizer-policy__block li,
  .organizer-policy__legal {
    font-size: 13px;
  }

  .registration-logo .logo-circle {
    width: 150px;
    height: 150px;
  }

  .registration-logo .logo-circle img {
    width: 110px;
  }
}


/* =========================================================
   ORGANIZER LEGAL DECLARATION
   ========================================================= */

.organizer-declaration {
  margin: -8px 0 18px;
  padding: 0 14px 0 42px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  font-style: italic;
  line-height: 1.55;
}


/* =========================================================
   ADMIN ENCRYPTED APPROVAL FIELDS
   ========================================================= */

.admin-table {
  min-width: 1450px !important;
}

.admin-approval-cell {
  min-width: 360px;
  align-items: flex-start;
  flex-direction: column;
}

.admin-contract-form {
  display: grid;
  gap: 9px;
  width: 100%;
  margin: 0;
}

.admin-contract-form label {
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.admin-contract-form input,
.admin-contract-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid rgba(192, 132, 252, 0.24);
  border-radius: 8px;
  background: #08050d;
  color: #ffffff;
  font-size: 12px;
}

.admin-contract-form textarea {
  resize: vertical;
}

.admin-encryption-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  font-style: italic;
  line-height: 1.4;
}


/* =========================================================
   USER CONTRACT MODAL
   ========================================================= */

.contract-read-button {
  width: auto !important;
  min-width: 220px;
  height: 36px !important;
  margin: -3px 0 14px 42px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(192, 132, 252, 0.35) !important;
  background: rgba(124, 58, 237, 0.13) !important;
  color: #ffffff !important;
  font-size: 12px !important;
}

.contract-modal[hidden] {
  display: none;
}

.contract-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.contract-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}

.contract-modal__dialog {
  position: relative;
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 34px);
  margin: 17px auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid rgba(192, 132, 252, 0.32);
  border-radius: 16px;
  background: #0b0712;
  color: #ffffff;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.contract-modal__header,
.contract-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
}

.contract-modal__header h3 {
  margin: 0;
  font-size: 18px;
}

.contract-modal__close {
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 26px !important;
  line-height: 1 !important;
}

.contract-modal__body {
  min-height: 0;
  padding: 20px;
  overflow: auto;
}

.contract-modal__body pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 1.55;
}

.contract-modal__actions {
  justify-content: flex-end;
}

.contract-modal__secondary,
.contract-modal__primary {
  width: auto !important;
  min-width: 150px;
  margin: 0 !important;
  padding: 0 16px !important;
}

.contract-modal__secondary {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

.contract-modal__primary {
  background: #ffffff !important;
  color: #000000 !important;
}

.contract-modal-open {
  overflow: hidden;
}

.main-footer a.url_text_footer {
  display: inline-block;
  margin-top: 7px;
}

@media (max-width: 620px) {
  .contract-read-button {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .contract-modal__dialog {
    width: calc(100vw - 14px);
    max-height: calc(100vh - 14px);
    margin: 7px auto;
  }

  .contract-modal__header,
  .contract-modal__actions {
    padding: 13px;
  }

  .contract-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contract-modal__secondary,
  .contract-modal__primary {
    width: 100% !important;
  }
}


/* Footer contract link uses the same visual style as regular footer links. */
.main-footer .url_text_footer_base {
  color: #fff;
  text-decoration: none;
  position: relative;
  display: inline-block;
  margin-top: 7px;
  font-weight: inherit;
}

.main-footer .url_text_footer_base::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: #fff;
  transition: width 0.25s ease;
}

.main-footer .url_text_footer_base:hover::after,
.main-footer .url_text_footer_base:focus-visible::after {
  width: 100%;
}


/* =========================================================
   REGISTRATION PHONE AND PASSWORD REQUIREMENTS
   ========================================================= */

.phone-format-advice,
.phone-match-text,
.password-match-text {
  margin-top: -6px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}

.phone-match-text.is-valid,
.password-match-text.is-valid {
  color: #2ecc71;
}

.phone-match-text.is-invalid,
.password-match-text.is-invalid {
  color: #e74c3c;
}

.password-rules {
  display: grid;
  gap: 4px;
  margin: -2px 0 12px;
  padding: 0;
  list-style: none;
  text-align: left;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.password-rules li {
  position: relative;
  padding-left: 20px;
}

.password-rules li::before {
  content: "×";
  position: absolute;
  left: 0;
  top: 0;
  color: #e74c3c;
  font-weight: 800;
}

.password-rules li.is-valid {
  color: #2ecc71;
}

.password-rules li.is-valid::before {
  content: "✓";
  color: #2ecc71;
}

.password-rules li.is-invalid {
  color: rgba(255, 255, 255, 0.62);
}


/* =========================================================
   ORGANIZER EVENT QR TICKET SCANNER
   ========================================================= */

.my-event-card__actions {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row !important;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-link--scan {
  background: #134e4a;
  border-color: #2dd4bf;
  color: #ecfeff;
}

.dashboard-link--contract {
  font-size: 12px;
  padding: 9px 12px;
}

.scanner-layout .brand-content {
  width: min(1100px, calc(100vw - 24px));
}

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

.scanner-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 12px;
}

.scanner-actions button.dashboard-link {
  cursor: pointer;
  background: transparent;
}

.scanner-actions button.dashboard-link.primary {
  background: #7c3aed;
}

.scanner-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.scanner-help {
  max-width: 760px;
  margin: 0 auto 18px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.scanner-warning {
  margin: 14px auto 18px;
  max-width: 760px;
  padding: 12px 14px;
  border: 1px solid rgba(253, 224, 71, 0.45);
  border-radius: 12px;
  background: rgba(113, 63, 18, 0.35);
  color: #fef08a;
  font-size: 13px;
}

.scanner-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.scanner-card,
.scanner-result {
  border: 1px solid rgba(192, 132, 252, 0.22);
  border-radius: 18px;
  background: rgba(8, 5, 13, 0.72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.scanner-card {
  padding: 14px;
  min-height: 360px;
}

.qr-reader-box {
  overflow: hidden;
  border-radius: 14px;
  min-height: 320px;
}

.qr-reader-box video {
  border-radius: 14px;
}

.scanner-result {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.scanner-result__icon {
  display: grid;
  width: 92px;
  height: 92px;
  margin: 0 auto 8px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
}

.scanner-result h2,
.scanner-result p {
  margin: 0;
}

.scanner-result p {
  color: rgba(255, 255, 255, 0.72);
  word-break: break-word;
}

.scanner-result--success {
  border-color: rgba(34, 197, 94, 0.65);
  background: rgba(5, 46, 22, 0.56);
}

.scanner-result--success .scanner-result__icon {
  background: #22c55e;
  color: #04140a;
}

.scanner-result--error {
  border-color: rgba(239, 68, 68, 0.65);
  background: rgba(69, 10, 10, 0.54);
}

.scanner-result--error .scanner-result__icon {
  background: #ef4444;
  color: #ffffff;
}

.scanner-result--warning {
  border-color: rgba(250, 204, 21, 0.70);
  background: rgba(113, 63, 18, 0.48);
}

.scanner-result--warning .scanner-result__icon {
  background: #facc15;
  color: #1c1202;
}

.scanner-result--pending .scanner-result__icon {
  background: #7c3aed;
  color: #ffffff;
}

.scanner-ticket-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 12px;
  margin: 16px 0 0;
  text-align: left;
}

.scanner-ticket-details dt {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

.scanner-ticket-details dd {
  margin: 0;
  color: #ffffff;
  font-size: 12px;
  word-break: break-word;
}

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

  .my-event-card__actions {
    justify-content: flex-start;
  }

  .dashboard-link--scan,
  .dashboard-link--contract {
    width: 100%;
    text-align: center;
  }
}


/* =========================================================
   LOGOUT BUTTON POSITIONED BELOW MFA
   ========================================================= */

.security-section {
  display: grid;
  gap: 12px;
}

.security-action-form {
  display: flex;
  justify-content: center;
  margin: 0;
}

.brand-content .security-action-form .security-button,
.admin-content .security-action-form .security-button {
  width: auto;
  min-width: min(100%, 320px);
  height: 44px;
  margin: 0;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid rgba(192, 132, 252, 0.42);
  background: linear-gradient(180deg, #7c3aed, #5b21b6);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.15px;
  cursor: pointer;
  box-shadow:
    0 12px 28px rgba(91, 33, 182, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition:
    transform 0.12s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.brand-content .security-action-form .security-button:hover,
.admin-content .security-action-form .security-button:hover {
  background: linear-gradient(180deg, #8b5cf6, #6d28d9);
  color: #ffffff;
  box-shadow:
    0 16px 34px rgba(124, 58, 237, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand-content .security-action-form .security-button:active,
.admin-content .security-action-form .security-button:active {
  transform: translateY(1px);
}

.logout-action-form {
  margin-top: 2px;
}

.brand-content .logout-action-form .security-button--logout,
.admin-content .logout-action-form .security-button--logout {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(192, 132, 252, 0.50);
  color: #f5f3ff;
  box-shadow: none;
}

.brand-content .logout-action-form .security-button--logout:hover,
.admin-content .logout-action-form .security-button--logout:hover {
  background: rgba(124, 58, 237, 0.32);
  border-color: rgba(216, 180, 254, 0.72);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.28);
}

@media (max-width: 620px) {
  .brand-content .security-action-form .security-button,
  .admin-content .security-action-form .security-button {
    width: 100%;
    min-width: 0;
  }
}


/* =========================================================
   ADMIN HOME BUTTON BELOW LOGOUT
   ========================================================= */

.home-action-form {
  margin-top: 2px;
}

.brand-content .home-action-form .security-button--home,
.admin-content .home-action-form .security-button--home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: min(100%, 320px);
  height: 44px;
  margin: 0;
  padding: 0 18px;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(192, 132, 252, 0.50);
  background: rgba(124, 58, 237, 0.18);
  color: #f5f3ff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.15px;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.brand-content .home-action-form .security-button--home:hover,
.admin-content .home-action-form .security-button--home:hover {
  background: rgba(124, 58, 237, 0.32);
  border-color: rgba(216, 180, 254, 0.72);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.28);
}

.brand-content .home-action-form .security-button--home:active,
.admin-content .home-action-form .security-button--home:active {
  transform: translateY(1px);
}

@media (max-width: 620px) {
  .brand-content .home-action-form .security-button--home,
  .admin-content .home-action-form .security-button--home {
    width: 100%;
    min-width: 0;
  }
}


/* =========================================================
   USER DASHBOARD WIDER + SOLD TICKETS COUNTER
   ========================================================= */

.brand-content.user-dashboard {
  max-width: 780px; /* 30% wider than the original 600px panel */
}

.my-event-card__sales {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  padding: 5px 9px;
  border: 1px solid rgba(192, 132, 252, 0.32);
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.13);
  color: rgba(255, 255, 255, 0.82) !important;
  font-weight: 700;
}

.my-event-card__sales strong {
  color: #d8b4fe;
  font-weight: 900;
}

@media (max-width: 860px) {
  .brand-content.user-dashboard {
    max-width: calc(100vw - 28px);
  }
}


/* =========================================================
   ADMIN PAYOUTS + TIER BREAKDOWN
   ========================================================= */

.tier-inline {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid rgba(192, 132, 252, 0.30);
  background: rgba(124, 58, 237, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  white-space: nowrap;
}

.admin-payout-table {
  min-width: 1180px !important;
}

.payout-tier-breakdown {
  display: grid;
  gap: 3px;
  margin-top: 5px;
}

.payout-tier-breakdown small {
  color: rgba(255, 255, 255, 0.62);
}

.payout-confirm-form {
  display: grid;
  gap: 8px;
  min-width: 150px;
}

.payout-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
}

.payout-checkbox input {
  width: auto;
  height: auto;
  margin: 0;
}

.payout-confirm-form button {
  width: 100%;
  height: 36px;
  margin: 0;
  border: 1px solid rgba(192, 132, 252, 0.42);
  border-radius: 9px;
  background: linear-gradient(180deg, #7c3aed, #5b21b6);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}


/* =========================================================
   ADMIN APPROVAL CLABE + PAYOUT FISCAL DATA
   ========================================================= */

.admin-payout-table {
  min-width: 1850px !important;
}

.admin-payout-table code {
  color: #ffffff;
  font-size: 12px;
  word-break: break-all;
}

.payout-fiscal-address {
  min-width: 240px;
  max-width: 360px;
  white-space: normal;
  line-height: 1.35;
}


/* =========================================================
   PAYOUT INVOICE BREAKDOWN BY TIER
   ========================================================= */

.admin-payout-table {
  min-width: 2400px !important;
}

.payout-tier-money {
  min-width: 130px;
}

.payout-tier-money strong {
  color: #d8b4fe;
}

.payout-tier-money small {
  color: rgba(255, 255, 255, 0.62);
}


/* =========================================================
   RAV3PASS PNG LOGOS
   ========================================================= */

.brand-header {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand-header img {
  height: 92px;
  max-width: min(760px, 92vw);
  object-fit: contain;
}

.logo-circle {
  background: transparent;
}

.logo-circle img {
  width: 230px;
  max-height: 230px;
  object-fit: contain;
}

.digital-ticket__brand img {
  width: 260px;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 620px) {
  .brand-header img {
    height: 64px;
  }

  .logo-circle img {
    width: 190px;
    max-height: 190px;
  }
}


/* =========================================================
   LOGIN FULL RAV3PASS LOGO
   ========================================================= */

.login-logo-full {
  width: 100%;
  margin: 0 auto 18px;
}

.login-logo-full__image {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

@media (max-width: 520px) {
  .login-logo-full__image {
    width: min(100%, 310px);
  }
}


/* =========================================================
   CLOUDFLARE TURNSTILE
   ========================================================= */

.turnstile-wrapper {
  display: flex;
  justify-content: center;
  margin: 10px 0 14px;
  min-height: 65px;
}

.turnstile-wrapper .cf-turnstile {
  display: inline-block;
}



/* =========================================================
   REGISTER FULL RAV3PASS LOGO
   ========================================================= */

.registration-logo-full {
  width: 100%;
  margin: 0 auto 18px;
}

.registration-logo-full__image {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

@media (max-width: 520px) {
  .registration-logo-full__image {
    width: min(100%, 310px);
  }
}


/* =========================================================
   REGISTER LOGO ONE-TENTH SIZE
   ========================================================= */

.registration-logo-full {
  width: 100%;
  margin: 0 auto 10px;
}

.registration-logo-full__image {
  width: 36px !important;
  max-width: 36px !important;
  height: auto !important;
  object-fit: contain;
}

@media (max-width: 520px) {
  .registration-logo-full__image {
    width: 31px !important;
    max-width: 31px !important;
  }
}


/* =========================================================
   REGISTER LOGO 5X SIZE
   ========================================================= */

.registration-logo-full {
  width: 100%;
  margin: 0 auto 14px;
}

.registration-logo-full__image {
  width: 180px !important;
  max-width: 180px !important;
  height: auto !important;
  object-fit: contain;
}

@media (max-width: 520px) {
  .registration-logo-full__image {
    width: 155px !important;
    max-width: 155px !important;
  }
}

/* =========================================================
   RAV3PASS PRIMARY AUTH ACTION
   Same purple standard used across the application.
   ========================================================= */
.page-wrapper .auth-card button.auth-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(192, 132, 252, 0.46);
  border-radius: 10px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.24);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease;
}

.page-wrapper .auth-card button.auth-primary-button:hover {
  border-color: rgba(216, 180, 254, 0.65);
  background: linear-gradient(135deg, #b264ff, #8b46ef);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.34);
  transform: translateY(-1px);
}

.page-wrapper .auth-card button.auth-primary-button:active {
  transform: translateY(1px);
}

.page-wrapper .auth-card button.auth-primary-button:focus-visible {
  outline: 2px solid #d8b4fe;
  outline-offset: 3px;
}

.page-wrapper .auth-card button.auth-primary-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

