@import '../../sass/variable.scss';

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: normal;
  box-sizing: border-box;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

img {
  height: 100%;
  width: 100%;
  cursor: pointer;
}

svg {
  height: 100%;
  width: 100%;
}

i {
  display: inline-block;
  cursor: pointer;
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #BBC1C3;
  font-size: 14px;
}

textarea:focus, input:focus {
  outline: none;
}

input:focus {
  outline: none;
}

select {
  -webkit-appearance: none;
  margin: 0;
}

input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.btn {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  border-radius: 10px;
  padding: 15px 70px;
  border: 0;
  cursor: pointer;
}
.btn.btn_primary {
  background: linear-gradient(180deg, #FC4355, #C31C2C);
}

html, body {
  min-height: 100vh;
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-body);
}
.container,
.term_block {
  min-height: 100vh;
}

.hidden {
  display: none;
}

.sidebar_block {
  width: 340px;
  border: 1px solid var(--border-color);
  border-width: 0px 1px 0px 0px;
  height: 100vh;
}
.sidebar_block .logo {
  background: url("/assets/images/enkrip_logo.svg") no-repeat;
  background-size: 100%;
  background-position: center;
  width: 140px;
  height: 60px;
  display: block;
  margin: 0px 30px;
  padding: 20px 0;
}
.sidebar_block .sidebar_list {
  font-size: 16px;
  font-weight: 600;
}
.sidebar_block .sidebar_list li {
  position: relative;
  transition: all 0.3s ease;
}
.sidebar_block .sidebar_list li a {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: #9d9d9d;
  padding: 18px 30px;
}
.sidebar_block .sidebar_list li a .icon {
  width: 24px;
  height: 24px;
}
.sidebar_block .sidebar_list li a .icon svg {
  fill: #ACACAC;
}
.sidebar_block .sidebar_list li.sidebar_list_active {
  background-color: #202020;
}
.sidebar_block .sidebar_list li.sidebar_list_active a {
  color: #ffffff;
}
.sidebar_block .sidebar_list li.sidebar_list_active a .icon svg {
  fill: #FC4355;
}
.sidebar_block .sidebar_list li.sidebar_list_active:after {
  content: "";
  width: 2px;
  height: 26px;
  background-color: #FC4355;
  border-radius: 6px;
  position: absolute;
  right: 0px;
  top: 20px;
}
.sidebar_block .sidebar_list li:hover {
  background-color: #202020;
}
.sidebar_block .user_nav_block {
  display: flex;
  align-items: center;
  padding: 18px 30px;
  gap: 20px;
  cursor: pointer;
}
.sidebar_block .user_nav_block .user_img {
  border-radius: 100%;
  object-fit: cover;
  width: 30px;
  height: 30px;
}
.sidebar_block .user_nav_block .user_name {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  gap: 5px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.sidebar_block .user_nav_block .user_name span {
  font-size: 14px;
  font-weight: 500;
  color: #9d9d9d;
}
.sidebar_block .create_post_block {
  text-align: center;
  position: absolute;
  bottom: 30px;
  width: 340px;
}

.term_block {
  display: flex;
  justify-content: center;
  background-color: #000000;
}
.term_block .logo {
  height: 60px;
  padding: 0 20px;
  background-color: #000000;
  position: fixed;
  left: 0px;
  right: 0px;
  z-index: 1;
  box-shadow: 0 3px 0px rgba(255, 255, 255, 0.0901960784);
}
.term_block .logo img {
  width: 140px;
}
.term_block .terms_content {
  font-weight: 600;
  position: relative !important;
  width: calc(100% - 24px);
  max-width: 1440px;
  min-height: calc(100vh - 24px);
  margin: 12px 12px;
  border-radius: 24px 24px 0px 0px;
  overflow: hidden;
  z-index: 1;
  color: white !important;
  background: linear-gradient(180deg, #0c191f 0%, #0c191f00 100%);
  padding: 16px 12px 16px;
}

.term_block .terms_content .background_image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  max-height: 200vh;

}
.term_block .terms_content h1 {
  font-size: 20px;
  line-height: 20px;
  font-weight: 600;
  color: white;
  z-index: 10;
  position: relative;
  margin-bottom: 24px;
}
.term_block .terms_content h2 {
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  color: white;
  z-index: 10;
  position: relative;
  padding-bottom: 20px;


}
.term_block .terms_content h3 {
  font-size: 32px;
  line-height: normal;
  padding-bottom: 40px;
}
.term_block .terms_content h4 {
  font-size: 22px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.term_block .terms_content h6 {
  font-size: 16px;
  padding-bottom: 20px;
}
.term_block .terms_content p {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  padding-bottom: 20px;
  color:white;
  z-index: 10;
  position: relative;
}
.term_block .terms_content p span {
  color: #9d9d9d;
  padding-right: 5px;
}
.term_block .terms_content p a {
  color: white;
  text-decoration: underline;
}
.term_block .terms_content li a {
  color: white;
  text-decoration: underline;
}
.term_block .terms_content .rewards_item {
  padding-bottom: 24px;
  position: relative;
  z-index: 10;
}
.term_block .terms_content ol {
  list-style: decimal outside;
  padding-left: 20px;
  position: relative;
  z-index: 10;
}
.term_block .terms_content ol li {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: white;
  padding-bottom: 8px;
}

.term_block .terms_content ul {
  padding-bottom: 20px;
  position: relative;
  z-index: 10;
}

/* Rewards T&C pages (mission_TnC.html, voucher_TnC.html, leaderboard_TnC.html)
   .rewards_page sits on <html>. Theme: ?theme=0|1 from the app sets data-theme,
   otherwise the system appearance decides. Light tokens are the default. */
.rewards_page {
  color-scheme: light;
  --rewards-bg: #f5f5f7;
  --rewards-surface: #ffffff;
  --rewards-surface-border: rgba(0, 0, 0, 0.06);
  --rewards-surface-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.04);
  --rewards-highlight-bg: #e5e5ea;
  --rewards-text: #1d1d1f;
  --rewards-text-body: #3a3a3c;
  --rewards-text-muted: #6e6e73;
  --rewards-divider: rgba(0, 0, 0, 0.1);
  --rewards-bullet: rgba(0, 0, 0, 0.3);
  --rewards-skeleton: rgba(0, 0, 0, 0.07);
  --rewards-focus: #0071e3;
  --rewards-glow-primary: rgba(0, 168, 243, 0.14);
  --rewards-glow-secondary: rgba(92, 200, 247, 0.12);

  --rewards-brand: linear-gradient(135deg, #5cc8f7 0%, #00a8f3 50%, #0081bc 100%);
  --rewards-brand-shadow: 0 8px 20px rgba(0, 168, 243, 0.3);

  --rewards-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rewards-content-max-width: 720px;
  --rewards-page-pad-x: 20px;
  --rewards-page-pad-top: calc(28px + env(safe-area-inset-top));
  --rewards-page-pad-bottom: calc(48px + env(safe-area-inset-bottom));
  --rewards-title-size: 28px;
  --rewards-doc-title-size: 22px;
  --rewards-item-title-size: 17px;
  --rewards-body-size: 15px;
  --rewards-card-radius: 16px;
  --rewards-card-pad: 18px 18px;
  --rewards-card-gap: 12px;

  background: var(--rewards-bg);
  overflow-x: hidden;
  overflow-x: clip;
}
@media (prefers-color-scheme: dark) {
  .rewards_page:not([data-theme="light"]) {
    color-scheme: dark;
    --rewards-bg: #000000;
    --rewards-surface: #1c1c1e;
    --rewards-surface-border: rgba(255, 255, 255, 0.06);
    --rewards-surface-shadow: none;
    --rewards-highlight-bg: #3a3a3c;
    --rewards-text: #f5f5f7;
    --rewards-text-body: rgba(235, 235, 245, 0.8);
    --rewards-text-muted: rgba(235, 235, 245, 0.6);
    --rewards-divider: rgba(255, 255, 255, 0.12);
    --rewards-bullet: rgba(235, 235, 245, 0.3);
    --rewards-skeleton: rgba(255, 255, 255, 0.09);
    --rewards-focus: #0a84ff;
    --rewards-glow-primary: rgba(0, 168, 243, 0.24);
    --rewards-glow-secondary: rgba(0, 129, 188, 0.2);
  }
}
.rewards_page[data-theme="dark"] {
  color-scheme: dark;
  --rewards-bg: #000000;
  --rewards-surface: #1c1c1e;
  --rewards-surface-border: rgba(255, 255, 255, 0.06);
  --rewards-surface-shadow: none;
  --rewards-highlight-bg: #3a3a3c;
  --rewards-text: #f5f5f7;
  --rewards-text-body: rgba(235, 235, 245, 0.8);
  --rewards-text-muted: rgba(235, 235, 245, 0.6);
  --rewards-divider: rgba(255, 255, 255, 0.12);
  --rewards-bullet: rgba(235, 235, 245, 0.3);
  --rewards-skeleton: rgba(255, 255, 255, 0.09);
  --rewards-focus: #0a84ff;
  --rewards-glow-primary: rgba(0, 168, 243, 0.24);
  --rewards-glow-secondary: rgba(0, 129, 188, 0.2);
}
@media (min-width: 768px) {
  .rewards_page {
    --rewards-page-pad-x: 32px;
    --rewards-page-pad-top: 80px;
    --rewards-page-pad-bottom: 96px;
    --rewards-title-size: 40px;
    --rewards-doc-title-size: 28px;
    --rewards-item-title-size: 19px;
    --rewards-body-size: 16px;
    --rewards-card-radius: 20px;
    --rewards-card-pad: 24px 28px;
    --rewards-card-gap: 16px;
  }
}

/* Page shell: one flat background edge to edge, no inset panel */
.rewards_page body {
  background: var(--rewards-bg);
  font-family: var(--rewards-font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.rewards_page .term_block {
  display: block;
  background: transparent;
}
.rewards_page .term_block .terms_content {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--rewards-content-max-width) + 2 * var(--rewards-page-pad-x));
  min-height: 100vh;
  margin: 0 auto;
  padding: var(--rewards-page-pad-top) var(--rewards-page-pad-x) var(--rewards-page-pad-bottom);
  border-radius: 0;
  background: transparent;
  overflow: visible;
  font-weight: 400;
  color: var(--rewards-text) !important;
}

/* Header: soft brand-blue glow behind the title */
.rewards_page .term_block .terms_content .rewards_hero {
  position: relative;
  isolation: isolate;
  margin-bottom: 32px;
}
.rewards_page .term_block .terms_content .rewards_hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(-1 * var(--rewards-page-pad-top));
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  height: calc(100% + var(--rewards-page-pad-top) + 48px);
  background:
    radial-gradient(50% 80% at 25% 0%, var(--rewards-glow-primary), transparent 70%),
    radial-gradient(40% 70% at 75% 5%, var(--rewards-glow-secondary), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  pointer-events: none;
}
.rewards_page .term_block .terms_content .rewards_title {
  font-size: var(--rewards-title-size);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.022em;
  text-wrap: balance;
  color: var(--rewards-text);
  margin: 0 0 8px;
  padding: 0;
}
.rewards_page .term_block .terms_content .rewards_intro {
  font-size: var(--rewards-body-size);
  line-height: 1.47;
  color: var(--rewards-text-muted);
  margin: 0;
  padding: 0;
}

/* Cards */
.rewards_page .term_block .terms_content .rewards_item {
  position: relative;
  background: var(--rewards-surface);
  border: 1px solid var(--rewards-surface-border);
  border-radius: var(--rewards-card-radius);
  box-shadow: var(--rewards-surface-shadow);
  padding: var(--rewards-card-pad);
  margin-bottom: var(--rewards-card-gap);
  scroll-margin-top: calc(16px + env(safe-area-inset-top));
  transition: background-color 0.6s ease;
}
.rewards_page .term_block .terms_content .rewards_item:last-child {
  margin-bottom: 0;
}
/* Deep-link landing: brief grey flash that fades, like iOS Settings rows */
.rewards_page .term_block .terms_content .rewards_item.rewards_item--highlighted {
  background: var(--rewards-highlight-bg);
  transition: background-color 0.15s ease;
}
.rewards_page .term_block .terms_content .rewards_item h2 {
  font-size: var(--rewards-item-title-size);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--rewards-text);
  margin: 0;
  padding: 0 0 10px;
}
.rewards_page .term_block .terms_content .rewards_item ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rewards_page .term_block .terms_content .rewards_item ul li {
  position: relative;
  font-size: var(--rewards-body-size);
  line-height: 1.47;
  font-weight: 400;
  color: var(--rewards-text-body);
  padding: 0 0 8px 16px;
}
.rewards_page .term_block .terms_content .rewards_item ul li:last-child {
  padding-bottom: 0;
}
.rewards_page .term_block .terms_content .rewards_item ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rewards-bullet);
}

/* Loading */
.rewards_page .term_block .terms_content .rewards_item--skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rewards_page .term_block .terms_content .rewards_item ul li.rewards_skeleton_row {
  padding: 0 0 12px;
}
.rewards_page .term_block .terms_content .rewards_item ul li.rewards_skeleton_row::before {
  display: none;
}
.rewards_page .rewards_skeleton_line {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 6px;
  background: var(--rewards-skeleton);
}
.rewards_page .rewards_skeleton_line--title {
  width: 45%;
  height: 16px;
  margin-bottom: 4px;
}
.rewards_page .rewards_skeleton_line--short {
  width: 70%;
}
@media (prefers-reduced-motion: no-preference) {
  .rewards_page .rewards_skeleton_line {
    animation: rewards-pulse 1.4s ease-in-out infinite;
  }
}
@keyframes rewards-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* Empty / error */
.rewards_page .term_block .terms_content .rewards_empty {
  text-align: center;
  padding: 48px 16px;
}
.rewards_page .term_block .terms_content .rewards_empty p {
  font-size: var(--rewards-body-size);
  line-height: 1.47;
  color: var(--rewards-text-muted);
  padding: 0;
}
.rewards_page .rewards_retry {
  margin-top: 16px;
  padding: 10px 20px;
  border: 0;
  border-radius: 980px;
  background: var(--rewards-brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), var(--rewards-brand-shadow);
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.rewards_page .rewards_retry:active {
  transform: scale(0.97);
}

/* Links and focus */
.rewards_page .term_block .terms_content a {
  color: var(--rewards-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.rewards_page a:focus-visible,
.rewards_page .rewards_retry:focus-visible {
  outline: 2px solid var(--rewards-focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.rewards_page .rewards_retry:focus-visible {
  border-radius: 980px;
}

/* Static Hike Rewards T&C document below the list */
.rewards_page .term_block .terms_content .rewards_tnc_static {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--rewards-divider);
}
.rewards_page .term_block .terms_content .rewards_tnc_static h1 {
  font-size: var(--rewards-doc-title-size);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--rewards-text);
  margin: 0 0 4px;
  padding: 0;
}
.rewards_page .term_block .terms_content .rewards_tnc_static h2 {
  font-size: var(--rewards-item-title-size);
  line-height: 1.3;
  font-weight: 600;
  color: var(--rewards-text);
  margin: 0;
  padding: 28px 0 8px;
}
.rewards_page .term_block .terms_content .rewards_tnc_static p,
.rewards_page .term_block .terms_content .rewards_tnc_static li {
  font-size: var(--rewards-body-size);
  line-height: 1.6;
  font-weight: 400;
  color: var(--rewards-text-body);
  padding: 0 0 12px;
}
.rewards_page .term_block .terms_content .rewards_tnc_static em {
  color: var(--rewards-text-muted);
}
.rewards_page .term_block .terms_content .rewards_tnc_static ol {
  padding-left: 22px;
}
.rewards_page .term_block .terms_content .rewards_tnc_static li::marker {
  color: var(--rewards-text-muted);
}
/* Clause sub-lists (a), (b), (c): override the generic decimal list and the
   white !important marker from ol.add-lower-alpha-styling below. */
.rewards_page .term_block .terms_content .rewards_tnc_static ol.add-lower-alpha-styling {
  list-style: lower-alpha outside;
  padding-bottom: 0;
}
.rewards_page .term_block .terms_content .rewards_tnc_static ol.add-lower-alpha-styling li::marker {
  color: var(--rewards-text-muted) !important;
  font-size: inherit;
  font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
  .rewards_page .term_block .terms_content .rewards_item,
  .rewards_page .term_block .terms_content .rewards_item.rewards_item--highlighted {
    transition: none;
  }
}
ol.add-lower-alpha-styling {
  list-style: lower-alpha outside;
  padding-left: 24px;
  padding-bottom: 20px;
  position: relative;
  z-index: 10;
}
ol.add-lower-alpha-styling li::marker {
  color: white !important;
  font-size: 20px;
  font-weight: 600;
}
@media screen and (max-width: 820px) {
  ol.add-lower-alpha-styling li::marker {
    font-size: 16px;
  }
}

@media screen and (max-width: 480px) {
  .term_block .logo {
    padding: 10px;
  }
  .term_block .terms_content {
    padding: 40px 20px 0px;
  }
}
.landing_block::before {
  content: "";
  width: 30%;
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  background: url(/assets/images/landing_bg_left.png) no-repeat;
  background-position: right bottom;
  background-size: 100%;
}
.landing_block::after {
  content: "";
  width: 30%;
  position: absolute;
  bottom: 0;
  top: 0;
  right: 0;
  background: url(/assets/images/landing_bg_right.png) no-repeat;
  background-position: left bottom;
  background-size: 100%;
}
.landing_block .landing_content {
  position: absolute;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.landing_block .landing_content .logo {
  width: 160px;
  height: auto;
  margin-bottom: 30px;
}
.landing_block .landing_content h3 {
  font-size: 2.5rem;
  color: #7C714F;
}

.login_block::before {
  content: "";
  width: 30%;
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  background: url(/assets/images/landing_bg_left.png) no-repeat;
  background-position: right bottom;
  background-size: 100%;
}
.login_block::after {
  content: "";
  width: 30%;
  position: absolute;
  bottom: 0;
  top: 0;
  right: 0;
  background: url(/assets/images/landing_bg_right.png) no-repeat;
  background-position: left bottom;
  background-size: 100%;
}
.login_block .login_content {
  position: absolute;
  width: 500px;
  height: 700px;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #ffffff;
}
.login_block .login_content h2 {
  font-size: 32px;
  font-weight: 700;
}
.login_block .login_content .qrscan_block {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 50px 0px;
  border: 1px solid #262626;
}
.login_block .login_content .qrscan_block .logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
}
.login_block .login_content .login_step {
  font-size: 18px;
  font-weight: 400;
  text-align: left;
}
.login_block .login_content .login_step p {
  margin: 20px 0;
}
