/* ============================================================
   Sugoi Tokens — Frontend (My Account + Checkout)
   ============================================================ */

:root {
	--st-primary:      #00C2E8;
	--st-primary-dark: #009bbf;
	--st-primary-light:#e6f9fd;
	--st-text:         #1a1a2e;
	--st-muted:        #6b7280;
	--st-border:       #e5e7eb;
	--st-bg:           #f9fafb;
	--st-radius:       12px;
	--st-radius-sm:    8px;
	--st-positive:     #059669;
	--st-negative:     #dc2626;
	--st-shadow:       0 2px 12px rgba(0,0,0,.07);
}

/* ============================================================
   MY ACCOUNT — Mis Tokens
   ============================================================ */

.st-account-wrap {
	max-width: 800px;
}

/* Balance card */
.st-balance-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: linear-gradient(135deg, var(--st-primary) 0%, var(--st-primary-dark) 100%);
	color: #fff;
	border-radius: var(--st-radius);
	padding: 28px 32px;
	margin-bottom: 24px;
	box-shadow: var(--st-shadow);
}

.st-balance-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.st-balance-icon {
	font-size: 2.5rem;
	line-height: 1;
}

.st-balance-number {
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1.1;
}

.st-balance-label {
	font-size: .95rem;
	opacity: .9;
	margin-top: 2px;
}

.st-balance-right {
	text-align: right;
}

.st-value-label {
	font-size: .8rem;
	opacity: .85;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.st-value-amount {
	font-size: 1.6rem;
	font-weight: 700;
}

/* Info grid */
.st-info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
	margin-bottom: 32px;
}

.st-info-card {
	display: flex;
	gap: 12px;
	background: #fff;
	border: 1px solid var(--st-border);
	border-radius: var(--st-radius-sm);
	padding: 16px 18px;
	box-shadow: var(--st-shadow);
}

.st-info-icon {
	font-size: 1.5rem;
	line-height: 1.2;
	flex-shrink: 0;
}

.st-info-card strong {
	display: block;
	color: var(--st-text);
	margin-bottom: 4px;
	font-size: .9rem;
}

.st-info-card p {
	color: var(--st-muted);
	font-size: .85rem;
	margin: 0;
}

/* History */
.st-history-title {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--st-text);
	margin-bottom: 12px;
}

.st-history-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .9rem;
}

.st-history-table th {
	background: var(--st-bg);
	color: var(--st-muted);
	font-weight: 600;
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 10px 14px;
	border-bottom: 1px solid var(--st-border);
	text-align: left;
}

.st-history-table td {
	padding: 11px 14px;
	border-bottom: 1px solid var(--st-border);
	color: var(--st-text);
	vertical-align: middle;
}

.st-history-table tr:last-child td {
	border-bottom: none;
}

.st-history-table a {
	color: var(--st-primary-dark);
	text-decoration: none;
}

.st-history-table a:hover {
	text-decoration: underline;
}

.st-positive {
	color: var(--st-positive) !important;
	font-weight: 700;
}

.st-negative {
	color: var(--st-negative) !important;
	font-weight: 700;
}

.st-no-history {
	background: var(--st-bg);
	border: 1px dashed var(--st-border);
	border-radius: var(--st-radius-sm);
	padding: 32px;
	text-align: center;
	color: var(--st-muted);
}

/* ============================================================
   CHECKOUT — Caja de tokens
   ============================================================ */

.st-checkout-box {
	background: #fff;
	border: 1px solid var(--st-border);
	border-left: 4px solid var(--st-primary);
	border-radius: var(--st-radius-sm);
	padding: 20px 22px;
	margin-bottom: 24px;
	box-shadow: var(--st-shadow);
}

.st-checkout-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 1rem;
}

.st-checkout-icon {
	font-size: 1.2rem;
}

.st-checkout-balance {
	color: var(--st-muted);
	font-size: .9rem;
	margin-bottom: 14px;
}

/* Resumen de balance en checkout */
.st-checkout-summary {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--st-primary-light);
	border: 1px solid #b2edf8;
	border-radius: var(--st-radius-sm);
	padding: 12px 16px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.st-summary-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.st-summary-label {
	font-size: .75rem;
	color: var(--st-muted);
	text-transform: uppercase;
	letter-spacing: .04em;
}

.st-summary-value {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--st-text);
}

.st-summary-discount {
	color: var(--st-primary-dark);
}

.st-summary-sep {
	font-size: 1.2rem;
	color: var(--st-primary);
	font-weight: 700;
	align-self: flex-end;
	padding-bottom: 2px;
}

.st-summary-cap {
	width: 100%;
	font-size: .78rem;
	color: var(--st-muted);
	margin-top: 2px;
}

.st-redeem-controls label {
	display: block;
	font-size: .88rem;
	color: var(--st-text);
	margin-bottom: 8px;
}

.st-redeem-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}

.st-redeem-row input[type="number"] {
	width: 110px;
	padding: 8px 10px;
	border: 1px solid var(--st-border);
	border-radius: var(--st-radius-sm);
	font-size: .9rem;
	color: var(--st-text);
}

.st-redeem-row input[type="number"]:focus {
	outline: none;
	border-color: var(--st-primary);
	box-shadow: 0 0 0 2px var(--st-primary-light);
}

.st-btn-apply,
.st-btn-all {
	padding: 8px 16px !important;
	font-size: .85rem !important;
	border-radius: var(--st-radius-sm) !important;
	cursor: pointer;
	transition: background .2s;
}

.st-btn-apply {
	background: var(--st-primary) !important;
	color: #fff !important;
	border-color: var(--st-primary) !important;
}

.st-btn-apply:hover {
	background: var(--st-primary-dark) !important;
	border-color: var(--st-primary-dark) !important;
}

.st-btn-all {
	background: var(--st-bg) !important;
	color: var(--st-text) !important;
	border-color: var(--st-border) !important;
}

.st-btn-all:hover {
	background: var(--st-border) !important;
}

.st-btn-remove {
	padding: 7px 14px !important;
	font-size: .82rem !important;
	border-radius: var(--st-radius-sm) !important;
	cursor: pointer;
	margin-top: 10px;
	background: #fff1f2 !important;
	color: var(--st-negative) !important;
	border-color: #fecaca !important;
}

.st-btn-remove:hover {
	background: #fee2e2 !important;
}

.st-redeem-hint {
	font-size: .8rem;
	color: var(--st-muted);
	margin-top: 8px;
	margin-bottom: 0;
}

.st-applied-notice {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: var(--st-radius-sm);
	padding: 10px 14px;
	font-size: .9rem;
	color: var(--st-positive);
	margin-bottom: 4px;
}

.st-checkout-message {
	margin-top: 10px;
	padding: 9px 14px;
	border-radius: var(--st-radius-sm);
	font-size: .88rem;
}

.st-checkout-message.st-msg-success {
	background: #f0fdf4;
	color: var(--st-positive);
	border: 1px solid #bbf7d0;
}

.st-checkout-message.st-msg-error {
	background: #fff1f2;
	color: var(--st-negative);
	border: 1px solid #fecaca;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 600px) {
	.st-balance-card {
		flex-direction: column;
		align-items: flex-start;
		padding: 20px;
	}
	.st-balance-right {
		text-align: left;
	}
	.st-redeem-row {
		flex-direction: column;
		align-items: flex-start;
	}
}
