/**
 * Dexter Deposit Panel Styles - Sharp HUD Design
 */

/* ==========================================
   PANEL CONTAINER
   ========================================== */

.deposit-panel {
	position: fixed;
	z-index: 10000;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.98) 0%, rgba(10, 10, 15, 0.98) 100%);
	border: 2px solid rgba(234, 179, 8, 0.4);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(234, 179, 8, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
	overflow: hidden;
	opacity: 0;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-family: 'Inter', -apple-system, sans-serif;
}

/* Desktop: centered modal - SHARP CORNERS */
@media (min-width: 769px) {
	.deposit-panel {
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%) scale(0.95);
		width: 360px;
		max-height: 90vh;
		border-radius: 0;
		overflow-y: auto;
	}
	
	.deposit-panel.visible {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
	
	.deposit-panel.minimized {
		top: auto;
		bottom: 20px;
		left: auto;
		right: 20px;
		transform: none;
		width: 280px;
		max-height: 60px;
		overflow: hidden;
		border-radius: 0;
	}
	
	.deposit-panel.minimized .dp-header {
		margin-bottom: 0;
	}
	
	.deposit-panel.minimized > *:not(.dp-header) {
		display: none;
	}
}

/* Mobile: full screen */
@media (max-width: 768px) {
	.deposit-panel {
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		height: 100%;
		border-radius: 0;
		border: none;
		transform: translateY(20px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
	
	.deposit-panel.visible {
		opacity: 1;
		transform: translateY(0);
	}
	
	.deposit-panel.minimized {
		top: auto;
		bottom: 0;
		height: 60px;
		overflow: hidden;
		border-radius: 0;
	}
}

/* ==========================================
   HEADER
   ========================================== */

.dp-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: linear-gradient(180deg, rgba(234, 179, 8, 0.15) 0%, rgba(234, 179, 8, 0.05) 100%);
	border-bottom: 1px solid rgba(234, 179, 8, 0.3);
}

.dp-header-left {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dp-icon {
	font-size: 20px;
}

.dp-title {
	font-size: 14px;
	font-weight: 700;
	color: #eab308;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.dp-close {
	width: 28px;
	height: 28px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.05);
	color: #888;
	font-size: 16px;
	font-weight: bold;
	border-radius: 0;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dp-close:hover {
	background: rgba(239, 68, 68, 0.2);
	border-color: rgba(239, 68, 68, 0.5);
	color: #f87171;
}

/* ==========================================
   MATCH CARD
   ========================================== */

.dp-match-card {
	margin: 12px;
	padding: 12px;
	background: rgba(0, 0, 0, 0.4);
	border-left: 3px solid #f97316;
	text-align: center;
}

/* Inline QR Code */
.dp-qr-section {
	display: flex;
	justify-content: center;
	padding: 12px;
	background: #fff;
	margin: 0 12px;
	border: 2px solid rgba(234, 179, 8, 0.5);
}

.dp-qr-inline {
	width: 120px;
	height: 120px;
	display: block;
}

.dp-versus {
	font-size: 10px;
	font-weight: 700;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 3px;
	margin-bottom: 2px;
}

.dp-opponent {
	font-size: 18px;
	font-weight: 700;
	color: #eab308;
	margin-bottom: 8px;
	text-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
}

.dp-match-details {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 12px;
}

.dp-amount {
	color: #22c55e;
	font-weight: 700;
	font-size: 14px;
}

.dp-separator {
	color: #444;
}

.dp-format {
	color: #94a3b8;
}

/* ==========================================
   SECTIONS
   ========================================== */

.dp-section {
	margin: 0 12px 12px;
}

.dp-section-title {
	font-size: 11px;
	font-weight: 700;
	color: #eab308;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* ==========================================
   ADDRESS BOX
   ========================================== */

.dp-address-box {
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(234, 179, 8, 0.2);
	border-left: 3px solid #eab308;
	border-radius: 0;
	padding: 10px;
	margin-bottom: 8px;
}

.dp-address {
	font-family: 'SF Mono', 'Monaco', 'Consolas', 'Liberation Mono', monospace;
	font-size: 11px;
	color: #e2e8f0;
	word-break: break-all;
	line-height: 1.5;
	text-align: center;
	user-select: all;
	cursor: text;
}

/* ==========================================
   ACTION BUTTONS
   ========================================== */

.dp-address-actions {
	display: flex;
	gap: 6px;
}

.dp-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 12px;
	border: none;
	border-radius: 0;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.dp-copy-btn {
	background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
	color: #000;
	border: 1px solid rgba(249, 115, 22, 0.5);
}

.dp-copy-btn:hover {
	background: linear-gradient(180deg, #fb923c 0%, #f97316 100%);
	box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.dp-copy-btn.success {
	background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
	border-color: rgba(34, 197, 94, 0.5);
}

.dp-qr-btn {
	background: rgba(255, 255, 255, 0.1);
	color: #94a3b8;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.dp-qr-btn:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

.dp-phantom-btn {
	background: linear-gradient(180deg, #ab9ff2 0%, #8b5cf6 100%);
	color: #fff;
	border: 1px solid rgba(139, 92, 246, 0.5);
}

.dp-phantom-btn:hover {
	box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.dp-btn-icon {
	font-size: 14px;
}

/* ==========================================
   AMOUNT REMINDER
   ========================================== */

.dp-amount-reminder {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 12px 10px;
	padding: 10px;
	background: rgba(34, 197, 94, 0.1);
	border: 1px solid rgba(34, 197, 94, 0.3);
	border-left: 3px solid #22c55e;
	border-radius: 0;
}

.dp-amount-label {
	color: #86efac;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.dp-amount-value {
	color: #22c55e;
	font-size: 16px;
	font-weight: 700;
	text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

/* ==========================================
   STATUS SECTION
   ========================================== */

.dp-status-section {
	background: rgba(0, 0, 0, 0.3);
	margin: 0 12px 10px;
	padding: 10px;
	border-radius: 0;
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.dp-status-section .dp-section-title {
	margin-bottom: 10px;
	font-size: 10px;
}

.dp-status-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dp-status-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 0;
	border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.dp-status-label {
	flex: 1;
	font-size: 12px;
	font-weight: 600;
	color: #e2e8f0;
}

.dp-status-indicator {
	width: 10px;
	height: 10px;
	border-radius: 0;
	flex-shrink: 0;
}

.dp-status-indicator.waiting {
	background: #6b7280;
	animation: pulse-indicator 2s ease-in-out infinite;
}

.dp-status-indicator.confirmed {
	background: #22c55e;
	box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

@keyframes pulse-indicator {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

.dp-status-text {
	font-size: 11px;
	color: #94a3b8;
	min-width: 60px;
	text-align: right;
}

.dp-status-text.confirmed {
	color: #22c55e;
	font-weight: 700;
}

/* ==========================================
   TIMER
   ========================================== */

.dp-timer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 12px 10px;
	padding: 10px;
	background: rgba(234, 179, 8, 0.1);
	border: 1px solid rgba(234, 179, 8, 0.2);
	border-left: 3px solid #eab308;
	border-radius: 0;
}

.dp-timer-icon {
	font-size: 14px;
}

.dp-timer-text {
	font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
	font-size: 18px;
	font-weight: 700;
	color: #eab308;
	text-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
}

.dp-timer-label {
	font-size: 11px;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.dp-timer.warning .dp-timer-text {
	color: #f97316;
}

.dp-timer.danger .dp-timer-text {
	color: #ef4444;
	animation: blink-timer 1s ease-in-out infinite;
}

@keyframes blink-timer {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

.dp-starting {
	font-size: 16px;
	font-weight: 600;
	color: #22c55e;
	animation: pulse-starting 1s ease-in-out infinite;
}

@keyframes pulse-starting {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.7; }
}

.dp-expired {
	font-size: 14px;
	color: #f87171;
}

/* ==========================================
   TIPS
   ========================================== */

.dp-tips {
	display: flex;
	gap: 8px;
	margin: 0 12px 10px;
	padding: 10px;
	background: rgba(234, 179, 8, 0.1);
	border: 1px solid rgba(234, 179, 8, 0.2);
	border-left: 3px solid #eab308;
	border-radius: 0;
}

.dp-tip-icon {
	font-size: 14px;
	flex-shrink: 0;
}

.dp-tip-text {
	font-size: 11px;
	color: #eab308;
	line-height: 1.4;
}

/* ==========================================
   ACTIONS
   ========================================== */

.dp-actions {
	padding: 0 12px 12px;
}

.dp-cancel-btn {
	width: 100%;
	padding: 10px;
	background: transparent;
	border: 1px solid rgba(239, 68, 68, 0.3);
	border-radius: 0;
	color: #f87171;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all 0.2s;
}

.dp-cancel-btn:hover {
	background: rgba(239, 68, 68, 0.15);
	border-color: rgba(239, 68, 68, 0.5);
	color: #ef4444;
}

/* ==========================================
   QR MODAL
   ========================================== */

.dp-qr-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10001;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s;
}

.dp-qr-modal.visible {
	opacity: 1;
	visibility: visible;
}

.dp-qr-content {
	background: #1a1a2e;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0;
	padding: 24px;
	text-align: center;
	max-width: 320px;
	width: 90%;
}

.dp-qr-title {
	font-size: 16px;
	font-weight: 600;
	color: #e2e8f0;
	margin-bottom: 20px;
}

.dp-qr-code {
	background: #fff;
	padding: 16px;
	border-radius: 0;
	margin-bottom: 16px;
	display: inline-block;
}

.dp-qr-image {
	display: block;
	width: 200px;
	height: 200px;
}

.dp-qr-address {
	font-family: 'SF Mono', monospace;
	font-size: 11px;
	color: #94a3b8;
	word-break: break-all;
	margin-bottom: 16px;
	line-height: 1.5;
}

.dp-qr-close-btn {
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #94a3b8;
	padding: 10px 24px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.2s;
}

.dp-qr-close-btn:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

/* ==========================================
   ACTIVE WAGER WIDGET (MINIMIZED STATE ON HOME)
   ========================================== */

.active-wager-widget {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: linear-gradient(145deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1));
	border: 1px solid rgba(245, 158, 11, 0.4);
	border-radius: 16px;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	z-index: 9999;
	transition: all 0.3s;
	animation: slide-in-widget 0.5s ease-out;
}

@keyframes slide-in-widget {
	from {
		transform: translateX(100px);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.active-wager-widget:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.aww-icon {
	font-size: 24px;
}

.aww-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.aww-title {
	font-size: 13px;
	font-weight: 600;
	color: #f59e0b;
}

.aww-status {
	font-size: 11px;
	color: #fbbf24;
}

.aww-arrow {
	color: #f59e0b;
	font-size: 18px;
}

/* Mobile widget */
@media (max-width: 768px) {
	.active-wager-widget {
		bottom: 70px;
		right: 10px;
		left: 10px;
		justify-content: center;
	}
}
