:root {
  --background-color: #fff8f2;
  --accent-color: #ff6b2c;
  --surface-color: #fffdf9;
  --heading-color: #1f3145;
  --default-color: #33475f;
  --muted-color: #677b92;
  --border-color: #dbe7f3;
  --border-color-light: #edf3f9;
  --header-bg: rgb(255 252 248 / 0.94);
  --header-border: rgba(31, 49, 69, 0.1);
  --sidebar-bg: #18324a;
  --sidebar-border: rgba(255, 255, 255, 0.12);
  --sidebar-hover-bg: rgba(255, 255, 255, 0.12);
  --sidebar-active-bg: rgba(255, 255, 255, 0.18);
  --input-focus-border: #ff6b2c;
  --input-focus-ring: rgb(255 107 44 / 0.16);
  --success-color: #12b76a;
  --success-color-light: #dcfff0;
  --info-color: #1d7afc;
  --info-color-light: #e7f1ff;
  --danger-color: #d92d20;
  --danger-color-light: #fdecea;
  --warning-color: #ff8a00;
  --warning-color-light: #fff1dd;
}

body {
  background:
    radial-gradient(circle at top right, rgb(255 107 44 / 0.12), transparent 28%),
    radial-gradient(circle at left center, rgb(87 181 231 / 0.08), transparent 26%),
    radial-gradient(circle at bottom left, rgb(255 188 92 / 0.12), transparent 28%),
    var(--background-color);
}

.header {
  backdrop-filter: blur(10px);
}

.header-logo,
.sidebar-logo {
  gap: 0.65rem;
}

.header-logo img {
  height: 34px;
}

.header-logo span {
  letter-spacing: 0.02em;
}

.sidebar-logo img {
  height: 34px;
  filter: none;
}

.sidebar {
  position: fixed;
  background:
    radial-gradient(circle at top left, rgb(107 222 233 / 0.2), transparent 28%),
    radial-gradient(circle at 88% 12%, rgb(255 181 92 / 0.24), transparent 22%),
    radial-gradient(circle at bottom right, rgb(255 107 44 / 0.22), transparent 30%),
    linear-gradient(180deg, #274a68 0%, #1b3651 48%, #13293f 100%);
  box-shadow: 24px 0 60px rgb(16 41 63 / 0.22);
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.08), transparent 18%, transparent 78%, rgb(255 255 255 / 0.05)),
    linear-gradient(135deg, rgb(255 255 255 / 0.1), transparent 22%);
  pointer-events: none;
}

.sidebar-header,
.sidebar-footer {
  position: relative;
  z-index: 1;
  background: rgb(255 255 255 / 0.03);
  backdrop-filter: blur(10px);
}

.sidebar-nav {
  position: relative;
  z-index: 1;
}

.sidebar .nav-item > .nav-link {
  border: 1px solid transparent;
  backdrop-filter: blur(8px);
}

.sidebar .nav-item > .nav-link:hover,
.sidebar .nav-item > .nav-link.active,
.sidebar .nav-item.has-submenu.open > .nav-link {
  border-color: rgb(255 255 255 / 0.12);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
}

.sidebar .nav-item > .nav-link.active {
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.2), rgb(255 181 92 / 0.18));
}

.sidebar .nav-submenu {
  border-left-color: rgb(255 255 255 / 0.22);
}

.sidebar .nav-submenu > li > .nav-link::before {
  background-color: rgb(255 255 255 / 0.24);
}

.sidebar-footer-user {
  background: linear-gradient(135deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.06));
  border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
}

.page-header {
  padding: 1.25rem 1.35rem;
  border: 1px solid rgb(255 107 44 / 0.12);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgb(87 181 231 / 0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgb(255 188 92 / 0.12), transparent 28%),
    linear-gradient(135deg, rgb(255 255 255 / 0.94), rgb(248 252 255 / 0.98));
  box-shadow: 0 18px 40px rgb(31 49 69 / 0.08);
}

.card {
  position: relative;
  border-color: rgb(31 49 69 / 0.08);
  background:
    radial-gradient(circle at top right, rgb(87 181 231 / 0.06), transparent 28%),
    radial-gradient(circle at bottom left, rgb(255 188 92 / 0.08), transparent 30%),
    linear-gradient(180deg, rgb(255 255 255 / 0.99), rgb(250 252 255 / 0.97));
  box-shadow:
    0 18px 40px rgb(31 49 69 / 0.08),
    0 2px 8px rgb(31 49 69 / 0.04);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(87 181 231 / 0.34), transparent);
  pointer-events: none;
}

.card-header {
  background: transparent;
  border-bottom-color: rgb(31 49 69 / 0.08);
}

.card-lift,
.search-result-card,
.phpmk-footer-card,
.phpmk-user-card,
.phpmk-featured-user-card,
.domain-panel-card {
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-fast);
}

.card-lift:hover,
.search-result-card:hover,
.phpmk-footer-card:hover,
.phpmk-user-card:hover,
.phpmk-featured-user-card:hover,
.domain-panel-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 50px rgb(31 49 69 / 0.12),
    0 8px 18px rgb(31 49 69 / 0.08);
}

.search-result-card {
  border-color: rgb(31 49 69 / 0.08);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.98), rgb(246 251 255 / 0.94));
}

.search-result-card:hover {
  border-color: rgb(87 181 231 / 0.28);
}

.stat-card-icon,
.search-result-card-icon {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5);
}

.stat-card-icon.primary,
.search-result-card-icon.primary {
  background: linear-gradient(135deg, rgb(255 107 44 / 0.16), rgb(255 188 92 / 0.24));
}

.stat-card-icon.info,
.search-result-card-icon.info {
  background: linear-gradient(135deg, rgb(29 122 252 / 0.14), rgb(87 181 231 / 0.2));
}

.stat-card-icon.success,
.search-result-card-icon.success {
  background: linear-gradient(135deg, rgb(18 183 106 / 0.16), rgb(22 163 74 / 0.22));
}

.stat-card-icon.warning,
.search-result-card-icon.warning {
  background: linear-gradient(135deg, rgb(255 138 0 / 0.16), rgb(251 191 36 / 0.22));
}

@media (min-width: 1200px) {
  .sidebar-collapsed .sidebar-logo img {
    height: 30px;
  }
}

.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #ff7a33, #ffb457);
  user-select: none;
}

.avatar-placeholder-icon {
  font-size: 1.1em;
}

.avatar-icon-placeholder {
  color: #8c8e98;
  background: linear-gradient(135deg, #eef2f8, #d7dfeb);
  border: 1px solid rgb(140 142 152 / 0.18);
}

.user-dropdown .dropdown-toggle .avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
}

.user-dropdown-avatar.avatar-fallback,
.sidebar-footer-avatar.avatar-fallback {
  border-radius: var(--radius-full);
}

.documentation-menu .current > a,
.documentation-menu a[aria-current="page"] {
  color: var(--accent-color);
  font-weight: 600;
  background: linear-gradient(135deg, rgb(255 245 236 / 0.98), rgb(230 245 255 / 0.94));
}

.documentation-article .contribute,
.documentation-article #usernotes .head .action,
.documentation-article #usernotes .foot,
.documentation-article #usernotes .votes {
  display: none !important;
}
