*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: Arial, sans-serif;
    background:#020202;
    color:white;
}


.header{
    position:fixed;
    width:100%;
    padding:20px 60px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.4);
    z-index:1000;
}

.logo{
    font-size:24px;
    font-weight:bold;
    letter-spacing:2px;
}

.header nav a{
    color:white;
    text-decoration:none;
    margin-left:30px;
    transition:0.3s;
}

.header nav a:hover{
    color:#0a84ff;
}


.hero{
    height:100vh;
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.bg-video{
    position:absolute;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:-2;
}

.hero-overlay{
    position:absolute;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    z-index:-1;
}

.hero-content h1{
    font-size:70px;
    margin-bottom:20px;
}

.hero-content p{
    font-size:22px;
    color:#ccc;
}


.clock-section,
.login-section{
    padding:120px 20px;
    text-align:center;
}

#clock{
    font-size:50px;
    margin-top:20px;
}


.login-form{
    max-width:350px;
    margin:30px auto;
}

.login-form input{
    width:100%;
    padding:15px;
    margin:12px 0;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.1);
    color:white;
    border-radius:6px;
}

.login-form button{
    width:100%;
    padding:15px;
    background:linear-gradient(90deg,#0a84ff,#0044ff);
    border:none;
    color:white;
    font-size:16px;
    border-radius:6px;
    cursor:pointer;
    transition:0.3s;
}

.login-form button:hover{
    transform:scale(1.05);
}


.fade-in{
    opacity:0;
    transform:translateY(40px);
    transition:1s;
}

.fade-in.visible{
    opacity:1;
    transform:translateY(0);
}

.timeline{
    width: 90%;
    margin: 50px auto;
    position: relative;
}

.timeline-item{
    display:flex;
    flex-direction:row;
    margin-bottom: 50px;
    opacity:0;
    transform: translateY(50px);
    transition: all 0.7s ease;
}

.timeline-item.visible{
    opacity:1;
    transform: translateY(0);
}

.timeline-date{
    width:100px;
    font-size:1.2rem;
    font-weight:bold;
    color:#fff;
    text-align:right;
    margin-right:30px;
}

.timeline-content{
    background:#111;
    padding:20px;
    border-radius:10px;
    color:#fff;
    flex:1;
}

.timeline-content img{
    width:100%;
    margin-top:15px;
    border-radius:10px;
}

.hero-small{
    height:50vh;
    display:flex;
    align-items:center;
    justify-content:center;
    background:url('../images/bmw-hero.jpg') center/cover no-repeat;
    color:#fff;
}


html, body {
    background: transparent !important;
}

.auth-container {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.2);

    box-shadow:
        0 8px 32px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.25);

    padding: 35px;
}

.auth-form input {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;

    border-radius: 10px;
    padding: 12px;
}

.auth-form input::placeholder {
    color: rgba(255,255,255,0.7);
}

.auth-form button {
    background: linear-gradient(135deg, #0072ff, #00c6ff);
    border: none;
    color: white;

    border-radius: 12px;
    padding: 12px;

    font-weight: 600;
    transition: 0.3s;
}

.auth-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,114,255,0.4);
}

.hero-overlay {
    background: rgba(0,0,0,0.2) !important;
}


.chat-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-wrapper {
    width: 420px;
    height: 650px;

    background: rgba(20,20,20,0.75);
    backdrop-filter: blur(18px);

    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);

    display: flex;
    flex-direction: column;
    overflow: hidden;

    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.chat-header {
    padding: 18px;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.chat-message {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.4;
}

.chat-left {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
}

.chat-right {
    background: linear-gradient(135deg,#0066ff,#00aaff);
    color: white;
    margin-left: auto;
}

.chat-form {
    padding: 15px;
    display: flex;
    gap: 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.chat-form input[type="text"] {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: none;

    background: rgba(255,255,255,0.12);
    color: white;
}

.chat-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.chat-form button {
    padding: 12px 18px;
    border-radius: 12px;
    border: none;

    background: linear-gradient(135deg,#0066ff,#00aaff);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.chat-photo {
    max-width: 220px;
    border-radius: 14px;
    margin-top: 8px;
}


.chat-video-body{
    margin:0;
    height:100vh;
    overflow:hidden;
    font-family: Arial, sans-serif;
}

.chat-bg-video{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:-2;
}

.chat-overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.45);
    z-index:-1;
}

.chat-center{
    height:100%;
    display:flex;
    justify-content:center;
    align-items:center;
}

.chat-wrapper{
    width:420px;
    height:650px;

    background:rgba(25,25,25,0.75);
    backdrop-filter:blur(20px);

    border-radius:22px;
    border:1px solid rgba(255,255,255,0.15);

    display:flex;
    flex-direction:column;
    overflow:hidden;

    box-shadow:0 25px 60px rgba(0,0,0,0.7);
}

.chat-header{
    padding:18px;
    text-align:center;
    font-size:22px;
    color:white;
    border-bottom:1px solid rgba(255,255,255,0.1);
}

.chat-box{
    flex:1;
    overflow-y:auto;
    padding:20px;
}

.chat-message{
    max-width:75%;
    padding:12px 16px;
    border-radius:18px;
    margin-bottom:14px;
    font-size:14px;
    color:white;
}

.chat-left{
    background:rgba(255,255,255,0.15);
}

.chat-right{
    background:linear-gradient(135deg,#0066ff,#00aaff);
    margin-left:auto;
}

.chat-form{
    padding:15px;
    display:flex;
    gap:8px;
    border-top:1px solid rgba(255,255,255,0.1);
}

.chat-form input[type=text]{
    flex:1;
    padding:12px;
    border-radius:12px;
    border:none;
    background:rgba(255,255,255,0.15);
    color:white;
}

.chat-form input::placeholder{
    color:rgba(255,255,255,0.6);
}

.chat-form button{
    padding:12px 18px;
    border-radius:12px;
    border:none;
    background:linear-gradient(135deg,#0066ff,#00aaff);
    color:white;
    font-weight:600;
    cursor:pointer;
}

.chat-photo{
    max-width:220px;
    border-radius:14px;
    margin-top:8px;
}


.tg-body{
 margin:0;
 height:100vh;
 overflow:hidden;
 font-family:Arial, sans-serif;
}

.tg-video{
 position:fixed;
 width:100%;
 height:100%;
 object-fit:cover;
 z-index:-2;
}

.tg-overlay{
 position:fixed;
 width:100%;
 height:100%;
 background:rgba(0,0,0,0.55);
 z-index:-1;
}

.tg-chat{
 width:420px;
 height:90vh;

 position:absolute;
 left:50%;
 top:50%;
 transform:translate(-50%,-50%);

 background:rgba(20,20,20,0.85);
 backdrop-filter:blur(20px);

 border-radius:18px;
 display:flex;
 flex-direction:column;
 overflow:hidden;
}

.tg-header{
 padding:18px;
 color:white;
 font-size:20px;
 border-bottom:1px solid rgba(255,255,255,0.1);
}

.tg-messages{
 flex:1;
 overflow-y:auto;
 padding:20px;
 display:flex;
 flex-direction:column;
 gap:12px;
}

.tg-msg{
 max-width:70%;
 padding:12px 16px;
 border-radius:16px;
 color:white;
 position:relative;
}

.tg-left{
 background:#2a2a2a;
 align-self:flex-start;
}

.tg-right{
 background:#0088ff;
 align-self:flex-end;
}

.tg-input{
 display:flex;
 gap:8px;
 padding:15px;
 border-top:1px solid rgba(255,255,255,0.1);
}

.tg-input input[type=text]{
 flex:1;
 padding:12px;
 border:none;
 border-radius:12px;
 background:#2a2a2a;
 color:white;
}

.tg-input button{
 background:#0088ff;
 border:none;
 color:white;
 padding:12px 18px;
 border-radius:12px;
 cursor:pointer;
}

.tg-photo{
 max-width:220px;
 border-radius:12px;
 margin-top:6px;
}


.tg-chat{
 width:600px;
 height:92vh;

 position:absolute;
 left:50%;
 top:50%;
 transform:translate(-50%,-50%);

 background:rgba(15,15,15,0.85);
 backdrop-filter:blur(25px);

 border-radius:20px;
 display:flex;
 flex-direction:column;
 overflow:hidden;
}

.tg-msg{
 max-width:70%;
 padding:12px 16px;
 border-radius:18px;
 color:white;
 position:relative;
 animation: msgIn 0.3s ease;
}

@keyframes msgIn{
 from{opacity:0; transform:translateY(10px);}
 to{opacity:1; transform:translateY(0);}
}

.tg-left{
 background:#2a2a2a;
 align-self:flex-start;
}

.tg-left::after{
 content:"";
 position:absolute;
 left:-6px;
 bottom:8px;
 width:0;
 height:0;
 border-top:6px solid transparent;
 border-bottom:6px solid transparent;
 border-right:6px solid #2a2a2a;
}

.tg-right{
 background:#0088ff;
 align-self:flex-end;
}

.tg-right::after{
 content:"";
 position:absolute;
 right:-6px;
 bottom:8px;
 width:0;
 height:0;
 border-top:6px solid transparent;
 border-bottom:6px solid transparent;
 border-left:6px solid #0088ff;
}

.tg-input{
 display:flex;
 gap:10px;
 padding:15px;
 border-top:1px solid rgba(255,255,255,0.1);
}

.tg-input input[type=text]{
 flex:1;
 padding:14px;
 border:none;
 border-radius:14px;
 background:#2a2a2a;
 color:white;
 font-size:15px;
}

.tg-send{
 background:#0088ff;
 border:none;
 color:white;
 padding:14px 20px;
 border-radius:14px;
 cursor:pointer;
 font-size:18px;
 transition:0.2s;
}

.tg-send:hover{
 transform:scale(1.05);
 background:#0099ff;
}

.tg-photo{
 max-width:250px;
 border-radius:14px;
 margin-top:6px;
}

:root{
 --chat-glow: #0088ff;
}

.tg-chat{
 width:600px;
 height:92vh;

 position:absolute;
 left:50%;
 top:50%;
 transform:translate(-50%,-50%);

 background:rgba(15,15,15,0.85);
 backdrop-filter:blur(25px);

 border-radius:20px;
 display:flex;
 flex-direction:column;
 overflow:hidden;

 border:1px solid var(--chat-glow);

 box-shadow:
 0 0 10px var(--chat-glow),
 0 0 20px var(--chat-glow),
 0 0 40px rgba(0,0,0,0.6);

 animation: glowPulse 3s infinite alternate;
}

@keyframes glowPulse{
 from{
  box-shadow:
  0 0 10px var(--chat-glow),
  0 0 20px var(--chat-glow);
 }
 to{
  box-shadow:
  0 0 20px var(--chat-glow),
  0 0 40px var(--chat-glow);
 }
}
.tg-send{
 background:var(--chat-glow);
}

.tg-send:hover{
 filter:brightness(1.2);
}


:root{
 --chat-glow:#0088ff;
}

.tg-chat{
 border:1px solid var(--chat-glow);

 box-shadow:
 0 0 10px var(--chat-glow),
 0 0 25px var(--chat-glow),
 0 0 60px rgba(0,0,0,0.6);

 animation: neonPulse 2.5s infinite alternate;
}

@keyframes neonPulse{
 from{
  box-shadow:
  0 0 8px var(--chat-glow),
  0 0 20px var(--chat-glow);
 }
 to{
  box-shadow:
  0 0 20px var(--chat-glow),
  0 0 45px var(--chat-glow);
 }
}

.theme-bar{
 display:flex;
 gap:10px;
 padding:10px;
 justify-content:center;
 border-bottom:1px solid rgba(255,255,255,0.1);
}

.theme-btn{
 width:28px;
 height:28px;
 border-radius:50%;
 cursor:pointer;
 border:2px solid white;
 transition:0.2s;
}

.theme-btn:hover{
 transform:scale(1.2);
}

.theme-blue{ background:#0088ff; }
.theme-purple{ background:#8b5cf6; }
.theme-green{ background:#00ff9c; }
.theme-gold{ background:#f39c12; }
.theme-red{ background:#ff3b3b; }
.theme-white{ background:#ffffff; }
/* === TOP NAV ABOVE CHAT === */

.top-nav{
 position:absolute;
 top:25px;
 left:50%;
 transform:translateX(-50%);

 display:flex;
 gap:20px;

 z-index:5;
}

.top-nav-btn{
 text-decoration:none;
 color:white;
 font-weight:600;

 padding:10px 22px;
 border-radius:14px;

 background:rgba(255,255,255,0.08);
 backdrop-filter:blur(15px);

 transition:0.25s;
}

.top-nav-btn:hover{
 background:var(--chat-glow);
 box-shadow:0 0 15px var(--chat-glow);
 transform:translateY(-2px);
}

/* ===== VIDEO BACKGROUND ===== */

.bg-video{
 position:fixed;
 top:0;
 left:0;
 width:100%;
 height:100%;
 object-fit:cover;
 z-index:-2;
}

.video-overlay{
 position:fixed;
 top:0;
 left:0;
 width:100%;
 height:100%;
 background:rgba(0,0,0,0.55);
 z-index:-1;
}


.history-container{
 width:1100px;
 max-width:95%;

 margin:120px auto;

 padding:40px;

 border-radius:25px;

 background:rgba(15,15,15,0.75);
 backdrop-filter:blur(25px);

 border:1px solid var(--chat-glow);

 box-shadow:
 0 0 15px var(--chat-glow),
 0 0 40px rgba(0,0,0,0.6);

 color:white;
}

.history-container p{
 color:#e5e5e5;
}

.history-container h2{
 color:white;
 margin-bottom:15px;
}

.timeline-content{
 background:rgba(0,0,0,0.5);
 padding:20px;
 border-radius:15px;
 backdrop-filter:blur(10px);
}

.top-menu{
 position:fixed;
 top:20px;
 right:20px;       /* прижимаем к правому краю */
 display:flex;      /* горизонтально */
 gap:15px;
 font-size:24px;
 z-index:1000;
}

.menu-item{
 display:flex;
 flex-direction:column; /* иконка сверху, подпись снизу */
 align-items:center;
 cursor:pointer;
 color:white;
 font-weight:bold;
 transition:0.3s;
}

.menu-item:hover{
 transform:scale(1.2);
}

.menu-item span{
 font-size:24px;
}

.menu-item small{
 font-size:12px;
}

