* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Calibri;
}

body {
  background: #fef7f1;
  padding: 16px;
}

.container {
  max-width: auto;
  margin: auto;
}

.header {
  background: #fff8f6;
  padding: 12px 16px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #fff; /* white border */
  margin-bottom: 16px;
  box-shadow: 0 24px 65px rgb(224 219 219 / 64%), 0 0 8px rgb(154 160 160);
}

.logo {
  display: contents;
}

.logo img {
  width: 40px;
  height: 40px;
}

.logo h1 {
  font-size: 20px;
  color: #1d3557;
  font-weight: 700;
}

.menu-icon {
  font-size: 24px;
  color: #1d3557;
}

.card {	
    font-size: 20px;
    padding: 12px;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 24px 65px rgb(224 219 219 / 64%), 0 0 8px rgb(154 160 160);
  text-align: center;
  border: 1px solid #fff; /* white border */
}

.card .title {
  font-weight: 600;
  margin-bottom: 8px;
}

.card .titles {
  font-weight: 600;
  margin-bottom: 8px;
    font-size: 18px;
}

.green {
  background: #d4f9df;
  color: #1b5e20;
}

.blue {
  background: #e3f2fd;
  color: #0d47a1;
}

.orange {
  background: #fff4ea;
  color: #6d4c41;
}

.pink {
  background: #fcdde9;
}

.lightblue {
  background: #dceefe;
}

.brown {
  color: #5d4037;
}

.ref-link {
  background: white;
  padding: 8px;
  border-radius: 12px;
  word-break: break-word;
  margin-bottom: 12px;
  border: 1px solid #fff; /* white border */
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1; /* fills remaining space next to button */
  box-shadow: 0 24px 65px rgb(224 219 219 / 64%), 0 0 8px rgb(154 160 160);
}

.button {
  display: inline-block; 
    padding: 12px;
  margin-bottom: 12px;
  text-align: center;
  border-radius: 20px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  border: 1px solid #fff; /* white border */
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.6),  /* highlight top-left inner */
    inset 0 -2px 4px rgba(0, 0, 0, 0.1),       /* shadow bottom-right inner */
    0 8px 16px rgba(0, 0, 0, 0.1);             /* outer shadow */
  transition: all 0.2s ease-in-out;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.7),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15),
    0 12px 24px rgba(0, 0, 0, 0.15);
}

.ref-wrapper {
  display: flex;
  align-items: center;
  gap: 12px; /* space between link and button */
  justify-content: center; /* optional: center horizontally */
  flex-wrap: wrap; /* optional for responsiveness */
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  text-align: center;
  margin-bottom: 20px;
}

.btn {
	display: inline-block;
    cursor: pointer;
    background: linear-gradient(179deg, #e7c442d6, #d421c6);
    color: #4b1e1e;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: #fff;
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  text-align: center;
  width: 90%;
  max-width: 400px;
  position: relative;
  animation: fadeIn 0.3s ease;
}

.modal-content h2 {
  margin-top: 0;
  color: #333;
}

.modal-content p {
  margin: 10px 0 20px;
  color: #666;
}

.modal-content input {
  padding: 12px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #ccc;
  margin-bottom: 20px;
  font-size: 16px;
}

.popup-btn {
  background-color: #ff4d88;
  color: white;
  border: none;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.popup-btn:hover {
  background-color: #e04377;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

input {
      width: 100%;
      padding: 10px;
      margin: 8px 0;
      border-radius: 8px;
      border: 1px solid #ccc;
    }

a {
      color: #007bff;
      text-decoration: none;
      font-size: 0.9em;
    }
    a:hover {
      text-decoration: underline;
    }
	
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.table th, .table td {
  padding: 12px 15px;
  border: 1px solid #ccc;
  text-align: center;
  font-size: 15px;
}

.table thead {
  background-color: #f4f4f4;
  font-weight: bold;
}

.table-striped tbody tr:nth-child(odd) {
  background-color: #f9f9f9;
}

.table-bordered {
  border: 1px solid #ccc;
}

/* Responsive text adjustments */
@media screen and (max-width: 480px) {
  .logo h1 {
    font-size: 22px;
  }

}

.card.trading {
  background-color: #fff7e6;
  padding: 20px;
  border-radius: 14px;
  margin-top: 30px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.05);
}

.card.trading h2 {
  margin-top: 0;
  text-align: center;
  color: #d17b00;
}

.market-data {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.coin {
  flex: 1;
  min-width: 160px;
  padding: 15px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
}

.coin h4 {
  margin: 0;
  color: #333;
}

.coin p {
  margin: 5px 0;
  font-weight: bold;
  transition: color 0.5s;
}

.up {
  color: green;
  animation: flashGreen 1s ease-in-out;
}

.down {
  color: red;
  animation: flashRed 1s ease-in-out;
}

@keyframes flashGreen {
  0% { background-color: #d4edda; }
  100% { background-color: transparent; }
}

@keyframes flashRed {
  0% { background-color: #f8d7da; }
  100% { background-color: transparent; }
}
.text-right {
  text-align: right;
}
