* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    background: linear-gradient(135deg, #1e1e2f, #2a2a40);
    font-family: 'Inter', Arial, sans-serif;
    color: #fff;
    padding: 90px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 1600px;
}

.auth-user {
    color: #fff;
    font-weight: 600;
    margin-right: 8px;
}

.auth-btn {
    margin-top: 0;
    padding: 10px 16px;
    font-size: 14px;
}

.auth-btn.secondary {
    background: transparent;
    color: #fff;
    border: 1px solid #00c3ff;
}

.auth-page {
    width: 100%;
    max-width: 480px;
    padding: 60px 20px 40px;
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    background: rgba(47, 47, 70, 0.95);
    border: 1px solid rgba(0, 195, 255, 0.25);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.auth-card h1 {
    margin-bottom: 8px;
    font-size: 28px;
}

.auth-card p {
    color: rgba(255,255,255,0.75);
    margin-bottom: 20px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-submit {
    width: 100%;
    cursor: pointer;
    border: none;
}

.auth-link {
    margin-top: 16px;
    text-align: center;
}

.auth-link a {
    color: #00c3ff;
    text-decoration: none;
}

.auth-message {
    margin-top: 14px;
    min-height: 24px;
    font-size: 14px;
}

.auth-message.success {
    color: #6ee7b7;
}

.auth-message.error {
    color: #fca5a5;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(30, 30, 47, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    z-index: 1000;
    padding: 0 40px;
}

.top-bar-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
}

.top-logo {
    height: 45px;
    width: auto;
    transition: 0.3s;
}

.top-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 4px #00c3ff);
    transition: filter 0.3s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 8px;
    transition: 0.3s;
}

.nav-links a:hover {
    background: #00c3ff;
    color: #000;
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 80px 40px;
    gap: 40px;
}

.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1;
}

.accent {
    font-size: 0.6em;
    margin-left: 6px;
    vertical-align: super;
    color: #00c3ff;
    text-shadow: 0 0 20px rgba(0, 195, 255, 0.4);
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    max-width: 500px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.btn-main, .btn-discord, .btn-telegram {
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    transition: 0.3s;
}

.btn-main {
    background: #00c3ff;
    color: #000;
}

.btn-discord {
    background: #5865F2;
    color: #fff;
}

.btn-discord:hover {
    transform: scale(1.05);
    background: #5c69f5;
}

.scroll-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.btn-telegram {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #0088cc, #00aaff);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.btn-telegram:hover {
    transform: scale(1.05);
}

.btn-main:hover {
    transform: scale(1.05);
    background: #00d4ff;
}

.floating-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    animation: floating 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.section-title {
    margin-bottom: 40px;
    font-size: 32px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    padding: 40px;
}

.b-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.b-card {
    background: #2f2f46;
    padding: 20px;
    border-radius: 20px;
    text-align: center;

    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: 0.3s;
}

.b-card:hover {
    transform: translateY(-5px);
}


.b-card h2 {
    margin-bottom: 5px;
    font-size: 16px;
}

.b-card .version {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 15px;
}


.input, .select {
    width: 100%;
    max-width: 400px;
    padding: 14px;
    margin: 10px;
    border-radius: 12px;
    border: none;
    background: #2f2f46;
    color: #fff;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
}

.card {
    background: #2f2f46;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border: 1px solid #00c3ff;
}

.btn {
    display: inline-block;
    margin-top: 15px;
    background: #00c3ff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
}

.btn:hover {
    background: #00a2d6;
}

footer {
    padding: 60px;
    opacity: 0.4;
    font-size: 13px;
}

.profile-page {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px 80px;
}

.profile-shell {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-header-card,
.profile-panel {
    background: rgba(47, 47, 70, 0.95);
    border: 1px solid rgba(0, 195, 255, 0.25);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.profile-header-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.profile-header-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00c3ff;
}

.profile-header-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-status {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(110, 231, 183, 0.16);
    color: #6ee7b7;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-email {
    color: rgba(255,255,255,0.7);
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 195, 255, 0.16);
    color: #8fe8ff;
    font-size: 12px;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.profile-tab {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.2s;
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.profile-tab.is-active {
    background: #00c3ff;
    color: #000;
    border-color: #00c3ff;
}

.profile-tab-panels {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-tab-panel {
    display: none;
}

.profile-tab-panel.is-active {
    display: block;
}

.info-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: rgba(255,255,255,0.8);
}

.info-card p {
    padding: 10px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}

.secondary-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #00c3ff;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.profile-stats .stat-card {
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-stats .stat-card span {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}

.profile-stats .stat-card strong {
    font-size: 24px;
    color: #fff;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.panel-head span {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.upload-picker-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-item {
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 12px;
}

.list-item p,
.list-meta {
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
    font-size: 13px;
}

.empty-state {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.upload-panel {
    margin-top: 0;
}

.admin-panel.hidden {
    display: none;
}

.admin-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.admin-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #8fe8ff;
    font-size: 12px;
    margin-bottom: 6px;
}

.admin-badge {
    padding: 8px 12px;
    background: rgba(110, 231, 183, 0.16);
    color: #6ee7b7;
    border-radius: 999px;
    font-size: 13px;
}

.admin-access-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0, 195, 255, 0.16);
    border-radius: 18px;
    padding: 18px;
}

.admin-form label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.admin-input {
    max-width: 220px;
    text-align: center;
    font-size: 20px;
    letter-spacing: 0.25em;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-card span {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}

.stat-card strong {
    font-size: 20px;
}

@media (orientation: portrait) {
    body {
        padding-top: 144px;
    }
    .top-bar {
        height: auto;
        min-height: 100px;
        padding: 10px 12px;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .top-bar-container {
        width: 100%;
        flex-direction: column;
        gap: 8px;
        justify-content: center;
    }
    .menu-toggle {
        display: flex;
        margin-right: auto;
    }
    .nav-links {
        display: none;
        width: 100%;
        margin-top: 8px;
        padding: 8px;
        border-radius: 12px;
        background: rgba(17, 24, 39, 0.92);
        box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    }
    .top-bar.menu-open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .nav-links a {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 13px;
        padding: 8px 6px;
        border-radius: 8px;
        background: rgba(255,255,255,0.05);
    }
}

@media (max-width: 768px) {
    body {
        padding: 110px 16px 32px;
    }
    .top-bar {
        padding: 12px 16px;
        min-height: 80px;
    }
    .top-bar-container {
        gap: 12px;
        padding: 0;
        justify-content: center;
    }
    .nav-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }
    .nav-links a {
        font-size: 14px;
        padding: 7px 10px;
    }
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 20px 0 24px;
    }
    .hero-subtitle {
        margin: 0 auto;
    }
    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
        padding: 20px 0 40px;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .profile-header-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .profile-header-main {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-hero,
    .admin-stats {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
    .explore-menu {
        width: min(95vw, 700px);
        flex-direction: column;
        padding: 16px;
    }
    .planner {
        margin: 24px auto;
        width: 100%;
    }
    .notebook {
        padding: 20px 24px;
    }
    .notebook:hover {
        padding: 20px 24px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 120px 12px 24px;
    }
    .top-bar {
        min-height: 90px;
    }
    .top-logo {
        height: 34px;
    }
    .nav-links a {
        font-size: 13px;
        padding: 6px 8px;
    }
    .hero-title {
        font-size: clamp(28px, 8vw, 42px);
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .btn-main, .btn-discord, .btn-telegram {
        width: 100%;
        text-align: center;
    }
    .section-title {
        font-size: 24px;
    }
    .profile-stats,
    .profile-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .profile-actions .btn,
    .profile-actions .secondary-btn {
        width: 100%;
        text-align: center;
    }
}

@media (orientation: landscape) and (max-height: 700px) {
    body {
        padding-top: 100px;
    }
    .top-bar {
        min-height: 72px;
    }
    .hero {
        padding: 16px 0 20px;
        gap: 16px;
    }
    .floating-img {
        max-width: 260px;
    }
    .benefits {
        padding-top: 120px;
    }
}

.hero-image {
    position: relative;
    display: inline-block;
}

.target-esp {
    position: absolute;
    top: 40%;
    left: 27%;
    width: 220px;
    opacity: 0;
    transform: scale(0.6);
    filter: drop-shadow(0 0 0px #00c3ff);
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-image:hover .target-esp {
    animation: glowIn 0.4s ease forwards, spinESP 2s linear infinite;
}

@keyframes glowIn {
    0% { opacity: 0; transform: scale(0.6) rotate(0deg); filter: drop-shadow(0 0 0px #00c3ff58); }
    50% { opacity: 0.7; transform: scale(1.3) rotate(180deg); filter: drop-shadow(0 0 25px #00c3ff58); }
    100% { opacity: 1; transform: scale(1.2) rotate(360deg); filter: drop-shadow(0 0 15px #00c3ff58) drop-shadow(0 0 30px #00c3ff58); }
}

@keyframes spinESP {
    from { transform: scale(1.2) rotate(0deg); }
    to { transform: scale(1.2) rotate(360deg); }
}

@keyframes glowPulse {
    0%, 100% { filter: drop-shadow(0 0 10px #00c3ff) drop-shadow(0 0 20px #00c3ff); }
    50% { filter: drop-shadow(0 0 25px #00c3ff) drop-shadow(0 0 50px #00c3ff); }
}

.hero-image:not(:hover) .target-esp {
    animation: fadeOutESP 0.6s forwards;
}

@keyframes fadeOutESP {
    0% { opacity: 1; transform: scale(1.2) rotate(0deg); filter: drop-shadow(0 0 0 #00c3ff) drop-shadow(0 0 0 #00c3ff); }
    100% { opacity: 0; transform: scale(1.5) rotate(90deg); filter: drop-shadow(0 0 0 #00c3ff); }
}
.benefits {
    padding-top: 275px; 
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 20px auto 0 auto; 
}
.explore-menu {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 700px;
    max-width: 95%;
    background: #2a2a40;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    z-index: 1000;
    display: flex;
    flex-direction: row;
    padding: 20px;
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                opacity 0.3s ease-out;
}

.explore-menu.show {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
}

.explore-menu .menu-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.explore-menu .menu-left img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    background: transparent;
    animation: sway 3s ease-in-out infinite;
}

@keyframes sway {
    0% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
    100% { transform: rotate(-3deg); }
}

.explore-menu .menu-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.explore-menu h3 {
    color: white;
    font-family: sans-serif;
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 500;
}

.menu-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background-color: #00d2ff;
    color: #2a2a40;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-family: sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.menu-btn:hover {
    transform: scale(1.05);
    background-color: #00e6ff;
}

.menu-btn:active {
    transform: scale(1);
}

.planner {
  margin: 50px auto;
  max-width: 800px;
  text-align: center;
  font-family: 'Inter', Arial, sans-serif;
  color: #fff;
}

.planner h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-shadow: 0 0 10px #00c3ff20;
}

.notebook {
  background: #27273b;
  padding: 30px 40px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  position: relative;
  border-left: 6px solid #00c3ff;
  text-align: left;
  transition: 0.3s;
}

.notebook:hover {
    padding: 40px 50px;
    transition: 0.3s ;
}

.notebook:disabled {
    animation: sway 3s ease-in-out infinite;
}

.notebook::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background: #00c3ff;
  opacity: 0.3;
}

.notebook ul {
  list-style: none;
  padding-left: 0;
}

.notebook li {
  margin-bottom: 15px;
  font-size: 1.1rem;
  padding-left: 10px;
  position: relative;
}

.notebook li::before {
  content: "•";
  color: #00c3ff;
  position: absolute;
  left: 0;
}

.notebook-completed {
  text-decoration: line-through;
  color: #ffffff;
  transition: 0.3s;
}
.notebook-completed:hover {
  text-decoration: line-through;
  color: #eef8ff;
  scale: 1.05;
  transition: 0.3s;
}

.notebook-text {
  color: #ffffff;
  transition: 0.3s;
}
.notebook-text:hover {
  color: #eef8ff;
  scale: 1.05;
  transition: 0.3s;
}