#ahs-chart-wrap * {
  box-sizing: border-box;
}

#ahs-chart-container {
  position: relative;
}

#ahs-pattern-list button:hover {
  opacity: 0.8;
  transform: translateY(-1px);
  transition: all 0.15s;
}

#ahs-btn-load:hover { background: #2ea043; }
#ahs-btn-scan:hover { background: #388bfd; }

#ahs-symbol-select option,
#ahs-bar-select option {
  background: #161b22;
  color: #c9d1d9;
}

@media (max-width: 768px) {
  #ahs-chart-container {
    width: 100% !important;
    flex: none !important;
  }
  #ahs-resizer {
    display: none;
  }
  #ahs-open-list {
    width: 100% !important;
    min-width: 100% !important;
    border-radius: 6px !important;
    margin-top: 8px;
  }
}

@media (max-width: 768px) {
  #ahs-chart-container {
    width: 100% !important;
    flex: none !important;
  }
  #ahs-resizer {
    display: none;
  }
  #ahs-pattern-list {
    order: 2 !important;
    width: 100%;
  }
  #ahs-open-list {
    order: 3 !important;
    width: 100% !important;
    min-width: 100% !important;
    border-radius: 6px !important;
    margin-top: 8px;
  }
}

@keyframes ahs-gold-shine {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

#ahs-live-price {
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(90deg, #f59e0b, #fcd34d, #f59e0b, #fcd34d);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ahs-gold-shine 2s linear infinite;
    letter-spacing: 0.5px;
}

#ahs-donate-btn {
    position: relative;
    margin-left: auto;
    padding: 5px 16px;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #0d1117;
    background: linear-gradient(90deg, #b45309, #f59e0b, #fcd34d, #f59e0b, #b45309);
    background-size: 200% auto;
    animation: ahs-gold-shine 3s linear infinite;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}

#ahs-donate-btn:hover {
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.7);
    transform: translateY(-1px);
}

#ahs-donate-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
    transform: rotate(25deg);
    animation: ahs-gold-sweep 2.5s ease-in-out infinite;
}

@keyframes ahs-gold-sweep {
    0%   { left: -60%; }
    60%  { left: 120%; }
    100% { left: 120%; }
}

/* ── Bağış Popup ─────────────────────────────── */
#ahs-donate-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 12, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9998;
}

#ahs-donate-panel {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 440px;
    background: linear-gradient(160deg, #1a2029 0%, #12161d 60%, #0d1117 100%);
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 22px 26px;
    color: #c9d1d9;
    z-index: 9999;
    background-clip: padding-box;
    box-shadow: 0 0 0 1px rgba(245,158,11,0.35), 0 0 45px rgba(245,158,11,0.18), 0 24px 60px rgba(0,0,0,0.6);
    overflow: hidden;
}

#ahs-donate-glow {
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 260px; height: 120px;
    background: radial-gradient(ellipse, rgba(245,158,11,0.22), transparent 70%);
    pointer-events: none;
}

.ahs-donate-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #f59e0b, #fcd34d, #f59e0b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ahs-gold-shine 3s linear infinite;
}

.ahs-donate-sub {
    font-size: 12px;
    color: #8b949e;
    margin-bottom: 16px;
}

.ahs-donate-close {
    background: none;
    border: none;
    color: #8b949e;
    font-size: 17px;
    cursor: pointer;
    transition: color .15s;
}
.ahs-donate-close:hover { color: #e6edf3; }

.ahs-donate-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid #262c36;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    transition: border-color .2s;
}
.ahs-donate-card:hover { border-color: rgba(245,158,11,0.4); }

.ahs-donate-coin {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #8b949e;
    margin-bottom: 8px;
}

.ahs-donate-wallet-btn {
    border: none;
    padding: 7px 16px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    transition: filter .15s, transform .15s;
}
.ahs-donate-wallet-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.ahs-donate-wallet-btn.eth { background: linear-gradient(135deg, #1f6feb, #388bfd); }
.ahs-donate-wallet-btn.trx { background: linear-gradient(135deg, #c23631, #e5484d); }

.ahs-donate-addr-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}
.ahs-donate-addr-row code {
    flex: 1;
    background: #0d1117;
    border: 1px solid #21262d;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 11px;
    word-break: break-all;
    color: #9da7b3;
}
.ahs-donate-copy {
    background: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    padding: 4px 9px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    transition: border-color .15s;
}
.ahs-donate-copy:hover { border-color: #f59e0b; }

#ahs-donate-status {
    margin-top: 4px;
    font-size: 11px;
    color: #8b949e;
    min-height: 14px;
}

.ahs-chain-label {
    font-size: 11px;
    color: #8b949e;
    margin-bottom: 8px;
}

.ahs-chain-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#ahs-donate-panel .ahs-chain-chip {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    background: #0d1117;
    border: 1px solid #30363d;
    color: #9da7b3;
    padding: 4px 9px !important;
    border-radius: 16px;
    cursor: pointer;
    font-size: 11px !important;
    font-weight: 600;
    line-height: 1.2 !important;
    height: auto !important;
    min-height: 0 !important;
    transition: all .15s;
}

#ahs-donate-panel .ahs-chain-chip img {
    width: 13px !important;
    height: 13px !important;
    border-radius: 50%;
    flex-shrink: 0;
}

#ahs-donate-panel .ahs-chain-chip:hover {
    border-color: #58a6ff !important;
    color: #e6edf3 !important;
    background: #161b22 !important;
}

#ahs-donate-panel .ahs-chain-chip.selected {
    border-color: #f59e0b !important;
    color: #fcd34d !important;
    background: rgba(245, 158, 11, 0.12) !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.25) !important;
}

#ahs-donate-panel .ahs-chain-chip.selected:hover {
    border-color: #f59e0b !important;
    color: #fcd34d !important;
    background: rgba(245, 158, 11, 0.12) !important;
}

#ahs-donate-panel .ahs-wallet-note {
    font-size: 10px;
    color: #6e7681;
    margin-top: 8px;
    line-height: 1.4;
}

#ahs-donate-panel .ahs-amount-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    flex-wrap: wrap;
}

#ahs-donate-panel .ahs-amount-field {
    display: inline-flex;
    align-items: center;
    background: #0d1117;
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 8px;
    padding: 2px 4px 2px 10px;
    transition: border-color .15s, box-shadow .15s;
}

#ahs-donate-panel .ahs-amount-field:focus-within {
    border-color: #f59e0b !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

#ahs-donate-panel .ahs-amount-field input {
    width: 96px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #fcd34d !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    padding: 4px 0 !important;
    height: auto !important;
    min-height: 0 !important;
}

#ahs-donate-panel .ahs-amount-unit {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #8b949e;
    background: #161b22;
    border: 1px solid #262c36;
    border-radius: 6px;
    padding: 4px 8px;
    margin-left: 6px;
}

#ahs-donate-panel .ahs-asset-chip.disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    border-color: #30363d !important;
    color: #6e7681 !important;
    background: #0d1117 !important;
    box-shadow: none !important;
}

#ahs-donate-panel .ahs-asset-chip.disabled:hover {
    border-color: #30363d !important;
    color: #6e7681 !important;
    background: #0d1117 !important;
}

#ahs-pattern-info {
    position: relative !important;
    overflow: hidden;
}

#ahs-pattern-info.ahs-info-bull::before,
#ahs-pattern-info.ahs-info-bear::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 6px 0 0 6px;
}

#ahs-pattern-info.ahs-info-bull::before {
    background: linear-gradient(180deg,
        rgba(63,185,80,0) 0%,
        #2ea043 14%,
        #56d364 50%,
        #2ea043 86%,
        rgba(63,185,80,0) 100%);
    box-shadow: 0 0 16px rgba(63, 185, 80, 0.5);
}

#ahs-pattern-info.ahs-info-bear::before {
    background: linear-gradient(180deg,
        rgba(248,81,73,0) 0%,
        #da3633 14%,
        #ff7b72 50%,
        #da3633 86%,
        rgba(248,81,73,0) 100%);
    box-shadow: 0 0 16px rgba(248, 81, 73, 0.5);
}

.ahs-tb-break { display: none; }

@media (max-width: 768px) {
    .ahs-tb-break {
        display: block;
        flex-basis: 100%;
        width: 100%;
        height: 0;
    }
}