
@import url("https://cdn.jsdelivr.net/npm/boxicons@latest/css/boxicons.min.css");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap");

/***************************************************
**************** E L E M E N T S *******************
****************************************************/
body {
	background: var(--page-background);
	background-size: 600% 600%;
	margin-left: 10px;
	color: var(--text-primary);
	margin: 2px;
	overscroll-behavior: contain;
	font-family: monospace;
}

button:focus {
	box-shadow: 0 0 0 0!important;	
}

.row {
	margin-bottom: 10px;
}

h1 {
	font-weight: normal;
}

h1 span{
	color: var(--danger);
	font-weight: 900;
}

.navbar-brand {
	position: relative;
	font-family: var(--bs-body-font-family);
	
}

.navbar-brand span {
	
	letter-spacing: 3px;
}

.navbar-brand span:not(.red) {
	color: var(--text-primary);
	font-weight: bold;
	font-size: 100%;
}

.navbar-brand span.red {
	color: var(--danger);
	font-weight: 900;
	font-size: 100%;
}

h1 sub, .navbar-brand p {
	text-transform: lowercase;
	letter-spacing: 0px;
	color: var(--text-primary);
	font-size: 50%;
	font-style: italic;
	position: absolute;
	transform-origin: 50% 50%;
	transform: translateY(-40%) translateX(160%) rotate(-5deg);
}

.shadow-5 {
	color: var(--warning);
	text-shadow: none;
}

/*.navbar-brand:hover {
	transition: 1s;
	text-shadow: 1px 1px 100px #3bdfff, 5px 5px 10px #07d3f8, 0 0px 20px lightslategrey;
}*/

.navbar {
	padding: 2px 5px;
	margin: 0 0 10px 0;
	z-index: 10;
}

/***************************************************
***************** B U S I N E S S ******************
****************************************************/

.text {
	color: var(--text-primary);
	padding-right: 10px;
}

.code {
	display: none
}

.number, .otp, .otp2 {
	display: inline-block;
	color: var(--text-primary);
  	font-size: 120%;
}

/***************************************************
************** A N I M A T I O N S *****************
****************************************************/

.animate-otp {
  animation-name: wiggleWiggle;
  animation-duration: 1s;
  animation-direction: alternate;
  animation-timing-function: steps(2, end);
  animation-iteration-count: infinite;
}

.otp:nth-child(odd) {
	animation-delay: 0.2s;
}


@keyframes wiggleWiggle {
  20%,
  100% {
    transform: translate(0, 3px);
  }

  0% {
    transform: translate(0, 0px);
  }
  10% {
    transform: translate(0, 3px);
  }
}

.container, .container2 {
	animation: showSVG 0.5s ease-in-out forwards;
}

@keyframes showSVG {
	0% {
		opacity: 0
	}
	
	100% {
		opacity: 1
	}
}

@keyframes hide {
	0% {
		opacity: 1
	}
	
	100% {
		opacity: 0
	}
}

/***************************************************
****************** L O A D E R *********************
****************************************************/

.lds-ellipsis {
  position: relative;
  width: 0;
}
.lds-ellipsis div {
  position: absolute;
  top: -13px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--primary);
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}



/***********************************/

.table tbody tr {
	background-color: var(--table-row-bg);
	color: var(--text-primary)
}

.table thead tr {
	background-color: var(--table-header-bg);
	color: var(--text-secondary)
}

.table tbody tr:hover {
	background-color: var(--table-row-hover);
}

.table-responsive {
	padding-top : 10px;
}

.sec {
	display: none
}

a {
	text-decoration: none;
}

/*************************************************
*************************************************/

.accordion-button {
	background-color: var(--surface-1);
	color: var(--text-primary);
}

.accordion-button:not(.collapsed) {
	background-color: var(--primary-soft);
	color: var(--primary-hover);
	font-weight: bold;
}

.accordion-body {
	background-color: var(--surface-1);
	color: var(--text-secondary);
}


/*************************************************
*************************************************/

.close {
  cursor: pointer;
  position: absolute;
  top: 50%;
  right: 0%;
  padding: 12px 16px;
  transform: translate(0%, -50%);
  animation: showSVG 1s ease-in-out forwards;
}


/*************************************************
*************************************************/

.notifications p {
	margin-right: 41px;
    display: inline
}

.notifications marquee {
	font-size: 18px;
    margin-bottom: 12px;
    /* background: black; */
}


/*************************************************
*************************************************/

.widget-pane-right {
	position: relative;
    display: inline-flex;
    flex-flow: column;
    align-items: center;
}

.widget-active {
	display: flex;
    align-items: center;
    position: relative;
}

.header-actions {
	display: flex !important;
	flex-direction: row !important;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin: 0;
	padding: 0;
	position: absolute;
	right: 5%;
	top: 50%;
	transform: translateY(-50%);
	z-index: 101;
}

.header-actions li {
	display: flex;
	align-items: center;
	list-style: none;
}

.header-action-btn {
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--border-primary);
	border-radius: 50%;
	background: var(--surface-glass);
	box-shadow: var(--shadow-card);
	cursor: pointer;
	padding: 0;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.header-action-btn:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-card);
}

.header-action-btn img {
	width: 28px;
	height: 28px;
	display: block;
}

.telegram-header-action {
	background: #e8f6ff;
}

.whatsapp-header-action {
	background: #e9fff1;
}

.logout-header-action {
	background: var(--danger-soft);
	border-color: var(--danger-border);
}

.logout-header-action .logout-icon {
	font-size: 28px;
	line-height: 1;
}

@media screen and (max-width: 576px) {
	.widget {
		display: none;
	}
	
	.widget div {
		width: 32px;
	    height: 32px;
	    box-shadow: 0px 4px 8px rgb(0 0 0 / 16%);
	    transition: box-shadow .2s,transform .2s;
	    background: #4faee6;
	    border-radius: 50%;
	    justify-content: center;
	}

	.header-actions {
		gap: 5px;
		right: 10px;
		margin-right: 0;
	}

	.header-action-btn {
		width: 32px;
		height: 32px;
	}

	.header-action-btn img {
		width: 22px;
		height: 22px;
	}

	.logout-header-action .logout-icon {
		font-size: 22px;
	}
}

@media screen and (min-width: 576px) {
  
  	.widget {
		display: none;
	}

  	.widget div {
		width: 56px;
	    height: 56px;
	    box-shadow: 0px 4px 8px rgb(0 0 0 / 16%);
	    transition: box-shadow .2s,transform .2s;
	    background: #4faee6;
	    border-radius: 50%;
	    justify-content: center;
	}
}

.widget img {
	padding: 0;
    border: none;
    color: #fff;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: .2px;
    background: transparent;
    outline: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
    font-family: inherit;
}

.widget-info {
	display: none !important;
	justify-content: flex-end;
    right: 68px;
    width: 240px;
    position: absolute;
    z-index: 1002;
    bottom: 0;
}

.widget-info-container {
	max-width: 100%;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.16));
    min-height: 43px;
}

.widget-info-message {
	display: flex;
    position: relative;
    padding: 6px 12px;
    background: #fff;
    border-radius: 20px;
    color: #000;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: .25px;
    min-width: 60px;
    max-width: 100%;
    align-items: center;
    word-break: break-word;
}

/*************************************************
*************************************************/

.refresh {
	font-size: 60%;
	position: absolute;
	
	top: 62px;
	left: 5px;
    border-radius: 20px;
	z-index: 1;
}

/*************************************************
*************************************************/

.page-item.active {
	pointer-events: none;
}

.page-item .page-link {
	border: none
}

.page-item.active .page-link {
	background-color: var(--primary);
	border: none;
}

.page-item.prev a {
	color: var(--text-primary);
	background-color: var(--surface-1);
}

.page-item.first a {
	color: var(--text-primary);
	background-color: var(--surface-1);
}

.page-item.next a {
	color: var(--text-primary);
	background-color: var(--surface-1);
}

.page-item.last a {
	color: var(--text-primary);
	background-color: var(--surface-1);
}

.page-item a {
	color: var(--primary-hover);
	background-color: var(--surface-1);
}

.page-item.disabled .page-link {
	color: var(--text-tertiary);
	background-color: var(--surface-3);
}

.pagination {
	justify-content: center!important;
}


.table-striped > tbody > tr:nth-of-type(odd) > * {
	color: var(--text-primary);
	background-color: var(--surface-2);
}

.fixed-b {
  position: fixed;
  bottom: 4px;
  /* right: 10px; */
}

.message {
	/* display: none; */
}

.hidden {
	display: none!important;
}

.card-body {
	padding: 0;
}

.card {
	flex-direction: row;
	line-height: 2;
    padding-right: 1em;
}

.error-password {
    color: var(--danger);
}

.password-help {
	font-size: .875em;
    color: var(--danger);
    word-wrap: break-word;
    font-family: monospace;
}

.o-alert {
	position: relative;
    padding: 0.2rem 0.2rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.balance {
	position: relative;
	padding-left: 0;
	color: var(--success);
	text-shadow: none;
}

.balance::before {
	content: none;
	line-height: 1.3;
	/* font-size: 0.8em; */
	position: absolute;
	bottom: 0;
	left: 0;
	/* color: #fe6f6f; */
	color: var(--danger);
	text-shadow: none;
}

/* .change-password-btn {
	font-size: 0.7rem;
	margin-top: 0.2rem;
} */


/******* SELECT BOX *******/

.select-box {
	position: relative;
	display: flex;
	/* max-width: 800px; */
	width: 100%;
	flex-direction: column;
}

.select-box .options-container {
	background: var(--surface-2);
	color: var(--text-primary);
	max-height: 0;
	width: 100%;
	opacity: 0;
	transition: all 0.4s;
	border-radius: 8px;
	overflow: hidden;
	order: 1;
	z-index: 99;
}

.selected {
	background: var(--surface-2);
	border-radius: 8px;
	margin-bottom: 8px;
	color: var(--text-primary);
	position: relative;
	order: 0;
}

.selected::after {
	content: "";
	background: url("/images/arrow-down.svg");
	background-size: contain;
	background-repeat: no-repeat;
	position: absolute;
	height: 100%;
	width: 32px;
	right: 10px;
	top: 5px;
	transition: all 0.4s;
}

.select-box .options-container {
	position: absolute;
}

.select-box .options-container.active {
	max-height: 240px;
	opacity: 1;
	overflow-y: auto;
	margin-top: 54px;
}

.select-box .options-container:first-child {
	margin-top: 115px;
	
}

.select-box .options-container.active + .selected::after {
	transform: rotateX(180deg);
	top: -6px;
	position: absolute;
}

.select-box .options-container::-webkit-scrollbar {
	widht: 8px;
	background: var(--surface-1);
	border-radius: 0 8px 8px 0;
}

.select-box .options-container::-webkit-scrollbar-thumb {
	background: var(--text-tertiary);
	border-radius: 0 8px 8px 0;
}

.select-box .option, .selected {
	padding: 12px 24px;
	cursor: pointer;
}

.select-box .option:hover {
	background: var(--surface-hover);
}

.select-box .label {
	cursor: pointer;
}

.select-box .option .radio {
	display: none;
}

/****** SEARCH BOX *******/

.search-box input {
	width: 100%;
	padding: 12px 16px;
	font-family: "Roboto", sans-serif;
	font-size: 16px;
	position: absolute;
	border-radius: 8px 8px 0 0;
	z-index: 100;
	border: 8px solid var(--border-primary);
	opacity: 0;
	pointer-events: none;
	transition: all 0.3s;
}

.search-box input:focus {
	outline: none;
}

.select-box .options-container.active ~ .search-box input {
	opacity: 1;
	pointer-events: auto;
}

.a-flex {
	display: flex;
	/* max-width: 800px; */
	width: 100%;
}

.btn-danger-cstm {
    color: var(--text-on-accent);
    background-color: var(--danger-soft);
    border-color: var(--danger-border);
	border-radius: 14px;   /* 👈 round corners */
}

.btn-danger-cstm:hover {
	color: var(--text-on-accent);
    background-color: var(--danger);
    border-color: var(--danger);
}

.btn-danger-cstm.disabled {
    /* FORCE TEXT TO BE PURE WHITE */
    color: var(--text-on-accent) !important;
    -webkit-text-fill-color: var(--text-on-accent);
    font-weight: 400;
    letter-spacing: 0.15px;
    text-shadow: none;

    /* BACKGROUND — green only behind text */
    background: linear-gradient(135deg, var(--success-strong), var(--success));
    border-color: transparent;

    /* SHARPNESS */
    transform: translateZ(0) scale(1.12);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* GLOW — outside only */
    box-shadow: 0 0 14px var(--success-soft);

    animation: serverBounce 0.45s ease-out;
}





@keyframes serverBounce {
    0%   { transform: scale(1.05) translateY(0); }
    30%  { transform: scale(1.12) translateY(-4px); }
    55%  { transform: scale(1.10) translateY(2px); }
    75%  { transform: scale(1.11) translateY(-1px); }
    100% { transform: scale(1.12) translateY(0); }
}

.servers-container > div {
    display: flex;
    gap: 8px;          /* 👈 space between servers */
    flex-wrap: wrap;   /* keeps layout clean on small screens */
}

/* Break Bootstrap btn-group corner reset */
.servers-container .btn-group > .btn,
.servers-container .btn-group > .btn:not(:first-child),
.servers-container .btn-group > .btn:not(:last-child) {
    border-radius: 14px !important;
}



.btn-secondary-cstm {
	color: var(--text-secondary);
    background-color: transparent;
    border-color: var(--border-primary);
}
/* ===============================
   Retry OTP Button (Yellow)
   =============================== */
#retry-get-number {
    background-color: var(--warning-fill);
    color: var(--warning-on-fill);
    border: 1px solid var(--warning);
    font-weight: 600;
    border-radius: 4px;          /* rectangular */
    padding: 4px 10px;           /* keeps btn-sm feel */
}

/* Hover */
#retry-get-number:hover {
    background-color: var(--warning-fill-hover);
    border-color: var(--warning);
    color: var(--warning-on-fill);
}

/* Disabled (if JS disables it) */
#retry-get-number:disabled {
    background-color: var(--warning-fill-disabled);
    border-color: var(--warning-fill-disabled);
    color: var(--text-secondary);
    cursor: not-allowed;
}


/* .change-password {
	position: absolute;
	top: 62px;
	right: 5px;
} */

#copied-success {
	display: none;
}

#copied-success {
	color: var(--success);
	position: absolute;
	left: 70px;
	top: -15px;
	font-size: 15px;
}

.recharge-help-container {
	display: flex;
}

.contact-logo-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.contact-logo-btn img {
	width: 20px;
	height: 20px;
}

.widget .widget-active {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	width: auto !important;
	height: auto !important;
	padding: 7px !important;
	border-radius: 999px !important;
	background: rgba(18, 24, 34, 0.94) !important;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
	backdrop-filter: blur(8px);
}

.widget .contact-channel-link {
	width: 44px !important;
	height: 44px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 50% !important;
	background: #ffffff !important;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.widget .contact-channel-link:hover {
	transform: translateY(-2px) scale(1.04);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.26);
}

.widget .telegram-contact {
	background: #e8f6ff !important;
}

.widget .whatsapp-contact {
	background: #e9fff1 !important;
}

.widget .contact-channel-link img {
	width: 28px !important;
	height: 28px !important;
	cursor: pointer;
}

.widget .widget-info {
	display: none !important;
}

.collapse + .recharge-help-container {
	display: none;
}

.collapse.show + .recharge-help-container {
	display: flex;
}

td input {
	width: 100%;
}


/********************** P R O F I L E *******************/

.profile-card {
	background-color: var(--surface-gradient);
}

.profile-element {
	margin: 2px 0.5em;
	padding: 0 0 2px 1em;
	background-color: var(--surface-2);
	display: flex;
}

.profile-element div {
	position: relative;
	padding-top: 20px;
	margin-right: 1.5em;
	color: var(--text-primary);
	align-items: flex-start;
	flex-direction: row;
	justify-content: flex-start;
}

.profile-element div::before {
	position: absolute;
	left: 0;
	top: 0;
	font-weight: bolder;
	font-size: smaller;
	color: var(--text-secondary);
	white-space: nowrap;
}

.profile-username::before {
	content: 'Username';
}

.profile-first-name::before {
	content: 'First Name';
}

.profile-last-name::before {
	content: 'Last Name';
}

.profile-email::before {
	content: 'Email';
}

.profile-otp-count::before {
	content: 'Otp Count';
}

.profile-change-password-container {
	top: 5px;
	left: 5px;
}

.edit-btn {
	height: fit-content;
    line-height: 1;
    align-content: center;
    align-self: center;
}

.align-center {
	text-align: center !important
}


/****** TOAST ******/

#snackbar {
	position: fixed;
	top: 10px;
	right: 0;
	z-index: 10000;
	width: 100%;
	margin-left: -50%;
	background-color: var(--surface-elevated);
	color: var(--text-primary);
	text-align: center;
	border-radius: 1px;
	padding: 5px;
	font-size: 80%;
	visibility: hidden;
}

#snackbar.success {
	background-color: var(--success);
	color: var(--text-on-accent);
}

#snackbar.error {
	background-color: var(--danger);
	color: var(--text-on-accent);
}

#snackbar.show {
  	visibility: visible;
  	-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  	animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  	from {top: 0; opacity: 0;} 
  	to {top: 10px; opacity: 1;}
}

@keyframes fadein {
  	from {top: 0; opacity: 0;}
  	to {top: 10px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  	from {top: 10px; opacity: 1;} 
  	to {top: 0; opacity: 0;}
}

@keyframes fadeout {
  	from {top: 10px; opacity: 1;}
  	to {top: 0; opacity: 0;}
}
<style>
/* ===== Spinner ===== */
.spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid var(--border-primary);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Toast ===== */
.toast-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--surface-elevated);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9999;
}
.toast-box.show { opacity: 1; }
.toast-success { background: var(--success); color: var(--text-on-accent); }
.toast-error { background: var(--danger); color: var(--text-on-accent); }
.toast-warn { background: var(--warning-fill); color: var(--warning-on-fill); }
</style>

/* Container must be wide enough for 3 boxes */
.servers-container {
    max-width: 720px;   /* 3 × 220px + gaps */
    margin: 0 auto;     /* center */
}

/* One service = one grid */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(3, 220px); /* EXACTLY 3 PER ROW */
    gap: 16px;
    margin-bottom: 20px;
}

/* Server box (RED by default) */
.server-btn {
    width: 220px;
    background-color: var(--danger);
    border: 1px solid var(--danger);
    color: var(--text-on-accent);
    padding: 10px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    font-family: monospace;
}

/* Selected server (GREEN) */
.server-btn.active {
    background-color: var(--success);
    border-color: var(--success);
}

.server-btn:hover {
    filter: brightness(1.1);
}

