/* Hesaplama araçları (sistem kupon, kazanma ihtimali). */
.tool-card { display: grid; gap: 1.1rem; margin: 0 0 2rem; padding: clamp(1rem, 3vw, 1.6rem); color: #f5ffff; background: linear-gradient(112deg, #0b606a, #062f50 78%); border-radius: 1.2rem; box-shadow: 0 18px 40px rgba(8, 48, 68, .16); }
.tool-games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }
.tool-game { padding: .65rem .3rem; color: #e8f7fa; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: .75rem; font-size: .82rem; font-weight: 800; line-height: 1.2; cursor: pointer; }
.tool-game.is-selected { color: #132740; background: linear-gradient(135deg, #ffd052, #eca727); border-color: transparent; }
.tool-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .9rem; }
.tool-field { display: grid; gap: .4rem; align-content: start; }
.tool-label { color: #ffda81; font-size: .78rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.tool-field small { color: #b9d8df; font-size: .78rem; }
.tool-field input, .tool-field select { width: 100%; min-height: 3rem; padding: .55rem .8rem; color: #0b3c59; background: #fff; border: 0; border-radius: .7rem; font: inherit; font-size: 1.05rem; font-weight: 700; }
.tool-stepper { display: grid; grid-template-columns: 3rem 1fr 3rem; align-items: center; min-height: 3rem; background: #fff; border-radius: .7rem; overflow: hidden; }
.tool-stepper button { height: 100%; min-height: 3rem; color: #0b3c59; background: #eef6f7; border: 0; font-size: 1.5rem; font-weight: 800; cursor: pointer; }
.tool-stepper output { color: #0b3c59; font-size: 1.35rem; font-weight: 900; text-align: center; }
.tool-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .6rem; }
.tool-result { display: grid; gap: .2rem; padding: .8rem .9rem; background: rgba(2, 24, 42, .35); border: 1px solid rgba(255,255,255,.14); border-radius: .9rem; }
.tool-result span { color: #c4e0e7; font-size: .78rem; font-weight: 700; }
.tool-result strong { color: #fff; font-size: 1.35rem; font-weight: 900; letter-spacing: -.01em; }
.tool-result--main { background: rgba(255, 176, 60, .18); border-color: rgba(255, 196, 100, .45); }
.tool-result--main strong { color: #ffd27a; font-size: 1.7rem; }
.tool-note { margin: 0; padding: .7rem .9rem; color: #ffe2b0; background: rgba(255, 140, 60, .16); border-radius: .7rem; font-size: .88rem; }
.tool-card .related-cta { justify-self: start; }
@media (max-width: 640px) {
    .tool-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tool-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tool-result--main { grid-column: 1 / -1; }
    .tool-card .related-cta { justify-self: stretch; justify-content: center; }
}
.ticket-list { display: grid; gap: .55rem; }
.ticket-number { display: block; padding: .85rem 1rem; color: #0b3c59; background: linear-gradient(135deg, #fff8e6, #ffe7b8); border: 2px dashed #e7a83a; border-radius: .9rem; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: clamp(1.6rem, 7vw, 2.1rem); font-weight: 900; letter-spacing: .12em; text-align: center; }

/* "Sayılarım" geçmiş sayfası */
.history { display: grid; gap: 1rem; margin-bottom: 2rem; }
.history .tool-games { grid-template-columns: repeat(2, max-content); }
.history .tool-game { padding: .55rem 1rem; color: #0b4560; background: #fff; border-color: #d6e6ea; }
.history .tool-game.is-selected { color: #132740; background: linear-gradient(135deg, #ffd052, #eca727); border-color: transparent; }
.history-list { display: grid; gap: .8rem; }
.history-item { display: grid; gap: .75rem; padding: 1rem; background: #fff; border: 1px solid #dce9ed; border-radius: 1rem; box-shadow: 0 10px 24px rgba(14, 61, 80, .06); }
.history-item header { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.history-game { display: block; color: #0b4560; font-size: 1.1rem; font-weight: 900; text-decoration: none; }
.history-item time { color: #6b8796; font-size: .82rem; }
.history-fav { padding: 0 .2rem; color: #b9c9d0; background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.history-fav.is-on { color: #f0a640; }
.history-balls { display: flex; flex-wrap: wrap; gap: .4rem; }
.history-ball { display: grid; width: 2.6rem; aspect-ratio: 1; place-items: center; color: #fff; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.8) 0 8%, transparent 9%), linear-gradient(145deg, #43b2be, #006176); border-radius: 50%; font-weight: 900; }
.history-ball.is-accent { background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.8) 0 8%, transparent 9%), linear-gradient(145deg, #ffd269, #f37039); }
.history-item footer { display: flex; flex-wrap: wrap; gap: .5rem; }
.history-item .share-numbers { padding: .5rem 1rem; font-size: .85rem; }
.history-btn { padding: .5rem 1rem; color: #0b4560; background: #eef6f7; border: 0; border-radius: 999px; font-size: .85rem; font-weight: 800; cursor: pointer; }
.history-empty { padding: 1.5rem; text-align: center; background: #fff; border: 1px dashed #c3d4da; border-radius: 1rem; }
.history-empty .related-cta { margin-top: .5rem; }
.history-clear { justify-self: start; padding: .5rem 1rem; color: #b3412e; background: none; border: 1px solid #f0c5bc; border-radius: 999px; font-weight: 800; cursor: pointer; }
.history-note { color: #6b8796; font-size: .82rem; }

/* Grup kuponu */
.tool-field--wide { grid-column: 1 / -1; }
.group-list { display: grid; gap: .6rem; }
.group-person { display: grid; gap: .5rem; padding: .85rem 1rem; background: rgba(2, 24, 42, .35); border: 1px solid rgba(255,255,255,.14); border-radius: .9rem; }
.group-person strong { color: #ffda81; font-size: .95rem; }
.tool-card .history-btn { background: rgba(255,255,255,.14); color: #fff; }
/* Ana sayfadaki "Salla" butonunun araç sayfalarındaki karşılığı. */
.tool-card .simple-shake-button { display: inline-flex; align-items: center; justify-content: center; gap: .42rem; padding: .7rem 1.25rem; color: #fff; background: linear-gradient(100deg, #ffae37, #ff653e); border: 0; border-radius: 999px; box-shadow: 0 9px 17px rgba(234,93,47,.24); font-size: .94rem; font-weight: 900; cursor: pointer; }
