.mobile-stock-container {
  display: none;
}

@media (max-width: 768px) {
  .table-wrapper {
    display: none;
  }

  .mobile-stock-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .header-card {
    background: rgba(245, 245, 240, 0.682);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    pointer-events: none;
    user-select: none;
  }

  .header-row {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.6;
  }

  .header-row .card-metric-inline {
    text-align: right;
  }

  .header-card .card-symbol-row {
    font-weight: 600;
  }

  .header-card .card-actions {
    margin: 0;
    padding: 0;
    position: static;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 110px;
    transform: none;
    pointer-events: none;
  }

  .dots-trigger {
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: rgba(0, 0, 0, 0.4);
  }

  .action-icons {
  display: flex;
  flex-direction: row; 
  gap: 20px;

  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;

  transition: all 0.2s ease;
}

.stock-card.is-actions-open .dots-trigger {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

 .card-main-row {
    display: grid;
    grid-template-columns: 85px 1fr 30px; 
    align-items: center;
    width: 100%;
  }

  .card-metrics-inline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    min-width: 0;
  }

  .card-metric-inline {
    display: flex;
    justify-content: flex-end;
  }

  .stock-card {
    height: 40px;
    position: relative;
    overflow: hidden;
    padding: 0 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.4);

    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);

    border: 1px solid rgba(255, 255, 255, 0.5);

    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.7),
      0 6px 18px rgba(0, 0, 0, 0.15);

    display: flex;
    flex-direction: column;
    gap: 5px;

    transition:
      transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
      box-shadow 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
      background 220ms ease,
      border-color 220ms ease;

    will-change: transform;
  }

  .stock-card .card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    opacity: 0;
    transition: opacity 240ms ease;
    pointer-events: none;
    z-index: 1;
    border-radius: 12px;
  }

  .stock-card .card-actions {
    position: relative;
    z-index: 2;
    padding: 4px;
    border-radius: 16px;
    transition: transform 0.25s ease;
    transform-origin: right center;
  }

  .stock-card .card-actions::before {
    content: "";
    position: absolute;
    inset: -8px;
    pointer-events: none;
  }

  .stock-card.is-actions-open {
    z-index: 20;
    background: rgba(255, 255, 255, 0.8) !important;

    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);

    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  }

  .stock-card.is-actions-open .card-actions button,
  .custom-card.open .custom-menu button {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: scale(1.15);
  }

  .stock-card.is-actions-open .card-overlay {
    opacity: 1;
  }

.stock-card.is-actions-open .action-icons {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

  .card-actions button,
  .custom-menu button {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: scale(0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    will-change: transform;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
  }

  .card-actions button i,
.custom-menu button i {
    width: 14px;
    height: 14px;
  }

  .card-actions button svg,
  .custom-menu button svg {
    width: 20px;
    height: 20px;
  }

  .stock-card:not(.is-actions-open) .card-actions button,
  .stock-card:not(.is-actions-open) .card-actions .action-icons {
    pointer-events: none;
  }

  .stock-card.is-actions-open .card-actions button,
  .stock-card.is-actions-open .card-actions .action-icons {
    pointer-events: auto;
  }

  .stock-card.row-green {
    background: #dff0d8;
  }
  .stock-card.row-yellow {
    background: #fcf8e3;
  }
  .stock-card.row-orange {
    background: #ffe5b4;
  }
  .stock-card.row-gray {
    background: rgba(255, 255, 255, 0.6);
  }

  .checkbox-icon {
    width: 18px;
    height: 18px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .select-toggle.selected .checkbox-icon::after,
  .select-toggle.selected:hover .checkbox-icon::after {
    content: "✓";
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    font-size: 11px;
    font-weight: 500;

    top: 0;
    left: 1px;
  }

  .stock-card.selected {
    position: relative;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
      inset 4px 0 0 #19c37d,
      0 8px 20px rgba(0, 0, 0, 0.18);
  }

  .stock-card.selected .card-symbol {
    color: #000000;
  }

  .stock-card.selected .card-symbol,
  .stock-card.selected .metric-value {
    font-weight: 700;
  }

  .card-symbol {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #00000098;
  }

  .metric-label {
    font-size: 12px;
    opacity: 0.75;
    color: #484d57;
  }

  .metric-value {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

.card-actions {
  display: flex;
  align-items: center;
  flex-direction: row-reverse; 
  gap: 6px;
  transition: all 0.25s ease;
}

  .card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
  }

  .card-symbol-row {
    width: 95px;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
  }

  h1 {
    font-size: 24px;
  }
  h3 {
    font-size: 16px;
  }

  .user-main-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border: 1px solid #4f4f4f;
    border-radius: 50px;
    overflow: hidden;
    padding-right: 15px;
    padding-left: 15px;
  }

  .user-profile span {
    font-size: 13px;
  }

  .row-header,
  .row-content {
    font-size: 12px;
  }
  .row-content span,
  .row-header span {
    font-size: 12px;
  }
  .clear-button {
    height: 25px;
    padding: 0px 5px;
    width: 55px;
    font-size: 11px;
  }
  .clear-button.stop-one {
    padding: 2px 15px;
  }

  .clear-button.stop-all {
    padding: 2px 5px;
  }
  .full-label {
    display: none;
  }
  .short-label {
    display: inline;
  }

  .row-header {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 6px;
  }

  .row-header span {
    flex: 1;
  }

.custom-card {
    position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.6);
}

.custom-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  -webkit-backdrop-filter: blur(10px);

  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.custom-card.open::before {
  opacity: 1;
}

.custom-card.open .custom-symbol-input {
  background: rgba(255, 255, 255, 0.3);
  color: rgba(0, 0, 0, 0.5); 
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  transition: all 0.25s ease;
}

.custom-card.open .custom-symbol-input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.custom-card.open .custom-left {
  opacity: 0.7;
}

.custom-left {
  flex: 1;
  min-width: 0;
}

.custom-symbol-input {
    flex: 1;
    min-width: 0;

    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.6);
    outline: none;
}

.custom-actions {
  position: relative;
}

.custom-dots {
  width: 37px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;

  color: rgba(0,0,0,0.4); 

  transition: all 0.2s ease;
}

.custom-card.open .custom-dots {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.custom-menu {
  position: absolute;
  right: 36px;
  top: 49%;
  transform: translateY(-50%) scale(0.8);

  display: flex;
  gap: 21px;

  opacity: 0;
  pointer-events: none;

  transition: all 0.25s ease;
}

.custom-card.open .custom-menu {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  pointer-events: auto;
}

.metric-price {
  color: #126d33;
}

.metric-volume {
  color: #374151;
}

.metric-float {
  color: #6b7280;
}
.metric-turn {
  color: #6b7280;
}

.metric-turn.positive {
  color: #169444;
}

.metric-turn.negative {
  color: #484848;
}
}

.header-card {
  padding: 8px;
}

.header-card .card-main-row {
  font-size: 14px;
  padding: 0;
}

.header-card .card-actions {
  padding: 6px;
}
