
:root {
    --primary-color: #172271;
    --secondary-color: #03a9f4;
    --bg-light: #f9f9f9;
    --text-dark: #333;
    --text-muted: #777;
    --border-radius-lg: 25px;
    --border-radius-md: 12px;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.toggle-container {
    display: flex;
    justify-content: center;
    background: var(--bg-light);
    width: fit-content;
    margin: 3rem auto;
    padding: 6px;
    border-radius: 50px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.toggle-button {
    padding: 12px 28px;
    border: none;
    cursor: pointer;
    background-color: transparent;
    border-radius: 50px;
    margin: 0;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.toggle-button:hover:not(.active) {
    color: var(--primary-color);
    background-color: rgba(23, 34, 113, 0.05);
}

.toggle-button.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(23, 34, 113, 0.25);
}

.button-container {
    display: grid;
    gap: 20px;
    max-height: 800px;
    overflow-y: auto;
    padding: 20px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}

.button-container::-webkit-scrollbar {
    width: 6px;
}

.button-container::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}

.country-button, .region-button, .calls-sms-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
    background-color: white;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    text-align: left;
}

.country-button:hover, .region-button:hover, .calls-sms-button:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: var(--secondary-color);
}

.country-info, .region-info {
    display: flex;
    align-items: center;
    flex: 1;
    width: auto;
    min-width: 0;
}

.country-flag {
    width: 32px;
    height: 22px;
    margin-right: 15px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.region-info {
    justify-content: space-between;
}

.region-details-container {
    display: flex;
    flex-direction: column;
}

.region-icon {
    width: 36px;
    height: 36px;
    opacity: 0.9;
}

.region-name, .country-info span {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--primary-color);
}

.region-details {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.discount {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    width: auto;
    min-width: 24px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 9px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(255, 75, 43, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 8px;
}

.price-old {
    color: #999;
    font-weight: 500;
    margin-right: 8px;
}

.sale-percent {
    color: #ff4b2b;
    font-style: normal;
    font-size: 0.8rem;
    margin-left: 6px;
}

.popup p.on-sale {
    border-color: rgba(255, 75, 43, 0.18);
    background-color: rgba(255, 75, 43, 0.04);
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border-radius: 20px;
    text-align: center;
    max-height: 85vh;
    width: 90%;
    max-width: 500px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.popup-header {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.popup-header span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.popup p {
    padding: 12px 20px;
    background-color: rgba(0,0,0,0.02);
    color: var(--text-dark);
    border-radius: var(--border-radius-md);
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.03);
    transition: background 0.2s;
}

.popup p:hover {
    background-color: rgba(3, 169, 244, 0.05);
}

.popup p span {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.overlay2 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    animation: fadeIn 0.3s ease;
}

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

.calls-sms-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calls-sms-left strong {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.calls-sms-right {
    text-align: right;
}

.bundle-price {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 2px;
}

.currency {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.amount {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
}

.bundle-details {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.btn-back {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(23, 34, 113, 0.2);
    margin: 10px 0;
}

.btn-back:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(3, 169, 244, 0.3);
}

@media (max-width: 768px) {
    .toggle-container {
        flex-direction: column;
        overflow-x: visible;
        justify-content: center;
        align-items: stretch;
        padding: 6px;
        margin: 1.5rem auto;
        max-width: 280px;
        width: 90%;
        box-sizing: border-box;
        border-radius: 25px;
    }
    
    .toggle-container::-webkit-scrollbar {
        display: initial;
    }
    
    .toggle-button {
        width: 100%;
        padding: 12px 10px;
        font-size: 0.85rem;
        text-align: center;
        white-space: nowrap;
        box-sizing: border-box;
    }
    
    .toggle-button:last-child {
        margin-bottom: 0;
    }
    
    .toggle-button:last-child {
        margin-bottom: 0;
    }

    .button-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        padding: 10px 12px;
        gap: 12px;
        box-sizing: border-box;
    }
    
    .popup {
        padding: 25px 15px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .button-container {
        grid-template-columns: 1fr;
    }
}


/* Language Switcher Styles */
.language-header {
	height: 80px;
	background: linear-gradient(135deg, #222461 0%, #1a1d4a 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.language-switcher {
	display: inline-flex;
	gap: 0;
	align-items: center;
	background: rgba(255, 255, 255, 0.08);
	padding: 4px;
	border-radius: 12px;
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.language-switcher a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 8px;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	text-decoration: none;
	position: relative;
	color: rgba(255, 255, 255, 0.85);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.3px;
	white-space: nowrap;
	min-width: 90px;
}

.language-switcher a img {
	width: 24px;
	height: 24px;
	object-fit: contain;
	border-radius: 50%;
	transition: all 0.25s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(0, 0, 0, 0.1);
	flex-shrink: 0;
	display: block;
}

.language-switcher a:hover {
	background: rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 1);
	transform: translateY(-1px);
}

.language-switcher a:hover img {
	transform: scale(1.05);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.language-switcher a:active {
	transform: translateY(0);
	transition: all 0.1s ease;
}

.language-switcher a.active {
	background: rgba(255, 255, 255, 0.95);
	color: #222461;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.2);
	font-weight: 600;
}

.language-switcher a.active img {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	border-color: rgba(0, 0, 0, 0.15);
}

.language-switcher a.active:hover {
	background: rgba(255, 255, 255, 1);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.language-switcher a .lang-text {
	display: inline-block;
	transition: all 0.25s ease;
}

/* Responsive adjustments */
@media (max-width: 480px) {
	.language-header {
		height: 70px;
		padding: 0 15px;
	}
	
	.language-switcher {
		padding: 3px;
		border-radius: 10px;
	}
	
	.language-switcher a {
		padding: 8px 14px;
		font-size: 13px;
		min-width: 80px;
		gap: 6px;
	}
	
	.language-switcher a img {
		width: 22px;
		height: 22px;
	}
}

@media (max-width: 360px) {
	.language-switcher a {
		padding: 8px 12px;
		min-width: 70px;
	}
	
	.language-switcher a .lang-text {
		font-size: 12px;
	}
}