* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html,
body {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
}

body {
  background-color: #0a0a0b;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: #0a0a0b;
  background-image: 
    /* Fine minimalist grid */
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    /* Symmetrical Liquid Silver and Gold */
    radial-gradient(ellipse at center, rgba(243, 224, 58, 0.45) 0%, transparent 70%),
    radial-gradient(ellipse at center, rgba(176, 190, 197, 0.6) 0%, transparent 75%);
  background-size: 50px 50px, 50px 50px, 100% 800px, 100% 800px;
  background-repeat: repeat, repeat, repeat-y, repeat-y;
  animation: flow-liquid 7s linear infinite;
  pointer-events: none;
}

@keyframes flow-liquid {
  0% { 
    background-position: 0 0, 0 0, 0 0, 0 400px; /* Offset by exactly half the wave length */
  }
  100% { 
    background-position: 0 0, 0 0, 0 800px, 0 1200px; 
  }
}

.container {
  width: 95%;
  max-width: 1000px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5) !important;
  padding: 0 !important;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  backdrop-filter: blur(10px);
}

.header {
  background: rgba(158, 158, 158, 0.8);
  padding: 10px;
  text-align: center;
  border-bottom: 2px solid rgba(56, 56, 56, 0.8);
}

.logo {
  width: 100%;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(136, 136, 136, 0.8);
  flex-wrap: wrap;
}

.logo-text-silver,
.sc-letter,
.logo-text-change {
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo-text-silver {
  font-size: clamp(24px, 5vw, 40px);
  color: #e0e0e0;
}

.logo-text-change {
  font-size: clamp(24px, 5vw, 40px);
  color: #f3e03a;
}

.sc-letter {
  font-size: clamp(48px, 8vw, 80px);
  color: #e0e0e0;
  position: relative;
  z-index: 1;
}

.sc-letter-overlay {
  color: #f3e03a;
  position: relative;
  left: min(-24px, -3vw);
  z-index: 2;
}

.contact-info-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 245, 0.9) 100%);
  padding: 10px 0 0 0; 
  text-align: center;
  border-bottom: none;
  border-top: 3px solid #f3e03a;
  line-height: 1.6;
  font-size: 18px;
  backdrop-filter: blur(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
  position: relative;
  z-index: 90;
}

.title-ribbon {
  width: 100%;
  background: rgba(0, 0, 0, 0.03);
  padding: 10px 0;
  margin-bottom: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 80;
}

.sub-title {
  text-align: center;
  font-size: clamp(18px, 5vw, 24px);
  font-weight: 800;
  color: #222222;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  padding: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.45);
}

.main-content {
  width: 100%;
  padding: 0 10px 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rates-table {
  margin: 15px auto 10px auto;
  width: 100%; /* Changed from 98% to take full space */
  display: flex;
  justify-content: center;
}

.table-container {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5) !important;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.table-container th,
.table-container td {
  padding: 20px 10px; /* Increased padding for better look */
  border-bottom: 1px solid #dddddd;
  vertical-align: middle;
  border-right: none;
  border-left: none;
}

.table-container tr:last-child td {
  border-bottom: 1px solid #dddddd !important;
  padding-top: 20px !important; /* Force same top padding as others */
  padding-bottom: 22px !important; /* Slightly more at the very bottom edge */
}

.table-container th {
  background-color: rgba(235, 235, 235, 0.9);
  color: #333;
  font-family: "Arial Black", Arial, sans-serif;
  font-weight: 900;
  border-bottom: 2px solid #a9a9a9;
}

.coin-img-cell {
  width: 20%;
  text-align: center;
}

.coin-name-cell {
  width: 46.66%;
  text-align: left;
  font-family: "Arial Black", Arial, sans-serif;
  font-weight: 900;
  padding-left: 15px !important;
}

.buy-header, .buy-rate {
  width: 33.33% !important; /* Exactly 1/3 */
  text-align: center !important;
  font-family: "Arial Black", Arial, sans-serif;
  font-weight: 900;
  font-size: 1.1em;
}

.table-container td img {
  max-width: 80px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.back-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 25px;
  margin: 10px auto 25px auto;
  text-decoration: none;
  color: #333333;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  background-color: #ffffff;
  transition: all 0.2s ease;
  width: fit-content;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.back-button:hover {
  background-color: #f5f5f5;
  border-color: #bbbbbb;
  transform: translateY(-2px);
}

.footer {
  background-color: rgba(169, 169, 169, 0.9);
  padding: 15px 10px;
  text-align: center;
  font-size: clamp(11px, 2vw, 12px);
  border-top: 1px solid rgba(128, 128, 128, 0.9);
  color: #333;
  width: 100%;
  flex-shrink: 0;
  margin-top: auto;
}

@media screen and (max-width: 768px) {
  .container {
    width: 100% !important;
    box-shadow: none;
  }

  .sub-title {
    font-size: clamp(12px, 4.5vw, 18px);
    white-space: nowrap;
    letter-spacing: 0.2px;
  }

  .rates-table {
    width: 100% !important;
    margin-top: 5px;
  }

  .table-container {
    width: 100% !important;
    border-radius: 0 !important;
  }

  .coin-img-cell {
    width: 25%;
  }

  .coin-name-cell {
    width: 41.66%;
    font-size: 14px;
    padding-left: 8px !important;
  }

  .buy-header, .buy-rate {
    width: 33.33% !important;
    font-size: 15px;
  }

  .table-container td img {
    max-width: 50px;
  }
}

/* iPad and Tablet background override - NO CHANGES TO DESKTOP VIEW ABOVE */
@media screen and (max-width: 1300px) {
  body::before {
    background-image: 
      linear-gradient(180deg, 
        rgba(243, 224, 58, 0.8) 0%, 
        rgba(243, 224, 58, 0.8) 15%,
        rgba(176, 190, 197, 0.9) 40%, 
        rgba(176, 190, 197, 0.9) 60%,
        rgba(243, 224, 58, 0.8) 85%,
        rgba(243, 224, 58, 0.8) 100%) !important;
    background-size: 100% 600px !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    filter: blur(20px) !important;
    animation: flow-waves-tablet 5s linear infinite !important;
  }

  @keyframes flow-waves-tablet {
    from { background-position: center 0; }
    to { background-position: center 600px; }
  }
}
