:root {
  --blue: #103d6b;
  --accent: #f4c438;
  --muted: #6b7280;
  --card-bg: #ffffff;
  --page-bg: #f5f6f7;
  --round: 14px;
  --max-width: 960px;
  --shadow: 0 6px 18px rgba(16,61,107,0.08);
  --shadow-strong: 0 10px 28px rgba(16,61,107,0.12);
  --glass: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,250,0.98));
}

/* ------------------------------
   Base
--------------------------------*/
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--page-bg);
  color: #122028;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}


/* ------------------------------
   Header
--------------------------------*/
.site-header {
  background: white;
  border-bottom: 1px solid #eef1f4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
}

.header-inner {
    padding: 30px 0; /* top & bottom padding */
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav.primary {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 14px;
  justify-content: center;
  margin: 15px 0;
  padding: 10px 12px;      /* taller padding so text isn’t cut off */
  min-height: 60px;        /* ensures two-line text fits */
  
  /* scrollable behavior */
  flex-wrap: nowrap;
  overflow-x: auto;        /* scroll left/right */
  overflow-y: hidden;      /* prevent vertical scroll */
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}


/* Hide scrollbar but keep scroll active */
nav.primary::-webkit-scrollbar {
  display: none;
}
nav.primary {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}

nav.primary a {
  color: var(--blue);
  padding: 8px 6px;
  border-radius: 6px;
  flex: 0 0 auto;      /* prevent shrinking */
  display: inline-block;
  line-height: 1.3em;  /* ensures text fits inside without cutting off */
}


nav.primary a:hover {
  background: rgba(16,61,107,0.04);
}

/* On smaller screens, align to left so users can scroll sideways */
@media (max-width: 768px) {
  nav.primary {
    justify-content: flex-start;
    padding: 20px 20px !important;  /* controls inside space */
    margin: 0 !important;          /* remove outside space */
    min-height: auto !important;   /* allow smaller height */
    gap: 14px;
  }
}



/* ------------------------------
   Main / Page
--------------------------------*/
main.page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;

    flex-wrap: wrap;
}


.rates-card {
  width: 100%;
  max-width: var(--max-width);
  background: var(--glass);
  border-radius: var(--round);
  box-shadow: var(--shadow);
  padding: 40px 25px 40px 25px;
  text-align: center;
  margin: 0 auto;
  box-sizing: border-box;
  margin: 0 15px;
}

.rates-card h1 {
  font-size: 22px;
  margin: 0;
  color: var(--blue);
  font-weight: 800;
}

.rates-card .sub {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}




/* ------------------------------
   Table
--------------------------------*/
.rates-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
}

table.rates {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  font-size: 14px;
  color: #1b2b3a;
}

table.rates thead th {
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--blue);
  padding: 10px 6px;
  border-bottom: 1px solid #e6e9ec;
}

table.rates tbody tr {
  background: white;
  border-radius: 8px;
  height: 56px;
  vertical-align: middle;
}

table.rates td {
  padding: 8px 6px;
  vertical-align: middle;
  border-bottom: none;
}

.currency {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  justify-content: flex-start;
}

.currency-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
}

.flag {
    width: auto;           /* allow container to grow with image */
    height: 35px;          /* desired flag height */
    border-radius: 4px;
    display: flex;
    justify-content: center; /* horizontal centering */
    align-items: center;     /* vertical centering */
}

.flag img {
    height: 35px;          /* fixed height */
    width: auto;           /* maintain aspect ratio */
    display: block;
    border-radius: 4px;
}




.code {
  font-size: 16px;
  color: #11314a;
}

.name {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.rate-col {
  width: 120px;
  text-align: center; /* ✅ changed from right */
  vertical-align: middle; /* ✅ keeps it nicely centered vertically too */
  font-weight: 700;
  color: #1d374b;
  padding-right: 0; /* optional: removes extra spacing */
}


.row-actions {
  text-align: right;
}


/* ------------------------------
   Login / Form Inputs
--------------------------------*/
.login-input {
    padding: 14px 18px;
    width: 300px; /* fixed width instead of 100% */
    max-width: 100%; /* prevents overflow on small screens */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 14px;
    box-sizing: border-box;
}


.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    color: #103d6b;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}


/* ------------------------------
   Buttons
--------------------------------*/
/* Wrapper to center buttons horizontally */
.buttons-wrapper {
    display: flex;
    flex-direction: column;  /* stack buttons vertically */
    align-items: center;     /* centers inline-block buttons */
    gap: 15px;               /* space between buttons */
    width: 100%;
    max-width: 300px;        /* optional: limits wrapper width */
    margin: 0 auto;          /* center wrapper itself */
}

/* Buttons themselves */
.btn-yellow,
button.btn-yellow {
    display: inline-block;   /* size to content, not full width */
    padding: 14px 36px;
    background: var(--accent);
    color: var(--blue);
    font-weight: 700;
    border-radius: var(--round);
    border: none;
    cursor: pointer;
    text-align: center;      /* center text inside button */
}



@media (max-width: 520px) {
    /* Buttons */
    .btn-yellow,
    button.btn-yellow {
        width: 70%;           
        font-size: 18px;      
        padding: 14px 24px;   
    }

    /* Form labels */
    .rates-card label {
        font-size: 16px;     /* bigger label text */
    }

    /* Inputs */
    .login-input {
        font-size: 16px;     /* bigger input text */
        padding: 14px 18px;  /* keeps inputs easy to tap */
    }

    /* Heading */
    .rates-card h1 {
        font-size: 26px;     /* bigger login title */
    }
}





.btn-yellow:hover,
button.btn-yellow:hover {
  background-color: #e0b932;
}



.btn-green,
button.btn-green {
  display: inline-block;
  background: #28a745;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: var(--round);
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow);
  border: none;
  outline: none;
  margin-top: 6px;
  margin-bottom: 6px;
}

.btn-green:hover,
button.btn-green:hover {
  background: #218838;
}

.btn-green:active,
.btn-green:focus {
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  outline: none;
}


/* ------------------------------
   Responsive
--------------------------------*/
@media (max-width: 860px) {
  .header-inner { padding: 30 10px; }
}

@media (max-width: 520px) {
  .rates-card { padding: 30px 20px 30px 20px; }
  table.rates thead th, table.rates td { padding: 6px 4px; font-size: 13px; }
  .currency { gap: 8px; }
 .rate-col {
  width: 120px;
  text-align: center; /* centered numbers */
  font-weight: 700;
  color: #1d374b;
  padding-right: 0; /* optional */
}

  .currency-info .name { font-size: 11px; }
}


td.buy-rate {
    color: #103d6b; /* blue, matches your theme */
    font-weight: 700;
     font-size: 18px; 
}

td.sell-rate {
    color: #c0392b; /* red */
    font-weight: 700;
     font-size: 18px; 
}
.menu-wrapper {
  position: relative;
}

.primary {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.primary::-webkit-scrollbar {
  display: none;
}

/* Fade edges */
.fade-left,
.fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  pointer-events: none;
  z-index: 10;
  opacity: 1;
  transition: opacity 1.50s ease;
  display: none;
}

/* Stronger opaque fade matching white background */
.fade-left {
  left: 0;
  background: linear-gradient(to right,
    rgba(255,255,255,1),   /* fully solid */
    rgba(255,255,255,0.8), /* strong fade */
    rgba(255,255,255,0.5), /* medium fade */
    rgba(255,255,255,0)    /* fully transparent */
  );
}

.fade-right {
  right: 0;
  background: linear-gradient(to left,
    rgba(255,255,255,1),
    rgba(255,255,255,0.8),
    rgba(255,255,255,0.5),
    rgba(255,255,255,0)
  );
}


/* ✅ Only on mobile */
@media (max-width: 768px) {
  .fade-left,
  .fade-right {
    display: block;
  }
}

/* Floating contact buttons */
.floating-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 9999;
}

.chat-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-btn img {
  width: 30px;
  height: 30px;
}

/* Hover animation */
.chat-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* LINE green */
.chat-btn.line {
  background-color: #06C755;
}

/* WhatsApp green */
.chat-btn.whatsapp {
  background-color: #25D366;
}



/* Responsive tweak: smaller on mobile */
@media (max-width: 520px) {
  .chat-btn {
    width: 48px;
    height: 48px;
  }
  .chat-btn img {
    width: 26px;
    height: 26px;
  }
}


/* Make only LINE icon larger */
.chat-btn.line img {
  width: 40px;   /* bigger than default 30px */
  height: 40px;
  object-fit: contain;
}

/* Optional: responsive tweak for mobile */
@media (max-width: 520px) {
  .chat-btn.line img {
    width: 32px;
    height: 32px;
  }
}

/* ---------- Large screens / desktop ---------- */
@media (min-width: 1024px) {
    
     .rates-card {
    max-width: 1080px;
  }
  
   /* Keep headings controlled */
  .rates-card h1 {
    font-size: 24px;   /* small bump only */
  }

  /* Sub text */
  .rates-card .sub {
    font-size: 14px;
  }

  /* Table text */
  table.rates {
    font-size: 16px;
  }

  table.rates thead th {
    font-size: 14px;
  }

  /* Currency code + name */
  .code {
    font-size: 18px;
  }

  .name {
    font-size: 14px;
  }

  /* Buy / Sell numbers */
  td.buy-rate,
  td.sell-rate {
    font-size: 20px;
  }
}



.footer-divider {
  width: 100%;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 15px;
  line-height: 0; /* remove whitespace gap */
}

.footer-divider img {
  width: auto;   /* scales to container width */
  height: 100px;  /* maintains aspect ratio */
  display: block;
  margin: 0 auto;    /* center */
}



