/* Component nội dung, workspace và footer của website public. */

.workspace-section {
padding-top: var(--public-section-gap);
}

body.public-home .auth-panel,
body.public-home .dashboard-panel {
width: min(1120px, 100%);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 60px rgba(21, 33, 61, 0.12);
  backdrop-filter: blur(18px);
}

.workspace-intro {
margin-top: 10px;
  max-width: none;
}

.auth-note-banner {
min-height: 0;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 49, 104, 0.08);
  border-radius: 18px;
  color: var(--accent-strong);
  background: linear-gradient(135deg, rgba(247, 249, 255, 0.94), rgba(255, 249, 235, 0.96));
  box-shadow: 0 12px 24px rgba(21, 33, 61, 0.06);
}

.auth-note-banner:empty {
display: none;
}

.auth-note-banner.success {
border-color: rgba(31, 49, 104, 0.12);
  color: var(--accent-strong);
}

.auth-note-banner.error {
border-color: rgba(180, 35, 24, 0.16);
  color: #b42318;
  background: linear-gradient(135deg, rgba(255, 247, 246, 0.96), rgba(255, 241, 238, 0.96));
}

.site-footer {
padding: var(--public-section-gap) 0 12px;
}

.site-footer-card {
overflow: hidden;
  padding: 24px 26px;
  border: 1px solid rgba(21, 33, 61, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(212, 163, 63, 0.16), transparent 22%),
    linear-gradient(135deg, #0d1830, #101b34 54%, #132247);
  box-shadow: 0 24px 48px rgba(21, 33, 61, 0.16);
}

.site-footer-top,
.site-footer-bottom {
display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer-top {
padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer-bottom {
display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding-top: 18px;
}

.site-footer-brand {
flex: 1 1 auto;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 16px;
  max-width: none;
}

.site-footer-brand > div {
flex: 1 1 auto;
  display: grid;
  width: 100%;
  gap: 8px;
  min-width: 0;
}

.site-footer-logo {
width: 64px;
  height: 64px;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 32px rgba(3, 8, 21, 0.22);
}

.site-footer-brand .eyebrow {
margin: 0;
  color: #f6d58e;
}

.site-footer-brand strong {
display: block;
  margin: 0;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.25;
  text-wrap: balance;
}

.site-footer-brand p {
color: rgba(255, 255, 255, 0.72);
  text-wrap: balance;
}

.site-footer-links {
display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer-links a {
padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
}

.site-footer-links a:hover {
color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.site-footer-contact {
display: flex;
  grid-column: 2;
  grid-row: 1;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.site-footer-contact-link {
display: inline-grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 12px 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.055);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.site-footer-contact-link:hover {
color: #ffffff;
  border-color: rgba(246, 213, 142, 0.36);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.site-footer-contact-icon {
display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #f6d58e;
  background: rgba(212, 163, 63, 0.14);
}

.site-footer-contact-icon svg {
width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer-contact-copy {
display: grid;
  gap: 2px;
}

.site-footer-contact-copy small {
color: rgba(246, 213, 142, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer-contact-copy strong {
color: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.site-footer-legal-actions {
grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
}

.site-footer-support-trigger {
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}

.site-footer-support-trigger {
display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-self: end;
  padding: 6px 2px;
  border: 0;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-footer-support-trigger:hover,
.site-footer-support-trigger:focus-visible {
color: #f6d58e;
}

.site-footer-support-trigger svg {
width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-modal {
z-index: 1300;
  padding: 24px;
  overflow-y: auto;
}

.support-dialog {
display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(760px, 100%);
  max-height: calc(100dvh - 48px);
  padding: 0;
  overflow: hidden;
  border-radius: 28px;
}

.support-dialog-header {
display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 30px 20px;
  border-bottom: 1px solid #e5eaf3;
  background: linear-gradient(120deg, #fff 62%, #fff8e9);
}

.support-dialog-header h2 {
margin: 4px 0 8px;
  font-size: clamp(27px, 4vw, 36px);
  line-height: 1.14;
}

.support-dialog-header p:last-child {
margin: 0;
  color: #63708d;
  line-height: 1.55;
}

.support-close {
display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid #d8e0ed;
  border-radius: 13px;
  color: #142143;
  background: #fff;
}

.support-close svg {
width: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.support-close:hover,
.support-close:focus-visible {
border-color: #203c82;
  color: #ffffff;
  background: #203c82;
}

.support-close:focus-visible {
outline: 3px solid rgba(32, 60, 130, 0.2);
  outline-offset: 2px;
}

.support-form {
display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
}

.support-form-scroll {
display: grid;
  min-height: 0;
  align-content: start;
  gap: 14px;
  padding: 22px 30px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.support-field-grid {
display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: start;
}

.support-detail-fields {
display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px 16px;
  align-items: start;
}

.support-detail-fields.is-payment {
grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
}

.support-payment-fields {
display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-top: 2px;
}

.support-order-field {
align-self: start;
}

.support-payment-fields[hidden],
.support-order-field[hidden],
.support-account-deletion[hidden] {
display: none;
}

.support-account-deletion {
display: grid;
gap: 14px;
padding: 16px;
border: 1px solid rgba(180, 35, 24, 0.2);
border-radius: 16px;
color: #65231d;
background: linear-gradient(135deg, #fff9f7, #fff3ef);
}

.support-account-deletion strong {
display: block;
margin-bottom: 5px;
color: #8f261d;
font-size: 15px;
}

.support-account-deletion p {
margin: 0;
color: #7b4a45;
font-size: 13px;
line-height: 1.55;
text-wrap: pretty;
}

.support-form .support-deletion-confirm {
display: grid;
grid-template-columns: 20px minmax(0, 1fr);
gap: 10px;
align-items: start;
padding-top: 13px;
border-top: 1px solid rgba(180, 35, 24, 0.14);
color: #65231d;
font-size: 13px;
line-height: 1.5;
cursor: pointer;
}

.support-form .support-deletion-confirm input {
width: 18px;
min-width: 18px;
height: 18px;
min-height: 18px;
margin: 2px 0 0;
padding: 0;
accent-color: #a83243;
}

.support-form input[readonly] {
color: #56627a;
background: #f3f5f9;
cursor: not-allowed;
}

.support-form label {
display: grid;
  min-width: 0;
  gap: 8px;
  color: #182545;
  font-size: 14px;
  font-weight: 700;
}

.support-form label small {
color: #8490a8;
  font-weight: 500;
}

.support-form input,
.support-form select,
.support-form textarea {
width: 100%;
  min-width: 0;
  border: 1px solid #d5deed;
  border-radius: 13px;
  color: #142143;
  background: #fff;
  font: inherit;
  font-weight: 400;
}

.support-form :is(input, textarea)::placeholder {
color: #8a94aa;
  font-weight: 400;
  opacity: 1;
}

.support-form input,
.support-form select {
height: 50px;
  min-height: 50px;
  padding: 0 14px;
}

.support-form textarea {
min-height: 78px;
  max-height: 260px;
  padding: 13px 14px;
  resize: vertical;
  line-height: 1.55;
  overflow-y: auto;
}

.support-form :is(input, select, textarea):focus {
border-color: #2a458e;
  outline: 3px solid rgba(42, 69, 142, 0.12);
}

.support-form .single-select-filter {
font-weight: 400;
}

.support-form .single-select-toggle {
min-height: 50px;
  height: 50px;
  padding: 0 42px 0 14px;
  border: 1px solid #d5deed;
  border-radius: 13px;
  color: #142143;
  background: #fff;
  box-shadow: none;
  font-size: 14px;
  font-weight: 400;
}

.support-form .single-select-toggle:is(:hover, :focus-visible),
.support-form .single-select-toggle[aria-expanded="true"] {
border-color: #2a458e;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(42, 69, 142, 0.12);
}

.support-form .single-select-toggle.is-placeholder .single-select-value,
.support-form .single-select-value {
color: #142143;
  font-size: 14px;
  font-weight: 400;
}

.support-form .single-select-toggle.is-placeholder .single-select-value {
color: #8a94aa;
}

.support-form .single-select-menu {
z-index: 40;
  max-height: min(276px, 42vh);
  gap: 4px;
  padding: 8px;
  border-color: #d8e0ed;
  border-radius: 13px;
  box-shadow: 0 18px 42px rgba(20, 33, 67, 0.16);
}

.support-form .single-select-filter[hidden],
.support-issue-locked[hidden] {
display: none;
}

.support-form .single-select-filter.has-fixed-menu .single-select-menu {
position: fixed;
  right: auto;
  bottom: auto;
  z-index: 1400;
  min-width: 0;
  max-width: none;
  margin: 0;
}

.support-issue-locked {
display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #d9e0eb;
  border-radius: 13px;
  color: #66738b;
  background: #f1f4f8;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  cursor: not-allowed;
}

.support-form .single-select-menu .single-select-option {
min-height: 40px;
  padding: 8px 36px 8px 11px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 400;
}

.support-form .single-select-menu .single-select-option.is-selected {
color: #203c82;
  background: #edf2ff;
  font-weight: 500;
}

.support-form .single-select-filter.is-disabled .single-select-toggle {
color: #142143;
  background: #f7f9fc;
  cursor: default;
  opacity: 1;
}

.support-upload-field {
display: grid;
  min-width: 0;
  gap: 8px;
}

.support-file-row {
display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0;
}

.support-upload-heading {
display: grid;
  gap: 3px;
}

.support-upload-heading > span {
color: #182545;
  font-size: 14px;
  font-weight: 700;
}

.support-upload-heading small,
.support-upload-help {
color: #8490a8;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.support-upload-meta {
display: flex;
  min-width: 0;
  gap: 7px;
  align-items: center;
  justify-content: space-between;
}

.support-upload-meta small {
min-width: 0;
  text-wrap: pretty;
}

.support-upload-meta > span {
flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: #53627f;
  background: #eef2f8;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.support-file-control {
display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px !important;
  min-height: 76px;
  padding: 11px 12px !important;
  border: 1px dashed #b9c7df;
  border-radius: 14px;
  color: #142143 !important;
  background: #fafcff;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.support-file-visual {
display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #eaf0fc;
}

.support-file-visual img {
display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.support-file-visual img[hidden] {
display: none;
}

.support-file-control:is(:hover, :focus-visible),
.support-file-control.is-dragging {
border-color: #31508f;
  outline: none;
  background: #f2f6ff;
  box-shadow: 0 0 0 3px rgba(49, 80, 143, 0.1);
}

.support-file-control.has-file {
border-style: solid;
  border-color: rgba(15, 118, 110, 0.35);
  background: #f2fbf9;
}

.support-file-control.has-error {
border-color: #c24141;
  background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(194, 65, 65, 0.1);
}

.support-file-control.is-disabled {
pointer-events: none;
  opacity: 0.62;
}

.support-file-control input[type="file"] {
position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.support-file-icon {
display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: 12px;
  color: #31508f;
  background: #eaf0fc;
}

.support-file-control.has-file .support-file-icon {
color: #08796f;
  background: #dcf3ef;
}

.support-file-control.has-file .support-file-visual {
background: #dcf3ef;
  box-shadow: inset 0 0 0 1px rgba(8, 121, 111, 0.14);
}

.support-file-icon svg {
width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-file-copy {
display: grid;
  min-width: 0;
  gap: 3px;
}

.support-file-copy strong {
overflow: hidden;
  color: #182545;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-file-preview {
overflow: hidden;
  color: #8490a8;
  font-size: 11px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-file-preview.has-file {
color: #08796f;
  font-weight: 500;
}

.support-file-button {
padding: 8px 11px;
  border: 1px solid #cbd6e9;
  border-radius: 10px;
  color: #284780;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.support-file-remove {
display: grid;
  width: 42px;
  min-width: 42px;
  min-height: 76px;
  margin-left: 8px;
  padding: 0;
  place-items: center;
  align-self: stretch;
  border: 1px solid #e6cfd2;
  border-radius: 14px;
  color: #9f3040;
  background: #fff8f8;
  box-shadow: none;
}

.support-file-remove[hidden] {
display: none;
}

.support-file-remove:hover {
color: #fff;
  background: #a83243;
}

.support-file-remove svg {
width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.support-upload-help {
margin: -1px 0 0;
  text-wrap: pretty;
}

.support-actions {
position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  justify-content: flex-end;
  margin: 0;
  padding: 14px 30px 18px;
  border-top: 1px solid #e7ebf3;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -12px 24px rgba(20, 33, 67, 0.04);
  backdrop-filter: blur(10px);
}

.support-actions button {
flex: 0 0 auto;
  min-height: 50px;
  padding: 0 22px;
  white-space: nowrap;
}
