:root {
  --premium-bg: #f6f8fb;
  --premium-surface: #ffffff;
  --premium-surface-strong: #f9fbff;
  --premium-ink: #132033;
  --premium-muted: #65758b;
  --premium-soft: #d8e1ee;
  --premium-line: rgba(25, 38, 61, 0.11);
  --premium-primary: #1d4ed8;
  --premium-primary-dark: #153ea9;
  --premium-accent: #0f766e;
  --premium-danger: #dc2626;
  --premium-warning: #b45309;
  --premium-success: #15803d;
  --premium-shadow-sm: 0 10px 28px rgba(19, 32, 51, 0.08);
  --premium-shadow-md: 0 18px 50px rgba(19, 32, 51, 0.12);
  --premium-radius: 18px;
  --premium-radius-sm: 12px;
  --premium-focus: 0 0 0 0.22rem rgba(29, 78, 216, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #fbfcff 0%, var(--premium-bg) 48%, #eef3f8 100%);
  color: var(--premium-ink);
  font-family: "Inter", "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  padding-top: 118px;
}

body:has(.home-hero) {
  background:
    radial-gradient(circle at 12% 8%, rgba(20, 184, 166, 0.13), transparent 30%),
    radial-gradient(circle at 88% 24%, rgba(29, 78, 216, 0.14), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef5fb 48%, #f6f8fb 100%);
}

a {
  color: var(--premium-primary);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--premium-primary-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--premium-ink);
  font-family: "Inter", "Raleway", system-ui, sans-serif;
  font-weight: 780;
  letter-spacing: 0;
}

img,
iframe {
  max-width: 100%;
}

.premium-navbar-wrap {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1030;
  padding: 0;
  pointer-events: none;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.22s ease, opacity 0.22s ease;
  will-change: transform;
}

.premium-navbar-wrap.is-scroll-hidden {
  transform: translateY(calc(-100% - 4px));
  opacity: 0.96;
}

.premium-welcome-ribbon {
  pointer-events: auto;
  overflow: hidden;
  min-height: 24px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(90deg, #0f766e 0%, #1d4ed8 42%, #7c3aed 72%, #16db78 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.premium-ribbon-track {
  display: flex;
  width: max-content;
  min-width: 200%;
  gap: clamp(3rem, 9vw, 8rem);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  animation: premiumRibbonRun 18s linear infinite;
}

.premium-ribbon-track span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

@keyframes premiumRibbonRun {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.premium-navbar {
  pointer-events: auto;
}

.premium-nav-container {
  width: 100%;
  max-width: none;
  min-height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background:
    linear-gradient(100deg, rgba(35, 73, 110, 0.84) 0%, rgba(43, 94, 136, 0.91) 34%, rgba(52, 119, 154, 0.95) 66%, rgba(22, 92, 118, 0.98) 100%);
  box-shadow: 0 18px 48px rgba(15, 35, 65, 0.28);
  backdrop-filter: blur(22px) saturate(1.25);
  padding: 0.82rem clamp(1rem, 4vw, 2.2rem);
}

body:has(.home-hero) .premium-nav-container {
  border-color: rgba(255, 255, 255, 0.48);
  background:
    linear-gradient(100deg, rgba(35, 73, 110, 0.84) 0%, rgba(43, 94, 136, 0.91) 34%, rgba(52, 119, 154, 0.95) 66%, rgba(22, 92, 118, 0.98) 100%);
  box-shadow: 0 18px 48px rgba(15, 35, 65, 0.28);
}

body:has(.home-hero) .premium-brand-name,
body:has(.home-hero) .premium-nav-links .nav-link {
  color: #ffffff;
}

body:has(.home-hero) .premium-brand-subtitle {
  color: rgba(226, 242, 255, 0.9);
}

body:has(.home-hero) .premium-nav-links .nav-link:hover,
body:has(.home-hero) .premium-nav-links .nav-link.active {
  background: linear-gradient(135deg, rgba(22, 219, 120, 0.94), rgba(15, 118, 110, 0.9));
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.26), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.premium-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  min-width: 0;
  color: var(--premium-ink);
  text-decoration: none;
  border-radius: 20px;
  padding: 0.3rem 0.55rem 0.3rem 0.3rem;
}

.premium-brand:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.premium-brand-mark {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 18px;
  background: linear-gradient(135deg, #07111f 0%, #1d4ed8 52%, #0f766e 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.3);
}

.premium-brand-mark i {
  font-size: 1.25rem;
}

.premium-brand-name,
.premium-brand-subtitle {
  display: block;
  line-height: 1.15;
}

.premium-brand-name {
  color: #ffffff;
  font-weight: 820;
  font-size: 1.08rem;
}

.premium-brand-subtitle {
  color: rgba(226, 242, 255, 0.9);
  font-size: 0.74rem;
  font-weight: 700;
  margin-top: 0.12rem;
}

.premium-toggler {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--premium-ink);
  box-shadow: none;
}

.premium-toggler:focus {
  box-shadow: var(--premium-focus);
}

.premium-toggler i {
  font-size: 1.4rem;
}

.premium-nav-links {
  gap: 0.18rem;
  align-items: center;
}

.premium-navbar .navbar-nav {
  display: flex;
}

.premium-nav-links .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1;
  padding: 0.74rem 0.86rem;
  text-shadow: 0 1px 10px rgba(8, 20, 35, 0.22);
}

.premium-nav-links .nav-link:hover,
.premium-nav-links .nav-link.active {
  background: linear-gradient(135deg, rgba(22, 219, 120, 0.94), rgba(15, 118, 110, 0.9));
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.26), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.premium-nav-links .nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.28rem;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--premium-primary), var(--premium-accent));
  transform: translateX(-50%);
}

.premium-nav-links .nav-link i {
  font-size: 0.84rem;
  line-height: 1;
}

.premium-user-pill {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

.premium-dropdown {
  border: 1px solid var(--premium-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  padding: 0.62rem;
  backdrop-filter: blur(18px);
}

.premium-navbar .dropdown-menu {
  display: none;
  opacity: 1;
  visibility: visible;
}

.premium-navbar .dropdown-menu.show {
  display: block;
}

.premium-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 14px;
  color: #334155;
  font-weight: 740;
  padding: 0.74rem 0.82rem;
}

.premium-dropdown .dropdown-item:hover {
  background: #eef5ff;
  color: var(--premium-primary);
}

.premium-admin-link {
  margin-left: 0.3rem;
}

.premium-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding-inline: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: linear-gradient(135deg, #ffffff, #e7faf7);
  color: #0f2a44;
  box-shadow: 0 16px 34px rgba(22, 42, 70, 0.18);
}

.premium-nav-cta:hover,
.premium-nav-cta:focus {
  border-color: rgba(255, 255, 255, 0.62);
  background: linear-gradient(135deg, #ffffff, #d9f6ef);
  color: #0b223a;
  box-shadow: 0 18px 36px rgba(22, 42, 70, 0.22);
}

.premium-nav-links .premium-nav-cta.btn-premium-primary {
  border: 1px solid rgba(255, 214, 102, 0.68);
  background: linear-gradient(135deg, #ffe9a3, #ffd166);
  color: #2b1d00;
  box-shadow: 0 14px 30px rgba(255, 193, 7, 0.3);
}

.premium-nav-links .premium-nav-cta.btn-premium-primary:hover,
.premium-nav-links .premium-nav-cta.btn-premium-primary:focus {
  border-color: rgba(255, 232, 163, 0.9);
  background: linear-gradient(135deg, #ffefbf, #ffd979);
  color: #1f1600;
  box-shadow: 0 16px 34px rgba(255, 193, 7, 0.36);
}

.premium-nav-register {
  min-height: 38px;
  padding: 0.5rem 0.78rem;
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
  gap: 0.34rem;
}

.premium-nav-register i {
  font-size: 0.86rem;
}

.premium-nav-links .premium-nav-register {
  display: inline-flex !important;
  width: auto !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}

@media (max-width: 991.98px) {
  .premium-nav-links .premium-nav-register {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.72rem 0.82rem !important;
    font-size: 0.8rem !important;
  }
}

.premium-nav-links .btn-premium-ghost {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.premium-nav-links .btn-premium-ghost:hover {
  border-color: rgba(22, 219, 120, 0.78);
  background: linear-gradient(135deg, rgba(22, 219, 120, 0.94), rgba(15, 118, 110, 0.9));
  color: #ffffff;
}

.premium-user-pill {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

body:has(.home-hero) .premium-nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: linear-gradient(135deg, #ffffff, #e7faf7);
  color: #0f2a44;
  box-shadow: 0 16px 34px rgba(22, 42, 70, 0.18);
}

body:has(.home-hero) .premium-user-pill,
body:has(.home-hero) .btn-premium-ghost {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

body:has(.home-hero) .premium-nav-links .nav-link.active::after {
  background: linear-gradient(90deg, #ffffff, #69e4d6);
}

.btn {
  border-radius: 999px;
  font-weight: 750;
  letter-spacing: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  box-shadow: var(--premium-focus);
}

.btn-primary,
.btn-premium-primary,
form .btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--premium-primary), var(--premium-accent));
  color: #fff;
  box-shadow: 0 12px 26px rgba(29, 78, 216, 0.24);
}

.btn-primary:hover,
.btn-premium-primary:hover,
form .btn-primary:hover {
  border-color: transparent;
  background: linear-gradient(135deg, var(--premium-primary-dark), #0b625d);
  color: #fff;
  box-shadow: 0 16px 34px rgba(29, 78, 216, 0.3);
}

.btn-premium-ghost,
.btn-outline-secondary {
  border: 1px solid var(--premium-line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--premium-ink);
}

.btn-premium-ghost:hover,
.btn-outline-secondary:hover {
  border-color: rgba(29, 78, 216, 0.28);
  background: #eef5ff;
  color: var(--premium-primary);
}

.btn-danger {
  border-color: transparent;
  background: linear-gradient(135deg, #dc2626, #be123c);
}

.premium-page {
  min-height: calc(100vh - 92px);
}

.premium-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0;
}

.premium-card,
.login-page .login-box,
.post-box,
.pdf-card,
.pdf-list-card,
.contact .info,
.contact form,
.premium-prose-card {
  border: 1px solid var(--premium-line);
  border-radius: var(--premium-radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--premium-shadow-sm);
}

.premium-card,
.premium-prose-card {
  padding: clamp(1.25rem, 2vw, 2rem);
}

.premium-hero,
.masthead {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.premium-hero::before,
.masthead .overlay {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(29, 78, 216, 0.58) 58%, rgba(15, 118, 110, 0.58));
  z-index: -1;
}

.masthead .overlay {
  z-index: 0;
}

.masthead .container {
  position: relative;
  z-index: 1;
}

.premium-hero h1,
.masthead h1,
.masthead .post-heading h1,
.masthead .page-heading h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  line-height: 1.04;
  margin-bottom: 0.75rem;
}

.premium-kicker {
  display: inline-flex;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.48rem 0.74rem;
  text-transform: uppercase;
}

.premium-hero p,
.masthead .subheading,
.masthead .post-heading h2.subheading,
.masthead .post-heading .meta {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.25rem;
  padding: 0;
}

.section-title span {
  display: inline-flex;
  position: static;
  margin-bottom: 0.7rem;
  border: 1px solid rgba(29, 78, 216, 0.14);
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--premium-primary);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.48rem 0.74rem;
  text-transform: uppercase;
}

.section-title h2 {
  color: var(--premium-ink);
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 0.65rem;
  text-transform: none;
}

.section-title p {
  color: var(--premium-muted);
  font-size: 1.05rem;
}

.form-control,
.form-select,
form .form-control,
input[type="email"],
input[type="text"],
input[type="password"],
input[type="file"],
textarea {
  min-height: 46px;
  border: 1px solid rgba(100, 116, 139, 0.26);
  border-radius: 13px;
  background-color: #fbfdff;
  color: var(--premium-ink);
  padding: 0.72rem 0.9rem;
}

textarea.form-control,
textarea {
  min-height: 140px;
}

label,
.form-label {
  color: #26364c;
  font-weight: 750;
  margin-bottom: 0.38rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-text,
.text-muted {
  color: var(--premium-muted) !important;
}

.alert,
.swal2-toast-custom {
  border: 1px solid var(--premium-line) !important;
  border-radius: 16px !important;
  box-shadow: var(--premium-shadow-sm) !important;
}

.alert-success {
  background: #ecfdf3;
  color: #14532d;
}

.alert-info,
.alert-primary {
  background: #eff6ff;
  color: #1e3a8a;
}

.alert-warning {
  background: #fffbeb;
  color: #92400e;
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
}

.premium-empty {
  border: 1px dashed rgba(100, 116, 139, 0.32);
  border-radius: var(--premium-radius);
  background: rgba(255, 255, 255, 0.68);
  color: var(--premium-muted);
  padding: 2rem;
  text-align: center;
}

.premium-empty i {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 0.75rem;
  border-radius: 16px;
  background: #eef5ff;
  color: var(--premium-primary);
  font-size: 1.5rem;
}

.premium-empty h2 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.premium-empty p {
  margin-bottom: 0;
}

.premium-auth-shell,
.premium-content-narrow {
  width: min(860px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0;
}

.premium-content-wide {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0;
}

.premium-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  justify-content: center;
  margin: 1.25rem 0 0;
  color: var(--premium-muted);
}

.premium-link-row a {
  font-weight: 750;
}

.premium-post-body {
  font-size: 1.08rem;
}

.premium-post-body p,
.premium-post-body li {
  color: #2f3d51;
}

.premium-post-actions,
.premium-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--premium-line);
}

.premium-comments {
  margin-top: 2rem;
}

.premium-comment-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.premium-comment {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.9rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--premium-line);
  border-radius: 16px;
  background: #fbfdff;
}

.premium-comment img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.premium-comment-author {
  display: block;
  color: var(--premium-muted);
  font-size: 0.86rem;
  font-weight: 750;
  margin-top: 0.35rem;
}

.premium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.premium-blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--premium-ink);
}

.premium-blog-card:hover {
  transform: translateY(-4px);
  color: var(--premium-ink);
  box-shadow: var(--premium-shadow-md);
}

.premium-blog-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.premium-blog-card p {
  color: var(--premium-muted);
  margin-bottom: 1.1rem;
}

.premium-card-link {
  margin-top: auto;
  color: var(--premium-primary);
  font-weight: 800;
}

.premium-contact-list {
  display: grid;
  gap: 1rem;
}

.premium-contact-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.85rem;
}

.premium-contact-item i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: #eef5ff;
  color: var(--premium-primary);
}

.premium-contact-item h4 {
  font-size: 0.96rem;
  margin-bottom: 0.1rem;
}

.premium-contact-item p {
  color: var(--premium-muted);
  margin-bottom: 0;
}

.premium-profile-hero {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 1.5rem;
}

.premium-profile-panel {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.5rem;
  align-items: center;
}

.premium-profile-panel img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--premium-shadow-sm);
}

.premium-profile-panel h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  margin-bottom: 0.4rem;
}

.premium-profile-panel p {
  color: var(--premium-muted);
  font-size: 1.08rem;
}

.premium-map {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--premium-line);
  background: #eef5ff;
}

.premium-map-frame {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}

@media (max-width: 991.98px) {
  .premium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .premium-map-frame {
    min-height: 300px;
  }

  .premium-post-actions,
  .premium-action-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .premium-post-actions .btn,
  .premium-action-bar .btn {
    width: 100%;
  }

  .premium-profile-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .premium-profile-panel img {
    margin: 0 auto;
  }
}

.premium-footer {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.62);
  background:
    radial-gradient(circle at 14% 12%, rgba(20, 184, 166, 0.16), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(29, 78, 216, 0.18), transparent 30%),
    linear-gradient(180deg, #eef5fb 0%, #e7f0f8 100%);
  color: #102033;
}

.premium-footer::before {
  content: "";
  position: absolute;
  inset: 1rem auto auto 50%;
  width: min(980px, 90vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29, 78, 216, 0.26), transparent);
  transform: translateX(-50%);
}

.premium-footer::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -190px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(20, 184, 166, 0.16);
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.07);
}

.premium-footer .container {
  position: relative;
  z-index: 1;
}

.premium-footer-main {
  display: grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap: 1rem;
  padding: 1.35rem 0 0.8rem;
}

.premium-footer-brand {
  max-width: 520px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(248, 251, 255, 0.62));
  box-shadow: 0 18px 54px rgba(15, 35, 65, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 0.78rem 0.82rem;
}

.premium-brand-footer {
  width: fit-content;
  padding: 0;
}

.premium-brand-footer:hover {
  background: transparent;
}

.premium-brand-footer .premium-brand-mark {
  background: linear-gradient(135deg, #2563eb 0%, #14b8a6 100%);
}

.premium-brand-footer .premium-brand-name {
  color: #102033;
}

.premium-brand-footer .premium-brand-subtitle {
  color: #607089;
}

.premium-footer-brand p {
  max-width: 420px;
  margin: 0.5rem 0 0;
  color: #607089;
  font-size: 0.84rem;
  line-height: 1.48;
}

.premium-footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  min-height: 26px;
  margin-top: 0.62rem;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.72);
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 850;
  padding: 0.2rem 0.62rem;
}

.premium-footer-status i {
  color: #1d4ed8;
}

.premium-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.58rem;
}

.premium-footer-links h2 {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid rgba(29, 78, 216, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: #1d4ed8;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.5rem;
  text-transform: uppercase;
  margin-bottom: 0.38rem;
}

.premium-footer-links > div {
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 14px 42px rgba(15, 35, 65, 0.07);
  padding: 0.58rem 0.62rem;
}

.premium-footer-links a {
  display: flex;
  align-items: center;
  gap: 0.44rem;
  min-height: 28px;
  border-radius: 10px;
  color: #334155;
  font-weight: 760;
  font-size: 0.8rem;
  margin: 0.06rem 0;
  padding: 0.26rem 0.38rem;
  text-decoration: none;
}

.premium-footer-links a i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 8px;
  background: #eef5ff;
  color: #1d4ed8;
  font-size: 0.72rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.premium-footer-links a:hover {
  background: rgba(255, 255, 255, 0.78);
  color: #0f766e;
  transform: translateX(4px);
}

.premium-footer-links a:hover i {
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: #ffffff;
  transform: scale(1.04);
}

.premium-footer-bottom {
  display: flex;
  justify-content: center;
  gap: 1rem;
  border-top: 1px solid rgba(15, 35, 65, 0.1);
  color: #607089;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.6rem 0 0.78rem;
  text-align: center;
}

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: min(560px, calc(100vh - 124px));
  display: grid;
  align-items: center;
  padding: clamp(0.8rem, 2.2vw, 1.8rem) 0 clamp(2.4rem, 4vw, 4rem);
  background:
    radial-gradient(circle at 14% 12%, rgba(20, 184, 166, 0.14), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(29, 78, 216, 0.13), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
}

.home-hero::after {
  content: none;
}

.home-hero .container {
  position: relative;
  z-index: 1;
}

.home-hero-copy {
  max-width: 760px;
  transform: translateY(-2.5rem);
}

.home-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.05rem;
  border: 1px solid rgba(126, 151, 181, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #415874;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  padding: 0.58rem 0.98rem;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 680px;
  color: #394150;
  font-size: clamp(1.95rem, 3.45vw, 3.45rem);
  line-height: 1.08;
  margin-bottom: 1rem;
  white-space: nowrap;
}

.home-hero p {
  max-width: 720px;
  color: #7d8aa3;
  font-size: clamp(1.08rem, 1.55vw, 1.38rem);
  line-height: 1.48;
  margin-bottom: 2rem;
  white-space: nowrap;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.45rem;
  align-items: center;
}

.home-hero-note {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  margin-top: 1.45rem;
  color: #64748b;
  font-size: clamp(0.78rem, 1vw, 0.94rem);
  font-weight: 750;
}

.home-hero-note i {
  color: #16a34a;
  font-size: 1.05rem;
}

.home-youtube-strip {
  margin-top: 1.9rem;
  max-width: 760px;
}

.home-youtube-strip-head {
  display: flex;
  align-items: center;
  margin-bottom: 0.56rem;
}

.home-youtube-strip-head-links {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.home-youtube-strip-head a {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #9f1d1d;
  font-size: 0.8rem;
  font-weight: 780;
  text-decoration: none;
  padding: 0.32rem 0.7rem;
}

.home-youtube-strip-head a i {
  font-size: 0.96rem;
}

.home-youtube-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(176px, 200px);
  gap: 0.62rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 0.24rem;
}

.home-youtube-card {
  display: grid;
  gap: 0.34rem;
  border: 1px solid rgba(29, 78, 216, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  color: #1f3650;
  text-decoration: none;
  padding: 0.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-youtube-card:hover {
  border-color: rgba(29, 78, 216, 0.34);
  box-shadow: 0 12px 28px rgba(15, 35, 65, 0.14);
  transform: translateY(-1px);
}

.home-youtube-card img {
  width: 100%;
  height: 102px;
  object-fit: cover;
  border-radius: 9px;
}

.home-youtube-card span {
  color: #40556f;
  font-size: 0.74rem;
  font-weight: 760;
  line-height: 1.25;
  padding: 0 0.08rem 0.06rem;
}

.btn-home-start {
  min-height: 42px;
  border: 0;
  border-radius: 4px;
  background: #16db78;
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(22, 219, 120, 0.28);
  font-size: 1.08rem;
  padding: 0.72rem 1.86rem;
}

.btn-home-start:hover {
  background: #10c96c;
  color: #ffffff;
  box-shadow: 0 22px 48px rgba(22, 219, 120, 0.34);
}

.btn-home-video {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #566b8b;
  font-size: 1.08rem;
  padding: 0.5rem 0.35rem;
  box-shadow: none;
}

.btn-home-video span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid #9aa8b9;
  border-radius: 50%;
  background: #ffffff;
  color: #7d8fa6;
}

.btn-home-video:hover {
  color: var(--premium-primary);
  background: transparent;
  box-shadow: none;
}

.btn-home-video:hover span {
  border-color: var(--premium-primary);
  color: var(--premium-primary);
}

.btn-home-new-post {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  min-height: 42px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
  color: #21456f;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.14);
  font-size: 1.08rem;
  font-weight: 800;
  padding: 0.58rem 1.18rem 0.58rem 0.62rem;
}

.btn-home-new-post span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #14b8a6 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(20, 184, 166, 0.24);
}

.btn-home-new-post:hover {
  color: #17395f;
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.18);
}

.home-hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(340px, 39vw, 520px);
  isolation: isolate;
}

.home-hero-visual::before {
  content: none;
}

.home-hero-illustration {
  position: relative;
  z-index: 1;
  width: min(112%, 760px);
  border-radius: 22px;
  animation: heroFloat 5.4s ease-in-out infinite;
  filter: none;
  will-change: transform;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

.home-feature-strip,
.home-highlight-section,
.home-posts-section,
.home-cta-band,
.home-testimonials-section {
  background:
    radial-gradient(circle at 12% 8%, rgba(20, 184, 166, 0.13), transparent 30%),
    radial-gradient(circle at 88% 24%, rgba(29, 78, 216, 0.14), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
}

.home-feature-strip {
  padding: 3rem 0;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-tools-games-section {
  padding: 0.3rem 0 3.1rem;
  background:
    radial-gradient(circle at 10% 18%, rgba(20, 184, 166, 0.1), transparent 28%),
    radial-gradient(circle at 89% 16%, rgba(29, 78, 216, 0.12), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
}

.home-tools-games-grid {
  display: grid;
  grid-template-columns: 0.32fr 1.68fr;
  gap: 1.2rem;
  align-items: stretch;
}

.home-tools-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-tool-card {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(245, 250, 255, 0.86));
  box-shadow: 0 20px 62px rgba(15, 35, 65, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  padding: 1.05rem 1.05rem 1.15rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.home-tool-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 118px;
  height: 118px;
  border: 1px solid var(--tool-accent-line);
  border-radius: 50%;
  background: var(--tool-accent-glow);
}

.home-tool-card:hover {
  border-color: var(--tool-accent-line);
  box-shadow: 0 26px 76px rgba(15, 35, 65, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-4px);
}

.home-tool-launch {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.home-tool-compact {
  min-height: 128px;
  padding: 0.8rem 0.8rem 0.88rem;
}

.home-tool-compact .home-tool-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 0.96rem;
  margin-bottom: 0.52rem;
}

.home-tool-compact h3 {
  font-size: 0.92rem;
  margin-bottom: 0.24rem;
}

.home-tool-compact p {
  font-size: 0.79rem;
  line-height: 1.35;
}

.home-tool-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--tool-accent), var(--tool-accent-2));
  color: #fff;
  box-shadow: 0 14px 30px var(--tool-shadow);
  font-size: 1.2rem;
  margin-bottom: 0.78rem;
}

.home-tool-card h3 {
  color: #13283d;
  font-size: 1.02rem;
  margin-bottom: 0.34rem;
}

.home-tool-card p {
  color: #607089;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.home-live-clock {
  position: relative;
  z-index: 1;
  margin-top: 0.2rem;
}

.home-live-clock-time {
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  color: #142b46;
  font-size: 0.96rem;
  font-weight: 820;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 0.42rem 0.5rem;
}

.home-live-clock-date {
  color: #536781;
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 0.34rem;
  margin-bottom: 0.42rem;
}

.home-live-clock-label {
  display: block;
  color: #4f647f;
  font-size: 0.66rem;
  font-weight: 760;
  margin-bottom: 0.22rem;
}

.home-live-clock-select {
  width: 100%;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.9);
  color: #163250;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.34rem 0.4rem;
}

.home-live-clock-select:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.home-mini-calendar {
  position: relative;
  z-index: 1;
  margin-top: 0.2rem;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  padding: 0.46rem;
}

.home-mini-calendar-head {
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  align-items: center;
  gap: 0.36rem;
  margin-bottom: 0.36rem;
}

.home-mini-calendar-nav {
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 10px;
  background: #ffffff;
  color: #185145;
  min-height: 28px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-mini-calendar-nav:hover {
  background: #edfdf8;
  border-color: rgba(15, 118, 110, 0.32);
  transform: translateY(-1px);
}

.home-mini-calendar-title {
  color: #133d34;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.home-mini-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.2rem;
  margin-bottom: 0.2rem;
}

.home-mini-calendar-weekdays span {
  color: #607089;
  font-size: 0.66rem;
  font-weight: 760;
  text-align: center;
}

.home-mini-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.2rem;
}

.home-mini-calendar-day {
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 9px;
  background: #ffffff;
  color: #21324a;
  font-size: 0.73rem;
  font-weight: 740;
  min-height: 26px;
  line-height: 1;
  padding: 0;
}

.home-mini-calendar-day:hover:not(.is-empty) {
  border-color: rgba(15, 118, 110, 0.34);
  background: #f0fdfa;
}

.home-mini-calendar-day.is-empty {
  border-color: transparent;
  background: transparent;
}

.home-mini-calendar-day.is-today {
  border-color: transparent;
  background: linear-gradient(135deg, #0f766e, #22c55e);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.26);
}

.home-converter {
  position: relative;
  z-index: 1;
  margin-top: 0.2rem;
  display: grid;
  gap: 0.36rem;
}

.home-converter-row,
.home-converter-grid > div {
  display: grid;
  gap: 0.2rem;
}

.home-converter-row label,
.home-converter-grid label {
  color: #4f647f;
  font-size: 0.73rem;
  font-weight: 760;
}

.home-converter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.home-converter-select,
.home-converter-input {
  width: 100%;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.9);
  color: #163250;
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 34px;
  padding: 0.35rem 0.46rem;
}

.home-converter-select:focus,
.home-converter-input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.home-converter-result {
  border: 1px solid rgba(219, 39, 119, 0.2);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.9);
  color: #203956;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1;
  text-align: right;
  padding: 0.48rem 0.56rem;
}

.home-tool-calc {
  --tool-accent: #2563eb;
  --tool-accent-2: #14b8a6;
  --tool-accent-line: rgba(37, 99, 235, 0.25);
  --tool-accent-glow: rgba(37, 99, 235, 0.09);
  --tool-shadow: rgba(37, 99, 235, 0.2);
}

.home-tool-calendar {
  --tool-accent: #0f766e;
  --tool-accent-2: #22c55e;
  --tool-accent-line: rgba(15, 118, 110, 0.25);
  --tool-accent-glow: rgba(15, 118, 110, 0.09);
  --tool-shadow: rgba(15, 118, 110, 0.2);
}

.home-tool-clock {
  --tool-accent: #9333ea;
  --tool-accent-2: #2563eb;
  --tool-accent-line: rgba(147, 51, 234, 0.24);
  --tool-accent-glow: rgba(147, 51, 234, 0.08);
  --tool-shadow: rgba(147, 51, 234, 0.2);
}

.home-tool-measure {
  --tool-accent: #db2777;
  --tool-accent-2: #f59e0b;
  --tool-accent-line: rgba(219, 39, 119, 0.24);
  --tool-accent-glow: rgba(219, 39, 119, 0.08);
  --tool-shadow: rgba(219, 39, 119, 0.19);
}

.home-tool-nepali {
  --tool-accent: #0ea5e9;
  --tool-accent-2: #22c55e;
  --tool-accent-line: rgba(14, 165, 233, 0.24);
  --tool-accent-glow: rgba(14, 165, 233, 0.08);
  --tool-shadow: rgba(14, 165, 233, 0.2);
}

.home-tool-radio {
  --tool-accent: #f97316;
  --tool-accent-2: #ec4899;
  --tool-accent-line: rgba(249, 115, 22, 0.24);
  --tool-accent-glow: rgba(249, 115, 22, 0.08);
  --tool-shadow: rgba(249, 115, 22, 0.2);
}

.home-tool-links {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.34rem;
}

.home-tool-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: #1b4c5d;
  font-size: 0.76rem;
  font-weight: 760;
  text-decoration: none;
  padding: 0.42rem 0.52rem;
}

.home-tool-links a:hover {
  border-color: rgba(14, 165, 233, 0.34);
  background: #effbff;
}

.home-radio {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.28rem;
}

.home-radio label {
  color: #5c4860;
  font-size: 0.72rem;
  font-weight: 760;
}

.home-radio-select {
  width: 100%;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #5a3f1f;
  font-size: 0.79rem;
  font-weight: 700;
  min-height: 34px;
  padding: 0.35rem 0.44rem;
}

.home-radio-player {
  width: 100%;
  height: 38px;
  border-radius: 10px;
}

.home-radio-status {
  color: #5c4860;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.35;
  min-height: 0.95rem;
}

.home-radio-status.is-error {
  color: #b42318;
}

.home-radio-select:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.44);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.home-games-panel {
  align-self: start;
  border: 1px solid rgba(29, 78, 216, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(237, 250, 255, 0.9));
  box-shadow: 0 20px 62px rgba(15, 35, 65, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  max-height: 360px;
  overflow: hidden;
  padding: 1.05rem;
}

.home-games-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.home-games-head h3 {
  color: #12243a;
  font-size: 1.05rem;
  margin: 0;
}

.home-games-head span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #285087;
  font-size: 0.74rem;
  font-weight: 760;
  padding: 0.28rem 0.58rem;
}

.home-games-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.54rem;
  max-height: 278px;
  overflow: auto;
  padding-right: 0.1rem;
}

.home-games-list li {
  display: flex;
  align-items: center;
  gap: 0.64rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: #314a67;
  font-size: 0.92rem;
  font-weight: 730;
  padding: 0.56rem 0.62rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.home-games-list li:hover {
  border-color: rgba(29, 78, 216, 0.24);
  background: #f3f8ff;
  transform: translateX(2px);
}

.home-games-list li i {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: #fff;
  font-size: 0.92rem;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}

.home-tool-modal .modal-dialog {
  max-width: 380px;
}

.home-tool-modal .modal-content {
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(245, 251, 255, 0.96), rgba(234, 246, 255, 0.92));
  box-shadow: 0 28px 80px rgba(15, 35, 65, 0.24);
}

.home-tool-modal .modal-header {
  border-bottom: 1px solid rgba(37, 99, 235, 0.14);
  padding: 0.9rem 1rem 0.72rem;
}

.home-tool-modal .modal-title {
  color: #0f2740;
  font-weight: 800;
}

.home-tool-modal .modal-body {
  padding: 0.9rem 1rem 1rem;
}

.home-calc-shell {
  border: 1px solid rgba(29, 78, 216, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  padding: 0.72rem;
}

.home-calc-display {
  width: 100%;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  background: #f8fcff;
  color: #10263f;
  font-size: 1.5rem;
  font-weight: 780;
  text-align: right;
  min-height: 58px;
  padding: 0.65rem 0.72rem;
  margin-bottom: 0.66rem;
}

.home-calc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.home-calc-key {
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 12px;
  background: #ffffff;
  color: #1d3553;
  font-size: 1rem;
  font-weight: 760;
  min-height: 44px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.home-calc-key:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background: #f2f8ff;
  transform: translateY(-1px);
}

.home-calc-key:active {
  transform: translateY(0);
}

.home-calc-key-muted {
  background: #eef4fb;
  color: #37506f;
}

.home-calc-key-op {
  background: linear-gradient(135deg, #eff5ff, #e8fffb);
  color: #174677;
}

.home-calc-key-equals {
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.26);
}

.home-calc-key-equals:hover {
  background: linear-gradient(135deg, #1d4ed8, #0f9b8d);
  color: #ffffff;
}

.home-calc-key-zero {
  grid-column: span 2;
}

.home-workflow-section {
  position: relative;
  overflow: hidden;
  padding: 5.2rem 0 4.6rem;
  background:
    radial-gradient(circle at 12% 8%, rgba(20, 184, 166, 0.13), transparent 30%),
    radial-gradient(circle at 88% 24%, rgba(29, 78, 216, 0.14), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
}

.home-workflow-section::before {
  content: "";
  position: absolute;
  inset: 1.4rem auto auto 50%;
  width: min(840px, 88vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29, 78, 216, 0.22), transparent);
  transform: translateX(-50%);
}

.home-workflow-section .container {
  position: relative;
  z-index: 1;
}

.home-section-heading-centered {
  max-width: 900px;
  grid-template-columns: 1fr;
  margin-inline: auto;
  text-align: center;
}

.home-section-heading-centered > span {
  justify-self: center;
}

.home-workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2.6rem;
}

.home-workflow-step {
  position: relative;
  overflow: hidden;
  min-height: 288px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.82));
  box-shadow: 0 22px 70px rgba(15, 35, 65, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  padding: 1.55rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.home-workflow-step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--workflow-accent-soft), transparent 48%);
  opacity: 0.9;
}

.home-workflow-step::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 140px;
  height: 140px;
  border: 1px solid var(--workflow-accent-line);
  border-radius: 50%;
  background: var(--workflow-accent-glow);
}

.home-workflow-step:hover {
  border-color: var(--workflow-accent-line);
  box-shadow: 0 28px 90px rgba(15, 35, 65, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-6px);
}

.home-workflow-step > span {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  color: rgba(15, 35, 65, 0.08);
  font-size: 4.8rem;
  font-weight: 850;
  line-height: 1;
}

.home-workflow-step i {
  position: relative;
  z-index: 1;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin: 0.35rem 0 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--workflow-accent), var(--workflow-accent-2));
  color: #ffffff;
  box-shadow: 0 16px 34px var(--workflow-shadow);
  font-size: 1.34rem;
}

.home-workflow-step h3 {
  position: relative;
  z-index: 1;
  color: #102033;
  font-size: 1.22rem;
  margin-bottom: 0.55rem;
}

.home-workflow-step p {
  position: relative;
  z-index: 1;
  color: #607089;
  font-size: 0.98rem;
  line-height: 1.62;
  margin-bottom: 0;
}

.home-workflow-step-capture {
  --workflow-accent: #2563eb;
  --workflow-accent-2: #14b8a6;
  --workflow-accent-soft: rgba(37, 99, 235, 0.12);
  --workflow-accent-line: rgba(37, 99, 235, 0.24);
  --workflow-accent-glow: rgba(37, 99, 235, 0.08);
  --workflow-shadow: rgba(37, 99, 235, 0.2);
}

.home-workflow-step-organize {
  --workflow-accent: #0f766e;
  --workflow-accent-2: #16a34a;
  --workflow-accent-soft: rgba(15, 118, 110, 0.12);
  --workflow-accent-line: rgba(15, 118, 110, 0.24);
  --workflow-accent-glow: rgba(15, 118, 110, 0.08);
  --workflow-shadow: rgba(15, 118, 110, 0.2);
}

.home-workflow-step-discover {
  --workflow-accent: #7c3aed;
  --workflow-accent-2: #2563eb;
  --workflow-accent-soft: rgba(124, 58, 237, 0.12);
  --workflow-accent-line: rgba(124, 58, 237, 0.24);
  --workflow-accent-glow: rgba(124, 58, 237, 0.08);
  --workflow-shadow: rgba(124, 58, 237, 0.19);
}

.home-workflow-step-share {
  --workflow-accent: #db2777;
  --workflow-accent-2: #f59e0b;
  --workflow-accent-soft: rgba(219, 39, 119, 0.12);
  --workflow-accent-line: rgba(219, 39, 119, 0.24);
  --workflow-accent-glow: rgba(219, 39, 119, 0.08);
  --workflow-shadow: rgba(219, 39, 119, 0.18);
}

.home-highlight-section {
  padding: 0 0 4.5rem;
}

.home-ads-section {
  padding: 0.4rem 0 4rem;
  background:
    radial-gradient(circle at 10% 8%, rgba(20, 184, 166, 0.1), transparent 28%),
    radial-gradient(circle at 86% 22%, rgba(29, 78, 216, 0.12), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
}

.home-ads-shell {
  position: relative;
}

.home-ads-slider {
  overflow: hidden;
  border-radius: 24px;
}

.home-ad-slide {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  align-items: stretch;
  border: 1px solid rgba(29, 78, 216, 0.16);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(236, 253, 245, 0.85));
  box-shadow: 0 20px 58px rgba(15, 35, 65, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  text-decoration: none;
  min-height: 320px;
}

.home-ad-media-wrap {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.home-ad-media-wrap img,
.home-ad-media-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-ad-media-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 17, 31, 0.12), transparent 65%);
}

.home-ad-media-art {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 76% 24%, rgba(255, 241, 182, 0.92), rgba(255, 221, 125, 0.55) 22%, transparent 45%),
    linear-gradient(180deg, #7fd9ff 0%, #9be5ff 42%, #58c9eb 58%, #2cb2da 76%, #1f9ec6 100%);
}

.home-ad-sun {
  position: absolute;
  top: 16%;
  right: 16%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8d1 0%, #ffe18c 55%, #ffcc5b 100%);
  box-shadow: 0 0 32px rgba(255, 211, 109, 0.52);
}

.home-ad-cloud {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 20px rgba(22, 82, 120, 0.12);
}

.home-ad-cloud-1 {
  top: 18%;
  left: 14%;
  width: 96px;
  height: 28px;
}

.home-ad-cloud-2 {
  top: 32%;
  left: 34%;
  width: 82px;
  height: 24px;
}

.home-ad-plane {
  position: absolute;
  top: 22%;
  left: 56%;
  color: #ffffff;
  font-size: 1.45rem;
  transform: rotate(-18deg);
  text-shadow: 0 10px 18px rgba(8, 30, 48, 0.28);
}

.home-ad-wave {
  position: absolute;
  left: -8%;
  right: -8%;
  border-radius: 50%;
}

.home-ad-wave-1 {
  bottom: 20%;
  height: 110px;
  background: rgba(255, 255, 255, 0.2);
}

.home-ad-wave-2 {
  bottom: 8%;
  height: 96px;
  background: rgba(255, 255, 255, 0.3);
}

.home-ad-island {
  position: absolute;
  bottom: 12%;
  left: 60%;
  width: 132px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(180deg, #8cc86e 0%, #4f9a49 100%);
  box-shadow: 0 14px 30px rgba(13, 64, 31, 0.22);
}

.home-ad-palm {
  position: absolute;
  bottom: 25%;
  left: 70%;
  width: 8px;
  height: 62px;
  border-radius: 999px;
  background: #8a5a36;
}

.home-ad-palm::before,
.home-ad-palm::after {
  content: "";
  position: absolute;
  top: -16px;
  width: 36px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #52b267, #2b8d4c);
}

.home-ad-palm::before {
  left: -30px;
  transform: rotate(-20deg);
}

.home-ad-palm::after {
  left: 4px;
  transform: rotate(18deg);
}

.home-ad-slide-peacezone .home-ad-content {
  padding: 1.7rem 1.7rem 1.5rem;
  gap: 0.9rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.1), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(241, 250, 255, 0.88));
}

.home-ad-slide-peacezone .home-ad-tag {
  font-size: 0.84rem;
  padding: 0.32rem 0.82rem;
  border-color: rgba(20, 184, 166, 0.36);
  background: rgba(20, 184, 166, 0.18);
  color: #0f766e;
}

.home-ad-slide-peacezone h3 {
  color: #0d2340;
  font-size: clamp(1.85rem, 3.1vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.home-ad-slide-peacezone p {
  color: #35536f;
  font-size: clamp(1.05rem, 1.38vw, 1.22rem);
  line-height: 1.58;
  max-width: 38ch;
}

.home-ad-slide-peacezone .home-ad-cta {
  font-size: 1rem;
  font-weight: 820;
  border: 1px solid rgba(37, 99, 235, 0.26);
  background: linear-gradient(135deg, #ffffff, #eaf5ff);
  color: #15406c;
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.16);
  padding: 0.74rem 1.08rem;
}

.home-ad-slide-peacezone .home-ad-cta i {
  font-size: 1.08rem;
}

.home-ad-slide-peacezone:hover .home-ad-cta {
  background: linear-gradient(135deg, #ffffff, #dceeff);
  box-shadow: 0 18px 36px rgba(29, 78, 216, 0.2);
}

@media (max-width: 991.98px) {
  .home-ad-slide-peacezone .home-ad-content {
    padding: 1.2rem 1rem 1.15rem;
  }

  .home-ad-slide-peacezone h3 {
    font-size: clamp(1.45rem, 7vw, 2.05rem);
  }

  .home-ad-slide-peacezone p {
    font-size: clamp(0.95rem, 4vw, 1.06rem);
    max-width: none;
  }
}

.home-ad-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 0.62rem;
  padding: 1.25rem 1.25rem 1.2rem;
}

.home-ad-tag {
  width: fit-content;
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.14);
  color: #0f766e;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.18rem 0.52rem;
}

.home-ad-slide h3 {
  color: #10263f;
  font-size: 1.2rem;
  line-height: 1.28;
  margin: 0;
}

.home-ad-slide p {
  color: #5e738e;
  font-size: 0.93rem;
  line-height: 1.48;
  margin: 0;
}

.home-ad-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  background: #ffffff;
  color: #1f4774;
  font-size: 0.82rem;
  font-weight: 780;
  white-space: nowrap;
  padding: 0.52rem 0.84rem;
}

.home-ad-slide:hover {
  border-color: rgba(29, 78, 216, 0.3);
  box-shadow: 0 24px 68px rgba(15, 35, 65, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.97);
}

.home-ad-slide:hover .home-ad-cta {
  background: #f1f7ff;
}

.home-ads-pagination {
  position: static !important;
  margin-top: 0.84rem;
}

.home-ads-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.32);
  opacity: 1;
}

.home-ads-pagination .swiper-pagination-bullet-active {
  background: linear-gradient(135deg, #2563eb, #14b8a6);
}

.home-ads-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(15, 35, 65, 0.16);
  color: #2b4f79;
  margin: 0;
}

.home-ads-nav::after {
  content: none;
}

.home-ads-prev {
  left: -14px;
}

.home-ads-next {
  right: -14px;
}

.home-ads-nav i {
  font-size: 1rem;
}

.home-highlight-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
  border: 1px solid rgba(29, 78, 216, 0.1);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 253, 245, 0.72)),
    url("/static/my_css/assets/img/about.png") right 8% bottom / 280px no-repeat;
  box-shadow: var(--premium-shadow-sm);
  padding: clamp(1.5rem, 4vw, 2.6rem);
  min-height: 460px;
  max-height: 460px;
}

.premium-kicker-light {
  border-color: rgba(29, 78, 216, 0.14);
  background: rgba(29, 78, 216, 0.08);
  color: var(--premium-primary);
}

.home-highlight-copy h2 {
  max-width: 760px;
  font-size: clamp(1.42rem, 2.45vw, 2.05rem);
  line-height: 1.04;
}

.home-highlight-copy p {
  max-width: 700px;
  color: var(--premium-muted);
  font-size: 1.05rem;
}

.home-highlight-list {
  align-self: end;
  display: grid;
  gap: 0.85rem;
}

.home-highlight-blog-list {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem 1.4rem;
  max-height: 100%;
  overflow: auto;
  padding-right: 0.18rem;
  align-content: start;
}

.home-highlight-blog-card {
  display: grid;
  gap: 0.4rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #19314b;
  text-decoration: none;
  padding: 0.1rem 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.home-highlight-blog-card:hover {
  color: #0f2d4a;
  transform: translateY(-1px);
}

.home-highlight-blog-card strong {
  color: #11253c;
  font-size: 1.03rem;
  line-height: 1.3;
}

.home-highlight-blog-card em {
  color: #5f748f;
  font-size: 0.89rem;
  font-style: normal;
  line-height: 1.35;
}

.home-highlight-empty {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
  color: #5f748f;
  font-weight: 720;
}

.home-highlight-list div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: #26364c;
  font-weight: 760;
  padding: 0.9rem;
}

.home-highlight-list i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: #ecfdf5;
  color: #047857;
}

.home-feature-item {
  border: 1px solid var(--premium-line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--premium-shadow-sm);
  padding: 1.4rem;
}

.home-feature-item i {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: #eef5ff;
  color: var(--premium-primary);
  font-size: 1.35rem;
}

.home-feature-item h2 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.home-feature-item p {
  color: var(--premium-muted);
  margin-bottom: 0;
}

.home-posts-section {
  padding: 4rem 0;
}

.home-section-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.6rem;
}

.home-section-heading > span {
  align-self: start;
  border: 1px solid rgba(29, 78, 216, 0.14);
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--premium-primary);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.48rem 0.74rem;
  text-transform: uppercase;
}

.home-section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0.2rem;
}

.home-section-heading p {
  color: var(--premium-muted);
  margin-bottom: 0;
}

.home-post-list {
  overflow: hidden;
  position: relative;
  border: 1px solid var(--premium-line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--premium-shadow-md);
}

.home-post-row {
  position: relative;
}

.home-post-row + .home-post-row {
  border-top: 1px solid var(--premium-line);
}

.home-post-link {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  color: var(--premium-ink);
  padding: 1.2rem 5.2rem 1.2rem 1.25rem;
}

.home-post-link:hover {
  background: linear-gradient(90deg, rgba(239, 246, 255, 0.9), rgba(236, 253, 245, 0.55));
  color: var(--premium-ink);
}

.home-post-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  background: #f1f5f9;
  color: rgba(29, 78, 216, 0.7);
  font-weight: 850;
}

.home-post-text {
  min-width: 0;
}

.home-post-chip {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.38rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.42rem 0.65rem;
}

.home-post-text strong,
.home-post-text em {
  display: block;
}

.home-post-text strong {
  color: var(--premium-ink);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.25;
}

.home-post-text em {
  color: var(--premium-muted);
  font-size: 0.96rem;
  font-style: normal;
  margin-top: 0.25rem;
}

.home-post-meta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  color: var(--premium-muted);
  font-size: 0.88rem;
  font-weight: 700;
  justify-content: flex-end;
  min-width: 220px;
}

.home-post-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.home-post-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: #eef5ff;
  color: var(--premium-primary);
}

.home-delete-form {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  z-index: 2;
}

.home-cta-band {
  padding: 0 0 4rem;
}

.home-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: linear-gradient(90deg, #07111f, #12335f 52%, #0f766e);
  box-shadow: var(--premium-shadow-md);
  color: #fff;
  padding: clamp(1.4rem, 4vw, 2.5rem);
}

.home-cta-content span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  text-transform: uppercase;
}

.home-cta-content h2 {
  max-width: 720px;
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 3rem);
  margin: 0.35rem 0 0;
}

.home-testimonials-section {
  position: relative;
  overflow: hidden;
  padding: 0 0 4.2rem;
}

.home-testimonials-shell {
  position: relative;
  margin-top: 1.4rem;
  padding: 0 4.2rem;
}

.home-testimonials-slider {
  overflow: hidden;
  padding: 0.35rem 0.15rem 2.7rem;
}

.home-testimonial-card {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.7));
  box-shadow: 0 22px 70px rgba(15, 35, 65, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 1.35rem;
}

.home-testimonial-card::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -62px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.08);
}

.home-testimonial-quote {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.2);
  font-size: 1.3rem;
}

.home-testimonial-card p {
  position: relative;
  z-index: 1;
  color: #40516a;
  font-size: 1rem;
  line-height: 1.68;
  margin-bottom: 1.35rem;
}

.home-testimonial-person {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.78rem;
  margin-top: auto;
}

.home-testimonial-person img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border: 3px solid #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 35, 65, 0.14);
}

.home-testimonial-person h3 {
  font-size: 1rem;
  margin: 0;
}

.home-testimonial-person span {
  color: #607089;
  font-size: 0.86rem;
  font-weight: 750;
}

.home-testimonial-nav {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: #1d4ed8;
  box-shadow: 0 16px 42px rgba(15, 35, 65, 0.13);
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.home-testimonial-nav::after {
  content: none;
}

.home-testimonial-nav i {
  font-size: 1.15rem;
}

.home-testimonial-nav:hover {
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: #ffffff;
  transform: translateY(-2px);
}

.home-testimonial-pagination {
  bottom: 0 !important;
}

.home-testimonial-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(29, 78, 216, 0.28);
  opacity: 1;
}

.home-testimonial-pagination .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #14b8a6);
}

/* Home senior UI pass: reduce over-boxing, keep interactions intact */
.home-feature-strip,
.home-tools-games-section,
.home-workflow-section,
.home-highlight-section,
.home-ads-section,
.home-testimonials-section {
  background:
    radial-gradient(circle at 14% 10%, rgba(20, 184, 166, 0.09), transparent 32%),
    radial-gradient(circle at 86% 20%, rgba(29, 78, 216, 0.1), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eff6fc 100%);
}

.home-feature-item,
.home-workflow-step,
.home-tool-card,
.home-games-panel,
.home-testimonial-card,
.home-ad-slide {
  border-color: rgba(30, 64, 110, 0.1);
  box-shadow: 0 12px 34px rgba(15, 35, 65, 0.08);
}

.home-feature-item,
.home-workflow-step,
.home-tool-card,
.home-games-panel,
.home-ad-slide {
  border-radius: 16px;
}

.home-workflow-step,
.home-tool-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 255, 0.82));
}

.home-workflow-step:hover,
.home-tool-card:hover,
.home-feature-item:hover,
.home-ad-slide:hover,
.home-testimonial-card:hover {
  box-shadow: 0 18px 44px rgba(15, 35, 65, 0.12);
}

.home-tools-games-grid {
  gap: 1.4rem;
}

.home-tools-panel {
  gap: 0.86rem;
}

/* Homepage layout polish: balanced cards, cleaner grid, better mobile flow */
.home-tools-games-grid {
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
  gap: 1rem;
  align-items: start;
}

.home-tools-panel {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-content: start;
}

.home-tool-card,
.home-games-panel,
.home-highlight-layout {
  border-radius: 16px;
  border: 1px solid rgba(30, 64, 110, 0.1);
  box-shadow: 0 12px 30px rgba(15, 35, 65, 0.08);
}

.home-tool-card,
.home-games-panel {
  padding: 1rem;
}

.home-tool-card {
  min-height: 200px;
}

.home-tool-compact {
  min-height: 170px;
}

.home-tool-card h3,
.home-games-head h3 {
  letter-spacing: 0.01em;
  margin-bottom: 0.55rem;
}

.home-tool-icon {
  margin-bottom: 0.7rem;
}

.home-tool-card p {
  margin-bottom: 0.15rem;
}

.home-tool-card:hover,
.home-games-list li:hover,
.home-highlight-blog-card:hover {
  transform: translateY(-2px);
}

.home-games-panel {
  max-height: none;
}

.home-games-list {
  max-height: 320px;
  gap: 0.48rem;
}

@media (max-width: 1199.98px) {
  .home-tools-games-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .home-tools-panel {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .home-tool-card,
  .home-games-panel {
    padding: 0.9rem;
  }

  .home-tool-card {
    min-height: 180px;
  }

  .home-tool-compact {
    min-height: 156px;
  }
}

.home-section-heading > span,
.premium-kicker-light,
.home-ad-tag,
.home-games-head span {
  letter-spacing: 0.01em;
}

.home-highlight-layout {
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 35, 65, 0.07);
  border-color: rgba(30, 64, 110, 0.09);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 249, 255, 0.8));
}

.home-highlight-blog-list {
  gap: 0.84rem 1.22rem;
  max-height: 300px;
  overflow: auto;
  padding-right: 0.14rem;
  align-content: start;
}

.home-highlight-blog-card {
  border-bottom: 1px solid rgba(37, 99, 235, 0.14);
  padding-bottom: 0.42rem;
}

.home-highlight-blog-card:last-child {
  border-bottom-color: transparent;
}

.home-highlight-copy p {
  max-width: 60ch;
}

.home-ad-content {
  padding: 1.1rem 1.1rem 1.05rem;
}

.home-ad-slide h3 {
  font-size: 1.1rem;
}

.home-ad-slide p {
  font-size: 0.88rem;
}

.home-testimonials-shell,
.home-ads-shell {
  margin-top: 0.35rem;
}

.home-testimonial-nav,
.home-ads-nav {
  width: 38px;
  height: 38px;
  box-shadow: 0 10px 26px rgba(15, 35, 65, 0.14);
}

.back-to-top {
  border-radius: 14px;
  background: linear-gradient(135deg, var(--premium-primary), var(--premium-accent));
  box-shadow: var(--premium-shadow-sm);
}

@media (max-width: 991.98px) {
  .home-ad-slide {
    grid-template-columns: 1fr;
  }

  .home-ad-media-wrap {
    min-height: 220px;
  }

  .home-highlight-blog-list {
    grid-template-columns: 1fr 1fr;
  }

  .home-tools-games-grid {
    grid-template-columns: 1fr;
  }

  .home-tools-panel {
    grid-template-columns: 1fr 1fr;
  }

  body {
    padding-top: 120px;
  }

  .premium-navbar-wrap {
    padding: 0;
  }

  .premium-nav-container {
    min-height: 82px;
    border-radius: 0;
    padding: 0.72rem 0.9rem;
  }

  .navbar-collapse {
    border-top: 1px solid var(--premium-line);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .premium-nav-links {
    align-items: stretch !important;
    display: flex !important;
  }

  .premium-nav-links .nav-link,
  .premium-nav-links .btn {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin: 0.12rem 0;
    border-radius: 16px;
    padding: 0.9rem 1rem;
  }

  .premium-nav-links .dropdown-toggle::after {
    margin-left: auto;
  }

  .premium-nav-links .nav-link i {
    display: inline-grid;
    width: 1.35rem;
    place-items: center;
  }

  .premium-nav-links .nav-link.active::after {
    left: 1.08rem;
    bottom: 0.34rem;
    width: 1.15rem;
    transform: none;
  }

  .premium-navbar .dropdown-menu {
    position: static;
    box-shadow: none;
    margin: 0.25rem 0 0.5rem;
  }

  .premium-admin-link {
    margin-left: 0;
  }

  .premium-footer-main {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
    padding-top: 1rem;
    background:
      radial-gradient(circle at 14% 12%, rgba(20, 184, 166, 0.14), transparent 30%),
      radial-gradient(circle at 86% 18%, rgba(29, 78, 216, 0.13), transparent 30%),
      linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
  }

  .home-hero-copy {
    max-width: 760px;
    transform: translateY(-1.25rem);
  }

  .home-hero-visual {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
  }

  .home-hero-illustration {
    display: block;
    width: min(96vw, 560px);
    max-width: 100%;
    height: auto;
    margin-inline: auto;
  }

  .home-section-heading {
    grid-template-columns: 1fr;
  }

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

  .home-highlight-layout {
    grid-template-columns: 1fr;
    background-size: 220px;
  }

  .home-testimonials-shell {
    padding: 0 3.2rem;
  }

  .home-post-link {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .home-post-meta-wrap {
    grid-column: 2;
    justify-content: flex-start;
    min-width: 0;
  }
}

@media (max-width: 767.98px) {
  .home-ads-nav {
    display: none !important;
  }

  .home-highlight-layout {
    min-height: auto;
    max-height: none;
  }

  .home-highlight-blog-list {
    grid-template-columns: 1fr;
    max-height: 360px;
  }

  .home-tools-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .premium-brand-subtitle {
    display: none;
  }

  .premium-footer-links {
    grid-template-columns: 1fr;
  }

  .premium-footer-bottom {
    flex-direction: column;
  }

  .home-hero {
    min-height: auto;
    padding: 3.1rem 0 2.2rem;
  }

  .home-hero-copy {
    transform: none;
    text-align: left;
  }

  .home-hero-eyebrow {
    margin-bottom: 0.72rem;
    font-size: 0.72rem;
    padding: 0.45rem 0.78rem;
  }

  .home-hero h1 {
    font-size: clamp(1.72rem, 8.6vw, 2.6rem);
    line-height: 1.12;
    margin-bottom: 0.75rem;
    white-space: normal;
  }

  .home-hero p {
    font-size: clamp(0.94rem, 4.2vw, 1.16rem);
    line-height: 1.4;
    margin-bottom: 1.2rem;
    white-space: normal;
  }

  .home-hero-actions,
  .home-cta-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.62rem;
  }

  .home-hero-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .btn-home-start,
  .btn-home-video,
  .btn-home-new-post {
    min-height: 46px;
    font-size: 1rem;
  }

  .btn-home-video {
    justify-content: center;
    padding: 0.45rem 0.45rem;
    white-space: nowrap;
  }

  .btn-home-video span,
  .btn-home-new-post span {
    width: 30px;
    height: 30px;
  }

  .btn-home-new-post {
    justify-content: center;
    grid-column: 1 / -1;
  }

  .btn-home-start {
    padding: 0.62rem 0.9rem;
  }

  .home-hero-note {
    align-items: flex-start;
    font-size: 0.82rem;
    margin-top: 1rem;
  }

  .home-youtube-strip {
    margin-top: 1.1rem;
  }

  .home-youtube-strip-head-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.4rem;
  }

  .home-youtube-strip-head a {
    font-size: 0.74rem;
    padding: 0.28rem 0.58rem;
  }

  .home-youtube-scroll {
    grid-auto-columns: minmax(150px, 164px);
    gap: 0.5rem;
    padding-bottom: 0.12rem;
  }

  .home-youtube-card img {
    height: 88px;
  }

  .home-youtube-card span {
    font-size: 0.7rem;
  }

  .home-hero-visual {
    min-height: 230px;
    margin-top: 0.85rem;
  }

  .home-hero-illustration {
    width: min(100%, 500px);
    max-width: 100%;
    border-radius: 16px;
    animation-duration: 6.5s;
  }

  .home-feature-grid,
  .home-workflow-grid {
    grid-template-columns: 1fr;
  }

  .home-highlight-layout {
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 253, 245, 0.72));
  }

  .home-testimonials-shell {
    padding: 0;
    text-align: center;
  }

  .home-testimonial-nav {
    position: static;
    display: inline-grid;
    margin: 0.4rem 0.25rem 0;
  }

  .home-post-list {
    border-radius: 22px;
  }

  .home-post-link {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.1rem 4.5rem 1.1rem 1rem;
  }

  .home-post-number {
    width: fit-content;
    height: auto;
    border-radius: 999px;
    padding: 0.42rem 0.65rem;
  }

  .home-post-meta-wrap {
    grid-column: auto;
  }

  .home-post-date {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .home-hero {
    padding: 1.7rem 0 2rem;
  }

  .home-hero-actions,
  .home-cta-content {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .btn-home-video,
  .btn-home-new-post {
    grid-column: auto;
  }

  .home-youtube-scroll {
    grid-auto-columns: minmax(142px, 152px);
  }

  .home-hero-illustration {
    width: 100%;
  }
}

/* Home page senior refinement: calmer surfaces, fewer box-like visuals */
.home-feature-strip,
.home-tools-games-section,
.home-workflow-section,
.home-highlight-section,
.home-ads-section,
.home-testimonials-section {
  background:
    radial-gradient(circle at 14% 10%, rgba(20, 184, 166, 0.08), transparent 34%),
    radial-gradient(circle at 86% 20%, rgba(29, 78, 216, 0.09), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #f1f7fc 100%);
}

.home-feature-item,
.home-workflow-step,
.home-tool-card,
.home-games-panel,
.home-testimonial-card,
.home-ad-slide,
.home-highlight-layout {
  border-color: rgba(30, 64, 110, 0.1) !important;
  box-shadow: 0 10px 28px rgba(15, 35, 65, 0.08) !important;
}

.home-feature-item,
.home-workflow-step,
.home-tool-card,
.home-games-panel,
.home-ad-slide {
  border-radius: 14px !important;
}

.home-workflow-step,
.home-tool-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(246, 251, 255, 0.82)) !important;
}

.home-tools-games-grid {
  gap: 1.5rem;
}

.home-tools-panel {
  gap: 0.86rem;
}

.home-workflow-grid {
  gap: 0.95rem;
}

.home-workflow-step {
  min-height: 254px;
  padding: 1.22rem;
}

.home-workflow-step > span {
  font-size: 4rem;
}

.home-workflow-step i {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin: 0.22rem 0 1.1rem;
}

.home-highlight-layout {
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(241, 249, 255, 0.82)) !important;
}

.home-highlight-copy p {
  max-width: 58ch;
}

.home-highlight-blog-card {
  border-bottom: 1px solid rgba(37, 99, 235, 0.14);
  padding-bottom: 0.38rem;
}

.home-highlight-blog-card:last-child {
  border-bottom-color: transparent;
}

.home-ad-slide {
  border-radius: 16px !important;
  min-height: 304px;
}

.home-ad-content {
  padding: 1rem 1rem 0.96rem;
}

.home-ad-slide h3 {
  font-size: 1.05rem;
}

.home-ad-slide p {
  font-size: 0.86rem;
}

.home-ads-nav,
.home-testimonial-nav {
  width: 38px;
  height: 38px;
  box-shadow: 0 10px 24px rgba(15, 35, 65, 0.14);
}

.home-testimonial-card {
  border-radius: 16px;
}

.home-testimonial-card p {
  font-size: 0.96rem;
}

@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;
  }

  .premium-ribbon-track {
    transform: none !important;
  }
}

/* Homepage mobile stability pass: hero-only responsive cleanup */
@media (max-width: 767.98px) {
  body:has(.home-hero) {
    padding-top: 132px;
  }

  .home-hero,
  .home-hero .container {
    overflow-x: clip;
  }

  .home-hero {
    padding: 1.25rem 0 2rem;
  }

  .home-hero-row {
    --bs-gutter-y: 1.1rem;
  }

  .home-hero-copy {
    max-width: 100%;
  }

  .home-hero h1 {
    font-size: clamp(2rem, 7.8vw, 2.7rem);
    line-height: 1.1;
  }

  .home-hero p {
    font-size: clamp(0.98rem, 4.1vw, 1.12rem);
  }

  .home-hero-actions,
  .home-cta-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .home-hero-actions .btn,
  .home-cta-content .btn {
    width: auto;
    max-width: 100%;
    min-width: 0;
  }

  .btn-home-start {
    padding: 0.62rem 1.1rem;
  }

  .btn-home-video {
    padding: 0.38rem 0.25rem;
  }

  .home-youtube-strip {
    margin-top: 0.95rem;
  }

  .home-youtube-scroll {
    grid-auto-columns: minmax(138px, 150px);
  }

  .home-hero-visual {
    width: 100%;
    min-height: auto;
    margin-top: 0.45rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .home-hero-illustration {
    display: block;
    width: min(100%, 420px);
    max-width: calc(100vw - 2rem);
    height: auto;
    margin-inline: auto;
  }
}

@media (max-width: 575.98px) {
  body:has(.home-hero) {
    padding-top: 128px;
  }

  .home-hero h1 {
    font-size: clamp(1.95rem, 8vw, 2.45rem);
  }

  .home-hero-illustration {
    width: min(100%, 390px);
    max-width: calc(100vw - 1.5rem);
  }
}

/* Final hero centering guard (mobile/tablet): prevent gutter offsets and clipping */
@media (max-width: 991.98px) {
  .home-hero .container {
    overflow-x: hidden !important;
  }

  .home-hero-row {
    --bs-gutter-x: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .home-hero-row > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .home-hero-visual {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    overflow: visible !important;
  }

  .home-hero-illustration {
    display: block !important;
    width: min(94vw, 560px) !important;
    max-width: 94vw !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    animation: heroFloat 6.5s ease-in-out infinite !important;
  }
}

.home-install-tip-wrap {
  padding: 0.4rem 0 1.2rem;
}

.home-install-tip {
  margin: 0 auto;
  border: 1px solid rgba(249, 115, 22, 0.38);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff3e0, #ffe0b2);
  color: #9a3412;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.16);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  padding: 0.58rem 0.72rem;
  width: fit-content;
  max-width: calc(100% - 1rem);
}

@media (max-width: 767.98px) {
  .home-install-tip-wrap {
    padding: 0.25rem 0 1rem;
  }

  .home-install-tip {
    font-size: 0.8rem;
    padding: 0.5rem 0.58rem;
  }
}
