/* Admin */
.srw-wrap .srw-cards { display: flex; gap: 16px; flex-wrap: wrap; margin: 20px 0; }
.srw-wrap .srw-card { background: #fff; border: 1px solid #ccd0d4; border-radius: 6px; padding: 16px 20px; min-width: 200px; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.srw-wrap .srw-card h3 { margin: 0 0 8px; font-size: 13px; color: #646970; text-transform: uppercase; }
.srw-wrap .srw-panel { background: #fff; border: 1px solid #ccd0d4; border-radius: 8px; padding: 24px; max-width: 700px; margin-top: 16px; }
.srw-wrap .srw-big { font-size: 28px; font-weight: 600; margin: 0; color: #1d2327; }
#srw-segments-table input[type=text] { width: 100%; }
#srw-segments-table input[type=number] { width: 80px; }

/* Frontend wheel */
.srw-wheel-widget { max-width: 380px; margin: 0 auto; text-align: center; }
#srw-wheel-container { position: relative; width: 300px; height: 300px; margin: 0 auto 16px; }
#srw-wheel-pointer {
	position: absolute; top: 50%; right: -10px; left: auto; transform: translateY(-50%);
	width: 0; height: 0; z-index: 2;
	border-top: 16px solid transparent; border-bottom: 16px solid transparent;
	border-right: 26px solid #d92d20;
	filter: drop-shadow(-2px 0 3px rgba(0,0,0,.35));
}
#srw-wheel-wrap {
	width: 300px; height: 300px; border-radius: 50%;
	box-shadow: 0 0 0 6px #fff, 0 0 0 9px #e5b800, 0 10px 30px rgba(0,0,0,.35);
	overflow: hidden;
	background: #fff;
}
#srw-wheel-svg { display: block; }
#srw-mute-btn {
	position: absolute; bottom: -6px; right: -6px; z-index: 3;
	width: 34px; height: 34px; border-radius: 50%; border: none;
	background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); cursor: pointer; font-size: 16px;
}

.srw-legend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px 12px; margin-bottom: 16px; text-align: left; font-size: 13px; }
.srw-legend-item { display: flex; align-items: center; gap: 6px; }
.srw-legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; display: inline-block; }

.srw-wheel-controls { margin-top: 10px; }
#srw-spin-btn {
	font-size: 17px; padding: 12px 36px; border-radius: 30px;
	background: linear-gradient(135deg, #f59e0b, #d97706); border: none; color: #fff;
	box-shadow: 0 4px 14px rgba(217,119,6,.4); font-weight: 700; letter-spacing: .5px;
}
#srw-spin-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(217,119,6,.5); }
#srw-spin-btn:disabled { opacity: .6; }

.srw-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.6); z-index: 99999; display: flex; align-items: center; justify-content: center; }
.srw-modal-inner { background: #fff; border-radius: 14px; padding: 30px; max-width: 380px; width: 90%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.srw-modal-inner h3 { margin-top: 0; font-size: 22px; }
#srw-result-coupon { margin: 16px 0; display: flex; gap: 8px; align-items: center; justify-content: center; }
#srw-result-coupon code { background: #f4f4f4; padding: 8px 14px; border-radius: 6px; font-size: 16px; font-weight: 600; letter-spacing: .5px; }
#srw-whatsapp-share-btn { background: #25D366; color: #fff; border: none; margin-bottom: 10px; }

/* Docked wheel widget — collapses to a small tab on the page edge,
   expands into the full wheel widget on click. */
.srw-docked-wrapper {
	position: fixed; top: 50%; transform: translateY(-50%); z-index: 99990;
	display: flex; align-items: center;
}
.srw-docked-wrapper.srw-docked-right { right: 0; flex-direction: row-reverse; }
.srw-docked-wrapper.srw-docked-left { left: 0; flex-direction: row; }

.srw-dock-tab {
	width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #f59e0b, #d97706);
	color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px;
	cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.3); flex-shrink: 0;
	animation: srw-dock-pulse 2.2s infinite;
}
@keyframes srw-dock-pulse { 0%,100% { box-shadow: 0 4px 14px rgba(217,119,6,.4); } 50% { box-shadow: 0 4px 22px rgba(217,119,6,.7); } }

.srw-dock-panel {
	background: #fff; border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.3);
	padding: 20px; max-width: 320px; max-height: 85vh; overflow-y: auto;
	transition: transform .3s ease, opacity .3s ease;
}
.srw-docked-right .srw-dock-panel { transform: translateX(110%); opacity: 0; margin-right: 12px; }
.srw-docked-left .srw-dock-panel { transform: translateX(-110%); opacity: 0; margin-left: 12px; }
.srw-docked-wrapper.srw-dock-open .srw-dock-panel { transform: translateX(0); opacity: 1; }
.srw-docked-wrapper .srw-wheel-widget { max-width: 280px; }
.srw-docked-wrapper #srw-wheel-container, .srw-docked-wrapper #srw-wheel-wrap { width: 220px; height: 220px; }

@media (max-width: 480px) {
	.srw-dock-tab { width: 48px; height: 48px; font-size: 22px; }
	.srw-dock-panel { max-width: 88vw; }
}

/* Buy More Spins */
.srw-buy-more-spins { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #ddd; }
.srw-buy-more-title { font-weight: 600; margin-bottom: 10px; }
.srw-pack-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.srw-pack-btn {
	display: flex; flex-direction: column; align-items: center; gap: 2px;
	border: 2px solid #f59e0b; border-radius: 10px; padding: 8px 16px; text-decoration: none;
	color: #7a4a12; background: #fff8ef;
}
.srw-pack-btn:hover { background: #fff0d9; color: #7a4a12; }
.srw-pack-label { font-size: 12px; font-weight: 600; }
.srw-pack-price { font-size: 14px; font-weight: 700; }
#srw-post-spin-buy-more { margin-top: 6px; }
