.ds-wrap { max-width: 1080px; margin: 28px auto 60px; padding: 0 16px; position: relative; z-index: 2; }
.ds-card {
    background: linear-gradient(135deg, rgba(22, 20, 28, 0.94), rgba(12, 13, 19, 0.96));
    border: 1px solid rgba(245, 200, 75, 0.35);
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 18px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}
.ds-hero-card { border-color: rgba(245, 200, 75, 0.55); }
.ds-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.ds-eyebrow { font-size: 11px; letter-spacing: 2px; color: #f5c84b; text-transform: uppercase; }
.ds-title { margin: 4px 0 0; font-size: 26px; font-weight: 800; color: #ffe694; }
.ds-subtitle { color: #a7a3b5; font-size: 14px; margin: 8px 0 0; }
.ds-subtitle b { color: #ffe694; }
.ds-pills { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ds-pill {
    background: rgba(10, 11, 16, 0.9);
    border: 1px solid rgba(245, 200, 75, 0.35);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    color: #e8e6f0;
    font-variant-numeric: tabular-nums;
}
.ds-pill.is-ready { border-color: rgba(94, 240, 159, 0.55); }
.ds-pill.is-ready b { color: #8affbd; }
.ds-pill.is-cooldown { border-color: rgba(245, 200, 75, 0.55); }
.ds-pill.is-cooldown b { color: #ffe694; }
.ds-inline-form { margin: 0; }
.ds-btn {
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.15s ease;
}
.ds-btn-lg { padding: 12px 22px; font-size: 15px; }
.ds-btn:hover:not(:disabled) { transform: translateY(-1px); }
.ds-btn:disabled { opacity: 0.48; cursor: not-allowed; }
.ds-btn-gold  { background: linear-gradient(180deg, #ffe694, #f5c84b); color: #171208; }
.ds-btn-ghost { background: rgba(255, 255, 255, 0.08); color: #d8d5e5; border: 1px solid rgba(255, 255, 255, 0.14); }
.ds-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ds-char-label { font-size: 13px; color: #a7a3b5; margin-right: 8px; }
.ds-input, .ds-select {
    background: #0c0d14;
    color: #f4f2fa;
    border: 1px solid rgba(245, 200, 75, 0.35);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
}
.ds-login-grid { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.ds-hint { margin-top: 10px; font-size: 12px; color: #a7a3b5; }
.ds-hint a { color: #f5c84b; text-decoration: underline; }
.ds-alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; border: 1px solid; }
.ds-alert.success { background: rgba(61, 220, 132, 0.12); border-color: rgba(61, 220, 132, 0.45); color: #9cf5c3; }
.ds-alert.error   { background: rgba(255, 99, 99, 0.12); border-color: rgba(255, 99, 99, 0.45); color: #ffb3b3; }
.ds-alert.info    { background: rgba(245, 200, 75, 0.12); border-color: rgba(245, 200, 75, 0.45); color: #ffe694; }

.ds-bar-card {
    border-color: rgba(245, 200, 75, 0.65);
    background: linear-gradient(135deg, rgba(28, 24, 16, 0.95), rgba(12, 13, 19, 0.96));
}
.ds-bar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ds-bar-label { font-size: 15px; font-weight: 700; color: #ffe694; }
.ds-bar-pct { font-size: 16px; font-weight: 800; color: #f5c84b; font-variant-numeric: tabular-nums; }
.ds-bar-progress {
    width: 100%;
    height: 16px;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(245, 200, 75, 0.5);
    border-radius: 999px;
    overflow: hidden;
    background: #0a0b10;
    display: block;
}
.ds-bar-progress::-webkit-progress-bar { background: #0a0b10; border-radius: 999px; }
.ds-bar-progress::-webkit-progress-value { background: linear-gradient(90deg, #b8841f, #f5c84b, #fff0b3); border-radius: 999px; }
.ds-bar-progress::-moz-progress-bar { background: linear-gradient(90deg, #b8841f, #f5c84b, #fff0b3); border-radius: 999px; }

.ds-reward-card {
    border-color: rgba(94, 240, 159, 0.6);
    background: linear-gradient(135deg, rgba(22, 40, 30, 0.94), rgba(12, 15, 20, 0.96));
}
.ds-reward-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ds-reward-copy { flex: 1; min-width: 200px; }
.ds-reward-head { display: flex; align-items: center; gap: 8px; }
.ds-reward-title { font-size: 13px; color: #9cf5c3; font-weight: 700; }
.ds-reward-name { font-size: 20px; font-weight: 800; color: #ffe694; margin-top: 4px; }
.ds-reward-sub { font-size: 13px; color: #d8d5e5; margin-top: 4px; }

.ds-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.ds-section-head h2 { margin: 0; font-size: 18px; color: #ffe694; }
.ds-note { font-size: 12px; color: #a7a3b5; }
.ds-pool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 12px; }
.ds-pool-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(24, 24, 34, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.ds-pool-item.rarity-ssr { border-color: rgba(245, 200, 75, 0.65); }
.ds-pool-item.rarity-sr  { border-color: rgba(186, 104, 255, 0.5); }
.ds-pool-item.rarity-r   { border-color: rgba(75, 192, 245, 0.45); }
.ds-pool-info { flex: 1; min-width: 0; }
.ds-pool-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 4px; }
.ds-rate { font-size: 12px; font-weight: 700; color: #d8d5e5; }
.ds-icon {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: #0a0b10;
    border: 1px solid rgba(245, 200, 75, 0.35);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ds-icon-lg { width: 72px; height: 72px; border-radius: 12px; }
.ds-icon img { width: 85%; height: 85%; object-fit: contain; }
.ds-qty { position: absolute; right: 4px; bottom: 2px; font-size: 12px; font-weight: 800; color: #ffe694; text-shadow: 0 1px 3px #000; }
.ds-item-name { font-size: 13px; font-weight: 600; color: #f4f2fa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ds-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
}
.ds-badge.rarity-ssr { background: rgba(245, 200, 75, 0.22); color: #ffe694; border: 1px solid rgba(245, 200, 75, 0.7); }
.ds-badge.rarity-sr  { background: rgba(186, 104, 255, 0.22); color: #e2b8ff; border: 1px solid rgba(186, 104, 255, 0.65); }
.ds-badge.rarity-r   { background: rgba(75, 192, 245, 0.2); color: #a7e4ff; border: 1px solid rgba(75, 192, 245, 0.6); }
.ds-badge.rarity-n   { background: rgba(255, 255, 255, 0.08); color: #c7c4d4; border: 1px solid rgba(255, 255, 255, 0.18); }

.ds-log-list { display: flex; flex-direction: column; gap: 8px; }
.ds-log-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(12, 13, 19, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    font-size: 13px;
    color: #e8e6f0;
}
.ds-log-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-log-date { font-size: 12px; color: #8f8ba3; flex-shrink: 0; }

.is-hidden {
    display: none !important;
}
