@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

/* =====================================================
   RK DEVELOPER STUDIO
   PUBLIC WEBSITE + ADMIN PORTAL
   Modern Design System
   ===================================================== */

:root {
  --bg: #f5f7fc;
  --surface: #ffffff;
  --surface-soft: #f8faff;

  --ink: #172033;
  --muted: #667085;
  --line: #e7ebf2;

  --brand: #5548ed;
  --brand-dark: #4338ca;
  --brand-light: #eeedff;

  --brand2: #10b981;
  --accent: #0ea5e9;

  --danger: #dc2626;
  --warning: #d97706;
  --success: #059669;

  --shadow: 0 12px 36px rgba(28, 39, 68, 0.07);

  --shadow-hover: 0 20px 48px rgba(28, 39, 68, 0.12);

  --radius: 16px;

  /* Admin-specific theme */
  --admin-bg: #f4f6fb;
  --admin-sidebar: #111827;
  --admin-sidebar-hover: #25334b;
  --admin-text: #172033;
  --admin-primary: #4f46e5;
  --admin-border: #e5eaf2;
}

/* =====================================================
   RESET AND GLOBAL
   ===================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}

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

.small {
  font-size: 12px;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.6px;
}

h1 {
  font-weight: 700;
}

h2 {
  font-weight: 700;
}

p {
  line-height: 1.7;
}

/* =====================================================
   TOP NAVIGATION
   ===================================================== */

.topbar {
  height: 76px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font:
    700 19px "Space Grotesk",
    sans-serif;
  letter-spacing: -0.5px;
}

.brand-mark {
  width: 41px;
  height: 41px;
  border-radius: 13px;
  background: linear-gradient(135deg, #5548ed, #948bff);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(85, 72, 237, 0.24);
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--brand);
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
  border: 0;
  border-radius: 11px;
  padding: 12px 19px;
  background: linear-gradient(135deg, #5548ed, #6558f5);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.2s ease;
  box-shadow: 0 4px 12px rgba(85, 72, 237, 0.16);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(85, 72, 237, 0.23);
  filter: brightness(1.04);
}

.btn:active {
  transform: scale(0.98);
}

.btn.secondary {
  background: var(--brand-light);
  color: var(--brand);
  box-shadow: none;
}

.btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn.danger {
  background: #fff0f0;
  color: #c43b3b;
  box-shadow: none;
}

/* =====================================================
   PUBLIC HERO
   ===================================================== */

.hero {
  padding: 82px 0 65px;
  background:
    radial-gradient(
      ellipse at 82% 12%,
      rgba(101, 88, 245, 0.15),
      transparent 40%
    ),
    radial-gradient(
      ellipse at 10% 75%,
      rgba(23, 184, 144, 0.11),
      transparent 36%
    );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand2);
  box-shadow: 0 0 0 4px rgba(23, 184, 144, 0.12);
}

.hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.06;
  margin: 18px 0;
}

.hero h1 span {
  color: var(--brand);
}

.hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-art {
  min-height: 300px;
  border-radius: 28px;
  background: linear-gradient(145deg, #17172f, #5146b9);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
}

.hero-art:before,
.hero-art:after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  width: 270px;
  height: 270px;
}

.hero-art:after {
  width: 370px;
  height: 370px;
}

.hero-symbol {
  font-size: 92px;
  z-index: 1;
  filter: drop-shadow(0 12px 20px #17152f);
}

.hero-caption {
  position: absolute;
  bottom: 22px;
  left: 24px;
  color: #dcdafe;
  font-size: 11px;
  letter-spacing: 1.5px;
}

/* =====================================================
   SECTIONS
   ===================================================== */

.section {
  padding: 50px 0 75px;
}

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

.section-head h2 {
  font-size: 31px;
  margin: 8px 0;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* =====================================================
   TOOLBAR AND SEARCH
   ===================================================== */

.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 25px 0;
}

.field {
  width: 100%;
  min-height: 45px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: 0.2s;
}

.field:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(101, 88, 245, 0.11);
}

.field::placeholder {
  color: #98a2b3;
}

.search {
  flex: 1;
  min-width: 220px;
}

.select {
  width: auto;
  min-width: 160px;
}

/* =====================================================
   APPLICATION CARDS
   ===================================================== */

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 21px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 21px;
  box-shadow: 0 5px 20px rgba(28, 39, 68, 0.035);
  transition: 0.25s ease;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: #d6d1ff;
}

.app-card-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.app-icon {
  width: 55px;
  height: 55px;
  border-radius: 15px;
  background: #efedff;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: 25px;
  flex: none;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.app-card h3 {
  font-size: 18px;
  margin: 0 0 5px;
  letter-spacing: -0.4px;
}

.app-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
}

.tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 30px;
  background: #f0f2f7;
  color: #5b6475;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

/* =====================================================
   EMPTY AND NOTICE
   ===================================================== */

.empty,
.notice {
  padding: 35px;
  text-align: center;
  background: #fff;
  border: 1px dashed #d9deea;
  border-radius: 16px;
  color: var(--muted);
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
  background: #111827;
  color: #d9dced;
  padding: 42px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer small {
  color: #9ba3b8;
}

/* =====================================================
   GENERAL PAGE AND PANELS
   ===================================================== */

.page {
  padding: 42px 0 75px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 23px;
  box-shadow: 0 5px 20px rgba(28, 39, 68, 0.035);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}

.detail-title {
  display: flex;
  gap: 18px;
  align-items: center;
}

.detail-title .app-icon {
  width: 76px;
  height: 76px;
}

.detail-title h1 {
  font-size: 34px;
  margin: 0 0 8px;
}

.prose {
  color: #505b70;
  line-height: 1.85;
  white-space: pre-wrap;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.screenshots img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}

/* =====================================================
   FORMS
   ===================================================== */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

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

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #344054;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
}

.help {
  font-size: 12px;
  color: var(--muted);
}

/* =====================================================
   ADMIN PORTAL - SEPARATE VISUAL IDENTITY
   ===================================================== */

.admin-shell {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  min-height: calc(100vh - 76px);
  background: var(--admin-bg);
}

/* ADMIN SIDEBAR */

.sidebar {
  background: var(--admin-sidebar);
  color: #dfe2f1;
  padding: 27px 15px;
  border-right: 1px solid #263044;
}

.sidebar h3 {
  font-size: 10px;
  color: #8995aa;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 18px 11px;
  font-family: "DM Sans", sans-serif;
  font-weight: 800;
}

.side-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  margin: 5px 0;
  cursor: pointer;
  transition: 0.2s;
}

.side-link:hover {
  background: #25334b;
  color: #fff;
}

.side-link.active {
  background: linear-gradient(110deg, #4338ca, #2563eb);
  color: #fff;
  box-shadow: 0 5px 17px rgba(79, 70, 229, 0.25);
}

.side-count {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 10px;
  color: #fff;
}

/* ADMIN MAIN */

.admin-main {
  padding: 32px;
  min-width: 0;
  background: var(--admin-bg);
}

.admin-main h1 {
  font-size: 31px;
  margin: 6px 0 22px;
  color: #111827;
}

.admin-main h2 {
  font-size: 21px;
}

.admin-main h3 {
  font-size: 15px;
}

/* ADMIN STATISTICS */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin: 23px 0;
}

.stat {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 21px;
  box-shadow: 0 4px 18px rgba(28, 39, 68, 0.035);
  transition: 0.2s;
}

.stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.stat strong {
  font:
    700 30px "Space Grotesk",
    sans-serif;
  display: block;
  margin-top: 9px;
  color: #172033;
}

.stat::after {
  content: "";
  position: absolute;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  right: -25px;
  top: -25px;
  background: rgba(85, 72, 237, 0.07);
}

/* ADMIN TABLE */

.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 4px 18px rgba(28, 39, 68, 0.025);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 15px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.data-table th {
  color: #64748b;
  background: #f8faff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
}

.data-table td {
  color: #344054;
}

.data-table tbody tr:hover td {
  background: #fafaff;
}

/* STATUS */

.status {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 30px;
  background: #e8faf3;
  color: #13845f;
  font-weight: 700;
}

.status.off {
  background: #f1f2f5;
  color: #667085;
}

/* ADMIN ACTIONS */

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* =====================================================
   MESSAGES AND LOADING
   ===================================================== */

.message {
  padding: 13px 15px;
  border-radius: 11px;
  background: #eef8f3;
  color: #18764f;
  border: 1px solid #d2f0e2;
  margin: 12px 0;
  font-size: 13px;
}

.message.error {
  background: #fff0f0;
  color: #b42318;
  border-color: #ffd6d6;
}

.loading {
  padding: 35px;
  text-align: center;
  color: var(--muted);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1000px) {
  .admin-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .admin-main {
    padding: 23px;
  }
}

@media (max-width: 850px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 220px;
  }

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

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

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

  .sidebar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid #263044;
  }

  .sidebar h3 {
    display: none;
  }

  .side-link {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .admin-main {
    padding: 20px;
  }

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

@media (max-width: 580px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .topbar {
    height: 66px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .hero {
    padding: 52px 0 35px;
  }

  .hero h1 {
    font-size: 40px;
  }

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

  .section-head {
    align-items: start;
    flex-direction: column;
  }

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

  .form-group.full {
    grid-column: auto;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat {
    padding: 15px;
  }

  .stat strong {
    font-size: 25px;
  }

  .admin-main {
    padding: 15px;
  }

  .admin-main h1 {
    font-size: 26px;
  }

  .detail-title h1 {
    font-size: 27px;
  }

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

  .panel {
    padding: 16px;
  }
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */

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

/* =========================================================
   RK DEVELOPER STUDIO — GLASS + SOFT NEUMORPHIC THEME
   Shared visual layer for public pages and shared components
   ========================================================= */

:root {
  color-scheme: light;
  --bg: #eef2ff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-soft: rgba(248, 250, 255, 0.84);
  --ink: #17213d;
  --muted: #667391;
  --line: rgba(129, 145, 184, 0.22);

  --brand: #6554f4;
  --brand-dark: #4938d4;
  --brand-light: #eeebff;
  --brand2: #10bfa3;
  --accent: #16a9e8;

  --danger: #e34f70;
  --warning: #e9a23b;
  --success: #0eaa83;

  --shadow: 0 18px 48px rgba(45, 55, 105, 0.1);
  --shadow-hover: 0 24px 58px rgba(45, 55, 105, 0.16);
  --neo-raised:
    8px 8px 20px rgba(99, 113, 157, 0.13),
    -8px -8px 20px rgba(255, 255, 255, 0.88);
  --neo-inset:
    inset 4px 4px 10px rgba(99, 113, 157, 0.1),
    inset -4px -4px 10px rgba(255, 255, 255, 0.92);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-border: 1px solid rgba(255, 255, 255, 0.78);
  --glass-blur: blur(18px) saturate(145%);
  --radius: 20px;

  --admin-bg: #edf1ff;
  --admin-sidebar: #171b3a;
  --admin-sidebar-hover: #292e58;
  --admin-text: #17213d;
  --admin-primary: #6554f4;
  --admin-border: rgba(129, 145, 184, 0.22);
}

body {
  background:
    radial-gradient(
      ellipse at 8% 5%,
      rgba(111, 91, 255, 0.13),
      transparent 32%
    ),
    radial-gradient(
      ellipse at 92% 18%,
      rgba(20, 184, 166, 0.1),
      transparent 30%
    ),
    linear-gradient(135deg, #f4f6ff 0%, #edf2ff 52%, #f7f9ff 100%);
  color: var(--ink);
}

.topbar {
  background: rgba(248, 250, 255, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 30px rgba(54, 66, 117, 0.07);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.brand-mark {
  background: linear-gradient(145deg, #7868ff, #4c3bd8 58%, #21b9d0);
  box-shadow: 0 9px 22px rgba(92, 76, 230, 0.28);
}

.nav-links a:hover {
  color: var(--brand);
}

.btn {
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 13px;
  background: linear-gradient(135deg, #7667ff, #5745e7 62%, #3d73dc);
  box-shadow: 0 9px 20px rgba(91, 75, 226, 0.23);
}
.btn:hover {
  box-shadow: 0 13px 27px rgba(91, 75, 226, 0.3);
}
.btn.secondary {
  background: linear-gradient(145deg, #f5f3ff, #e8e7ff);
  color: #5141d3;
  border: 1px solid rgba(101, 84, 244, 0.12);
  box-shadow: var(--neo-raised);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--neo-raised);
  backdrop-filter: blur(12px);
}
.btn.danger {
  background: linear-gradient(145deg, #fff1f4, #ffe5eb);
  color: #c43e61;
  border: 1px solid rgba(227, 79, 112, 0.12);
  box-shadow:
    5px 5px 14px rgba(196, 62, 97, 0.08),
    -5px -5px 14px #fff;
}

.hero {
  background:
    radial-gradient(
      ellipse at 82% 12%,
      rgba(101, 84, 244, 0.2),
      transparent 40%
    ),
    radial-gradient(
      ellipse at 10% 75%,
      rgba(16, 191, 163, 0.14),
      transparent 36%
    );
}
.hero-art {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    radial-gradient(
      circle at 25% 20%,
      rgba(126, 111, 255, 0.55),
      transparent 38%
    ),
    linear-gradient(145deg, #171b3a, #38328a 62%, #126f88);
  box-shadow: 0 28px 65px rgba(35, 38, 100, 0.23);
}

.app-card,
.panel,
.empty,
.notice {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--neo-raised);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.app-card {
  border-radius: 21px;
}
.app-card:hover {
  border-color: rgba(121, 105, 255, 0.34);
  box-shadow: var(--shadow-hover);
}
.app-icon {
  background: linear-gradient(145deg, #f1efff, #e2e7ff);
  box-shadow:
    4px 4px 10px rgba(92, 102, 155, 0.1),
    -4px -4px 10px #fff;
}
.tag {
  background: rgba(101, 84, 244, 0.09);
  color: #5545d6;
  border: 1px solid rgba(101, 84, 244, 0.08);
}
.card-foot {
  border-top-color: rgba(129, 145, 184, 0.2);
}

.field,
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(129, 145, 184, 0.25);
  border-radius: 13px;
  box-shadow: var(--neo-inset);
}
.field:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(101, 84, 244, 0.55);
  box-shadow:
    0 0 0 4px rgba(101, 84, 244, 0.1),
    var(--neo-inset);
}
.form-group label {
  color: #35405e;
}

.footer {
  background: linear-gradient(135deg, #171b3a, #25265b 70%, #174b65);
}

.status {
  background: rgba(16, 191, 163, 0.12);
  color: #087e69;
  border: 1px solid rgba(16, 191, 163, 0.16);
}
.status.off {
  background: rgba(102, 115, 145, 0.1);
  color: #667391;
  border-color: rgba(102, 115, 145, 0.12);
}
.message {
  background: rgba(16, 191, 163, 0.1);
  color: #087e69;
  border-color: rgba(16, 191, 163, 0.2);
}
.message.error {
  background: rgba(227, 79, 112, 0.09);
  color: #b83255;
  border-color: rgba(227, 79, 112, 0.2);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(101, 84, 244, 0.35);
  outline-offset: 2px;
}

@media (max-width: 850px) {
  .app-card,
  .panel {
    backdrop-filter: blur(14px);
  }
}
@media (max-width: 580px) {
  body {
    background:
      radial-gradient(
        ellipse at 0% 0%,
        rgba(111, 91, 255, 0.11),
        transparent 34%
      ),
      linear-gradient(145deg, #f4f6ff, #edf2ff);
  }
  .app-card,
  .panel,
  .empty,
  .notice {
    border-radius: 17px;
  }
  .btn {
    min-height: 43px;
  }
}

/* =====================================================
   RK DEVELOPER STUDIO — BLACK / NEON ORANGE THEME
   Shared public website theme
   ===================================================== */

:root {
  color-scheme: light;

  /* Main colour palette */
  --bg: #f7f7f7;
  --surface: #ffffff;
  --surface-soft: #f1f1f1;

  --ink: #111111;
  --muted: #666666;
  --line: #e8e8e8;

  --brand: #ff5a00;
  --brand-dark: #e94d00;
  --brand-light: #fff0e8;

  --brand2: #c8a2ff;
  --accent: #292929;

  --danger: #dc2626;
  --warning: #ff9a3c;
  --success: #16845b;

  --shadow: 0 12px 35px rgba(0, 0, 0, 0.07);

  --shadow-hover: 0 18px 42px rgba(255, 90, 0, 0.13);

  --neo-raised:
    7px 7px 18px rgba(0, 0, 0, 0.07), -7px -7px 18px rgba(255, 255, 255, 0.95);

  --neo-inset:
    inset 3px 3px 8px rgba(0, 0, 0, 0.045),
    inset -3px -3px 8px rgba(255, 255, 255, 0.9);

  --glass: rgba(255, 255, 255, 0.78);
  --glass-border: 1px solid rgba(255, 255, 255, 0.9);
  --glass-blur: blur(16px) saturate(135%);

  --radius: 18px;

  /* Admin shared variables */
  --admin-bg: #f4f4f4;
  --admin-sidebar: #111111;
  --admin-sidebar-hover: #292929;
  --admin-text: #111111;
  --admin-primary: #ff5a00;
  --admin-border: #e8e8e8;
}

/* GLOBAL BACKGROUND */

body {
  background:
    radial-gradient(circle at 90% 5%, rgba(255, 90, 0, 0.07), transparent 28%),
    radial-gradient(
      circle at 5% 85%,
      rgba(200, 162, 255, 0.06),
      transparent 25%
    ),
    #f7f7f7;

  color: #111111;
}

/* NAVIGATION */

.topbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.045);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand-mark {
  background: linear-gradient(135deg, #ff5a00, #ff873d);
  color: #ffffff;
  box-shadow: 0 5px 18px rgba(255, 90, 0, 0.3);
}

.nav-links a:hover {
  color: #ff5a00;
}

/* BUTTONS */

.btn {
  background: linear-gradient(135deg, #ff6a00, #ff4d00);
  color: #ffffff;
  border: 1px solid rgba(255, 90, 0, 0.25);
  box-shadow: 0 6px 18px rgba(255, 90, 0, 0.22);
}

.btn:hover {
  background: linear-gradient(135deg, #ff7a1a, #ff5a00);
  box-shadow: 0 9px 25px rgba(255, 90, 0, 0.32);
}

.btn.secondary {
  background: #fff0e8;
  color: #e94d00;
  border: 1px solid #ffcfb5;
  box-shadow: var(--neo-raised);
}

.btn.ghost {
  background: #ffffff;
  color: #111111;
  border: 1px solid #e5e5e5;
  box-shadow: var(--neo-raised);
}

.btn.danger {
  background: #fff0f0;
  color: #c43b3b;
}

/* HERO */

.hero {
  background:
    radial-gradient(
      ellipse at 85% 15%,
      rgba(255, 90, 0, 0.16),
      transparent 42%
    ),
    radial-gradient(
      ellipse at 10% 85%,
      rgba(200, 162, 255, 0.09),
      transparent 35%
    );
}

.hero h1 span,
.eyebrow {
  color: #ff5a00;
}

.dot {
  background: #ff5a00;
  box-shadow: 0 0 0 4px rgba(255, 90, 0, 0.13);
}

.hero-art {
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 90, 0, 0.35), transparent 38%),
    linear-gradient(145deg, #111111, #292929);
  border: 1px solid rgba(255, 90, 0, 0.3);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.18);
}

/* CARDS AND PANELS */

.app-card,
.panel,
.empty,
.notice {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--neo-raised);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.app-card:hover {
  border-color: rgba(255, 90, 0, 0.38);
  box-shadow: var(--shadow-hover);
}

.app-icon {
  background: #fff0e8;
  box-shadow:
    4px 4px 10px rgba(0, 0, 0, 0.06),
    -4px -4px 10px #ffffff;
}

.tag {
  background: #f1eaff;
  color: #7650a8;
  border: 1px solid rgba(200, 162, 255, 0.3);
}

/* INPUTS */

.field,
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e5e5e5;
  box-shadow: var(--neo-inset);
}

.field:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #ff5a00;
  box-shadow:
    0 0 0 3px rgba(255, 90, 0, 0.12),
    var(--neo-inset);
}

/* FOOTER */

.footer {
  background: linear-gradient(135deg, #111111, #292929);
  color: #ffffff;
  border-top: 3px solid #ff5a00;
}

/* STATUS AND MESSAGES */

.status {
  background: #fff0e8;
  color: #d94d00;
  border: 1px solid #ffd2bb;
}

.status.off {
  background: #f1f1f1;
  color: #666666;
  border-color: #e5e5e5;
}

.message {
  background: #f0fff6;
  color: #16845b;
  border-color: #c9f0dc;
}

.message.error {
  background: #fff0f0;
  color: #b42318;
  border-color: #ffd6d6;
}

/* FOCUS */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(255, 90, 0, 0.4);
  outline-offset: 3px;
}
