:root {

  /**
   * colors
   */
  
  --cadet-blue-crayola: hsl(227, 13%, 73%);
  --maximum-yellow-red: hsl(41, 95%, 61%);
  --medium-sea-green: hsl(142, 43%, 54%);
  --blue-crayola_10: hsla(222, 100%, 61%, 0.05);
  --smocky-black_30: hsla(0, 0%, 6%, 0.3);
  --eerie-black-1: hsl(240, 5%, 8%);
  --eerie-black-2: hsl(228, 9%, 10%);
  --raisin-black: hsl(225, 15%, 16%);
  --blue-crayola: hsl(222, 100%, 61%);
  --roman-silver: hsl(223, 10%, 52%);
  --presian-red: hsl(0, 64%, 52%);
  --gunmetal_50: hsla(230, 16%, 22%, 0.5);
  --gainsboro: hsl(0, 0%, 85%);
  --cultured: hsl(0, 0%, 93%);
  --white_50: hsla(0, 0%, 100%, 0.5);
  --white_30: hsla(0, 0%, 100%, 0.3);
  --white_10: hsla(0, 0%, 100%, 0.1);
  --black_10: hsla(0, 0%, 0%, 0.1);
  --white: hsl(0, 0%, 100%);

  /**
   * gradient color
   */

  --gradient: linear-gradient(90deg, var(--white_10) 0px 77%, var(--white_50) 92%, transparent);

  /**
   * typography
   */

  --ff-dm-sans: 'DM Sans', sans-serif;

  --fs-1: 3.2rem;
  --fs-2: 3rem;
  --fs-3: 2.4rem;
  --fs-4: 2rem;
  --fs-5: 1.8rem;
  --fs-6: 1.5rem;
  --fs-7: 1.4rem;
  --fs-8: 1.2rem;

  --fw-500: 500;
  --fw-700: 700;

  /**
   * spacing
   */

  --section-padding: 100px;

  /**
   * shadow
   */

  --shadow-1: 0px 4px 8px var(--black_10);
  --shadow-2: 0px 30px 10px -20px var(--smocky-black_30);
  --shadow-3: 0px 15px 10px -20px var(--smocky-black_30);

  /**
   * radius
   */

  --radius-12: 12px;
  --radius-24: 24px;

  /**
   * transition
   */

  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease;
  --transition-3: 1s ease;
  --cubic-out: cubic-bezier(0.33, 0.85, 0.4, 0.96);

}





/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li { list-style: none; }

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

a,
img,
svg,
data,
span,
button,
ion-icon { display: block; }

img { height: auto; }

button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

ion-icon { pointer-events: none; }

address { font-style: normal; }

table { border-collapse: collapse; }

html {
  font-family: var(--ff-dm-sans);
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--eerie-black-2);
  color: var(--cadet-blue-crayola);
  font-size: 1.6rem;
  line-height: 1.4;
}

body.active { overflow: hidden; }

::-webkit-scrollbar { width: 10px; }

::-webkit-scrollbar-track { background-color: hsl(220, 4%, 5%); }

::-webkit-scrollbar-thumb { background-color: hsl(220, 5%, 20%); }

::-webkit-scrollbar-thumb:hover { background-color: hsl(220, 5%, 30%); }

:focus-visible { outline-offset: 4px; }





/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.container { padding-inline: 15px; }

.btn {
  color: var(--white);
  border-radius: 50px;
}

.btn-outline {
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  border: 1px solid var(--white);
  padding: 5px 15px;
  transition: var(--transition-1);
}

.btn-outline:is(:hover, :focus) {
  background-color: var(--blue-crayola);
  border-color: var(--blue-crayola);
}

.btn-primary {
  position: relative;
  background-color: var(--blue-crayola);
  max-width: max-content;
  font-weight: var(--fw-700);
  padding: 13px 30px;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: -50px;
  background-image: var(--gradient);
  transform: translateX(-100%);
  opacity: 0;
  z-index: -1;
  transition: var(--transition-2);
}

.btn-primary:is(:hover, :focus)::after {
  transform: translateX(0);
  opacity: 1;
}

.section { padding-block: var(--section-padding); }

/*
 * NOTE: The original template hid every [data-section] block (opacity: 0)
 * until JavaScript added an "active" class on scroll. That makes the whole
 * page invisible if the script is blocked, slow, or errors for any reason —
 * too fragile for a live commerce site. Content is always visible now;
 * the .active class from script.js is harmless if present but no longer
 * required for content to show.
 */
[data-section] > * {
  opacity: 1;
  transform: none;
}

.h1,
.h2,
.h3 {
  color: var(--white);
  line-height: 1.1;
}

.h1 { font-size: var(--fs-1); }

.h2 { font-size: var(--fs-2); }

.h3 { font-size: var(--fs-3); }

.w-100 { width: 100%; }

.badge {
  color: var(--white);
  font-size: var(--fs-8);
  font-weight: var(--fw-700);
  padding: 4px 8px;
  border-radius: 50px;
}

.badge.red { background-color: var(--presian-red); }

.badge.green { background-color: var(--medium-sea-green); }

.last-update.red { color: var(--presian-red); }

.last-update.green { color: var(--medium-sea-green); }

.section-text {
  font-size: var(--fs-5);
  margin-block: 15px 35px;
}

.section-list { margin-block-end: 35px; }

.section-item:not(:last-child) { margin-block-end: 25px; }

.section-item .title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 15px;
}

.section-item .title-wrapper ion-icon {
  flex-shrink: 0;
  color: var(--blue-crayola);
  font-size: 24px;
}





/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--eerie-black-1);
  padding-block: 15px;
  z-index: 4;
}

.header.active {
  position: fixed;
  top: -66px;
  background-color: var(--white);
  border-block-start: 1px solid var(--cultured);
  box-shadow: var(--shadow-1);
  animation: slideIn 0.25s var(--cubic-out) forwards;
}

@keyframes slideIn {

  0% {
    transform: translateY(0);
    background-color: var(--white);
  }

  100% {
    transform: translateY(100%);
    background-color: var(--eerie-black-2);
  }

}

.header > .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.logo {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: var(--fw-700);
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-toggle-btn .line {
  width: 26px;
  height: 3px;
  background-color: var(--white);
  transition: var(--transition-1);
}

.nav-toggle-btn .line:not(:last-child) { margin-block-end: 4px; }

.nav-toggle-btn {
  padding: 8px 5px;
  margin-inline-start: auto;
}

.nav-toggle-btn.active .line-1 { transform: rotate(45deg) translate(5px, 6px); }

.nav-toggle-btn.active .line-2 { opacity: 0; }

.nav-toggle-btn.active .line-3 { transform: rotate(-45deg) translate(4px, -5px); }

.navbar {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--eerie-black-1);
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: 0.25s var(--cubic-out);
}

.navbar.active {
  max-height: calc(100vh - 63px);
  visibility: visible;
  transition-duration: 0.5s;
}

.navbar-item:not(:last-child) { border-block-end: 1px solid var(--white_30); }

.navbar-link {
  color: var(--white);
  font-weight: var(--fw-700);
  padding: 12px 30px;
  transition: var(--transition-1);
}

.navbar-link:is(:hover, :focus, .active) { color: var(--blue-crayola); }





/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero { padding-block: 150px 140px; }

.hero-content { margin-block-end: 80px; }

.hero-text {
  font-size: var(--fs-5);
  margin-block: 25px 40px;
}





/*-----------------------------------*\
  #TREND
\*-----------------------------------*/

.trend {
  background-color: var(--eerie-black-1);
  padding-block-end: 0;
}

.trend-tab {
  background-color: var(--eerie-black-2);
  border: 1px solid var(--raisin-black);
  border-radius: var(--radius-24);
  padding: 20px;
  box-shadow: var(--shadow-2);
  margin-block-start: -160px;
}

.trend-tab .tab-nav {
  display: flex;
  flex-wrap: wrap;
  padding-block-end: 20px;
  margin-block-end: 20px;
  border-block-end: 1px solid var(--raisin-black);
}

.trend-tab .tab-btn {
  color: var(--white);
  font-size: var(--fs-7);
  font-weight: var(--fw-700);
  padding: 7px 15px;
  border-radius: 50px;
  transition: var(--transition-1);
}

.trend-tab .tab-btn.active { background-color: var(--blue-crayola); }

.trend-tab .tab-content {
  display: grid;
  gap: 20px;
}

.trend-card {
  padding: 20px;
  border-radius: var(--radius-12);
  transition: var(--transition-1);
}

.trend-card:is(:hover, .active) {
  background-color: var(--gunmetal_50);
  box-shadow: var(--shadow-3);
}

.trend-card .card-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trend-card .card-title {
  color: var(--white);
  font-size: var(--fs-7);
  font-weight: var(--fw-700);
  transition: var(--transition-1);
}

.trend-card .card-title:is(:hover, :focus) { color: var(--blue-crayola); }

.trend-card .card-title .span {
  color: var(--cadet-blue-crayola);
  display: inline-block;
  margin-inline-start: 5px;
}

.trend-card .card-value {
  color: var(--white);
  font-size: var(--fs-3);
  font-weight: var(--fw-700);
  margin-block: 10px;
}

.trend-card .card-analytics {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trend-card .current-price { font-size: var(--fs-7); }





/*-----------------------------------*\
  #MARKET
\*-----------------------------------*/

.market {
  background-color: var(--eerie-black-1);
  color: var(--white);
}

.market .title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-block-end: 25px;
}

.market .btn-link {
  position: relative;
  min-width: max-content;
  font-weight: var(--fw-700);
  transition: var(--transition-1);
}

.market .btn-link:is(:hover, :focus) { color: var(--blue-crayola); }

.market .btn-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--raisin-black);
  transition: var(--transition-1);
}

.market .btn-link:is(:hover, :focus)::after { background-color: var(--blue-crayola); }

.market-tab {
  overflow-x: auto;
  padding-block-end: 30px;
}

.market-tab::-webkit-scrollbar { height: 14px; }

.market-tab::-webkit-scrollbar-thumb {
  border: 2px solid hsl(220, 4%, 5%);
  border-width: 2px 10px;
}

.market-tab .tab-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block-end: 40px;
}

.market-tab .tab-btn {
  min-width: max-content;
  color: var(--white);
  font-size: var(--fs-7);
  font-weight: var(--fw-700);
  padding: 7px 24px;
  border-radius: 50px;
}

.market-tab .tab-btn.active { background-color: var(--blue-crayola); }

.market-table { width: 100%; }

.table-heading,
.table-data { padding: 8px; }

.table-heading {
  font-size: var(--fs-5);
  text-align: left;
  white-space: nowrap;
}

.market-table .table-head { border-block-end: 2px solid var(--white); }

.table-row:not(.table-title) { height: 90px; }

.market-table .table-row {
  font-size: var(--fs-5);
  border-block-end: 1px solid var(--raisin-black);
  transition: var(--transition-1);
}

.market-table .table-body .table-row:is(:hover, :focus-within) {
  background-color: var(--blue-crayola_10);
}

.market-table .add-to-fav {
  color: var(--cadet-blue-crayola);
  font-size: 18px;
}

.market-table .add-to-fav.active .icon-outline,
.market-table .add-to-fav .icon-fill { display: none; }

.market-table .add-to-fav .icon-outline,
.market-table .add-to-fav.active .icon-fill { display: block; }

.market-table .add-to-fav.active ion-icon { color: var(--maximum-yellow-red); }

.market-table .wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}

.market-table .coin-name {
  font-size: var(--fs-5);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-1);
}

.market-table .coin-name .span {
  color: var(--roman-silver);
  font-size: var(--fs-7);
}

.market-table .coin-name:is(:hover, :focus) { color: var(--blue-crayola); }

.market-table :is(.rank, .last-price, .market-cap) { font-weight: var(--fw-700); }

.market-table .btn-outline {
  border-width: 2px;
  padding-inline: 10px;
}

.market-table .table-row:is(:hover, :focus-within) .btn-outline {
  background-color: var(--blue-crayola);
  border-color: var(--blue-crayola);
}





/*-----------------------------------*\
  #INSTRUCTION
\*-----------------------------------*/

.instruction :is(.section-title, .section-text) { text-align: center; }

.instruction .section-title { margin-block-end: 15px; }

.instruction-list {
  display: grid;
  gap: 30px;
  margin-block-start: 50px;
}

.instruction-card { text-align: center; }

.instruction-card .card-banner { transition: var(--transition-2); }

.instruction-card:hover .card-banner { transform: rotateY(1turn); }

.instruction-card .img {
  margin-inline: auto;
  margin-block-end: 12px;
}

.instruction-card .card-subtitle {
  font-size: var(--fs-8);
  font-weight: var(--fw-700);
  text-transform: uppercase;
}

.instruction-card .card-title {
  font-size: var(--fs-4);
  margin-block: 5px 15px;
}

.instruction-card .card-text { padding-inline: 20px; }





/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.about { background-color: var(--eerie-black-1); }

.about-banner { margin-block-end: 40px; }





/*-----------------------------------*\
  #APP
\*-----------------------------------*/

.app {
  overflow: hidden;
  padding-block-end: 0;
}

.app-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

.app-banner {
  position: relative;
  margin-block-start: 60px;
}

.app-banner .span {
  position: absolute;
  top: 10%;
  left: 0;
  color: var(--white);
  font-size: var(--fs-7);
  font-weight: var(--fw-700);
  padding: 8px 15px;
  border: 2px solid var(--white);
  border-radius: 50px;
}





/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer-top {
  background-color: var(--eerie-black-1);
  padding-block: 80px 50px;
}

.footer-top .container {
  display: grid;
  gap: 50px;
}

.footer .logo { font-size: 3rem; }

.footer-title {
  color: var(--white);
  font-size: var(--fs-3);
  margin-block: 25px 20px;
}

.footer-contact-link:not(:last-child) { margin-block-end: 12px; }

address.footer-contact-link { max-width: 30ch; }

.footer-list-title {
  color: var(--white);
  font-size: var(--fs-7);
  font-weight: var(--fw-700);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-list > li:not(:last-child) { margin-block-end: 10px; }

.footer-list > li:first-child { margin-block-end: 20px; }

.footer-link {
  color: var(--gainsboro);
  transition: var(--transition-1);
}

.footer-link:is(:hover, :focus) { color: var(--blue-crayola); }

.footer-bottom {
  background-color: var(--eerie-black-2);
  padding-block: 20px;
}

.copyright {
  text-align: center;
  margin-block-end: 20px;
}

.copyright-link {
  display: inline-block;
  color: var(--blue-crayola);
}

.social-list {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-link {
  font-size: 18px;
  transition: var(--transition-1);
}

.social-link:is(:hover, :focus) { color: var(--blue-crayola); }





/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/**
 * responsive for larger than 575px screen
 */

@media (min-width: 575px) {
  
  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 4rem;
    --fs-2: 3.4rem;

  }



  /**
   * REUSED STYLE
   */

  .container {
    max-width: 540px;
    width: 100%;
    margin-inline: auto;
  }



  /**
   * HERO
   */

  .hero-text { --fs-5: 2rem; }

}





/**
 * responsive for larger than 768px screen
 */

@media (min-width: 768px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 5rem;
    --fs-2: 4rem;

  }



  /**
   * REUSED STYLE
   */

  .container { max-width: 750px; }



  /**
   * HERO
   */

  .hero-banner {
    max-width: max-content;
    margin-inline: auto;
  }



  /**
   * TREND
   */

  .trend-tab .tab-content { grid-template-columns: 1fr 1fr; }



  /**
   * INSTRUCTION
   */

  .instruction { overflow: hidden; }

  .instruction .section-text {
    max-width: 40ch;
    margin-inline: auto;
  }

  .instruction-list { grid-template-columns: 1fr 1fr; }

  .instruction-card { position: relative; }

  .instruction-card::after {
    content: "";
    width: 160px;
    height: 12px;
    background-image: url('../images/connect-line.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    position: absolute;
    top: 50px;
    right: -95px;
  }

  .instruction-list > li:nth-child(even) .instruction-card::after {
    display: none;
  }



  /**
   * APP
   */

  .app-banner { max-width: max-content; }



  /**
   * FOOTER
   */

  .footer-top .container { grid-template-columns: repeat(3, 1fr); }

  .footer-brand { grid-column: 1 / 3; }

  .footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .copyright { margin-block-end: 0; }

}





/**
 * responsive for larger than 992px screen
 */

@media (min-width: 992px) {

  /**
   * REUSED STYLE
   */

  .container { max-width: 960px; }

  

  /**
   * HEADER
   */

  .header { padding-block: 5px; }

  .header.active { top: -60px; }

  .header > .container { gap: 50px; }

  .nav-toggle-btn { display: none; }

  .navbar,
  .navbar.active {
    all: unset;
    margin-inline-end: auto;
  }

  .navbar-list {
    display: flex;
    align-items: center;
  }

  .navbar-item:not(:last-child) { border-block-end: none; }

  .navbar-link {
    font-size: var(--fs-7);
    padding: 15px 12px;
  }

  .navbar-link:is(:hover, :focus, .active) {
    background-color: var(--blue-crayola);
    color: var(--white);
  }



  /**
   * HERO
   */

  .hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
  }

  .hero-content { margin-block-end: 0; }



  /**
   * MARKET
   */

  .market-tab { padding-block-end: 0; }



  /**
   * ABOUT
   */

  .about .container {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    align-items: center;
    gap: 30px;
  }

  .about-banner { margin-block-end: 0; }



  /**
   * APP
   */

  .app { padding-block: 0; }

  .app .container {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    align-items: flex-end;
    gap: 30px;
  }

  .app-banner { margin-block-start: 0; }

  .app-content { margin-block: 50px; }

}





/**
 * responsive for larger than 1200px screen
 */

@media (min-width: 1200px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 6.4rem;
    --fs-2: 4.8rem;

  }



  /**
   * REUSED STYLE
   */

  .container { max-width: 1280px; }



  /**
   * HEADER
   */

  .header.active { top: -64px; }

  .navbar-link { font-size: unset; }



  /**
   * HERO
   */

  .hero .container { gap: 100px; }



  /**
   * TREND
   */

  .trend-tab .tab-content { grid-template-columns: repeat(4, 1fr); }



  /**
   * INSTRUCTION
   */

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

  .instruction-list > li:nth-child(even) .instruction-card::after {
    display: block;
  }

  .instruction-list > li:last-child .instruction-card::after {
    display: none;
  }



  /**
   * ABOUT, APP
   */

  :is(.about, .app) .container { gap: 60px; }



  /**
   * APP
   */

  .app-content { margin-block: 100px; }



  /**
   * FOOTER
   */

  .footer-top { padding-block: 100px 90px; }

  .footer-top .container { grid-template-columns: 1fr 0.5fr 0.5fr 0.5fr 0.5fr; }

  .footer-brand { grid-column: auto; }

}

/* Styling for the form container */
#conversionForm {
  background-color: #131315;
  padding: 30px;
  border-radius: 10px;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

/* Label styling */
#conversionForm label {
  font-size: 20px;
  color: #fff;
  font-weight: 500;
  margin-bottom: 10px;
  display: inline-block;
}

#conversionForm input[type="number"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #e1e8ed;
    border-radius: 5px;
    background-color: #17181c;
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 30px;
    padding-left: 40px;
    box-sizing: border-box;
}

#conversionForm input[type="number"]::placeholder {
  color: #fff;
 font-size: 16px;

}

.input-container {
  position: relative;

}

.input-container input[type="number"] {
  padding-left: 30px; /* Space for logo */
  height: 40px; /* Adjust the height as needed */
}

.input-logo {
  position: absolute;
  left: 10px; /* Position the logo within the input */
  top: 30%; /* Center the logo vertically */
  transform: translateY(-50%); /* Adjust for vertical alignment */
  width: 20px; /* Adjust size as needed */
  height: 20px; /* Adjust size as needed */
  pointer-events: none; /* Prevent the logo from interfering with input */

}


#conversionForm input[type="number"]:focus {
  outline: none;
  box-shadow: 0 0 5px #45a1ff;
}

/* Buy Now button styling */
#conversionForm button {
  width: 100%;
  padding: 12px;
  background-color: #3874ff;
  border: none;
  border-radius: 5px;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#conversionForm button:hover {
  background-color: #3790e9;
}

/* Make the form responsive */
@media (max-width: 768px) {
  #conversionForm {
    padding: 20px;
  }
}


/* Card entry form container */
.card-entry-form {
  background-color: #131315;
  padding: 30px;
  border-radius: 10px;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

/* Label styling */
.card-entry-form label {
  font-size: 20px;
  color: #fff;
  font-weight: 500;
  margin-bottom: 10px;
  display: inline-block;
}

/* Input field styling */
.card-entry-form input[type="text"],
.card-entry-form input[type="password"] {
  width: 100%;
    padding: 15px;
    border: 1px solid #e1e8ed;
    border-radius: 5px;
    background-color: #17181c;
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.card-entry-form input::placeholder {
  color: #333333;
 font-size: 16px;
}

/* Card details (Expiry Date and CVV) */
.card-details {
  display: flex;
  gap: 20px;
}

.card-details div {
  flex: 1;
}



.connectButton {
  cursor: pointer;
}



/* =====================================================================
   PREEFCOIN EXTENSIONS — auth, profile, buy flow, tables, RTL, mobile
   ===================================================================== */

/* ---- Header actions (login/signup/lang switch) ---- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline-start: auto;
  margin-inline-end: 16px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--white_10);
  color: var(--white);
  font-size: var(--fs-8);
  font-weight: var(--fw-700);
  text-decoration: none;
  transition: 0.25s ease;
}

.lang-switch:hover { background-color: var(--white_10); }

.desktop-only { display: inline-flex; }
.mobile-only  { display: none; }

.navbar-item.mobile-only { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .navbar-item.mobile-only { display: block; }
  .header-actions { margin-inline-end: 8px; gap: 8px; }
}

/* ---- Buttons (extra sizes) ---- */
.btn-block { width: 100%; }
.btn-lg { padding: 14px 32px; font-size: var(--fs-6); }

/* ---- Generic section wrapper for auth/profile/buy pages ---- */
.auth-section,
.profile-section,
.buy-section,
.result-section,
.markets-section {
  padding-block: 64px;
}

.auth-container {
  display: flex;
  justify-content: center;
}

.auth-card,
.buy-card,
.profile-card,
.result-card {
  background-color: var(--eerie-black-2);
  border: 1px solid var(--white_10);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
}

.auth-card,
.buy-card {
  max-width: 460px;
}

.auth-sub { color: var(--roman-silver); margin-block: 8px 24px; }

.auth-form { display: flex; flex-direction: column; gap: 6px; }

.auth-form label {
  color: var(--white);
  font-size: var(--fs-8);
  font-weight: var(--fw-500);
  margin-top: 14px;
}

.auth-form input,
.auth-form select {
  width: 100%;
  padding: 12px 14px;
  background-color: var(--eerie-black-1);
  border: 1px solid var(--white_10);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--ff-dm-sans);
  font-size: var(--fs-8);
  transition: border-color 0.25s ease;
}

.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  border-color: var(--blue-crayola);
}

.auth-form input:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 575px) {
  .auth-form .form-row { grid-template-columns: 1fr; gap: 0; }
}

.auth-form button[type="submit"] { margin-top: 24px; }

.auth-alt {
  margin-top: 20px;
  color: var(--roman-silver);
  font-size: var(--fs-8);
  text-align: center;
}

.auth-alt a { color: var(--blue-crayola); font-weight: var(--fw-700); }

/* ---- Alerts ---- */
.alert {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: var(--fs-8);
  line-height: 1.5;
}

.alert ul { margin: 0; padding-inline-start: 18px; }

.alert-error   { background-color: hsla(0, 64%, 52%, 0.12); border: 1px solid var(--presian-red); color: #ffb3b3; }
.alert-success { background-color: hsla(142, 43%, 54%, 0.12); border: 1px solid var(--medium-sea-green); color: #a8e6bd; }
.alert-info    { background-color: hsla(222, 100%, 61%, 0.12); border: 1px solid var(--blue-crayola); color: #b9d0ff; }

/* ---- Profile ---- */
.profile-section h1 { margin-bottom: 24px; }

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

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

.profile-card h2 { margin-bottom: 16px; }

.tx-card { max-width: none; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.tx-table,
.markets-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  margin-top: 8px;
}

.tx-table th,
.tx-table td,
.markets-table th,
.markets-table td {
  padding: 12px 14px;
  text-align: start;
  border-bottom: 1px solid var(--white_10);
  font-size: var(--fs-8);
  color: var(--white);
}

.tx-table th,
.markets-table th {
  color: var(--roman-silver);
  font-weight: var(--fw-500);
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.coin-cell { display: flex; align-items: center; gap: 10px; }
.coin-cell small { color: var(--roman-silver); margin-inline-start: 4px; }

.change-up   { color: var(--medium-sea-green); }
.change-down { color: var(--presian-red); }

.status-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: var(--fw-700);
  text-transform: capitalize;
}

.status-pending   { background-color: hsla(41, 95%, 61%, 0.15); color: var(--maximum-yellow-red); }
.status-paid      { background-color: hsla(142, 43%, 54%, 0.15); color: var(--medium-sea-green); }
.status-cancelled,
.status-failed    { background-color: hsla(0, 64%, 52%, 0.15); color: #ff8f8f; }

.muted { color: var(--roman-silver); font-size: var(--fs-8); }
.small-note { margin-top: 18px; text-align: center; }

/* ---- Buy page ---- */
#receiveEstimate { margin-top: 10px; }

/* ---- Result pages (payment success / cancel) ---- */
.result-card {
  max-width: 480px;
  margin-inline: auto;
  text-align: center;
}

.result-card p { color: var(--roman-silver); margin-bottom: 20px; }
.result-card .btn { margin: 6px; }

.result-success { border-color: var(--medium-sea-green); }
.result-cancel  { border-color: var(--presian-red); }
.result-pending { border-color: var(--maximum-yellow-red); }

/* ---- Markets section on homepage ---- */
.markets-section h2 { margin-bottom: 16px; }
.markets-cta { margin-top: 24px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 32px;
}

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-banner img { max-width: 100%; height: auto; }
}

.hero-sub {
  color: var(--roman-silver);
  margin-block: 16px 28px;
  max-width: 46ch;
}

@media (max-width: 992px) {
  .hero-sub { margin-inline: auto; }
}

/* ---- Footer note ---- */
.footer-note {
  color: var(--roman-silver);
  font-size: 1.2rem;
  margin-top: 6px;
}

/* =====================================================================
   RTL SUPPORT (Arabic)
   ===================================================================== */
html[dir="rtl"] body {
  font-family: 'DM Sans', Tahoma, Arial, sans-serif;
}

html[dir="rtl"] .auth-form label,
html[dir="rtl"] .alert,
html[dir="rtl"] .auth-alt,
html[dir="rtl"] .muted {
  text-align: right;
}

html[dir="rtl"] .tx-table th,
html[dir="rtl"] .tx-table td,
html[dir="rtl"] .markets-table th,
html[dir="rtl"] .markets-table td {
  text-align: right;
}

html[dir="rtl"] .header-actions {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

/* ---- Mobile-wide safety net (full responsive coverage) ---- */
@media (max-width: 480px) {
  .auth-card, .buy-card, .profile-card, .result-card { padding: 22px; }
  :root { --section-padding: 56px; }
  .hero-title { font-size: var(--fs-3); }
}

/* ---- Demo mode notice bar (Stripe TEST mode) ---- */
.demo-bar {
  background-color: hsla(41, 95%, 61%, 0.1);
  border-top: 1px solid hsla(41, 95%, 61%, 0.3);
  text-align: center;
  padding: 10px 16px;
}

.demo-bar p {
  color: var(--maximum-yellow-red);
  font-size: 1.2rem;
  margin: 0;
}

/* ---- Footer link hover fix for RTL ---- */
html[dir="rtl"] .footer-brand,
html[dir="rtl"] .footer-list {
  text-align: right;
}

/* =====================================================================
   HERO QUICK-BUY CALCULATOR (polished, self-contained component)
   ===================================================================== */
.quick-buy {
  background-color: var(--eerie-black-2);
  border: 1px solid var(--white_10);
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
  box-shadow: 0 20px 50px hsla(0, 0%, 0%, 0.35);
}

.quick-buy-title {
  color: var(--white);
  font-weight: var(--fw-700);
  font-size: var(--fs-6);
  margin-bottom: 20px;
  text-align: center;
}

.quick-buy label {
  display: block;
  color: var(--roman-silver);
  font-size: 1.2rem;
  font-weight: var(--fw-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-block: 16px 8px;
}

.quick-buy label:first-of-type { margin-block-start: 0; }

.quick-buy-input {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--eerie-black-1);
  border: 1px solid var(--white_10);
  border-radius: 12px;
  padding-inline: 14px;
  height: 52px;
  transition: border-color 0.25s ease;
}

.quick-buy-input:focus-within { border-color: var(--blue-crayola); }

.quick-buy-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.quick-buy-input input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--white);
  font-family: var(--ff-dm-sans);
  font-size: var(--fs-6);
  font-weight: var(--fw-700);
  padding-inline-start: 12px;
  min-width: 0;
}

.quick-buy-input input:focus { outline: none; }
.quick-buy-input input::placeholder { color: var(--roman-silver); font-weight: var(--fw-500); }
.quick-buy-input input[readonly] { color: var(--medium-sea-green); cursor: default; }

.quick-buy-btn {
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background-color: var(--blue-crayola);
  color: var(--white);
  font-family: var(--ff-dm-sans);
  font-size: var(--fs-6);
  font-weight: var(--fw-700);
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.15s ease;
}

.quick-buy-btn:hover { background-color: hsl(222, 100%, 55%); }
.quick-buy-btn:active { transform: scale(0.98); }

.quick-buy-live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--roman-silver);
  font-size: 1.2rem;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--medium-sea-green);
  box-shadow: 0 0 0 0 hsla(142, 43%, 54%, 0.6);
  animation: live-pulse 1.8s infinite;
}

@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 hsla(142, 43%, 54%, 0.5); }
  70%  { box-shadow: 0 0 0 8px hsla(142, 43%, 54%, 0); }
  100% { box-shadow: 0 0 0 0 hsla(142, 43%, 54%, 0); }
}

@media (max-width: 575px) {
  .quick-buy { padding: 22px; max-width: 100%; }
}

/* ---- Live price badge on market table / trend cards ---- */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1rem;
  color: var(--medium-sea-green);
  margin-inline-start: 6px;
  vertical-align: middle;
}

/* ---- Standalone content pages (About, Support, Terms, Privacy) ---- */
.content-page { padding-block: 64px; }
.content-page .page-title { margin-bottom: 8px; }
.content-page .page-sub { color: var(--roman-silver); margin-bottom: 40px; max-width: 60ch; }
.content-page .page-body { max-width: 75ch; }
.content-page .page-body h2 { color: var(--white); font-size: var(--fs-5); margin-block: 32px 12px; }
.content-page .page-body p { color: var(--cadet-blue-crayola); line-height: 1.8; margin-bottom: 14px; }
.content-page .page-body ul { color: var(--cadet-blue-crayola); line-height: 1.8; padding-inline-start: 20px; margin-bottom: 14px; }
.content-page .page-body li { margin-bottom: 6px; }
.content-page .updated-note { color: var(--roman-silver); font-size: 1.2rem; margin-bottom: 32px; }

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

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

.faq-item { border-bottom: 1px solid var(--white_10); padding-block: 16px; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { color: var(--white); font-size: var(--fs-7); margin-bottom: 6px; }
.faq-item p { color: var(--roman-silver); font-size: var(--fs-8); }

/* ---- Live price refresh flash (visual feedback that a price just updated) ---- */
.price-flash {
  animation: price-flash-anim 0.9s ease;
}

@keyframes price-flash-anim {
  0%   { color: var(--medium-sea-green); }
  100% { color: inherit; }
}

#lastUpdatedAgo {
  color: var(--medium-sea-green);
  font-weight: var(--fw-700);
}

/* =====================================================================
   BUY CRYPTO PAGE (redesigned) — coin picker + order summary
   ===================================================================== */
.buy-page-header { text-align: center; max-width: 60ch; margin-inline: auto 32px; }
.buy-page-header .auth-sub { margin-top: 8px; }

.buy-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .buy-layout { grid-template-columns: 1fr; }
}

.coin-picker,
.order-summary {
  background-color: var(--eerie-black-2);
  border: 1px solid var(--white_10);
  border-radius: 20px;
  padding: 28px;
}

.order-summary { position: sticky; top: 100px; }

@media (max-width: 900px) {
  .order-summary { position: static; }
}

.panel-title { margin-bottom: 20px; }

.coin-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coin-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  background-color: var(--eerie-black-1);
  border: 1px solid var(--white_10);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  text-align: start;
}

.coin-option:hover { border-color: hsla(222, 100%, 61%, 0.4); }

.coin-option.selected {
  border-color: var(--blue-crayola);
  background-color: hsla(222, 100%, 61%, 0.08);
}

.coin-option-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.coin-option-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.coin-option-name { color: var(--white); font-weight: var(--fw-700); font-size: var(--fs-8); }
.coin-option-code { color: var(--roman-silver); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.04em; }

.coin-option-price {
  color: var(--white);
  font-weight: var(--fw-700);
  font-size: var(--fs-8);
  text-align: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.coin-option-check {
  color: var(--blue-crayola);
  font-size: 22px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.coin-option.selected .coin-option-check { opacity: 1; transform: scale(1); }

/* ---- Order summary panel ---- */
.selected-coin-display {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background-color: var(--eerie-black-1);
  border: 1px solid var(--white_10);
  border-radius: 14px;
  margin-bottom: 20px;
}

.selected-coin-icon { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.selected-coin-name { color: var(--white); font-weight: var(--fw-700); font-size: var(--fs-7); }
.selected-coin-price { color: var(--roman-silver); font-size: 1.2rem; margin-top: 2px; }

.order-summary label {
  display: block;
  color: var(--roman-silver);
  font-size: 1.2rem;
  font-weight: var(--fw-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-block: 16px 8px;
}

.order-summary label:first-of-type { margin-block-start: 0; }

.receive-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, hsla(222, 100%, 61%, 0.12), hsla(142, 43%, 54%, 0.08));
  border: 1px solid hsla(222, 100%, 61%, 0.25);
  border-radius: 14px;
}

.receive-label { color: var(--roman-silver); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.04em; }

.receive-value {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: var(--fw-700);
  font-size: var(--fs-7);
}

.secure-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--white_10);
}

.secure-note ion-icon { color: var(--medium-sea-green); font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.secure-note p { color: var(--roman-silver); font-size: 1.2rem; line-height: 1.6; margin: 0; }

html[dir="rtl"] .coin-option-price { align-items: flex-start; text-align: start; }

/* ---- Sell button variant (distinct from buy's blue) ---- */
.sell-btn {
  background-color: #F7931A;
}
.sell-btn:hover { background-color: #d97e0f; }

/* ---- Buy/Sell type pill in transaction history ---- */
.type-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: var(--fw-700);
}
.type-buy  { background-color: hsla(222, 100%, 61%, 0.15); color: var(--blue-crayola); }
.type-sell { background-color: hsla(30, 95%, 53%, 0.15); color: #F7931A; }

/* =====================================================================
   CARD PAYMENT PAGE — live preview, smart fields, summary
   (PreefCoin) — append this section at the end of style.css
   ===================================================================== */

.cc-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
  max-width: 960px;
  margin-inline: auto;
}

@media (max-width: 900px) {
  .cc-layout { grid-template-columns: 1fr; }
}

.cc-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* ---- Live credit-card preview ---- */
.cc-preview {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1.586;
  margin-inline: auto;
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  background:
    radial-gradient(120% 140% at 85% -10%, hsla(222, 100%, 61%, 0.55), transparent 55%),
    radial-gradient(120% 120% at -10% 110%, hsla(240, 5%, 8%, 0.9), transparent 60%),
    linear-gradient(135deg, #1c1e26 0%, #12131a 100%);
  border: 1px solid var(--white_10);
  box-shadow: 0 24px 50px hsla(0, 0%, 0%, 0.45);
  overflow: hidden;
}

.cc-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, hsla(0, 0%, 100%, 0.05) 45%, transparent 60%);
  pointer-events: none;
}

.cc-preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cc-preview-label {
  font-weight: var(--fw-700);
  letter-spacing: 0.06em;
  font-size: var(--fs-8);
  color: var(--white_50);
}

.cc-preview-chip { margin-top: 6px; }
.cc-preview-chip svg { display: block; }

.cc-preview-number {
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  letter-spacing: 0.12em;
  margin-block: 8px;
  min-height: 1.2em;
}

.cc-preview-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.cc-preview-bottom > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cc-preview-cap {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white_30);
}

.cc-preview-value {
  font-size: var(--fs-8);
  font-weight: var(--fw-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Form fields ---- */
.cc-form { display: flex; flex-direction: column; }

.cc-field { margin-bottom: 8px; }

.cc-field label {
  display: block;
  color: var(--roman-silver);
  font-size: 1.2rem;
  font-weight: var(--fw-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.cc-field input {
  width: 100%;
  padding: 13px 14px;
  background-color: var(--eerie-black-1);
  border: 1px solid var(--white_10);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--ff-dm-sans);
  font-size: var(--fs-7);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cc-field input:focus {
  outline: none;
  border-color: var(--blue-crayola);
  box-shadow: 0 0 0 3px hsla(222, 100%, 61%, 0.15);
}

.cc-field input.invalid {
  border-color: var(--presian-red);
  box-shadow: 0 0 0 3px hsla(0, 64%, 52%, 0.12);
}

/* card number field with brand logo slot */
.cc-input { position: relative; display: flex; align-items: center; }

.cc-input input {
  padding-inline-start: 56px;
  letter-spacing: 0.08em;
}

.cc-brand {
  position: absolute;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 26px;
  color: var(--roman-silver);
  pointer-events: none;
}

.cc-brand ion-icon { font-size: 24px; }
.cc-brand svg { display: block; }

.cc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .cc-row { grid-template-columns: 1fr; gap: 0; }
}

.cc-error {
  min-height: 18px;
  margin-top: 6px;
  font-size: 1.2rem;
  color: #ff9a9a;
}

/* ---- Order summary list (right panel reuses .order-summary) ---- */
.cc-summary-list { list-style: none; margin: 0 0 4px; }

.cc-summary-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-block: 11px;
  border-bottom: 1px solid var(--white_10);
  color: var(--roman-silver);
  font-size: var(--fs-8);
}

.cc-summary-list b { color: var(--white); font-weight: var(--fw-700); }

.cc-summary-total { border-bottom: none !important; padding-top: 14px; }
.cc-summary-total span,
.cc-summary-total b { color: var(--white); font-size: var(--fs-7); }

/* ---- Demo test-cards hint ---- */
.cc-hint {
  padding: 14px 16px;
  background: hsla(41, 95%, 61%, 0.07);
  border: 1px dashed hsla(41, 95%, 61%, 0.35);
  border-radius: 12px;
}

.cc-hint p { margin: 0 0 4px; color: var(--maximum-yellow-red); font-size: 1.2rem; }
.cc-hint code {
  background: hsla(0, 0%, 0%, 0.35);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--white);
  font-family: ui-monospace, monospace;
}

/* ---- RTL adjustments ---- */
html[dir="rtl"] .cc-error { text-align: right; }
html[dir="rtl"] .cc-brand { left: auto; right: 12px; }
html[dir="rtl"] .cc-input input { padding-inline-start: 14px; padding-inline-end: 56px; }
