/**
 * Baton Game System - Dashboard Styles
 */

.bgs-dashboard,
.bgs-leaderboard,
.bgs-history {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Branch Header */
.bgs-branch-header {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-top: 40px;
    color: #051C2C;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 48px;
}

.bgs-branch-header h1 {
	margin: 0 0 12px 0;
	font-size: 32px;
	font-weight: 700;
    color: #051C2C;
}

.bgs-branch-info {
	display: flex;
	gap: 24px;
	font-size: 16px;
    color: #051C2C;
}

.bgs-branch-info p {
	margin: 0;
}

/* Baton Status */
.bgs-baton-status {
	margin-bottom: 48px;
    text-align: center;
}

.bgs-baton-status h2 {
	font-size: 1.5em;
	margin-bottom: 15px;
	color: #051C2C;
}

.bgs-status-badge {
	padding: 20px 40px;
	border-radius: 8px;
	/* border-left: 5px solid #999; */
	background: #fff;
	font-size: 18px;
	text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bgs-status-badge p {
    color: #051C2C;
    font-size: 22px;
    margin: 4px 0px;
	font-weight: 700;
}

/* .bgs-status-holding {
	border-left-color: #4caf50;
	background: #f1f8f4;
}

.bgs-status-waiting {
	border-left-color: #2196f3;
	background: #f3f8ff;
}

.bgs-status-completed {
	border-left-color: #ff9800;
	background: #fef9f0;
}

.bgs-status-expired {
	border-left-color: #f44336;
	background: #fff5f5;
} */

/* Countdown Timer */
.bgs-countdown-container {
	margin-top: 24px;
	margin-bottom: 24px;
	padding: 28px;
	background: linear-gradient(135deg, #fff8f0 0%, #ffe8d6 100%);
	border: 3px solid #CCA942;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(202, 169, 66, 0.25);
	text-align: center;
}

.bgs-countdown-container p {
	margin: 0;
	color: #051C2C;
	font-size: 1em;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.bgs-countdown-container p:first-child {
	margin-bottom: 16px;
}

.bgs-countdown-container p:last-child {
	margin-top: 12px;
	font-size: 0.9em;
	color: #555;
	font-weight: 500;
}

.bgs-countdown {
    font-size: 3.5em;
    font-weight: 900;
    color: #CCA942;
    font-family: 'Courier New', monospace;
    display: inline-block;
    letter-spacing: 4px;
}

.bgs-countdown-display {
	display: inline-block;
	padding: 72px 56px;
	padding-top: 78px;
	background: linear-gradient(135deg, #ffffff 0%, #fffbf5 100%);
	border-radius: 14px;
	border: 3px solid #CCA942;
	letter-spacing: 4px;
	box-shadow: 0 6px 20px rgba(202, 169, 66, 0.2), inset 0 0 15px rgba(202, 169, 66, 0.05);
	animation: bgs-countdown-pulse 2s ease-in-out infinite;
	font-size: 3.2em;
	font-weight: 900;
	font-family: 'Courier New', monospace;
	color: #051C2C;
	transition: all 0.3s ease;
}

@keyframes bgs-countdown-pulse {
	0%, 100% {
		box-shadow: 0 6px 20px rgba(202, 169, 66, 0.2), inset 0 0 15px rgba(202, 169, 66, 0.05);
		transform: scale(1);
	}
	50% {
		box-shadow: 0 10px 30px rgba(202, 169, 66, 0.35), inset 0 0 20px rgba(202, 169, 66, 0.1);
		transform: scale(1.03);
	}
}

/* Countdown color states based on JavaScript */
.bgs-countdown-display.bgs-countdown-warning {
	border-color: #ff9800;
	background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
	color: #ff9800;
	box-shadow: 0 8px 25px rgba(255, 152, 0, 0.35), inset 0 0 15px rgba(255, 152, 0, 0.1);
	animation: bgs-countdown-pulse-warning 1.2s ease-in-out infinite;
}

@keyframes bgs-countdown-pulse-warning {
	0%, 100% {
		box-shadow: 0 8px 25px rgba(255, 152, 0, 0.35), inset 0 0 15px rgba(255, 152, 0, 0.1);
		transform: scale(1);
	}
	50% {
		box-shadow: 0 12px 35px rgba(255, 152, 0, 0.5), inset 0 0 20px rgba(255, 152, 0, 0.15);
		transform: scale(1.04);
	}
}

.bgs-countdown-display.bgs-countdown-critical {
	border-color: #d32f2f;
	background: linear-gradient(135deg, #ffebee 0%, #ef5350 100%);
	color: white;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	box-shadow: 0 10px 35px rgba(211, 47, 47, 0.5), inset 0 0 20px rgba(211, 47, 47, 0.2);
	animation: bgs-countdown-pulse-critical 0.8s ease-in-out infinite;
}

@keyframes bgs-countdown-pulse-critical {
	0%, 100% {
		box-shadow: 0 10px 35px rgba(211, 47, 47, 0.5), inset 0 0 20px rgba(211, 47, 47, 0.2);
		transform: scale(1);
	}
	50% {
		box-shadow: 0 14px 45px rgba(211, 47, 47, 0.75), inset 0 0 25px rgba(211, 47, 47, 0.3);
		transform: scale(1.05);
	}
}

.bgs-pass-baton-section {
    text-align: center;
}

.bgs-pass-baton-section p {
    margin-bottom: 0px;
    color: #051C2C;
}

/* How It Works Section */
.bgs-how-it-works-section {
	margin-bottom: 68px;
}

.bgs-how-it-works-container {
	background: linear-gradient(135deg, #fef9f0 0%, #fffbf5 100%);
	border: 2px solid #CCA942;
	border-radius: 12px;
	padding: 32px;
	box-shadow: 0 4px 12px rgba(202, 169, 66, 0.15);
}

.bgs-how-it-works-heading-wrapper {
	border-bottom: 2px solid #cdaa42;
    padding-bottom: 16px;
}

.bgs-how-it-works-heading {
	margin: 0;
	color: #051C2C;
	font-size: 1.6em;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	user-select: none;
	transition: all 0.3s ease;
}

.bgs-how-it-works-heading img {
    top: 2px;
    position: relative;
	margin-left: -3px !important;
}

.bgs-how-it-works-heading.collapsed .bgs-collapse-icon {
	transform: rotate(-90deg);
}

.bgs-how-it-works-heading:hover {
	opacity: 0.8;
}

.bgs-how-it-works-collapse {
	max-height: 5000px;
	overflow: hidden;
	transition: max-height 0.4s ease, opacity 0.4s ease;
	opacity: 1;
	margin-top: 24px;
}

.bgs-how-it-works-collapse.collapsed {
	max-height: 0;
	opacity: 0;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0px !important;
	margin-bottom: 0 !important;
}

.bgs-how-it-works-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
}

.bgs-how-it-works-rules {
	padding: 24px;
	background: #fff;
	border-radius: 8px;
	border-left: 5px solid #28a745;
}

.bgs-how-it-works-rules h3 {
	margin: 0 0 16px 0;
	color: #051C2C;
	font-size: 1.2em;
	font-weight: 600;
}

.bgs-how-it-works-rules ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.bgs-how-it-works-rules li {
	margin: 12px 0;
	padding-left: 28px;
	position: relative;
	color: #333;
	line-height: 1.6;
	font-size: 0.95em;
}

.bgs-how-it-works-rules li:before {
	content: '✓';
	position: absolute;
	left: 0;
	color: #28a745;
	font-weight: 700;
	font-size: 1.1em;
}

.bgs-how-it-works-timeline {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bgs-timeline-item {
	display: flex;
	gap: 16px;
	padding: 20px;
	background: #fff;
	border-radius: 8px;
	border-left: 5px solid #999;
}

.bgs-timeline-success {
	border-left-color: #28a745;
	background: #f9fdf7;
}

.bgs-timeline-fail {
	border-left-color: #dc3545;
	background: #fef9f7;
}

.bgs-timeline-marker {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 50px;
	height: 50px;
	border-radius: 50%;
	font-size: 1.4em;
	font-weight: 700;
	flex-shrink: 0;
}

.bgs-timeline-success .bgs-timeline-marker {
	background: #d4edda;
	color: #155724;
}

.bgs-timeline-fail .bgs-timeline-marker {
	background: #f8d7da;
	color: #721c24;
}

.bgs-timeline-content h4 {
	margin: 0 0 6px 0;
	color: #051C2C;
	font-size: 1.05em;
	font-weight: 600;
}

.bgs-timeline-content p {
	margin: 0;
	color: #333;
	font-size: 0.95em;
	line-height: 1.5;
}

@media (max-width: 768px) {
	.bgs-how-it-works-content {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.bgs-how-it-works-container {
		padding: 24px;
	}
}

/* Activities & Pass Baton Sections */
.bgs-activities-section,
.bgs-pass-baton-section,
.bgs-pass-baton-details-section {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	margin-bottom: 30px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bgs-activities-section h2,
.bgs-pass-baton-section h2,
.bgs-pass-baton-details-section h2 {
	margin-top: 0;
	margin-bottom: 20px;
	color: #051C2C;
    font-size: 32px;
    font-weight: 700;
}

/* Activities Group */
.bgs-activities-group {
	margin-bottom: 24px;
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #e0e0e0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: all 0.3s ease;
}

.bgs-activities-group:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	border-color: #CCA942;
}

.bgs-difficulty-heading {
	font-size: 26px;
	font-weight: 700;
	color: #051C2C;
	margin: 0;
	padding-bottom: 12px;
	border-bottom: 3px solid #CCA942;
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	user-select: none;
	transition: all 0.3s ease;
}

.bgs-difficulty-heading:hover {
	opacity: 0.8;
}

.bgs-collapse-icon {
	display: inline-flex;
	align-items: center;
	font-size: 0.7em;
	transition: transform 0.3s ease;
	min-width: 20px;
}

.bgs-difficulty-heading.collapsed .bgs-collapse-icon {
	transform: rotate(-90deg);
}

.bgs-difficulty-heading-wrapper {
	/* margin-bottom: 24px; */
}

/* Activities List Collapse */
.bgs-activities-list-collapse {
	max-height: 5000px;
	overflow: hidden;
	transition: max-height 0.4s ease, opacity 0.4s ease;
	opacity: 1;
}

.bgs-activities-list-collapse.collapsed {
	max-height: 0;
	opacity: 0;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.bgs-difficulty-easy {
	background: linear-gradient(135deg, #f9fdf7 0%, #f2f7ef 100%);
	border-left: 5px solid #28a745;
}

.bgs-difficulty-easy .bgs-difficulty-heading {
	border-bottom-color: #28a745;
}

.bgs-difficulty-medium {
	background: linear-gradient(135deg, #fffcf7 0%, #fff8f0 100%);
	border-left: 5px solid #ffc107;
}

.bgs-difficulty-medium .bgs-difficulty-heading {
	border-bottom-color: #ffc107;
}

.bgs-difficulty-hard {
	background: linear-gradient(135deg, #fef9f7 0%, #fef0f0 100%);
	border-left: 5px solid #dc3545;
}

.bgs-difficulty-hard .bgs-difficulty-heading {
	border-bottom-color: #dc3545;
}

.bgs-difficulty-bonus {
	background: linear-gradient(135deg, #f7fbfd 0%, #eff7fb 100%);
	border-left: 5px solid #17a2b8;
}

.bgs-difficulty-bonus .bgs-difficulty-heading {
	border-bottom-color: #17a2b8;
}

/* Pass Baton Details Card */
.bgs-pass-details-card {
	background: linear-gradient(135deg, #f5f7fa 0%, #e8eef7 100%);
	border-left: 4px solid #4CAF50;
	padding: 20px;
	border-radius: 6px;
	margin-top: 20px;
}

.bgs-pass-details-card h3 {
	margin: 8px 0 16px 0;
	font-size: 1.3em;
	color: #051C2C;
}

.bgs-pass-details-card p {
	margin: 8px 0;
	color: #051C2C;
}

.bgs-pass-details-status {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	font-style: italic;
	color: #666;
}

/* Activities List */
.bgs-activities-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
    margin-top: 20px;
}

.bgs-activity-item {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 16px 20px !important;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: all 0.3s ease;
	background: #fff;
	position: relative;
}

.bgs-activity-item:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	border-color: #CCA942;
	transform: translateY(-2px);
}

.bgs-activity-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	gap: 16px;
}

.bgs-activity-item h4 {
	margin: 0;
	color: #051C2C;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 600;
	flex: 1;
}

/* Points Badge */
.bgs-points-badge {
	background: linear-gradient(135deg, #CCA942 0%, #B89A3A 100%);
	color: #fff;
	padding: 10px 0px;
	border-radius: 8px;
	text-align: center;
	white-space: nowrap;
	box-shadow: 0 4px 8px rgba(202, 169, 66, 0.3);
	min-width: 100px;
}

.bgs-points-value {
	display: block;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
}

.bgs-points-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	margin-top: 4px;
	opacity: 0.9;
}

/* Activity Meta (Difficulty & Type Badges) */
.bgs-activity-meta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.bgs-difficulty-badge,
.bgs-activity-type-badge {
	padding: 0px 8px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}

/* Difficulty Badge Colors */
.bgs-difficulty-easy {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.bgs-difficulty-medium {
	background: #fff3cd;
	color: #856404;
	border: 1px solid #ffeaa7;
}

.bgs-difficulty-hard {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.bgs-difficulty-bonus {
	background: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

/* Activity Type Badge */
.bgs-activity-type-badge {
	background: #e7f3ff;
	color: #0066cc;
	border: 1px solid #b3d9ff;
}

.bgs-activity-details p {
	margin: 6px 0;
	color: #051C2C;
}

.bgs-activity-description {
    padding-top: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #051C2C;
	font-weight: 400;
}

.bgs-already-submitted {
	padding: 12px 16px;
	background: #d4edda;
	color: #155724;
	border-radius: 6px;
	text-align: center;
	font-weight: 600;
	border: 1px solid #c3e6cb;
}

/* Activity Actions */
.bgs-activity-actions {
	display: flex;
	gap: 12px;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
}

/* Buttons */
.bgs-btn {
	padding: 12px 24px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
}

.bgs-btn-primary {
	background: linear-gradient(135deg, #CCA942 0%, #B89A3A 100%);
	color: #fff;
	flex: 1;
    padding: 6px 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.bgs-btn-primary:hover {
	background: linear-gradient(135deg, #B89A3A 0%, #A68932 100%);
	box-shadow: 0 6px 12px rgba(202, 169, 66, 0.4);
	transform: translateY(-1px);
}

.bgs-btn-secondary {
	background: #f5f5f5;
	color: #051C2C;
	border: 1px solid #e0e0e0;
	padding: 10px 20px;
	flex: 0 1 auto;
	min-width: 100px;
}

.bgs-btn-secondary:hover {
	background: #e8e8e8;
	border-color: #CCA942;
}

.bgs-cancel {
    background: #051C2C !important;
    border: 1px solid #051C2C !important;
    color: #fff !important;
}

.bgs-btn-small {
	padding: 6px 12px;
	font-size: 0.9em;
}

.bgs-select-activity {
	width: 100%;
	padding: 16px;
    font-size: 16px;
}

/* Modal */
.bgs-modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	animation: bgs-fade-in 0.2s;
}

@keyframes bgs-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.bgs-modal-content {
    background-color: #fff;
    margin: 0px auto;
    padding: 24px;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: bgs-slide-down 0.3s;
}

@keyframes bgs-slide-down {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.bgs-close {
	color: #999;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	line-height: 20px;
}

.bgs-close:hover,
.bgs-close:focus {
	color: #051C2C;
}

.bgs-modal-content h2 {
	margin-top: 0;
	margin-bottom: 20px;
	color: #051C2C;
}

/* Modal Header */
.bgs-modal-header {
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 2px solid #CCA942;
}

.bgs-modal-header h2 {
	margin: 0;
	color: #051C2C;
	font-size: 1.6em;
}

/* Activity Details Display */
.bgs-activity-details-display {
	margin-bottom: 28px;
	padding: 20px;
	background: linear-gradient(135deg, #f9fdf7 0%, #f5f9f3 100%);
	border-radius: 8px;
	border-left: 5px solid #CCA942;
}

.bgs-activity-detail-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bgs-detail-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
}

.bgs-detail-header h3 {
	margin: 0;
	font-size: 1.3em;
	color: #051C2C;
	flex: 1;
}

.bgs-detail-badges {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.bgs-detail-points {
	background: linear-gradient(135deg, #CCA942 0%, #B89A3A 100%);
	color: #fff;
	padding: 12px 16px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	width: fit-content;
	align-self: flex-end;
}

.bgs-detail-points .bgs-points-value {
	font-size: 18px;
	font-weight: 700;
}

.bgs-detail-points .bgs-points-label {
	font-size: 12px;
	font-weight: 600;
	opacity: 0.9;
}

.bgs-execution-steps-box {
	background: #f5f5f5;
	padding: 16px;
	border-radius: 6px;
	border-left: 4px solid #051C2C;
}

.bgs-execution-steps-box h4 {
	margin: 0 0 12px 0;
	color: #051C2C;
	font-size: 1em;
}

.bgs-execution-steps-box p,
.bgs-execution-steps-box ul,
.bgs-execution-steps-box ol {
	margin: 8px 0;
	color: #333;
	line-height: 1.6;
}

.bgs-execution-steps-box ul,
.bgs-execution-steps-box ol {
	padding-left: 20px;
}

/* Form Section */
.bgs-form-section {
	margin-bottom: 24px;
	padding-top: 24px;
	border-top: 2px solid #e0e0e0;
}

.bgs-form-section button {
	max-width: max-content;
}

.bgs-form-section h3 {
	margin: 0 0 16px 0;
	color: #051C2C;
	font-size: 1.1em;
}

/* Form Styles */
.bgs-form-group {
	margin-bottom: 20px;
}

.bgs-form-group label {
	display: inline-block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #051C2C;
}

.bgs-form-group input[type="file"],
.bgs-form-group textarea,
.bgs-form-group select {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: inherit;
	font-size: 1em;
	box-sizing: border-box;
}

.bgs-form-group textarea {
	resize: vertical;
	min-height: 100px;
}

.bgs-form-group input[type="file"]:focus,
.bgs-form-group textarea:focus,
.bgs-form-group select:focus {
	outline: none;
	border-color: #CCA942;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.bgs-form-value {
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    color: #051C2C;
    font-weight: 600;
    font-size: 14px;
}

.bgs-form-help {
	display: block;
	margin-top: 5px;
	color: #999;
	font-size: 0.9em;
}

.bgs-form-actions {
	display: flex;
	gap: 10px;
	margin-top: 24px;
    justify-content: flex-end;
}

.bgs-form-actions button {
	max-width: max-content !important;
}

/* Pass Baton Form */
.bgs-pass-baton-form {
	background: #fff;
	padding: 10px;
	border-radius: 8px;
	max-width: 400px;
    margin: 0px auto;
}

.bgs-pass-baton-form button {
	padding: 12px 22px !important;
    padding-bottom: 14px !important;
}

/* Leaderboard Styles */
.bgs-my-rank {
	background: linear-gradient(135deg, #CCA942 0%, #CCA942 100%);
	color: white;
	padding: 25px;
	border-radius: 8px;
	margin-bottom: 30px;
	text-align: center;
}

.bgs-my-rank h2 {
	margin-top: 0;
	margin-bottom: 20px;
	color: white;
}

.bgs-rank-display {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 15px;
}

.bgs-rank-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
}

.bgs-rank-number {
	font-size: 3em;
	font-weight: 700;
	line-height: 1;
}

.bgs-rank-total,
.bgs-rank-points {
	font-size: 0.95em;
	opacity: 0.95;
}

/* Leaderboard Stats */
.bgs-leaderboard-stats {
	background: white;
	padding: 25px;
	border-radius: 8px;
	margin-bottom: 30px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bgs-leaderboard-stats h3 {
	margin-top: 0;
	margin-bottom: 20px;
	color: #051C2C;
}

.bgs-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 15px;
}

.bgs-stat-item {
	text-align: center;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}

.bgs-stat-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 0px;
    font-weight: 600;
}

.bgs-stat-value {
	display: block;
	font-size: 2em;
	font-weight: 700;
	color: #CCA942;
}

/* Leaderboard Table */
.bgs-leaderboard-table {
	background: #fff;
	padding: 25px;
	border-radius: 8px;
	margin-bottom: 30px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bgs-leaderboard-table h2 {
	margin-top: 0;
	margin-bottom: 20px;
	color: #051C2C;
}

.bgs-table {
	width: 100%;
	border-collapse: collapse;
}

.bgs-table thead {
	background: #f5f5f5;
	border-bottom: 2px solid #e0e0e0;
}

.bgs-table th {
	padding: 15px;
	text-align: left;
	font-weight: 600;
	color: #051C2C;
}

.bgs-table td {
	padding: 15px;
	border-bottom: 1px solid #e0e0e0;
}

.bgs-table tbody tr {
	transition: background-color 0.2s;
}

.bgs-table tbody tr:hover {
	background-color: #f9f9f9;
}

.bgs-table tbody tr.bgs-current-branch {
	background: #f1f8f4;
	font-weight: 600;
}

.bgs-rank-badge {
	display: inline-block;
	width: 35px;
	height: 35px;
	background: #CCA942;
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.1em;
}

.bgs-you-badge {
	background: #4caf50;
	color: white;
	padding: 3px 8px;
	border-radius: 12px;
	font-size: 0.8em;
	margin-left: 8px;
	font-weight: 600;
}

.bgs-points-column {
	font-weight: 700;
	color: #CCA942;
	font-size: 1.1em;
}

/* Recent Activity Feed */
.bgs-recent-activity {
	background: white;
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bgs-recent-activity h2 {
	margin-top: 0;
	margin-bottom: 20px;
	color: #051C2C;
}

.bgs-activity-feed {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.bgs-activity-entry {
	padding: 15px;
	background: #f9f9f9;
	border-radius: 6px;
	border-left: 4px solid #CCA942;
}

.bgs-activity-info {
	margin-bottom: 10px;
	color: #051C2C;
	font-size: 0.95em;
	line-height: 1.5;
}

.bgs-activity-meta {
	display: flex;
	gap: 15px;
	font-size: 0.85em;
	color: #999;
}

.bgs-activity-points {
	font-weight: 600;
	color: #4caf50;
}

/* History Styles */
.bgs-history-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.bgs-history-item {
	background: white;
	border-radius: 8px;
	padding: 25px;
	border-left: 5px solid #999;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
}

.bgs-history-item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bgs-history-item.bgs-status-completed {
	border-left-color: #4caf50;
}

.bgs-history-item.bgs-status-expired {
	border-left-color: #f44336;
	opacity: 0.7;
}

.bgs-history-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #e0e0e0;
}

.bgs-history-header h3 {
	margin: 0;
	color: #051C2C;
	font-size: 1.2em;
}

.bgs-history-details {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.bgs-detail-row {
	display: flex;
	gap: 15px;
	align-items: flex-start;
}

.bgs-detail-label {
	min-width: 100px;
	font-weight: 600;
	color: #666;
	flex-shrink: 0;
}

.bgs-detail-value {
	flex-grow: 1;
	color: #051C2C;
}

.bgs-detail-value.bgs-points-value {
	font-weight: 700;
	color: #4caf50;
	font-size: 1.1em;
}

.bgs-caption {
	padding: 10px;
	background: #f9f9f9;
	border-radius: 4px;
	line-height: 1.6;
	font-style: italic;
}

.bgs-media-row {
	display: flex;
	flex-direction: column;
}

.bgs-media-preview {
	border-radius: 6px;
	overflow: hidden;
	background: #f0f0f0;
}

.bgs-media-preview img,
.bgs-media-preview video {
	max-width: 100%;
	height: auto;
	display: block;
}

.bgs-no-history {
	text-align: center;
	padding: 40px 20px;
	background: white;
	border-radius: 8px;
	color: #999;
}

.bgs-no-history p {
	margin: 10px 0;
	font-size: 1.05em;
}

/* Responsive */
@media (max-width: 768px) {
	.bgs-dashboard,
	.bgs-leaderboard,
	.bgs-history {
		padding: 10px;
	}

	.bgs-branch-header {
		padding: 20px;
	}

	.bgs-branch-header h1 {
		font-size: 1.8em;
	}

	.bgs-branch-info {
		flex-direction: column;
		gap: 10px;
	}

	.bgs-activities-list {
		grid-template-columns: 1fr;
	}

	.bgs-modal-content {
		width: 95%;
		margin: 20% auto;
		padding: 20px;
	}

	.bgs-stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.bgs-form-actions {
		flex-direction: column;
	}

	.bgs-detail-row {
		flex-direction: column;
		gap: 5px;
	}

	.bgs-activity-meta {
		flex-direction: column;
		gap: 5px;
	}
}

/* Status Badge Colors */
.bgs-status-badge {
	/* display: inline-block; */
	padding: 20px 40px;
	border-radius: 20px;
	font-size: 0.85em;
	font-weight: 600;
}

.bgs-status-completed {
	background: #e8f5e9;
	color: #2e7d32;
}

.bgs-status-expired {
	background: #ffebee;
	color: #c62828;
}

/* Utility Classes */
.bgs-total-points {
	font-weight: 700;
	font-size: 1.2em;
}

/* Accessibility */
.bgs-btn:focus,
.bgs-form-group input:focus,
.bgs-form-group textarea:focus,
.bgs-form-group select:focus {
	outline: 2px solid #CCA942;
	outline-offset: 2px;
}

/* Loading State */
.bgs-loading {
	opacity: 0.6;
	pointer-events: none;
}

.bgs-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Points History Section */
.bgs-points-history-section {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-top: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    color: #051C2C;
    margin-bottom: 68px;
}

.bgs-points-history-section h2 {
	color: #051C2C;
	margin-bottom: 6px;
	font-size: 24px;
	font-weight: 600;
    margin-top: 0px;
}

.bgs-points-history-section > p {
	margin-bottom: 0px;
	font-size: 14px;
}

.bgs-points-table-wrapper {
	overflow-x: auto;
	margin-top: 20px;
}

.bgs-points-table {
	width: 100%;
	border-collapse: collapse;
	background: white;
	border: 1px solid #ddd;
	border-radius: 6px;
	overflow: hidden;
}

.bgs-points-table thead {
	background: #f5f5f5;
	border-bottom: 2px solid #ddd;
}

.bgs-points-table th {
	padding: 15px;
	text-align: left;
	font-weight: 600;
	font-size: 14px;
}

.bgs-points-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #051C2C;
    font-weight: 500;
}

.bgs-points-table tbody tr:hover {
	background: #f9f9f9;
}

.bgs-points-table .bgs-points-cell {
	font-weight: 600;
	color: #CCA942;
	font-size: 16px;
}

.bgs-activity-type-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.bgs-activity-type-badge.bgs-type-photo {
    background: #CCA942;
    color: #fff;
}

.bgs-activity-type-badge.bgs-type-video {
    background: #CCA942;
    color: #fff;
}

.bgs-points-table tfoot {
	background: #f5f5f5;
	border-top: 2px solid #ddd;
}

.bgs-points-table .bgs-points-total td {
	padding: 18px 15px;
	font-weight: 600;
	color: #051C2C;
	font-size: 15px;
}

.bgs-points-table .bgs-points-total td:last-child {
	color: #CCA942;
	font-size: 18px;
}

.bgs-no-submissions {
	background: #fff3cd;
	border: 1px solid #ffc107;
	color: #856404;
	padding: 20px;
	border-radius: 6px;
	text-align: center;
	margin-top: 20px;
	font-size: 14px;
}

/* Division Standings Section */
.bgs-division-standings-section {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-top: 40px;
    color: #051C2C;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bgs-division-standings-section h2 {
    margin-bottom: 6px;
    font-size: 24px;
    font-weight: 600;
    margin-top: 0px;
}

.bgs-division-standings-section > p {
	margin-bottom: 25px;
	font-size: 14px;
    color: #051C2C;
}

.bgs-standings-container {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.bgs-standings-item {
	display: flex;
	align-items: stretch;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bgs-standings-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.bgs-standings-item.bgs-standings-current {
	border-left: 4px solid #ffc107;
	background: rgba(255, 255, 255, 1);
}

.bgs-standings-rank {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #CCA942 0%, #CCA942 100%);
	color: white;
	min-width: 70px;
	font-weight: 700;
}

.bgs-rank-number {
	font-size: 28px;
	line-height: 1;
}

.bgs-standings-item:nth-child(1) .bgs-rank-number::before {
	content: '🥇 ';
}

.bgs-standings-item:nth-child(2) .bgs-rank-number::before {
	content: '🥈 ';
}

.bgs-standings-item:nth-child(3) .bgs-rank-number::before {
	content: '🥉 ';
}

.bgs-standings-info {
	flex: 1;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.bgs-standings-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 15px;
	gap: 20px;
}

.bgs-standings-name {
	flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bgs-standings-name h3 {
	margin: 0;
	color: #051C2C;
	font-size: 18px;
	font-weight: 600;
}

.bgs-current-branch-label {
    display: inline-block;
    background: #CCA942;
    color: #fff;
    padding: 0px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    top: 2px;
    position: relative;
}

.bgs-standings-meta {
	display: flex;
	align-items: center;
	gap: 15px;
	white-space: nowrap;
}

.bgs-status-label {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.bgs-status-label-holding {
	background: #c8e6c9;
	color: #2e7d32;
}

.bgs-status-label-completed {
	background: #a5d6a7;
	color: #1b5e20;
}

.bgs-status-label-waiting {
	background: #ffe0b2;
	color: #e65100;
}

.bgs-status-label-expired {
	background: #ffccbc;
	color: #bf360c;
}

.bgs-standings-points {
	font-weight: 700;
	color: #CCA942;
	font-size: 16px;
	min-width: 60px;
	text-align: right;
}

.bgs-standings-stats {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 8px 12px;
	background: #f5f5f5;
	border-radius: 6px;
}

.bgs-standings-activities {
	font-weight: 600;
	color: #555;
	font-size: 14px;
}

.bgs-progress-bar-container {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bgs-progress-bar {
	flex: 1;
	height: 8px;
	background: #e0e0e0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bgs-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #CCA942 0%, #CCA942 100%);
	border-radius: 10px;
	transition: width 0.3s ease;
	box-shadow: 0 0 10px rgba(202, 169, 66, 0.4);
}

.bgs-progress-label {
	min-width: 40px;
	text-align: right;
	font-weight: 600;
	color: #666;
	font-size: 12px;
}

.bgs-no-standings {
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: white;
	padding: 20px;
	border-radius: 6px;
	text-align: center;
	font-size: 14px;
}

.bgs-standings-button-container {
	text-align: center;
	margin: 25px 0;
}

.bgs-standings-toggle {
	padding: 12px 28px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	transition: all 0.3s ease;
}

.bgs-standings-toggle:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(202, 169, 66, 0.3);
}

.bgs-standings-less-container.hidden {
	display: none;
}

.bgs-standings-all.hidden {
	display: none;
}

.bgs-standings-all {
	animation: fadeInStandings 0.3s ease;
}

@keyframes fadeInStandings {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Responsive Table */
@media (max-width: 768px) {
	.bgs-points-table {
		font-size: 12px;
	}

	.bgs-points-table th,
	.bgs-points-table td {
		padding: 10px;
	}

	.bgs-points-history-section {
		padding: 20px;
		margin-top: 30px;
	}

	.bgs-activity-type-badge {
		padding: 4px 8px;
		font-size: 10px;
	}

	/* Division Standings Responsive */
	.bgs-standings-item {
		margin-bottom: 15px;
	}

	.bgs-standings-header {
		flex-direction: column;
		gap: 10px;
	}

	.bgs-standings-name h3 {
		font-size: 16px;
	}

	.bgs-standings-meta {
		width: 100%;
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	.bgs-standings-stats {
		flex-direction: column;
		gap: 8px;
		padding: 6px 10px;
	}
}

/* Division Leaderboard Styles */
.bgs-division-leaderboard {
	max-width: 100%;
	margin: 0 auto;
}

.bgs-division-leaderboard-header {
	text-align: center;
	margin-bottom: 50px;
	padding: 40px 20px;
	background: linear-gradient(135deg, #CCA942 0%, #B8941F 100%);
	border-radius: 12px;
	color: white;
}

.bgs-division-leaderboard-header h1 {
	margin: 0 0 10px 0;
	font-size: 2.8em;
	font-weight: 800;
	letter-spacing: -0.5px;
}

.bgs-division-leaderboard-header p {
	margin: 0;
	font-size: 1.1em;
	opacity: 0.9;
}

.bgs-division-cards-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
	gap: 28px;
	margin-bottom: 40px;
}

.bgs-division-card {
	background: #fff;
	border-radius: 12px;
	padding: 28px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border-left: 4px solid #CCA942;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bgs-division-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Rank-specific styling */
.bgs-division-rank-1 {
	border-left-color: #ffd700;
	background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 215, 0, 0.02) 100%);
}

.bgs-division-rank-2 {
	border-left-color: #c0c0c0;
	background: linear-gradient(135deg, rgba(192, 192, 192, 0.05) 0%, rgba(192, 192, 192, 0.02) 100%);
}

.bgs-division-rank-3 {
	border-left-color: #cd7f32;
	background: linear-gradient(135deg, rgba(205, 127, 50, 0.05) 0%, rgba(205, 127, 50, 0.02) 100%);
}

.bgs-division-card-header {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 16px;
}

.bgs-division-rank-badge {
	position: relative;
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, #CCA942 0%, #B8941F 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 4px 15px rgba(204, 169, 66, 0.4);
}

.bgs-division-rank-1 .bgs-division-rank-badge {
	background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
	box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.bgs-division-rank-2 .bgs-division-rank-badge {
	background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
	box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.bgs-division-rank-3 .bgs-division-rank-badge {
	background: linear-gradient(135deg, #cd7f32 0%, #e8b371 100%);
	box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}

.bgs-division-rank-number {
	font-size: 28px;
	font-weight: 800;
	color: white;
}

.bgs-division-rank-1 .bgs-division-rank-number {
	color: #333;
}

.bgs-division-rank-2 .bgs-division-rank-number {
	color: #333;
}

.bgs-division-rank-3 .bgs-division-rank-number {
	color: white;
}

.bgs-division-medal {
	position: absolute;
	top: -8px;
	right: -8px;
	font-size: 24px;
}

.bgs-division-name-section {
	flex: 1;
}

.bgs-division-name {
	margin: 0 0 4px 0;
	font-size: 1.5em;
	font-weight: 700;
	color: #051C2C;
}

.bgs-division-subtitle {
	margin: 0;
	font-size: 0.9em;
	color: #666;
}

.bgs-division-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.bgs-division-stat {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 3px 6px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.bgs-stat-label {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: #999;
	margin-bottom: 0px;
	font-weight: 600;
}

.bgs-stat-value {
	display: block;
	font-size: 1.6em;
	font-weight: 800;
	color: #CCA942;
}

.bgs-division-progress-section {
	display: flex;
	align-items: center;
	gap: 12px;
}

.bgs-division-progress-bar-wrapper {
	flex: 1;
}

.bgs-division-progress-bar {
	width: 100%;
	height: 8px;
	background: #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
}

.bgs-division-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #CCA942 0%, #B8941F 100%);
	border-radius: 4px;
	transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bgs-division-rank-1 .bgs-division-progress-fill {
	background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
}

.bgs-division-rank-2 .bgs-division-progress-fill {
	background: linear-gradient(90deg, #c0c0c0 0%, #e8e8e8 100%);
}

.bgs-division-rank-3 .bgs-division-progress-fill {
	background: linear-gradient(90deg, #cd7f32 0%, #e8b371 100%);
}

.bgs-division-progress-label {
	font-size: 0.9em;
	font-weight: 700;
	color: #CCA942;
	min-width: 45px;
	text-align: right;
}

.bgs-division-branches-preview {
	padding-top: 12px;
	border-top: 2px solid #f0f0f0;
}

.bgs-division-branches-preview h3 {
	margin: 0 0 12px 0;
	font-size: 0.95em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #999;
}

.bgs-division-branches-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bgs-branch-item {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	background: #f8f9fa;
	border-radius: 6px;
	font-size: 0.9em;
	border-left: 3px solid #CCA942;
}

.bgs-branch-position {
	font-weight: 700;
	color: #CCA942;
	min-width: 20px;
}

.bgs-branch-name {
	flex: 1;
	color: #051C2C;
	font-weight: 500;
}

.bgs-branch-points {
	color: #999;
	font-weight: 600;
	font-size: 0.85em;
}

/* Responsive */
@media (max-width: 768px) {

	.bgs-division-leaderboard-header {
		padding: 24px 16px;
		margin-bottom: 32px;
	}

	.bgs-division-leaderboard-header h1 {
		font-size: 2em;
	}

	.bgs-division-cards-container {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.bgs-division-card {
		padding: 20px;
	}

	.bgs-division-stats {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* All Branches Leaderboard Styles */
.bgs-all-branches-leaderboard {
	max-width: 100%;
	margin: 0 auto;
}

.bgs-all-branches-header {
	text-align: center;
	margin-bottom: 40px;
	padding: 40px 20px;
	background: linear-gradient(135deg, #CCA942 0%, #B8941F 100%);
	border-radius: 12px;
	color: white;
}

.bgs-all-branches-header h1 {
	margin: 0 0 10px 0;
	font-size: 2.8em;
	font-weight: 800;
	letter-spacing: -0.5px;
}

.bgs-all-branches-header p {
	margin: 0;
	font-size: 1.1em;
	opacity: 0.9;
}

.bgs-branches-filter {
	margin-bottom: 40px;
	text-align: center;
}

.bgs-branches-filter label {
    font-weight: 500;
    font-size: 16px;
    color: #051C2C;
    margin: 0;
    margin-right: 8px;
}

.bgs-division-filter-select {
	padding: 10px 15px;
	border: 2px solid #CCA942;
	border-radius: 6px;
	font-size: 1em;
	color: #051C2C;
	background-color: white;
	cursor: pointer;
	transition: all 0.3s ease;
}

.bgs-division-filter-select:hover {
	background-color: #f8f9fa;
}

.bgs-division-filter-select:focus {
	outline: none;
	border-color: #B8941F;
	box-shadow: 0 0 0 3px rgba(204, 169, 66, 0.1);
}

.bgs-branches-cards-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 24px;
	margin-bottom: 40px;
}

.bgs-branch-card {
	background: #fff;
	border-radius: 12px;
	padding: 16px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border-left: 4px solid #CCA942;
	display: flex;
	flex-direction: column;
	gap: 16px;
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.bgs-branch-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Rank-specific styling */
.bgs-branch-rank-1 {
	border-left-color: #ffd700;
	background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 215, 0, 0.02) 100%);
}

.bgs-branch-rank-2 {
	border-left-color: #c0c0c0;
	background: linear-gradient(135deg, rgba(192, 192, 192, 0.05) 0%, rgba(192, 192, 192, 0.02) 100%);
}

.bgs-branch-rank-3 {
	border-left-color: #cd7f32;
	background: linear-gradient(135deg, rgba(205, 127, 50, 0.05) 0%, rgba(205, 127, 50, 0.02) 100%);
}

.bgs-branch-card-header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.bgs-branch-rank-badge {
	position: relative;
	width: 56px;
	height: 56px;
	background: linear-gradient(135deg, #CCA942 0%, #B8941F 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 4px 15px rgba(204, 169, 66, 0.4);
}

.bgs-branch-rank-1 .bgs-branch-rank-badge {
	background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
	box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.bgs-branch-rank-2 .bgs-branch-rank-badge {
	background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
	box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.bgs-branch-rank-3 .bgs-branch-rank-badge {
	background: linear-gradient(135deg, #cd7f32 0%, #e8b371 100%);
	box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}

.bgs-branch-rank-number {
	font-size: 24px;
	font-weight: 800;
	color: white;
}

.bgs-branch-rank-1 .bgs-branch-rank-number {
	color: #333;
}

.bgs-branch-rank-2 .bgs-branch-rank-number {
	color: #333;
}

.bgs-branch-rank-3 .bgs-branch-rank-number {
	color: white;
}

.bgs-branch-medal {
	position: absolute;
	top: -6px;
	right: -6px;
	font-size: 20px;
}

.bgs-branch-name-section {
	flex: 1;
}

.bgs-branch-name {
	margin: 0 0 4px 0;
	font-size: 1em;
	font-weight: 700;
	color: #051C2C;
}

.bgs-branch-division {
	margin: 0;
	font-size: 0.85em;
	color: #999;
}

.bgs-branch-card-main {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}

.bgs-branch-points-display {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.bgs-branch-points-label {
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #999;
	font-weight: 600;
}

.bgs-branch-points-value {
	font-size: 2em;
	font-weight: 800;
	color: #CCA942;
}

.bgs-branch-progress-section {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
}

.bgs-branch-progress-bar {
	flex: 1;
	height: 8px;
	background: #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
}

.bgs-branch-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #CCA942 0%, #B8941F 100%);
	border-radius: 4px;
	transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bgs-branch-rank-1 .bgs-branch-progress-fill {
	background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
}

.bgs-branch-rank-2 .bgs-branch-progress-fill {
	background: linear-gradient(90deg, #9c9898 0%, #cecaca 100%)
}

.bgs-branch-rank-3 .bgs-branch-progress-fill {
	background: linear-gradient(90deg, #cd7f32 0%, #e8b371 100%);
}

.bgs-branch-progress-percent {
	font-size: 0.9em;
	font-weight: 700;
	color: #CCA942;
	min-width: 40px;
	text-align: right;
}

.bgs-branch-card-footer {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	padding-top: 12px;
	border-top: 2px solid #f0f0f0;
}

.bgs-branch-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	/* gap: 4px; */
	padding: 8px;
	background: #f8f9fa;
	border-radius: 6px;
}

.bgs-branch-stat-label {
	font-size: 0.75em;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #999;
	font-weight: 600;
}

.bgs-branch-stat-value {
	font-size: 1.4em;
	font-weight: 800;
	color: #CCA942;
}

/* Expanded activity breakdown - hidden by default */
.bgs-branch-card-expanded {
	/* max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	opacity: 0;
	transition: opacity 0.4s ease, max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); */
}

/* Show expanded on hover (desktop) or active (mobile) */
/* .bgs-branch-card.bgs-branch-card-hovered .bgs-branch-card-expanded,
.bgs-branch-card.bgs-branch-card-active .bgs-branch-card-expanded {
	max-height: 400px;
	opacity: 1;
} */

/* .bgs-branch-activities-breakdown {
	padding: 12px 0;
	border-top: 2px solid #f0f0f0;
} */

.bgs-branch-activities-breakdown h3 {
	margin: 0 0 12px 0;
	font-size: 0.95em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #999;
}

.bgs-activity-breakdown-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bgs-activity-item {
	display: flex;
    gap: 10px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.9em;
    border-left: 3px solid #CCA942;
}

.bgs-activity-title {
	color: #051C2C;
	font-weight: 500;
}

.bgs-activity-count {
	color: #999;
	font-size: 0.85em;
	font-weight: 600;
}

.bgs-activity-points {
	color: #CCA942;
	font-weight: 700;
	font-size: 0.95em;
}

.bgs-no-branches-message {
	text-align: center;
	padding: 60px 20px;
	color: #999;
	font-size: 1.1em;
}

.select_container {
	display: inline-block;
    max-width: 300px;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
	.bgs-all-branches-header {
		padding: 24px 16px;
		margin-bottom: 24px;
	}

	.bgs-all-branches-header h1 {
		font-size: 2em;
	}

	.bgs-branches-filter {
		flex-direction: column;
		margin-bottom: 24px;
	}

	.bgs-division-filter-select {
		width: 100%;
	}

	.bgs-branches-cards-container {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.bgs-branch-card {
		padding: 16px;
	}

	.bgs-branch-card-main {
		flex-direction: column;
		align-items: flex-start;
	}

	.bgs-branch-progress-section {
		width: 100%;
	}

	.bgs-branch-points-display {
		align-items: flex-start;
		flex-direction: row;
		gap: 8px;
	}

	/* On mobile, card needs to be clicked to show expanded */
	/* .bgs-branch-card.bgs-branch-card-hovered .bgs-branch-card-expanded {
		max-height: 0;
		opacity: 0;
	} */
}

/* Achievement Badges Styles */
.bgs-achievements {
	max-width: 1000px;
	margin: 0 auto;
	padding: 20px;
	padding-bottom: 0px;
}

.bgs-achievements-header {
	text-align: center;
	margin-bottom: 50px;
	padding: 40px 20px;
	background: linear-gradient(135deg, #CCA942 0%, #B8941F 100%);
	border-radius: 12px;
	color: white;
}

.bgs-achievements-header h1 {
	margin: 0 0 10px 0;
	font-size: 2.8em;
	font-weight: 800;
	letter-spacing: -0.5px;
}

.bgs-achievements-header p {
	margin: 0;
	font-size: 1.1em;
	opacity: 0.9;
}

.bgs-achievements-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
	gap: 32px;
}

.bgs-achievement-card {
	background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid #CCA942;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.bgs-achievement-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Active achievement (unlocked) */
.bgs-achievement-active {
	background: #051C2C;
}

.bgs-achievement-active .bgs-achievement-icon {
	transform: scale(1);
	opacity: 1;
}

/* Locked achievement */
.bgs-achievement-locked {
	opacity: 0.6;
	border-top-color: #ddd;
}

.bgs-achievement-locked .bgs-achievement-icon {
	opacity: 0.5;
}

.bgs-achievement-icon {
	font-size: 4em;
	text-align: center;
	transition: all 0.3s ease;
	height: auto;
	line-height: 1;
}

.bgs-achievement-emoji {
	display: inline-block;
	filter: drop-shadow(0 2px 4px rgba(204, 169, 66, 0.3));
}

.bgs-achievement-content {
	flex: 1;
	text-align: center;
}

.bgs-achievement-title {
    margin-top: 0px;
    font-weight: 600;
    margin-bottom: 12px;
	color: #fff;
	font-size: 42px;
}

.bgs-achievement-branch-name {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 10px;
	color: #fff;
	word-break: break-word;
}

.bgs-achievement-description {
	margin: 0;
	font-size: 14px;
	color: #fff;
	line-height: 1.5;
}

.bgs-achievement-badge {
	display: flex;
	justify-content: center;
	align-items: center;
}

.bgs-achievement-badge-inner {
	width: 80px;
	height: 80px;
	background: linear-gradient(135deg, #CCA942 0%, #B8941F 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 20px rgba(204, 169, 66, 0.4);
	position: relative;
	animation: badge-pulse 2s ease-in-out infinite;
}

.bgs-achievement-badge-inner::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 3px dashed rgba(255, 255, 255, 0.3);
	animation: badge-spin 8s linear infinite;
}

.bgs-badge-level {
	font-size: 2em;
	font-weight: 800;
	color: white;
	position: relative;
	z-index: 1;
}

@keyframes badge-pulse {
	0%, 100% {
		transform: scale(1);
		filter: drop-shadow(0 8px 20px rgba(204, 169, 66, 0.4));
	}
	50% {
		transform: scale(1.05);
		filter: drop-shadow(0 12px 30px rgba(204, 169, 66, 0.6));
	}
}

@keyframes badge-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/* Responsive */
@media (max-width: 768px) {
	.bgs-achievements {
		padding: 12px;
	}

	.bgs-achievements-header {
		padding: 24px 16px;
		margin-bottom: 32px;
	}

	.bgs-achievements-header h1 {
		font-size: 2em;
	}

	.bgs-achievements-container {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.bgs-achievement-card {
		padding: 24px;
	}

	.bgs-achievement-icon {
		font-size: 3.5em;
	}

	.bgs-achievement-title {
		font-size: 1.4em;
	}

	.bgs-achievement-badge-inner {
		width: 70px;
		height: 70px;
	}

	.bgs-badge-level {
		font-size: 1.6em;
	}
}

/* Return to Map CTA Styles */
.bgs-return-to-map-cta {
	margin-top: 60px;
	padding: 20px;
	text-align: center;
	margin-bottom: 48px;
}

.bgs-return-to-map-cta h2 {
	margin: 0 0 12px 0;
	font-size: 2em;
	font-weight: 700;
	color: #051C2C;
}

.bgs-return-to-map-cta p {
	margin: 0 0 28px 0;
	font-size: 1.1em;
	color: #051C2C;
	line-height: 1.5;
}

.bgs-btn-cta {
	padding: 16px 40px;
	background: #CCA942;
	color: #fff;
	border-radius: 8px;
	font-size: 1.1em;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
}

.bgs-btn-cta:hover {
	color: #fff;
}

.execution-steps {
	font-size: 18px;
    color: #051C2C;
    font-weight: 400;
}