:root {
  color-scheme: dark;
  --madicut-account-bg: #08080b;
  --madicut-account-panel: #111117;
  --madicut-account-panel-raised: #181820;
  --madicut-account-panel-hover: #20202a;
  --madicut-account-ink: #f7f5fb;
  --madicut-account-muted: #aaa5b2;
  --madicut-account-subtle: #777381;
  --madicut-account-line: rgba(255, 255, 255, 0.11);
  --madicut-account-line-strong: rgba(255, 255, 255, 0.18);
  --madicut-account-violet: #7c63ff;
  --madicut-account-violet-bright: #a595ff;
  --madicut-account-violet-deep: #5636ed;
  --madicut-account-lime: #b8ff28;
  --madicut-account-danger: #ff7272;
  --madicut-account-radius: 14px;
  --madicut-account-shadow: 0 22px 64px rgba(0, 0, 0, 0.28);
  --pf-v5-global--primary-color--100: var(--madicut-account-violet);
  --pf-v5-global--primary-color--200: var(--madicut-account-violet-deep);
  --pf-v5-global--BackgroundColor--100: var(--madicut-account-bg);
  --pf-v5-global--BackgroundColor--200: var(--madicut-account-panel);
  --pf-v5-global--Color--100: var(--madicut-account-ink);
  --pf-v5-global--Color--200: var(--madicut-account-muted);
  --pf-v5-global--BorderColor--100: var(--madicut-account-line);
  --pf-v5-global--link--Color: var(--madicut-account-violet-bright);
}

html,
body,
#root {
  min-height: 100%;
  background: var(--madicut-account-bg);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 88% 5%, rgba(124, 99, 255, 0.16), transparent 30rem),
    radial-gradient(circle at 32% 95%, rgba(184, 255, 40, 0.045), transparent 24rem),
    var(--madicut-account-bg) !important;
  color: var(--madicut-account-ink) !important;
  font-family:
    "Pretendard Variable", Pretendard, "Noto Sans KR", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.pf-v5-c-page {
  min-height: 100vh;
  background: transparent !important;
  color: var(--madicut-account-ink);
}

/* Product masthead */
.pf-v5-c-masthead {
  min-height: 68px;
  border-bottom: 1px solid var(--madicut-account-line);
  background: rgba(13, 13, 18, 0.94) !important;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}

.pf-v5-c-masthead__main {
  min-width: 284px;
}

.pf-v5-c-masthead__brand {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  min-width: 178px;
  min-height: 44px;
  color: var(--madicut-account-ink) !important;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-decoration: none !important;
}

.pf-v5-c-masthead__brand::before {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  background:
    url("../img/madicut-mark.png") center / 38px 38px no-repeat,
    #15151d;
  box-shadow:
    0 8px 24px rgba(124, 99, 255, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  content: "";
}

.pf-v5-c-masthead__brand::after {
  content: "MADI CUT";
}

.pf-v5-c-masthead__brand img {
  display: none !important;
}

.pf-v5-c-masthead__content {
  color: var(--madicut-account-ink);
}

.pf-v5-c-masthead .pf-v5-c-menu-toggle {
  --pf-v5-c-menu-toggle--Color: var(--madicut-account-ink);
  --pf-v5-c-menu-toggle--BackgroundColor: rgba(255, 255, 255, 0.045);
  min-height: 40px;
  border: 1px solid var(--madicut-account-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045) !important;
  color: var(--madicut-account-ink) !important;
}

.pf-v5-c-masthead .pf-v5-c-menu-toggle:hover {
  border-color: rgba(124, 99, 255, 0.48);
  background: rgba(124, 99, 255, 0.11) !important;
}

.pf-v5-c-masthead .pf-v5-c-button {
  color: var(--madicut-account-muted);
}

/* Navigation */
.pf-v5-c-page__sidebar {
  width: 284px;
  border-right: 1px solid var(--madicut-account-line);
  background:
    linear-gradient(180deg, rgba(124, 99, 255, 0.055), transparent 18rem),
    rgba(14, 14, 19, 0.98) !important;
  box-shadow: 18px 0 48px rgba(0, 0, 0, 0.14);
}

.pf-v5-c-page__sidebar-body {
  padding: 22px 14px;
}

.pf-v5-c-nav {
  --pf-v5-c-nav__link--Color: var(--madicut-account-muted);
  --pf-v5-c-nav__link--hover--Color: var(--madicut-account-ink);
  --pf-v5-c-nav__link--m-current--Color: var(--madicut-account-ink);
  background: transparent !important;
}

.pf-v5-c-nav__item {
  margin-bottom: 5px;
}

.pf-v5-c-nav__link,
.pf-v5-c-nav__link.pf-m-expandable {
  position: relative;
  min-height: 46px;
  padding: 12px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--madicut-account-muted) !important;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.pf-v5-c-nav__link:hover {
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.045) !important;
  color: var(--madicut-account-ink) !important;
  transform: translateX(2px);
}

.pf-v5-c-nav__link.pf-m-current {
  border-color: rgba(124, 99, 255, 0.28);
  background:
    linear-gradient(90deg, rgba(124, 99, 255, 0.22), rgba(124, 99, 255, 0.07)) !important;
  box-shadow: inset 3px 0 0 var(--madicut-account-lime);
  color: var(--madicut-account-ink) !important;
}

.pf-v5-c-nav__link.pf-m-current::after {
  border-color: transparent !important;
}

.pf-v5-c-nav__subnav {
  margin: 5px 0 9px 13px;
  padding-left: 9px;
  border-left: 1px solid var(--madicut-account-line);
}

.pf-v5-c-nav__subnav .pf-v5-c-nav__link {
  min-height: 40px;
  padding-block: 9px;
  font-size: 13px;
}

/* Main account workspace */
.pf-v5-c-page__main {
  min-width: 0;
  background:
    radial-gradient(circle at 85% -10%, rgba(124, 99, 255, 0.13), transparent 34rem),
    transparent !important;
  color: var(--madicut-account-ink);
}

.pf-v5-c-page__main-section,
.pf-v5-c-page__main-section.pf-m-light {
  background: transparent !important;
  color: var(--madicut-account-ink);
}

.pf-v5-c-page__main-section:not([class*="_sticky_"]) {
  padding: 28px clamp(24px, 4vw, 58px);
}

.pf-v5-c-page__main-section:first-child {
  padding-top: 38px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--madicut-account-line);
}

.pf-v5-c-page__main-section > * {
  width: 100%;
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}

.pf-v5-c-page__main-section[class*="_sticky_"] {
  padding: 18px clamp(24px, 4vw, 58px);
  border-top: 1px solid var(--madicut-account-line);
  background: rgba(10, 10, 14, 0.92) !important;
  box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.pf-v5-c-page__main-section[class*="_sticky_"] > * {
  max-width: 1120px;
}

.pf-v5-c-title,
.pf-v5-c-content h1,
.pf-v5-c-content h2,
.pf-v5-c-content h3,
.pf-v5-c-form h1,
.pf-v5-c-form h2,
.pf-v5-c-form h3 {
  color: var(--madicut-account-ink) !important;
  letter-spacing: -0.025em;
}

.pf-v5-c-title.pf-m-2xl {
  font-size: clamp(28px, 3.1vw, 40px);
  font-weight: 780;
  line-height: 1.1;
}

.pf-v5-c-content,
.pf-v5-c-content p,
.pf-v5-c-helper-text,
.pf-v5-c-form__helper-text,
.pf-v5-c-description-list__description {
  color: var(--madicut-account-muted) !important;
}

.pf-v5-c-divider {
  --pf-v5-c-divider--BackgroundColor: var(--madicut-account-line);
}

a {
  color: var(--madicut-account-violet-bright);
}

a:hover {
  color: #c1b8ff;
}

/* Profile and settings forms */
.pf-v5-c-form {
  color: var(--madicut-account-ink);
}

.pf-v5-c-form.pf-m-horizontal {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--madicut-account-line);
  border-radius: var(--madicut-account-radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 44%),
    rgba(17, 17, 23, 0.92);
  box-shadow: var(--madicut-account-shadow);
}

.pf-v5-c-form__group {
  padding-block: 4px;
}

.pf-v5-c-form__label,
.pf-v5-c-form__label-text,
.pf-v5-c-form__group-label,
label {
  color: var(--madicut-account-ink) !important;
  font-weight: 680;
}

.pf-v5-c-form__label-required {
  color: var(--madicut-account-lime) !important;
}

.pf-v5-c-form-control {
  --pf-v5-c-form-control--BackgroundColor: var(--madicut-account-panel-raised);
  --pf-v5-c-form-control--Color: var(--madicut-account-ink);
  --pf-v5-c-form-control--before--BorderBottomColor: var(--madicut-account-line-strong);
  --pf-v5-c-form-control--hover--before--BorderBottomColor: rgba(124, 99, 255, 0.72);
  --pf-v5-c-form-control--focus--before--BorderBottomColor: var(--madicut-account-lime);
  min-height: 44px;
  overflow: hidden;
  border: 1px solid var(--madicut-account-line-strong) !important;
  border-radius: 10px !important;
  background: var(--madicut-account-panel-raised) !important;
  color: var(--madicut-account-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.pf-v5-c-form-control:hover {
  border-color: rgba(124, 99, 255, 0.55) !important;
}

.pf-v5-c-form-control:focus-within {
  border-color: var(--madicut-account-lime) !important;
  box-shadow:
    0 0 0 3px rgba(184, 255, 40, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.pf-v5-c-form-control input,
.pf-v5-c-form-control textarea,
.pf-v5-c-form-control select {
  min-height: 42px;
  background: transparent !important;
  color: var(--madicut-account-ink) !important;
  caret-color: var(--madicut-account-lime);
}

.pf-v5-c-form-control input::placeholder,
.pf-v5-c-form-control textarea::placeholder {
  color: var(--madicut-account-subtle);
}

.pf-v5-c-form-control.pf-m-disabled,
.pf-v5-c-form-control:has(input:disabled) {
  border-color: rgba(255, 255, 255, 0.07) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  opacity: 1;
}

.pf-v5-c-form-control input:disabled {
  color: #85818e !important;
  -webkit-text-fill-color: #85818e;
}

.pf-v5-c-menu-toggle.pf-m-full-width {
  --pf-v5-c-menu-toggle--Color: var(--madicut-account-ink);
  --pf-v5-c-menu-toggle--BackgroundColor: var(--madicut-account-panel-raised);
  min-height: 44px;
  border: 1px solid var(--madicut-account-line-strong);
  border-radius: 10px;
  background: var(--madicut-account-panel-raised) !important;
  color: var(--madicut-account-ink) !important;
}

.pf-v5-c-menu-toggle.pf-m-full-width:hover {
  border-color: rgba(124, 99, 255, 0.58);
}

/* Actions */
.pf-v5-c-button {
  min-height: 40px;
  border-radius: 9px;
  font-weight: 720;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease,
    box-shadow 140ms ease;
}

.pf-v5-c-button.pf-m-primary {
  --pf-v5-c-button--m-primary--BackgroundColor: var(--madicut-account-violet);
  --pf-v5-c-button--m-primary--hover--BackgroundColor: var(--madicut-account-violet-deep);
  border: 0;
  background:
    linear-gradient(135deg, var(--madicut-account-violet), var(--madicut-account-violet-deep)) !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(86, 54, 237, 0.3);
}

.pf-v5-c-button.pf-m-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(86, 54, 237, 0.4);
}

.pf-v5-c-button.pf-m-secondary {
  --pf-v5-c-button--m-secondary--Color: var(--madicut-account-ink);
  --pf-v5-c-button--m-secondary--after--BorderColor: var(--madicut-account-line-strong);
  border: 1px solid var(--madicut-account-line-strong);
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--madicut-account-ink) !important;
}

.pf-v5-c-button.pf-m-link,
.pf-v5-c-button.pf-m-plain {
  color: var(--madicut-account-violet-bright) !important;
}

.pf-v5-c-button.pf-m-danger {
  background: rgba(255, 114, 114, 0.12) !important;
  color: #ff9b9b !important;
}

/* Security, device and application lists */
.pf-v5-c-card,
.pf-v5-c-data-list,
.pf-v5-c-description-list {
  color: var(--madicut-account-ink);
}

.pf-v5-c-card {
  border: 1px solid var(--madicut-account-line);
  border-radius: var(--madicut-account-radius);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.035), transparent 45%),
    rgba(17, 17, 23, 0.94) !important;
  box-shadow: var(--madicut-account-shadow);
}

.pf-v5-c-card__title,
.pf-v5-c-card__body {
  color: var(--madicut-account-ink);
}

.pf-v5-c-data-list {
  overflow: hidden;
  border: 1px solid var(--madicut-account-line);
  border-radius: var(--madicut-account-radius);
  background: rgba(17, 17, 23, 0.94) !important;
  box-shadow: var(--madicut-account-shadow);
}

.pf-v5-c-data-list__item {
  border-bottom: 1px solid var(--madicut-account-line) !important;
  background: transparent !important;
  color: var(--madicut-account-ink);
}

.pf-v5-c-data-list__item:last-child {
  border-bottom: 0 !important;
}

.pf-v5-c-data-list__row {
  background: transparent !important;
  transition: background-color 140ms ease;
}

.pf-v5-c-data-list__row:hover {
  background: rgba(124, 99, 255, 0.055) !important;
}

.pf-v5-c-data-list__cell,
.pf-v5-c-data-list__cell strong,
.pf-v5-c-data-list__cell h2,
.pf-v5-c-data-list__cell h3 {
  color: var(--madicut-account-ink) !important;
}

.pf-v5-c-data-list__expandable-content {
  border-top: 1px solid var(--madicut-account-line);
  background: rgba(8, 8, 11, 0.42) !important;
  color: var(--madicut-account-muted);
}

.pf-v5-c-data-list__toggle .pf-v5-c-button,
.pf-v5-c-data-list__action .pf-v5-c-button {
  color: var(--madicut-account-violet-bright) !important;
}

.pf-v5-c-description-list__term,
.pf-v5-c-description-list__term > * {
  color: var(--madicut-account-subtle) !important;
}

.pf-v5-c-description-list__description,
.pf-v5-c-description-list__description > * {
  color: var(--madicut-account-ink) !important;
}

.pf-v5-c-label {
  border-radius: 999px;
  background: rgba(124, 99, 255, 0.13) !important;
  color: var(--madicut-account-violet-bright) !important;
}

/* Jump links, menus, dialogs and feedback */
.pf-v5-c-jump-links {
  --pf-v5-c-jump-links__link--Color: var(--madicut-account-muted);
  padding: 16px;
  border: 1px solid var(--madicut-account-line);
  border-radius: 12px;
  background: rgba(17, 17, 23, 0.78);
  color: var(--madicut-account-muted);
}

.pf-v5-c-jump-links__label,
.pf-v5-c-jump-links__link {
  color: var(--madicut-account-muted) !important;
}

.pf-v5-c-jump-links__link.pf-m-current,
.pf-v5-c-jump-links__link:hover {
  color: var(--madicut-account-violet-bright) !important;
}

.pf-v5-c-menu,
.pf-v5-c-popover__content,
.pf-v5-c-modal-box {
  border: 1px solid var(--madicut-account-line-strong);
  border-radius: 12px;
  background: var(--madicut-account-panel-raised) !important;
  color: var(--madicut-account-ink) !important;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.52);
}

.pf-v5-c-menu__item,
.pf-v5-c-menu__item-text,
.pf-v5-c-modal-box__title {
  color: var(--madicut-account-ink) !important;
}

.pf-v5-c-menu__item:hover {
  background: rgba(124, 99, 255, 0.13) !important;
}

.pf-v5-c-backdrop {
  background: rgba(2, 2, 4, 0.74) !important;
  backdrop-filter: blur(5px);
}

.pf-v5-c-alert {
  border: 1px solid var(--madicut-account-line-strong);
  border-radius: 11px;
  background: var(--madicut-account-panel-raised) !important;
  color: var(--madicut-account-ink);
}

.pf-v5-c-spinner {
  color: var(--madicut-account-violet-bright);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--madicut-account-lime) !important;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .pf-v5-c-masthead__main {
    min-width: auto;
  }

  .pf-v5-c-page__sidebar {
    width: min(284px, calc(100vw - 44px));
    box-shadow: 24px 0 70px rgba(0, 0, 0, 0.55);
  }

  .pf-v5-c-page__main-section:not([class*="_sticky_"]),
  .pf-v5-c-page__main-section[class*="_sticky_"] {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 560px) {
  .pf-v5-c-masthead {
    min-height: 60px;
  }

  .pf-v5-c-masthead__brand {
    min-width: 122px;
    min-height: 38px;
    gap: 9px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .pf-v5-c-masthead__brand::before {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    background-size: 32px 32px;
  }

  .pf-v5-c-page__main-section:not([class*="_sticky_"]),
  .pf-v5-c-page__main-section[class*="_sticky_"] {
    padding-right: 16px;
    padding-left: 16px;
  }

  .pf-v5-c-page__main-section:first-child {
    padding-top: 26px;
    padding-bottom: 20px;
  }

  .pf-v5-c-title.pf-m-2xl {
    font-size: 28px;
  }

  .pf-v5-c-form.pf-m-horizontal {
    padding: 18px 16px;
    border-radius: 12px;
  }

  .pf-v5-c-data-list__row,
  .pf-v5-c-data-list__content {
    min-width: 0;
  }

  .pf-v5-c-data-list__cell {
    overflow-wrap: anywhere;
  }

  .pf-v5-c-description-list {
    --pf-v5-c-description-list--GridTemplateColumns: minmax(0, 1fr);
  }

  .pf-v5-c-page__main-section[class*="_sticky_"] .pf-v5-c-button {
    min-width: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
