/* ==========================================================================
   Google Play inspired frontend skin
   Loaded after dcm.css / green.css from layouts/master.blade.php
   ========================================================================== */

:root {
  --gp-green: #01875f;
  --gp-green-dark: #056449;
  --gp-green-tint: #e6f3ef;
  --gp-text: #202124;
  --gp-text-2: #5f6368;
  --gp-line: #dadce0;
  --gp-surface: #ffffff;
  --gp-surface-2: #f8f9fa;
  --gp-radius: 12px;
  --gp-icon-radius: 20%;
  --gp-shadow: 0 1px 2px rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15);
  --gp-header-h: 64px;
  --gp-font: "Google Sans", "Roboto", "Segoe UI", Arial, sans-serif;
}

body.gp {
  background: var(--gp-surface);
  color: var(--gp-text);
  font-family: var(--gp-font);
  font-size: 14px;
}
body.gp a { color: inherit; }
body.gp a:hover { text-decoration: none; }

body.gp #page-container,
body.gp #main-container { background: var(--gp-surface); }
body.gp #page-container { padding-top: var(--gp-header-h); }
body.gp #page-container > * { flex-shrink: 0; }

.gp-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 575px) { .gp-wrap { padding: 0 16px; } }

/* ---------- Header -------------------------------------------------------- */
body.gp #page-header.gp-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  height: var(--gp-header-h);
  background: var(--gp-surface);
  box-shadow: 0 1px 2px rgba(60,64,67,.15);
}
.gp-header .gp-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.gp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--gp-text-2) !important;
  font-size: 22px;
  letter-spacing: -.2px;
}
.gp-brand img { height: 36px; width: auto; }
.gp-brand-mark { width: 32px; height: 32px; }

.gp-tabs {
  display: flex;
  align-items: stretch;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gp-tabs > li { position: relative; display: flex; }
.gp-tabs > li > a {
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--gp-text-2) !important;
  font-weight: 500;
  font-size: 14px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.gp-tabs > li > a:hover { color: var(--gp-green) !important; }
.gp-tabs > li.gp-active > a {
  color: var(--gp-green) !important;
  border-bottom-color: var(--gp-green);
}
.gp-tabs .gp-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--gp-surface);
  border-radius: 8px;
  box-shadow: var(--gp-shadow);
}
.gp-tabs > li:hover > .gp-submenu { display: block; }
.gp-submenu a {
  display: block;
  padding: 10px 20px;
  color: var(--gp-text) !important;
}
.gp-submenu a:hover { background: var(--gp-surface-2); }

.gp-search {
  flex: 1;
  max-width: 560px;
  margin-left: auto;
  position: relative;
}
.gp-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gp-text-2);
}
.gp-search input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 46px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: #f1f3f4;
  color: var(--gp-text);
  font-size: 15px;
  outline: none;
  transition: background .15s, box-shadow .15s;
}
.gp-search input:focus {
  background: var(--gp-surface);
  box-shadow: var(--gp-shadow);
}
.gp-icon-btn {
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gp-text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gp-icon-btn:hover { background: #f1f3f4; }

.gp-user .btn-dual,
.gp-user .btn {
  background: transparent !important;
  border: 0 !important;
  color: var(--gp-text-2) !important;
  box-shadow: none !important;
}

/* mobile tab bar below header */
.gp-mobile-tabs {
  display: none;
  overflow-x: auto;
  white-space: nowrap;
  border-bottom: 1px solid var(--gp-line);
  background: var(--gp-surface);
  scrollbar-width: none;
}
.gp-mobile-tabs::-webkit-scrollbar { display: none; }
.gp-mobile-tabs a {
  display: inline-block;
  padding: 14px 16px 11px;
  color: var(--gp-text-2);
  font-weight: 500;
  border-bottom: 3px solid transparent;
}
.gp-mobile-tabs a.gp-active { color: var(--gp-green); border-bottom-color: var(--gp-green); }

@media (max-width: 991px) {
  .gp-tabs { display: none; }
  .gp-mobile-tabs { display: block; }
}
@media (max-width: 767px) {
  .gp-search { display: none; }
  .gp-header .gp-wrap { gap: 8px; }
  .gp-brand span { display: none; }
  .gp-header-actions { margin-left: auto; }
}

/* ---------- Page content -------------------------------------------------- */
.gp-main { padding-top: 24px; padding-bottom: 48px; width: 100%; min-width: 0; }
body.gp .content.content-full { padding: 0; max-width: none; }

/* neutralise legacy OneUI blocks inside the new layout */
body.gp .block { box-shadow: none; background: transparent; margin-bottom: 0; }
body.gp .block-header.bg-light { background: transparent !important; padding-left: 0; padding-right: 0; }

/* ---------- Section header ------------------------------------------------- */
.gp-section { margin-bottom: 40px; }
.gp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.gp-section-title {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  color: var(--gp-text);
  font-family: var(--gp-font);
}
.gp-section-title a { display: inline-flex; align-items: center; gap: 12px; }
.gp-section-title a i {
  font-size: 15px;
  color: var(--gp-text-2);
  transition: transform .15s;
}
.gp-section-title a:hover i { transform: translateX(3px); color: var(--gp-text); }
.gp-section-sub { color: var(--gp-text-2); margin: -10px 0 16px; }

/* ---------- App cards ------------------------------------------------------ */
.gp-app-card {
  display: block;
  padding: 8px;
  margin-bottom: 16px;
  border-radius: var(--gp-radius);
  transition: background .15s;
}
.gp-app-card:hover { background: var(--gp-surface-2); }
.gp-app-icon {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--gp-icon-radius);
  box-shadow: 0 1px 3px rgba(60,64,67,.2);
  background: var(--gp-surface-2);
}
.gp-app-name {
  margin: 10px 0 2px;
  font-size: 14px;
  line-height: 20px;
  color: var(--gp-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gp-app-meta {
  font-size: 13px;
  color: var(--gp-text-2);
  display: flex;
  align-items: center;
  gap: 4px;
}
.gp-app-meta .fa-star { font-size: 10px; }

/* horizontal scroll rows (home sections) */
.gp-scroller {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  gap: 4px;
  margin: 0 -8px;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.gp-scroller::-webkit-scrollbar { display: none; }
.gp-scroller > .gp-col {
  flex: 0 0 auto;
  width: 152px;
  max-width: none;
  padding: 0;
  scroll-snap-align: start;
}
@media (max-width: 575px) { .gp-scroller > .gp-col { width: 112px; } }

/* Desktop: icon rows always span the full width. A short row (e.g. 6 apps) stretches its
   cards evenly up to 200px; a long row keeps 150px cards and scrolls sideways. */
@media (min-width: 992px) {
  .gp-scroller:not(.gp-scroller-hero) > .gp-col {
    flex: 1 0 150px;
    width: auto;
    max-width: 200px;
  }
  .gp-scroller:not(.gp-scroller-hero) { gap: 8px; }
}

/* grid of cards (newest / category / search pages) */
.gp-grid { margin: 0 -8px; }
.gp-grid > .gp-col { padding: 0; }

/* scroll arrows */
.gp-scroll-wrap { position: relative; }
.gp-scroll-btn {
  position: absolute;
  top: 38%;
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--gp-surface);
  box-shadow: var(--gp-shadow);
  color: var(--gp-text-2);
  display: none;
  align-items: center;
  justify-content: center;
}
.gp-scroll-btn.prev { left: -12px; }
.gp-scroll-btn.next { right: -12px; }
@media (min-width: 992px) {
  .gp-scroll-wrap:hover .gp-scroll-btn { display: inline-flex; }
}

/* ---------- Hero slider ---------------------------------------------------- */
.gp-hero { margin-bottom: 40px; }
.gp-hero .carousel { border-radius: 16px; overflow: hidden; }
.gp-hero .carousel-item img { height: 360px; object-fit: cover; }
.gp-hero .carousel-caption {
  left: 0; right: 0; bottom: 0;
  padding: 48px 32px 24px;
  text-align: left;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
}
.gp-hero .carousel-caption h3 { color: #fff; font-size: 28px; margin: 0; }
@media (max-width: 767px) { .gp-hero .carousel-item img { height: 200px; } }

/* ---------- App detail ------------------------------------------------------ */
.gp-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
@media (max-width: 1099px) { .gp-detail { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

.gp-breadcrumb { font-size: 13px; color: var(--gp-text-2); margin-bottom: 16px; }
.gp-breadcrumb a:hover { color: var(--gp-green); }

.gp-app-hero { display: flex; gap: 32px; align-items: flex-start; margin-bottom: 32px; }
.gp-app-hero .gp-hero-icon {
  width: 180px; height: 180px;
  border-radius: var(--gp-icon-radius);
  box-shadow: 0 1px 4px rgba(60,64,67,.3);
  flex-shrink: 0;
  object-fit: cover;
}
.gp-app-title {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--gp-text);
}
.gp-dev-link { color: var(--gp-green) !important; font-weight: 500; font-size: 16px; }
.gp-dev-link:hover { text-decoration: underline !important; }
.gp-badges { color: var(--gp-text-2); font-size: 13px; margin-top: 4px; }

.gp-stats { display: flex; align-items: center; margin: 24px 0; flex-wrap: wrap; row-gap: 12px; }
.gp-stat { padding: 0 24px; text-align: center; position: relative; }
.gp-stat:first-child { padding-left: 0; }
.gp-stat + .gp-stat::before {
  content: "";
  position: absolute;
  left: 0; top: 25%;
  height: 50%;
  border-left: 1px solid var(--gp-line);
}
.gp-stat-value { font-weight: 500; font-size: 15px; color: var(--gp-text); }
.gp-stat-label { font-size: 12px; color: var(--gp-text-2); }

.gp-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.gp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  min-width: 200px;
  padding: 0 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.gp-btn-primary { background: var(--gp-green); color: #fff !important; }
.gp-btn-primary:hover { background: var(--gp-green-dark); box-shadow: var(--gp-shadow); }
.gp-btn-outline { background: transparent; color: var(--gp-green) !important; border-color: var(--gp-line); min-width: 0; }
.gp-btn-outline:hover { background: var(--gp-green-tint); }
.gp-btn-sm { height: 36px; min-width: 0; padding: 0 16px; font-size: 14px; }
.gp-btn small { opacity: .85; font-weight: 400; }

@media (max-width: 767px) {
  .gp-app-hero { gap: 16px; }
  .gp-app-hero .gp-hero-icon { width: 72px; height: 72px; }
  .gp-app-title { font-size: 24px; }
  .gp-stat { padding: 0 14px; }
  .gp-actions .gp-btn { width: 100%; }
  .gp-version { padding: 12px; gap: 12px; }
}

/* screenshots strip */
.gp-shots {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.gp-shots a { flex: 0 0 auto; scroll-snap-align: start; }
.gp-shots img {
  height: 300px;
  width: auto;
  border-radius: 8px;
  border: 1px solid var(--gp-line);
  background: var(--gp-surface-2);
}
@media (max-width: 767px) { .gp-shots img { height: 220px; } }

/* "About this app" & info */
.gp-block { margin-bottom: 36px; }
.gp-block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 16px;
  color: var(--gp-text);
}
.gp-about {
  color: var(--gp-text-2);
  line-height: 1.6;
  font-size: 14px;
  position: relative;
}
.gp-about.is-collapsed { max-height: 220px; overflow: hidden; }
.gp-about.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(rgba(255,255,255,0), #fff);
}
.gp-about h1, .gp-about h2, .gp-about h3, .gp-about h4 { font-size: 16px; color: var(--gp-text); margin-top: 16px; }
.gp-about ul { padding-left: 20px; }
.gp-link-btn {
  background: none;
  border: 0;
  padding: 8px 0;
  color: var(--gp-green);
  font-weight: 500;
}

.gp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gp-chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--gp-line);
  border-radius: 16px;
  color: var(--gp-text-2) !important;
  font-size: 13px;
}
.gp-chip:hover { background: var(--gp-surface-2); color: var(--gp-text) !important; }

.gp-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px 32px;
}
.gp-info-grid dt { font-weight: 500; color: var(--gp-text); font-size: 14px; }
.gp-info-grid dd { color: var(--gp-text-2); margin: 2px 0 0; word-break: break-word; }

.gp-whatsnew {
  background: var(--gp-surface-2);
  border-radius: var(--gp-radius);
  padding: 16px 20px;
  color: var(--gp-text-2);
}

/* versions list */
.gp-version-list { border: 1px solid var(--gp-line); border-radius: var(--gp-radius); overflow: hidden; }
.gp-version {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--gp-line);
}
.gp-version:first-child { border-top: 0; }
.gp-version-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gp-green-tint);
  color: var(--gp-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gp-version-body { flex: 1; min-width: 0; }
.gp-version-name { font-weight: 500; }
.gp-version-meta { color: var(--gp-text-2); font-size: 12px; }

/* right column list ("Similar apps") */
.gp-side-title { font-size: 18px; font-weight: 500; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; }
.gp-side-title a { color: var(--gp-text-2); font-size: 14px; }
.gp-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 8px;
  border-radius: var(--gp-radius);
}
.gp-list-item:hover { background: var(--gp-surface-2); }
.gp-list-item img { width: 56px; height: 56px; border-radius: var(--gp-icon-radius); box-shadow: 0 1px 3px rgba(60,64,67,.2); }
.gp-list-item .gp-app-name { margin: 0; -webkit-line-clamp: 1; }

/* comments + legacy blocks inside detail */
.gp-comments .block-content { padding: 0; }

/* ---------- Download page ------------------------------------------------- */
.gp-download-card {
  border: 1px solid var(--gp-line);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin-bottom: 40px;
}
.gp-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--gp-green-tint);
  overflow: hidden;
  margin: 20px auto;
  max-width: 420px;
}
.gp-progress span { display: block; height: 100%; width: 0; background: var(--gp-green); transition: width 1s linear; }

/* ---------- Misc legacy pages (category, search, latest...) --------------- */
body.gp .block-title { font-family: var(--gp-font); font-size: 22px; font-weight: 500; color: var(--gp-text); }
body.gp .block-options a,
body.gp .btn-block-option { color: var(--gp-green) !important; }
body.gp .btn-primary,
body.gp .btn-success { background: var(--gp-green); border-color: var(--gp-green); }
body.gp .btn-primary:hover,
body.gp .btn-success:hover { background: var(--gp-green-dark); border-color: var(--gp-green-dark); }
body.gp .text-primary, body.gp .text-success { color: var(--gp-green) !important; }
body.gp .pagination .page-item.active .page-link { background: var(--gp-green); border-color: var(--gp-green); }
body.gp .form-control:focus { border-color: var(--gp-green); box-shadow: 0 0 0 .2rem rgba(1,135,95,.15); }

/* sidebar widgets, when a page still shows one */
body.gp .gp-sidebar .block { border: 1px solid var(--gp-line); border-radius: var(--gp-radius); margin-bottom: 24px; }

.gp-chip.gp-active { background: var(--gp-green-tint); border-color: var(--gp-green-tint); color: var(--gp-green) !important; font-weight: 500; }
body.gp #page-footer > .gp-wrap { width: 100%; }

/* ==========================================================================
   Play app (mobile) layout: bottom navigation, chip row, banner cards
   ========================================================================== */
.gp-bottom-nav { display: none; }

.gp-chips-scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.gp-chips-scroll::-webkit-scrollbar { display: none; }
.gp-chips-scroll .gp-chip { flex-shrink: 0; height: 36px; padding: 0 16px; font-size: 14px; }

/* large banner cards ("Recommended for you") */
.gp-scroller-banner { gap: 16px; margin: 0; }
.gp-scroller > .gp-banner-col { width: 320px; padding: 0; }
.gp-banner { display: block; color: var(--gp-text) !important; }
.gp-banner-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--gp-surface-2);
  box-shadow: 0 1px 3px rgba(60,64,67,.25);
  margin-bottom: 10px;
}
.gp-banner-bg {
  position: absolute;
  inset: -20%;
  width: 140%; height: 140%;
  object-fit: cover;
  filter: blur(28px) saturate(1.4);
  opacity: .9;
}
.gp-banner-icon {
  position: absolute;
  left: 50%; top: 50%;
  width: 34%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 22%;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .25s;
}
.gp-banner:hover .gp-banner-icon { transform: translate(-50%, -50%) scale(1.05); }
.gp-banner-name { font-size: 16px; font-weight: 500; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-banner .gp-app-meta { white-space: nowrap; overflow: hidden; }

@media (max-width: 991px) {
  /* swap the top tab row for the Play app bottom bar */
  .gp-mobile-tabs { display: none !important; }
  .gp-bottom-nav {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1030;
    height: 64px;
    background: var(--gp-surface);
    border-top: 1px solid var(--gp-line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .gp-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--gp-text-2) !important;
    font-size: 12px;
    font-weight: 500;
  }
  .gp-bottom-icon {
    width: 56px; height: 30px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: background .15s;
  }
  .gp-bottom-nav a.gp-active { color: var(--gp-green) !important; }
  .gp-bottom-nav a.gp-active .gp-bottom-icon { background: var(--gp-green-tint); }
  body.gp { padding-bottom: 64px; }
}

@media (max-width: 767px) {
  .gp-main { padding-top: 16px; }
  .gp-section { margin-bottom: 28px; }
  .gp-section-title { font-size: 18px; }
  .gp-scroller > .gp-banner-col { width: 82vw; max-width: 340px; }
  .gp-scroller-banner { gap: 12px; }
  .gp-hero .carousel { border-radius: 12px; }
}

/* ==========================================================================
   "Recommended for you" hero slider (Play featured cards)
   ========================================================================== */
.gp-scroller-hero { gap: 20px; margin: 0; padding: 4px 2px 8px; scroll-snap-type: x mandatory; }
.gp-scroller > .gp-hero-col { width: 480px; padding: 0; scroll-snap-align: start; }

.gp-hero-card {
  position: relative;
  height: 356px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.gp-hero-badge {
  position: absolute;
  top: 0; left: 0;
  z-index: 3;
  padding: 5px 9px;
  border-bottom-right-radius: 8px;
  background: #1f1f1f;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1px;
}
.gp-hero-mark {
  position: absolute;
  top: 14px; right: 18px;
  z-index: 3;
  width: 26px; height: 26px;
  color: #2de2b0;
  filter: drop-shadow(0 0 6px rgba(45,226,176,.6));
}

/* tilted, glowing frame */
.gp-hero-art {
  position: absolute;
  top: 28px; left: 0; right: 0;
  height: 190px;
  display: flex;
  justify-content: center;
  perspective: 700px;
}
.gp-hero-frame {
  position: relative;
  width: 58%;
  height: 100%;
  display: flex;
  gap: 4px;
  overflow: hidden;
  border: 3px solid #2de2b0;
  background: #0b1f1a;
  transform: rotateY(-14deg) rotateZ(-1deg);
  box-shadow: 0 0 22px rgba(45,226,176,.55), 0 0 60px rgba(45,226,176,.25);
  transition: transform .4s ease;
}
.gp-hero-card:hover .gp-hero-frame { transform: rotateY(-6deg) rotateZ(0deg) scale(1.03); }
.gp-hero-frame img { flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; }
.gp-hero-frame.is-icon { align-items: center; justify-content: center; }
.gp-hero-frame-bg { position: absolute; inset: -30%; width: 160% !important; height: 160% !important; filter: blur(24px) saturate(1.5); opacity: .85; }
.gp-hero-frame-icon { position: relative; flex: 0 0 auto !important; width: auto !important; height: 62% !important; aspect-ratio: 1/1; border-radius: 22%; box-shadow: 0 8px 24px rgba(0,0,0,.45); }

/* fade the art into the black card behind the text */
.gp-hero-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 62%;
  background: linear-gradient(rgba(0,0,0,0), #000 42%);
  z-index: 1;
  pointer-events: none;
}

.gp-hero-copy {
  position: absolute;
  left: 22px; right: 22px; bottom: 82px;
  z-index: 2;
}
.gp-hero-headline {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #fff !important;
  font-size: 21px;
  line-height: 28px;
  font-weight: 500;
}
.gp-hero-tagline { font-size: 14px; color: rgba(255,255,255,.88); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gp-hero-foot {
  position: absolute;
  left: 22px; right: 22px; bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}
.gp-hero-app { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; color: #fff !important; }
.gp-hero-app img { width: 44px; height: 44px; border-radius: 22%; flex-shrink: 0; }
.gp-hero-app strong { display: block; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-hero-app small { display: block; font-size: 13px; color: rgba(255,255,255,.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-hero-app small .fa-star { font-size: 10px; }
.gp-hero-app > span { min-width: 0; }

.gp-hero-cta { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.gp-hero-btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 20px;
  border-radius: 16px;
  background: #1de9b6;
  color: #00201a !important;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s, box-shadow .15s;
}
.gp-hero-btn:hover { background: #64ffda; box-shadow: 0 0 12px rgba(29,233,182,.6); }
.gp-hero-cta small { font-size: 10px; margin-top: 3px; color: rgba(255,255,255,.8); }

/* arrows always visible for the slider (desktop) */
@media (min-width: 992px) {
  .gp-hero-slider .gp-scroll-btn { display: inline-flex; top: 50%; transform: translateY(-50%); }
  .gp-hero-slider .gp-scroll-btn.next { right: -18px; }
  .gp-hero-slider .gp-scroll-btn.prev { left: -18px; }
}
.gp-hero-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.gp-hero-dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--gp-line); transition: width .2s, background .2s; }
.gp-hero-dots span.gp-active { width: 18px; background: var(--gp-green); }

@media (max-width: 575px) {
  .gp-scroller > .gp-hero-col { width: 88vw; }
  .gp-scroller-hero { gap: 12px; }
  .gp-hero-card { height: 300px; }
  .gp-hero-art { height: 150px; top: 30px; }
  .gp-hero-frame { width: 70%; }
  .gp-hero-copy { left: 16px; right: 16px; bottom: 74px; }
  .gp-hero-headline { font-size: 18px; line-height: 24px; }
  .gp-hero-foot { left: 16px; right: 16px; bottom: 14px; gap: 8px; }
  .gp-hero-app img { width: 40px; height: 40px; }
  .gp-hero-btn { padding: 0 14px; font-size: 13px; }
}
.gp-credit { font-size: 11px; opacity: .85; }
.gp-credit a { font-weight: 500; color: var(--gp-green) !important; }

/* ==========================================================================
   Footer: brand + 3 menu columns (4 across), icon badges, bottom bar
   ========================================================================== */
.gp-footer { padding: 48px 0 24px; background: var(--gp-surface-2); border-top: 1px solid var(--gp-line); }
.gp-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 32px;
}
.gp-footer-logo img { height: 34px; width: auto; }
.gp-footer-logo strong { font-size: 22px; color: var(--gp-text); }
.gp-footer-brand p { margin: 14px 0 18px; line-height: 1.6; max-width: 300px; }
.gp-footer-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.gp-footer-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  background: var(--gp-surface);
  border: 1px solid var(--gp-line);
  color: var(--gp-text) !important;
  font-weight: 500;
}
.gp-footer-cta a:hover { border-color: var(--gp-green); color: var(--gp-green) !important; }

.gp-footer h5 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gp-text);
  margin-bottom: 16px;
}
.gp-footer li { margin-bottom: 6px; }
.gp-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  color: var(--gp-text-2) !important;
  transition: color .15s, transform .15s;
}
.gp-footer-link:hover { color: var(--gp-green) !important; transform: translateX(3px); }
.gp-footer-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--gp-surface);
  border: 1px solid var(--gp-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--gp-text-2);
  transition: background .15s, color .15s, border-color .15s;
}
.gp-footer-link:hover .gp-footer-icon { background: var(--gp-green-tint); border-color: var(--gp-green-tint); color: var(--gp-green); }

/* social column: brand colour on hover */
.gp-footer-social .gp-footer-link:hover { transform: translateX(3px); }
.gp-footer-social .gp-footer-link:hover .gp-footer-icon { color: #fff; border-color: transparent; }
.gp-footer-social .gp-footer-link:hover .gp-footer-icon:has(.fa-facebook, .fa-facebook-square, .fa-facebook-f) { background: #1877f2; }
.gp-footer-social .gp-footer-link:hover .gp-footer-icon:has(.fa-twitter, .fa-twitter-square, .fa-x-twitter) { background: #111; }
.gp-footer-social .gp-footer-link:hover .gp-footer-icon:has(.fa-google-plus, .fa-google-plus-square, .fa-google-plus-g, .fa-google) { background: #ea4335; }
.gp-footer-social .gp-footer-link:hover .gp-footer-icon:has(.fa-pinterest, .fa-pinterest-square, .fa-pinterest-p) { background: #e60023; }
.gp-footer-social .gp-footer-link:hover .gp-footer-icon:has(.fa-instagram) { background: #d6249f; }
.gp-footer-social .gp-footer-link:hover .gp-footer-icon:has(.fa-youtube) { background: #ff0000; }
.gp-footer-social .gp-footer-link:hover .gp-footer-icon:has(.fa-linkedin, .fa-linkedin-in) { background: #0a66c2; }

body.gp .gp-footer .gp-footer-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--gp-line);
  font-size: 13px;
}
.gp-footer-bottom .gp-credit { margin-left: auto; font-size: 12px; }
.gp-to-top {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gp-surface);
  border: 1px solid var(--gp-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gp-to-top:hover { background: var(--gp-green); border-color: var(--gp-green); color: #fff !important; }

@media (max-width: 991px) {
  .gp-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .gp-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
  .gp-footer { padding-top: 32px; }
  .gp-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gp-footer-icon { width: 28px; height: 28px; border-radius: 8px; }
  .gp-footer-link { gap: 10px; font-size: 13px; }
  .gp-footer-bottom .gp-credit { margin-left: 0; }
  .gp-to-top { margin-left: auto; }
}

/* leave room for the fixed bottom navigation on phones/tablets */
@media (max-width: 991px) {
  body.gp .gp-footer { padding-bottom: calc(24px + 64px + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   Sign in / register / password pages (layouts/master-login → body.gp-auth)
   ========================================================================== */
body.gp-auth #main-container { background: var(--gp-surface-2); }
body.gp-auth .gp-main { padding-top: 40px; padding-bottom: 56px; }
body.gp-auth .hero-static { min-height: 0 !important; padding: 0; }
body.gp-auth .hero-static > div { width: 100%; max-width: 940px; }

/* the two-panel card */
body.gp-auth .hero-static .row.no-gutters {
  border-radius: 24px;
  overflow: hidden;
  background: var(--gp-surface);
  border: 1px solid var(--gp-line);
  box-shadow: 0 1px 2px rgba(60,64,67,.12), 0 12px 32px rgba(60,64,67,.12);
}
body.gp-auth .bg-white { background: var(--gp-surface) !important; }
body.gp-auth .block-content { background: transparent; }

/* brand panel */
body.gp-auth .bg-primary-dark-op {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #01875f 0%, #056449 55%, #033d2d 100%) !important;
  min-height: 220px;
}
body.gp-auth .bg-primary-dark-op::before {
  /* big Play triangle watermark */
  content: "";
  position: absolute;
  right: -60px; bottom: -40px;
  width: 260px; height: 260px;
  background: rgba(255,255,255,.08);
  clip-path: polygon(18% 6%, 92% 50%, 18% 94%);
  border-radius: 24px;
}
body.gp-auth .bg-primary-dark-op::after {
  content: "";
  position: absolute;
  left: -80px; top: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,233,182,.35), transparent 70%);
}
body.gp-auth .bg-primary-dark-op .block-content { position: relative; z-index: 1; padding: 48px 40px !important; }
body.gp-auth .bg-primary-dark-op .text-white { font-size: 24px; line-height: 1.3; font-weight: 700 !important; margin-bottom: 10px !important; }
body.gp-auth .bg-primary-dark-op a { color: rgba(255,255,255,.85) !important; font-size: 14px; }
body.gp-auth .bg-primary-dark-op a:hover { color: #fff !important; text-decoration: underline; }

/* form side */
body.gp-auth .order-md-1 .block-content { padding: 44px 44px 36px !important; }
body.gp-auth .order-md-1 .dcm-logo img { height: 40px; width: auto; }
body.gp-auth .order-md-1 .text-uppercase.text-muted { letter-spacing: .12em; color: var(--gp-text) !important; font-size: 13px !important; margin-top: 6px; }

body.gp-auth .form-control,
body.gp-auth .form-control-alt {
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--gp-line) !important;
  background: var(--gp-surface) !important;
  font-size: 15px;
  color: var(--gp-text);
  box-shadow: none !important;
  transition: border-color .15s, box-shadow .15s;
}
body.gp-auth textarea.form-control { height: auto; }
body.gp-auth .form-control:focus,
body.gp-auth .form-control-alt:focus {
  border-color: var(--gp-green) !important;
  box-shadow: 0 0 0 3px rgba(1,135,95,.15) !important;
}
body.gp-auth .form-control.is-invalid { border-color: #d93025 !important; }
body.gp-auth .text-danger { font-size: 13px; }
body.gp-auth label { font-weight: 500; font-size: 13px; color: var(--gp-text); }

body.gp-auth .btn-hero-primary,
body.gp-auth .btn-primary {
  height: 48px;
  border-radius: 24px !important;
  background: var(--gp-green) !important;
  border-color: var(--gp-green) !important;
  color: #fff !important;
  font-weight: 600;
  letter-spacing: .04em;
  box-shadow: 0 6px 16px rgba(1,135,95,.28) !important;
  transform: none !important;
}
body.gp-auth .btn-hero-primary:hover,
body.gp-auth .btn-primary:hover { background: var(--gp-green-dark) !important; border-color: var(--gp-green-dark) !important; }

body.gp-auth hr { border-top-color: var(--gp-line); margin: 22px 0 6px; }
body.gp-auth .btn-sm.btn-light,
body.gp-auth .btn-sm.btn-secondary {
  height: 38px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 16px;
  border-radius: 19px;
  font-weight: 500;
  font-size: 13px;
}
body.gp-auth .btn-sm.btn-light { background: transparent; border: 1px solid var(--gp-line); color: var(--gp-text-2); }
body.gp-auth .btn-sm.btn-light:hover { background: var(--gp-surface-2); color: var(--gp-text); }
body.gp-auth .btn-sm.btn-secondary { background: var(--gp-green-tint); border: 1px solid var(--gp-green-tint); color: var(--gp-green) !important; }
body.gp-auth .btn-sm.btn-secondary:hover { background: var(--gp-green); color: #fff !important; }
body.gp-auth .btn-sm .text-muted { color: inherit !important; }

@media (max-width: 991px) {
  body.gp-auth .hero-static { flex: 0 0 100%; max-width: 100%; }
}
@media (max-width: 767px) {
  body.gp-auth .gp-main { padding-top: 20px; }
  body.gp-auth .bg-primary-dark-op { min-height: 0; }
  body.gp-auth .bg-primary-dark-op .block-content { padding: 26px 24px !important; }
  body.gp-auth .bg-primary-dark-op .text-white { font-size: 19px; }
  body.gp-auth .order-md-1 .block-content { padding: 28px 22px 24px !important; }
  body.gp-auth .btn-sm.btn-light, body.gp-auth .btn-sm.btn-secondary { width: 100%; margin-bottom: 8px; }
}
body.gp-auth .btn-secondary:not(.btn-sm),
body.gp-auth .btn-light:not(.btn-sm) {
  height: 44px;
  border-radius: 22px;
  background: transparent !important;
  border: 1px solid var(--gp-line) !important;
  color: var(--gp-green) !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.gp-auth .btn-secondary:not(.btn-sm):hover,
body.gp-auth .btn-light:not(.btn-sm):hover { background: var(--gp-green-tint) !important; border-color: var(--gp-green-tint) !important; }

/* admin sign-in (layouts/master-admin-login): standalone, centred, admin colours */
body.gp-admin-login #page-container { padding-top: 0; }
body.gp-admin-login #main-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(700px 500px at 85% 0%, rgba(29,233,182,.18), transparent 60%),
    radial-gradient(600px 500px at 0% 100%, rgba(1,135,95,.35), transparent 60%),
    linear-gradient(160deg, #0f1d1a, #07110e) !important;
}
.gp-admin-login-wrap { width: 100%; max-width: 440px; padding: 32px 16px; }
.gp-admin-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 22px; color: #fff !important; font-weight: 700; font-size: 18px; line-height: 1.1; }
.gp-admin-brand small { display: block; font-weight: 400; font-size: 12px; color: #a7b3af; }
.gp-admin-brand-mark { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #01875f, #34a853); font-size: 19px; box-shadow: 0 8px 24px rgba(1,135,95,.45); }
body.gp-admin-login .hero-static,
body.gp-admin-login .hero-static > div,
body.gp-admin-login .hero-static .col-md-6 { flex: 0 0 100%; max-width: 100%; width: 100%; }
body.gp-admin-login .hero-static .row.no-gutters { border: 0; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
body.gp-admin-login .order-md-1 .block-content { padding: 36px 32px 28px !important; }
.gp-admin-credit { text-align: center; margin-top: 22px; font-size: 12px; color: #7d8b87; }
.gp-admin-credit a { color: #34d399 !important; font-weight: 600; }
.gp-admin-brand, .gp-admin-brand:hover { text-decoration: none !important; }

/* search page: large search field */
.gp-search.gp-search-page { max-width: 720px; margin: 0 0 28px; }
.gp-search.gp-search-page input { height: 52px; border-radius: 26px; font-size: 16px; }
@media (max-width: 767px) { .gp-search.gp-search-page { display: block; margin-bottom: 22px; } }
