.glass {
  background: rgba(15, 23, 42, 0.3) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.glass-inner {
  background: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1) !important;
}

.glass-input {
  background: rgba(15, 23, 42, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

.glass-input option {
  background-color: #0f172a;
  color: white;
}

.glass-card {
  background: rgba(15, 23, 42, 0.3) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
}

.text-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Gradient text for branding */
.text-gradient {
  background: linear-gradient(to right, #22d3ee, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {

  html,
  body {
    padding-bottom: 80px;
    /* For mobile fixed navbar */
    padding-top: 50px;
    background-color: #0f172a !important;
    background-image: radial-gradient(at 0% 0%, rgba(34, 211, 238, 0.15) 0px, transparent 50%), radial-gradient(at 100% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
  }

  .tooltip:before {
    max-width: 200px;
    white-space: normal;
    text-align: left;
  }

  .symbol-section {
    overflow: visible !important;
  }

  .card-body {
    padding: 1rem;
  }

  .card-title {
    font-size: 1.25rem;
  }

  .table {
    font-size: 0.875rem;
    /* Smaller text on mobile */
  }

  .tooltip {
    font-size: 0.875rem;
  }

  input {
    width: 100%;
  }

  #freetools .flex-col>.flex {
    margin-bottom: 2rem;
    /* 32px between cards on mobile */
  }

  .copyable {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    font-weight: 600;
  }

  .copyable:hover {
    background: #bbdefb;
    transform: translateY(-1px);
  }

  .copyable:active {
    transform: translateY(0);
  }

  .copyable.copied {
    background: #4caf50;
    color: white;
  }

  /* Tooltip for "Copied!" feedback */
  .copyable::after {
    content: 'Copied!';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: #4caf50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
  }

  .copyable.copied::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
  }
}

@media (min-width: 768px) {
  html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
  }

  .section {
    min-height: 100vh;
    /* Match this to navbar height */
    scroll-snap-align: start;
  }

  .tooltip:before {
    max-width: 200px;
    white-space: normal;
    text-align: left;
  }

  .symbol-section {
    overflow: visible !important;
  }

  #freetools .volume-section {
    align-self: flex-start;
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
    max-height: none;
  }


  #freetools .flex-row>.flex {
    margin-right: 3rem;
    /* 48px between cards on desktop */
  }

  #freetools .flex-row>.flex:last-child {
    margin-right: 0;
  }

  .copyable {
    pointer-events: auto !important;
    z-index: 9999 !important;
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    font-weight: 600;
  }

  .copyable:hover {
    background: #bbdefb;
    transform: translateY(-1px);
  }

  .copyable:active {
    transform: translateY(0);
  }

  .copyable.copied {
    background: #4caf50;
    color: white;
  }

  /* Tooltip for "Copied!" feedback */
  .copyable::after {
    content: 'Copied!';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: #4caf50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
  }

  .copyable.copied::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
  }

  .volume-section {
    margin-top: 100px;
  }

  .calculators-section {
    margin-top: 100px;
  }
}
