/* DXIR Hosting - redesigned premium styles */
:root {
  --bg: #060b16;
  --bg-elevated: #0d1529;
  --card: #111b33;
  --card-soft: #0f1930;
  --line: rgba(136, 166, 219, 0.2);
  --line-strong: rgba(136, 166, 219, 0.34);
  --text: #e9f1ff;
  --muted: #9fb0d7;
  --accent: #7c5cff;
  --accent-2: #2bc2ff;
  --accent-3: #5b8cff;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-lg: 0 22px 58px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.32);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.18s;
  --dur-mid: 0.28s;
  --max: 1160px;
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 14px 26px rgba(43, 194, 255, 0.16);
  }
  50% {
    box-shadow: 0 16px 30px rgba(124, 92, 255, 0.2);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(700px 360px at 6% -10%, rgba(124, 92, 255, 0.26), transparent 60%),
    radial-gradient(680px 340px at 100% 0%, rgba(43, 194, 255, 0.18), transparent 58%),
    radial-gradient(520px 320px at 80% 100%, rgba(91, 140, 255, 0.16), transparent 68%),
    linear-gradient(180deg, #040917 0%, #050c1b 46%, #040916 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(18px);
  background: rgba(4, 9, 23, 0.72);
  border-bottom: 1px solid rgba(151, 179, 228, 0.14);
  transition: background var(--dur-mid) var(--ease-smooth), border-color var(--dur-mid) var(--ease-smooth);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a,
.nav-links button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
  position: relative;
  transition: all var(--dur-fast) var(--ease-smooth);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-fast) var(--ease-smooth);
}

.nav-links a:hover,
.nav-links button:hover,
.nav-links a.active {
  color: var(--text);
  border-color: rgba(136, 166, 219, 0.2);
  background: rgba(91, 140, 255, 0.12);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 26px rgba(43, 194, 255, 0.16);
  animation: glow-pulse 6s var(--ease-smooth) infinite;
}

.brand-mark svg {
  width: 30px;
  height: 30px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 600;
}

.hero {
  padding: 46px 0 64px;
  animation: fade-rise 0.36s var(--ease-smooth) both;
}

.page-shell {
  padding: 54px 0 80px;
  animation: fade-rise 0.36s var(--ease-smooth) both;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.32fr 0.78fr;
  gap: 18px;
  align-items: start;
}

.hero h1:not(.hero-main-title),
.page-title {
  margin: 0;
  font-size: clamp(2.15rem, 6.8vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero h1.hero-main-title {
  font-size: clamp(1.55rem, 4.4vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.page-title {
  font-size: clamp(1.85rem, 5vw, 2.8rem);
}

.hero p,
.section-subtitle,
.muted {
  color: var(--muted);
}

.hero p {
  max-width: 64ch;
  line-height: 1.78;
  margin: 14px 0 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  font-size: 0.93rem;
  color: #d8e5ff;
  border: 1px solid rgba(136, 166, 219, 0.22);
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.22), rgba(43, 194, 255, 0.18));
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.card,
.panel,
.form-card,
.notice,
.feature-card,
.pricing-card,
.stat-card,
.submission-card,
.art-tile {
  position: relative;
  background: linear-gradient(180deg, rgba(17, 27, 51, 0.94), rgba(12, 20, 39, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition:
    transform var(--dur-mid) var(--ease-smooth),
    border-color var(--dur-mid) var(--ease-smooth),
    box-shadow var(--dur-mid) var(--ease-smooth),
    background-color var(--dur-mid) var(--ease-smooth);
}

.card,
.panel,
.form-card,
.notice,
.art-tile {
  padding: 24px;
}

.panel::before,
.form-card::before,
.feature-card::before,
.pricing-card::before,
.notice::before,
.art-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.08), transparent 24%);
}

.feature-card,
.pricing-card,
.submission-card,
.stat-card {
  padding: 22px;
}

.feature-card h3,
.pricing-card h3 {
  margin: 0 0 9px;
}

.feature-card p,
.pricing-card p,
.panel p,
.form-card p {
  color: var(--muted);
  line-height: 1.68;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
  color: #ebf2ff;
  border: 1px solid rgba(136, 166, 219, 0.22);
  background: rgba(91, 140, 255, 0.16);
}

.hero-art {
  display: grid;
  gap: 12px;
  align-content: start;
}

.art-tile {
  animation: soft-float 9s var(--ease-smooth) infinite;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-card strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 7px 12px;
  border: 1px solid rgba(43, 194, 255, 0.28);
  background: rgba(43, 194, 255, 0.1);
  color: #dcf6ff;
  font-size: 0.86rem;
  margin-bottom: 10px;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  margin: 8px 0;
}

.price small {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.section {
  padding: 26px 0 72px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.section-head h2,
.panel h2,
.form-card h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.section-subtitle {
  margin: 8px 0 0;
  line-height: 1.72;
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 16px;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  padding: 12px 18px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42px;
  left: -56px;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transition: left 0.45s var(--ease-smooth);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 28px rgba(91, 140, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn:hover::after {
  left: calc(100% + 16px);
}

.btn-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost {
  color: var(--muted);
  background: transparent;
}

.btn-danger {
  color: #ffd3d3;
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.14);
}

.btn-success {
  color: #ccf8d9;
  border-color: rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.14);
}

.footer {
  border-top: 1px solid rgba(151, 179, 228, 0.12);
  background: rgba(4, 9, 23, 0.82);
  color: var(--muted);
  padding: 24px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: #deebff;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  padding: 12px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(136, 166, 219, 0.24);
  background: rgba(8, 13, 26, 0.72);
  outline: none;
  transition: all var(--dur-fast) var(--ease-smooth);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(43, 194, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(43, 194, 255, 0.12);
}

.help {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.58;
}

.error,
.success {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.error {
  color: #ffc2c2;
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.12);
}

.success {
  color: #c8fcd8;
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.12);
}

.notice {
  margin-top: 14px;
  border-radius: var(--radius-md);
}

.code {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid rgba(136, 166, 219, 0.24);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 13px 10px;
  border-bottom: 1px solid rgba(136, 166, 219, 0.2);
  vertical-align: top;
}

th {
  color: #deebff;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

td {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge.pending {
  color: #ffdca1;
  background: rgba(245, 158, 11, 0.18);
}

.badge.approved {
  color: #c8fcd8;
  background: rgba(34, 197, 94, 0.16);
}

.badge.rejected {
  color: #ffc2c2;
  background: rgba(239, 68, 68, 0.16);
}

.submission-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(136, 166, 219, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.panel:hover,
.form-card:hover,
.feature-card:hover,
.pricing-card:hover,
.stat-card:hover,
.submission-card:hover,
.notice:hover,
.art-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(136, 166, 219, 0.32);
  box-shadow: var(--shadow-lg);
}

.grid-4 > *,
.grid-3 > *,
.metric-grid > *,
#admin-submissions > *,
#user-submissions > * {
  animation: fade-rise 0.42s var(--ease-smooth) both;
}

.grid-4 > *:nth-child(2),
.grid-3 > *:nth-child(2),
.metric-grid > *:nth-child(2) {
  animation-delay: 0.03s;
}

.grid-4 > *:nth-child(3),
.grid-3 > *:nth-child(3),
.metric-grid > *:nth-child(3) {
  animation-delay: 0.06s;
}

.grid-4 > *:nth-child(4) {
  animation-delay: 0.09s;
}

tbody tr {
  transition: background-color var(--dur-fast) var(--ease-smooth);
}

tbody tr:hover {
  background: rgba(91, 140, 255, 0.06);
}

tbody tr:hover td {
  color: #c9dbff;
}

.submission-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
}

.preview {
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(136, 166, 219, 0.26);
  background: rgba(255, 255, 255, 0.025);
}

.preview img {
  border-radius: 12px;
  max-height: 240px;
  object-fit: contain;
  animation: fade-rise 0.34s var(--ease-smooth) both;
}

.admin-action-bar {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.empty-state {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(136, 166, 219, 0.3);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.015);
}

.auth-layout,
.dashboard-layout,
.admin-layout {
  display: grid;
  gap: 16px;
}

.auth-layout {
  grid-template-columns: 1.1fr 0.9fr;
}

.dashboard-layout {
  grid-template-columns: 1.1fr 0.9fr;
}

.dashboard-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(136, 166, 219, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: #dce9ff;
  font-size: 0.88rem;
  font-weight: 700;
}

.dashboard-summary-left {
  margin-top: 16px;
  justify-content: flex-start;
}

.help-compact {
  margin-top: 0;
}

.help-compact-bottom {
  margin-bottom: 0;
}

.section-title-tight {
  margin-bottom: 8px;
}

.support-line {
  margin-top: 12px;
}

.dashboard-plan-grid {
  margin-top: 14px;
}

.dashboard-form {
  margin-top: 18px;
}

.dashboard-submissions-wrap {
  margin-top: 20px;
}

.dashboard-submissions-title {
  margin-bottom: 12px;
}

.portal-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.portal-sidebar,
.portal-content,
.portal-layout {
  display: grid;
  gap: 16px;
}

.portal-layout {
  grid-template-columns: minmax(0, 1fr);
}

.portal-card {
  min-height: 100%;
}

.portal-subhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.admin-mini-stats {
  display: grid;
  gap: 10px;
}

.admin-mini-stat {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(136, 166, 219, 0.18);
}

.admin-mini-stat strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.admin-mini-stat span {
  color: var(--muted);
  font-size: 0.88rem;
}

.portal-shell .panel,
.portal-shell .form-card,
.portal-shell .notice,
.portal-shell .stat-card,
.portal-shell .submission-card,
.portal-shell .feature-card,
.portal-shell .pricing-card {
  box-shadow: var(--shadow-lg);
}

.portal-shell .hero-highlight {
  background: linear-gradient(145deg, rgba(124, 92, 255, 0.18), rgba(43, 194, 255, 0.1));
}

.portal-layout .form-card,
.portal-layout .panel {
  padding-top: 22px;
}

.portal-sidebar .quick-list li {
  background: rgba(255, 255, 255, 0.03);
}

.portal-content .table-wrap table {
  min-width: 100%;
}

.portal-content .submission-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.hero-highlight {
  background: linear-gradient(140deg, rgba(124, 92, 255, 0.22), rgba(43, 194, 255, 0.13));
  border-color: rgba(136, 166, 219, 0.26);
}

.quick-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.quick-list li {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(136, 166, 219, 0.2);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  transition: border-color var(--dur-fast) var(--ease-smooth), transform var(--dur-fast) var(--ease-smooth);
}

.quick-list li:hover {
  transform: translateX(1px);
  border-color: rgba(136, 166, 219, 0.34);
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .form-grid,
  .submission-grid,
  .auth-layout,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .portal-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-top,
  .dashboard-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-subhead {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-shell .page-title {
    font-size: clamp(1.8rem, 7vw, 2.35rem);
  }

  .portal-shell .section-subtitle {
    max-width: 60ch;
  }

  .section-head,
  .footer-grid,
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .page-shell {
    padding-top: 34px;
  }

  .nav-links {
    width: 100%;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max), calc(100% - 20px));
  }

  .section {
    padding: 22px 0 56px;
  }

  .section-head {
    margin-bottom: 16px;
    gap: 10px;
  }

  .pricing-card {
    padding: 16px;
  }

  .pricing-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }

  .pricing-card p {
    font-size: 0.93rem;
    line-height: 1.6;
  }

  .pricing-card .price {
    font-size: 1.65rem;
    margin: 6px 0;
  }

  .pricing-card .price small {
    font-size: 0.88rem;
  }

  .pricing-card .plan-pill {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
  }

  #pricing .section-head .btn {
    margin-top: 4px;
  }

  .portal-shell {
    gap: 12px;
  }

  .dashboard-summary,
  .summary-chip {
    width: 100%;
  }

  .summary-chip {
    justify-content: center;
  }

  .portal-card,
  .portal-shell .panel,
  .portal-shell .form-card,
  .portal-shell .notice,
  .portal-shell .submission-card,
  .portal-shell .admin-mini-stat {
    padding: 16px;
  }

  .portal-shell .page-title {
    font-size: clamp(1.65rem, 8vw, 2rem);
  }

  .portal-shell .section-subtitle,
  .help,
  .quick-list li,
  td {
    font-size: 0.9rem;
  }

  .portal-subhead h2,
  .dashboard-top h1,
  .portal-shell .panel h2,
  .portal-shell .form-card h2 {
    font-size: clamp(1.2rem, 5vw, 1.55rem);
  }

  .portal-content .table-wrap {
    margin-top: 10px;
  }

  .table-wrap table {
    min-width: 560px;
  }

  th,
  td {
    padding: 10px 8px;
  }

  .card,
  .panel,
  .form-card,
  .notice,
  .feature-card,
  .pricing-card,
  .submission-card,
  .stat-card,
  .art-tile {
    padding: 18px;
  }

  .portal-shell .panel,
  .portal-shell .form-card,
  .portal-shell .notice,
  .portal-shell .submission-card,
  .portal-shell .admin-mini-stat {
    padding: 16px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .nav-links a,
  .nav-links button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .form-card .btn,
  #pricing .section-head .btn {
    width: 100%;
  }

  .hero-actions .btn {
    width: auto;
    flex: 1 1 140px;
  }

  .portal-shell .code {
    width: 100%;
    justify-content: center;
    text-align: center;
    word-break: break-word;
  }
}

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