:root {
    --primary: #ffffff;
    --accent: #00f2ff; /* Бирюзовый акцент для "технологичности" */
    --bg: #050505;
    --card: rgba(18, 18, 18, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --text-dim: #666666;
    --glow: rgba(0, 242, 255, 0.3);
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    color: var(--primary);
    font-family: "Montserrat", sans-serif;
    overflow: hidden;
    scroll-behavior: smooth;
}

input, button {
  font: inherit;
}

#modalTitle {
    margin-top: 0;
    padding-top: 0;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Landing Page */
.landing-container {
    z-index: 2;
    height: 100%;
    width: 100%;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

.logo-wrap {
    animation: fadeInUp 1.5s ease forwards;
    opacity: 0;
    animation-delay: 1s;
}

.logo-wrap h1 {
    font-size: 4rem;
    font-weight: 200;
    letter-spacing: 0.5rem;
    margin: 0;
    text-transform: uppercase;
}

.logo-wrap p {
    color: var(--text-dim);
    letter-spacing: 0.2rem;
    font-weight: 300;
    margin-top: 10px;
}

/* Buttons */
.btn-login {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 10;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 10px 25px;
    cursor: pointer;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    animation: fadeIn 2s ease forwards;
}

.btn-login:hover {
    background: var(--primary);
    color: var(--bg);
}

/* Modal */
.modal-overlay {
    opacity: 0;
    pointer-events: none;
    display: flex;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.425);
    backdrop-filter: blur(2px);
    z-index: 100;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #121212;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    padding: 40px;
    width: 100%;
    max-width: 350px;
    border-radius: 4px;
    transform: translateY(-20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
    opacity: 0; /* чтобы при появлении было видно плавное появление */
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

input {
    width: 100%;
    background: #080808;
    border: 1px solid var(--border);
    padding: 12px;
    margin: 10px 0;
    color: white;
    box-sizing: border-box;
    border-radius: 2px;
}

#otpCode {
    letter-spacing: 1em;
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.75rem;
}

#otpCode::placeholder {
  font-size: 16px;       /* обычно совпадает с font-size инпута */
  line-height: 1.2;      /* чуть больше, чем 1, для читаемости */
  letter-spacing: normal; /* без изменения межбуквенного расстояния */
  font-style: normal;    /* стандартный шрифт */
  font-weight: normal;   /* стандартная жирность */
  text-align: left;
}

input:focus {
    border-color: #555;
    outline: none;
}

.submit-btn:hover {
    background: #ccc;
}

.submit-btn {
    width: 100%;
    background: white;
    color: black;
    border: none;
    padding: 12px;
    margin-top: 20px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background .1s ease-in-out; 
}
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(0, 255, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0); }
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 100px 40px 40px 40px;
}

/* Link Cards */
.link-tree {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    align-content: start;
}

.link-card {
    background: var(--card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 30px;
    position: relative;
    text-decoration: none;
    color: white;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 2px; height: 0;
    background: var(--accent);
    transition: height 0.3s ease;
}

.link-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.link-card:hover::before {
    height: 100%;
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.status-online { 
    background: #00ff00; 
    animation: pulse-green 2s infinite; 
}

/* Charts Panel */
.charts-panel {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 0px; /* Острые края */
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.chart-container {
    margin-bottom: 40px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
}

.chart-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.chart-value {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--accent);
}

/* Nav Header */
.nav-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    box-sizing: border-box;
}

.btn-logout {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 6px 15px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-logout:hover {
    border-color: #ff4444;
    color: #ff4444;
}

.linktree-container {
    margin-top: 40px;
    padding: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.linktree-title {
    color: #888;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.linktree-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.linktree-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03); /* Очень легкий фон */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.linktree-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #00ff00; /* Цвет активной линии */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.1);
}

.link-icon {
    font-size: 1.5rem;
    margin-right: 20px;
}

.link-info {
    display: flex;
    flex-direction: column;
}

.link-name {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.link-desc {
    color: #666;
    font-size: 0.85rem;
    margin-top: 2px;
}

/* Эффект свечения при наведении на текст */
.linktree-item:hover .link-name {
    color: #00ff00;
}

a {
    text-decoration: none;
    color: inherit;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Будет находиться за всеми элементами */
    pointer-events: none;
    background: linear-gradient(to bottom, #050505 0%, #0a0a0a 100%);
}

.btn-login {
    z-index: 10;
}

@media (max-width: 992px) {

.logo-wrap h1 {
    font-size: 2.5rem;
}

.logo-wrap p {
    font-size: 0.8rem;
}
.modal-content {
    margin: 20px;
}
}