:root {
  --helion-bg: #f4f7fb;
  --helion-surface: rgba(255, 255, 255, 0.92);
  --helion-card: #ffffff;
  --helion-text: #111827;
  --helion-muted: #5c667a;
  --helion-border: rgba(15, 23, 42, 0.08);
  --helion-primary: #0071e3;
  --helion-primary-strong: #005fcc;
  --helion-danger: #c93026;
  --helion-success: #14805e;
  --helion-radius: 16px;
  --helion-radius-sm: 12px;
  --helion-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

html {
  background: radial-gradient(circle at top right, #ffffff 0%, #f2f6fc 55%, #e9f0fa 100%);
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color: var(--helion-text);
  background: transparent;
  line-height: 1.45;
  max-width: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
  color: #0f172a;
}

p, .uk-text-meta, .meta, .muted {
  color: var(--helion-muted);
}

a {
  color: var(--helion-primary);
}

a:hover,
a:focus {
  color: var(--helion-primary-strong);
}

.uk-container,
.container {
  box-sizing: border-box;
  width: min(1180px, calc(100% - 1rem));
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
}

.uk-card,
.card,
.tableWrap,
.sideCard,
.profilebox,
.brand,
.uk-modal-dialog,
.uk-alert,
.dropdown-menu {
  border-radius: var(--helion-radius);
  border: 1px solid var(--helion-border);
  box-shadow: var(--helion-shadow);
  background: var(--helion-card);
}

.uk-offcanvas-bar {
  border-radius: 0 !important;
}

.uk-button,
button,
input[type="submit"],
input[type="button"],
.btn {
  border-radius: 999px !important;
  text-transform: none !important;
  font-weight: 600;
}

.uk-button-primary,
.btn-primary {
  background: linear-gradient(180deg, #0a84ff 0%, #0071e3 100%) !important;
  border-color: #0066cc !important;
  color: #fff !important;
}

.uk-button-primary:hover,
.btn-primary:hover {
  background: linear-gradient(180deg, #1d8fff 0%, #0068d4 100%) !important;
}

.uk-button-danger,
.btn-danger {
  background: linear-gradient(180deg, #e85f57 0%, #d63a31 100%) !important;
  border-color: #b9342c !important;
  color: #fff !important;
}

.uk-input,
.uk-select,
.uk-textarea,
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  border-radius: var(--helion-radius-sm) !important;
  border: 1px solid var(--helion-border) !important;
  background: #ffffff !important;
  color: var(--helion-text);
}

.uk-input:focus,
.uk-select:focus,
.uk-textarea:focus,
.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(0, 113, 227, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.18) !important;
  outline: 0;
}

.uk-label,
.pill,
.badge {
  border-radius: 999px !important;
}

.uk-modal-dialog .uk-button,
.uk-modal-dialog button {
  min-width: 110px;
}

.uk-modal-dialog .uk-modal-title {
  font-weight: 700;
}

.uk-table th {
  font-weight: 700;
  color: #0f172a;
}

.uk-table td,
.table td {
  vertical-align: middle;
}

#wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#main,
.helion-main {
  flex: 1 1 auto;
}

body > footer,
body > #footer,
body > .helionFooter,
#wrapper > footer,
#wrapper > #footer,
#wrapper > .helionFooter {
  margin-top: auto !important;
}

#footer,
.helionFooter,
#page-footer {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 959px) {
  .uk-container,
  .container {
    width: min(1180px, calc(100% - .5rem));
    padding-left: 8px;
    padding-right: 8px;
  }

  .uk-table,
  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .uk-section {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  #footer .text-box,
  #footer .box,
  #footer form {
    width: 100% !important;
    margin: 0 0 18px 0 !important;
  }
}
