/**
 * Dexter Deposit Panel Styles
 */

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

.deposit-panel {
	position: fixed;
	z-index: 10000;
	background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
	border: 1px solid rgba(245, 158, 11, 0.3);
	box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 158, 11, 0.15);
	overflow: hidden;
	opacity: 0;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop: centered modal */
@media (min-width: 769px) {
	.deposit-panel {
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%) scale(0.95);
		width: 420px;
		max-height: 90vh;
		border-radius: 20px;
		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: 320px;
		max-height: 80px;
		overflow: hidden;
		border-radius: 16px;
	}
	
	.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: 70px;
		overflow: hidden;
		border-radius: 16px 16px 0 0;
	}
}

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

.dp-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: rgba(0, 0, 0, 0.3);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.dp-title {
	font-size: 18px;
	font-weight: 700;
	color: #f59e0b;
	letter-spacing: 0.5px;
}

.dp-close {
	width: 32px;
	height: 32px;
	border: none;
	background: rgba(255, 255, 255, 0.1);
	color: #888;
	font-size: 20px;
	font-weight: bold;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

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

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

.dp-match-card {
	margin: 20px;
	padding: 20px;
	background: linear-gradient(145deg, rgba(168, 85, 247, 0.15), rgba(139, 92, 246, 0.08));
	border: 1px solid rgba(168, 85, 247, 0.3);
	border-radius: 16px;
	text-align: center;
}

.dp-versus {
	font-size: 12px;
	font-weight: 600;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 4px;
}

.dp-opponent {
	font-size: 24px;
	font-weight: 700;
	color: #c084fc;
	margin-bottom: 12px;
}

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

.dp-amount {
	color: #4ade80;
	font-weight: 600;
}

.dp-separator {
	color: #555;
}

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

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

.dp-section {
	margin: 0 20px 16px;
}

.dp-section-title {
	font-size: 13px;
	font-weight: 600;
	color: #94a3b8;
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

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

.dp-address-box {
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 12px;
}

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

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

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

.dp-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	border: none;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}

.dp-copy-btn {
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	color: #fff;
}

.dp-copy-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.dp-copy-btn.success {
	background: linear-gradient(135deg, #22c55e, #16a34a);
}

.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(135deg, #ab9ff2, #8b5cf6);
	color: #fff;
}

.dp-phantom-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

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

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

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

.dp-amount-label {
	color: #86efac;
	font-size: 13px;
}

.dp-amount-value {
	color: #4ade80;
	font-size: 18px;
	font-weight: 700;
}

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

.dp-status-section {
	background: rgba(0, 0, 0, 0.2);
	margin: 0 20px 16px;
	padding: 16px;
	border-radius: 12px;
}

.dp-status-section .dp-section-title {
	margin-bottom: 16px;
}

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

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

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

.dp-status-indicator {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	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 12px rgba(34, 197, 94, 0.6);
}

@keyframes pulse-indicator {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.5; transform: scale(0.9); }
}

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

.dp-status-text.confirmed {
	color: #4ade80;
	font-weight: 600;
}

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

.dp-timer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 20px 16px;
	padding: 12px;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 10px;
}

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

.dp-timer-text {
	font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
	font-size: 20px;
	font-weight: 700;
	color: #f59e0b;
}

.dp-timer-label {
	font-size: 13px;
	color: #94a3b8;
}

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

.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: 10px;
	margin: 0 20px 16px;
	padding: 12px 14px;
	background: rgba(245, 158, 11, 0.1);
	border: 1px solid rgba(245, 158, 11, 0.2);
	border-radius: 10px;
}

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

.dp-tip-text {
	font-size: 12px;
	color: #fbbf24;
	line-height: 1.5;
}

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

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

.dp-cancel-btn {
	width: 100%;
	padding: 12px;
	background: transparent;
	border: 1px solid rgba(239, 68, 68, 0.3);
	border-radius: 10px;
	color: #f87171;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
}

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

/* ==========================================
   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: 20px;
	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: 12px;
	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;
	}
}
