* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Inter', 'Nunito Sans', sans-serif;
	text-transform: uppercase;
}

body {
	position: relative;
    background: #0F1014;
}

.app {
	display: flex;
	width: 100%;
	height: 100%;
	justify-content: center;
	padding-top: 60px;
	padding-bottom: 60px;
	background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.95)), url('./bg.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    position: relative;
    min-height: 100vh;
    align-items: center;
}

/* Update display/modal default states */
.display {
	width: 100%;
	max-width: 370px;
	padding-left: 20px;
	padding-right: 20px;
	display: none;
    background: rgba(22, 24, 29, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: all 0.3s ease;
}

.display.visible {
    opacity: 1;
}

.logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 230px;
	height: 200px;
	background: rgba(42, 43, 48, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
	margin: 0 auto;
	margin-bottom: 20px;
}

.logo img {
	width: 80%;
	height: auto;
	padding: 20px;
}

.block {
	position: relative;
	width: 100%;
	border-radius: 11px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(30, 31, 35, 0.8);
	appearance: none;
	cursor: pointer;
	padding: 15px;
	color: #9D4EDD;
	text-align: center;
	font-size: 24px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
	margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.block:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.block.forecast {
	cursor: default;
	overflow: hidden;
}

.block.forecast.down {
	background: linear-gradient(135deg, #ff4646, #ff646c);
	color: #fff;
}

.block.forecast.up {
	background: linear-gradient(135deg, #14c679, #0faa63);
	color: #fff;
}

.block .tit {
	color: rgba(255, 255, 255, 0.7);
	text-align: center;
	font-size: 12px;
	font-style: normal;
	font-weight: 500;
	line-height: normal;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	border-radius: 11px;
	border: none;
	background: linear-gradient(135deg, #7B2CBF, #9D4EDD);
	padding: 15px;
	cursor: pointer;
	color: #1E1F23;
	text-align: center;
	font-size: 32px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.3);
    transition: all 0.3s ease;
    margin-top: auto;
    margin-bottom: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(157, 78, 221, 0.4);
}

.btn:active {
	animation: click .3s ease;
}

.currency-container, .set-time-items {
	position: absolute;
	top: 105%;
	left: 0;
	width: 100%;
	max-height: 50vh;
	overflow-y: auto;
	overflow-x: hidden;
	border-radius: 12px;
	padding: 8px;
	background: rgba(42, 43, 48, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
	color: #f6f7f7;
	box-shadow: 0 8px 16px rgba(0, 0, 0, .3), 0px 12px 32px rgba(0, 0, 0, .4);
	z-index: 3;
	opacity: 0;
	visibility: hidden;
	transform: scale(.5);
	transition: all .2s ease;
}

.currency-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 90%;
    max-width: 340px;
    max-height: 400px;
    z-index: 100;
    margin-top: -50px;
}

.currency-container.windowShow {
    transform: translate(-50%, -50%) scale(1);
    z-index: 1000;
}

.set-time-items {
	top: auto;
	bottom: 105%;
}

/* Стилизация для браузеров на основе WebKit (Google Chrome, Safari) */
/* Полоса прокрутки */
.currency-container::-webkit-scrollbar, .set-time-items::-webkit-scrollbar {
	width: 10px; /* Ширина полосы прокрутки */
	height: 10px;
	border-radius: 5px;
}

.currency-container::-webkit-scrollbar {
    width: 6px;
}

.currency-container::-webkit-scrollbar-thumb {
    background-color: rgba(157, 78, 221, 0.3);
    border-radius: 3px;
}

/* Бегунок (перемещаемая часть полосы) */
.currency-container::-webkit-scrollbar-thumb, .set-time-items::-webkit-scrollbar-thumb {
	background-color: #868893; /* Цвет бегунка */
	border-radius: 5px; /* Скругленные углы бегунка */
}

/* Фон полосы прокрутки */
.currency-container::-webkit-scrollbar-track, .set-time-items::-webkit-scrollbar-track {
	background-color: #3e3f45; /* Цвет фона полосы прокрутки */
	border-radius: 5px;
}


.currency-container .item, .set-time-items .item {
	position: relative;
	transition: all .2s ease;
	border-radius: 12px;
	width: 100%;
	padding-top: 10px;
	padding-bottom: 10px;
	color: #868893;
}

.currency-container .item:not(:last-child), .set-time-items .item:not(:last-child) {
	margin-bottom: 9px;
}

.currency-container .item:not(:last-child):before, .set-time-items .item:not(:last-child):before {
	content: '';
	position: absolute;
	width: 106%;
	height: 1px;
	bottom: -5px;
	left: -8px;
	background-color: #868893;
}

.currency-container .item:hover, .set-time-items .item:hover {
	background-color: #3e3f45;
	color: #f6f7f7;
}

.windowShow {
	transform: scale(1);
	opacity: 1;
	visibility: visible;
}

.set-time .time_input {
	background: none;
	border: none;
	outline: none;
	width: 100%;
	color: #FFD602;
	text-align: center;
	font-size: 24px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
}

.spinner {
	display: inline-block;
	width: 19px;
	height: 19px;
	margin: 0 auto;
	margin-top: 5px;
	border: 3px solid rgba(255, 255, 255, 0.1);
	border-top: 3px solid #9D4EDD;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

.block.forecast.down .spinner, .block.forecast.up .spinner {
	border: 4px solid #fff;
	border-top: 4px solid transparent;
}

.btn .spinner {
	width: 20px;
	height: 20px;
	display: none;
	border: 4px solid #1E1F23;
	border-top: 4px solid transparent;
	margin: 0;
	margin-left: 15px;
}

.btn.loading .spinner {
	display: inline-block;
}

.load-dot {
	opacity: 0;
	display: none;
}

.load-dot:nth-child(1) {
	animation: dot-animation 1s .3s infinite;
}

.load-dot:nth-child(2) {
	animation: dot-animation 1s .6s infinite;
}

.load-dot:nth-child(3) {
	animation: dot-animation 1s .9s infinite;
}

.dotShow {
	display: inline-block;
}

.popup {
	animation: click .1s ease;
}

/* Update display/modal default states */
.modal {
	width: 320px;
	position: fixed;
	top: 50%;
	left: 50%;
	bottom: unset;
	right: unset;
	border-radius: 12px;
	transform: translate(-50%, -50%);
	min-height: auto;
	overflow: hidden;
	background: rgba(42, 43, 48, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 8px 16px rgba(0, 0, 0, .3), 0px 12px 32px rgba(0, 0, 0, .4);
	padding: 16px 24px;
    display: none;
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 1000;
}

.modal::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: -1;
}

.modal.hidden::before {
    opacity: 0;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-close {
	display: flex;
	justify-content: flex-end;
}

.modal-close img {
	width: 20px;
	height: auto;
	cursor: pointer;
}

.modal .modal-tit {
	font-weight: 600;
	font-size: 16px;
	text-align: center;
	color: #fff;
	margin-bottom: 30px;
	margin-top: 30px;
}

.modal-input {
	margin-bottom: 15px;
}

.modal-input .errtxt {
	font-weight: 500;
	font-size: 12px;
	color: red;
	opacity: 0;
    display: block;
    text-align: center;
}

.modal-input .errtxt.active {
	opacity: 1
}

.modal-input input {
	border: none;
	border-radius: 12px;
	width: 100%;
	background: rgba(62, 63, 69, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
	height: 56px;
	font-weight: 600;
	font-size: 16px;
	color: #fff;
	outline: none;
	padding: 0 10px;
	margin-bottom: 15px;
    transition: all 0.3s ease;
}

.modal-input input:last-of-type {
    margin-bottom: 7px;
}

.modal-input input:focus {
    border-color: #9D4EDD;
    box-shadow: 0 0 0 2px rgba(157, 78, 221, 0.2);
}

.modal .unlock {
	border: none;
	width: 100%;
	border-radius: 12px;
	background: linear-gradient(135deg, #7B2CBF, #9D4EDD);
	height: 56px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
    transition: all 0.3s ease;
}

.modal .unlock:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(157, 78, 221, 0.4);
}

.search-box {
    position: sticky;
    top: 0;
    padding: 10px;
    background: rgba(42, 43, 48, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.search-box input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 31, 35, 0.8);
    color: #fff;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    border-color: #FFD602;
}

.currency-pairs {
    padding: 0 10px;
}

@keyframes dot-animation {
	0% {
		opacity: 0;
	}
	25% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
	75% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); } /* Вращение на 360 градусов */
}

@keyframes click {
	0% {
		transform: scale(0.95);
	}
	50% {
		transform: scale(1.05);
	}
	100% {
		transform: scale(1);
	}
}