:root {
	--bg-dark: #05070a;
	--bg-card: rgba(20, 25, 40, 0.7);
	--bg-card-hover: rgba(30, 35, 55, 0.8);
	--primary-gradient: linear-gradient(135deg, #00c6ff 0%, #9d00ff 100%);
	--accent-blue: #00c6ff;
	--accent-purple: #9d00ff;
	--text-main: #ffffff;
	--text-muted: #cbd5e1;
	--glass-border: 1px solid rgba(255, 255, 255, 0.08);
	--font-main: 'Inter', sans-serif;
	--radius: 24px
}
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box
}

body {
	font-family: var(--font-main);
	background-color: var(--bg-dark);
	color: var(--text-main);
	overflow-x: hidden;
	line-height: 1.6
}
.glass {
	background: var(--bg-card);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: var(--glass-border);
	box-shadow: 0 8px 32px 0 rgb(0 0 0 / .3);
	transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease
}
.gradient-text {
	background: var(--primary-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: #fff0;
	background-clip: text;
	display: inline-block;
	font-weight: 800
}
#scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 0%;
	height: 3px;
	background: var(--primary-gradient);
	z-index: 2000;
	transition: width 0.1s
}
.cursor {
	display: inline-block;
	width: 3px;
	background-color: var(--accent-blue);
	animation: blink 1s infinite
}
@keyframes blink {
	0%, 100% {
		opacity: 1
	}
	50% {
		opacity: 0
	}
}
nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 80px;
	z-index: 1000;
	padding: 0 50px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	background: rgb(5 7 10 / .85);
	backdrop-filter: blur(15px);
	border-bottom: 1px solid rgb(255 255 255 / .08);
	transition: all 0.3s ease
}
nav.scrolled {
	background: rgb(5 7 10 / .98);
	height: 70px;
	box-shadow: 0 10px 30px rgb(0 0 0 / .5)
}
.nav-logo-wrapper {
	justify-self: start
}
.nav-logo {
	font-size: 1.8rem;
	font-weight: 800;
	color: #fff;
	text-decoration: none;
	letter-spacing: -1px;
	transition: transform 0.3s ease;
	display: flex;
	align-items: center
}
.nav-logo:hover {
	transform: scale(1.05)
}
.nav-logo span {
	color: var(--accent-blue);
	font-size: 2.2rem;
	line-height: 0;
	margin-left: 2px
}
.nav-links {
	justify-self: center;
	display: flex;
	gap: 40px;
	list-style: none;
	margin: 0;
	padding: 0
}
.nav-links a {
	color: var(--text-muted);
	text-decoration: none;
	font-weight: 500;
	font-size: .95rem;
	transition: all 0.3s ease;
	position: relative;
	text-transform: uppercase;
	letter-spacing: .5px
}
.nav-links a:hover, .nav-links a.active {
	color: var(--accent-blue);
	text-shadow: 0 0 8px rgb(0 198 255 / .4)
}
.nav-cta {
	justify-self: end;
	display: block
}
.submit-btn {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	padding: 18px;
	border-radius: 50px;
	border: none;
	background: var(--primary-gradient);
	color: #fff;
	font-weight: 700;
	font-size: 1.1rem;
	cursor: pointer;
	transition: 0.3s;
	box-shadow: 0 4px 20px rgb(157 0 255 / .3);
	text-decoration: none
}
.submit-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 30px rgb(0 198 255 / .4)
}
.submit-btn:disabled {
	opacity: .7;
	cursor: not-allowed
}
.btn-small {
	width: auto;
	padding: 10px 24px;
	margin: 0;
	font-size: .9rem;
	font-weight: 600
}
.btn-hero {
	width: auto;
	padding: 12px 40px;
	font-size: 1rem
}
.mobile-toggle {
	display: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: #fff;
	background: none;
	border: none;
	padding: 5px
}
.mobile-menu-overlay {
	display: none
}
@media (max-width:900px) {
	nav {
		padding: 0 20px;
		display: flex;
		justify-content: space-between
	}
	.nav-links, .nav-cta {
		display: none
	}
	.nav-logo {
		font-size: 1.5rem
	}
	.mobile-toggle {
		display: block;
		position: relative;
		z-index: 1002
	}
	.mobile-menu-overlay {
		display: flex;
		position: fixed;
		top: 0;
		right: -100%;
		width: 80%;
		height: 100vh;
		background: #0a0e17;
		flex-direction: column;
		padding: 100px 40px;
		transition: 0.4s cubic-bezier(.77, 0, .175, 1);
		box-shadow: -10px 0 30px rgb(0 0 0 / .5);
		gap: 30px;
		z-index: 1001;
		align-items: flex-start
	}
	.mobile-menu-overlay.active {
		right: 0
	}
	.mobile-menu-overlay a {
		font-size: 1.5rem;
		color: var(--text-muted);
		text-decoration: none;
		font-weight: 600
	}
	.mobile-menu-overlay a:hover {
		color: var(--accent-blue)
	}
	.mobile-menu-overlay .mobile-cta {
		color: var(--accent-blue);
		border: 1px solid var(--accent-blue);
		padding: 10px 20px;
		border-radius: 50px;
		margin-top: 10px
	}
}
header {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 100px 20px 50px;
	position: relative;
	overflow: hidden
}
#canvas-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	opacity: .6;
	pointer-events: none
}
.profile-img {
	width: 170px;
	height: 170px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid rgb(255 255 255 / .1);
	padding: 6px;
	background: rgb(255 255 255 / .05);
	margin-bottom: 25px;
	box-shadow: 0 0 50px rgb(0 198 255 / .25);
	animation: float 6s ease-in-out infinite
}
@keyframes float {
	0% {
		transform: translateY(0)
	}
	50% {
		transform: translateY(-12px)
	}
	100% {
		transform: translateY(0)
	}
}
header h1 {
	font-size: clamp(2.5rem, 5vw, 3.8rem);
	margin-bottom: 15px;
	letter-spacing: -2px;
	line-height: 1.1
}
header p.desc {
	font-size: 1.3rem;
	color: var(--text-muted);
	margin-bottom: 35px;
	max-width: 600px;
	font-weight: 500
}
.social-row {
	display: flex;
	gap: 15px;
	margin-bottom: 45px;
	align-items: center;
	justify-content: center
}
.social-link {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: rgb(255 255 255 / .05);
	border: 1px solid rgb(255 255 255 / .05);
	font-size: 1.4rem;
	color: var(--text-muted);
	transition: all 0.3s cubic-bezier(.175, .885, .32, 1.275);
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none
}
.social-link:hover {
	color: #fff;
	background: var(--accent-blue);
	border-color: var(--accent-blue);
	transform: translateY(-5px) scale(1.1);
	box-shadow: 0 5px 15px rgb(0 198 255 / .3)
}
.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 80px 20px
}
.section-header {
	margin-bottom: 50px;
	text-align: left
}
.section-header h2 {
	font-size: 2.5rem;
	display: inline-block
}
.section-header p {
	color: var(--text-muted);
	margin-top: 10px;
	max-width: 600px
}
.about-card {
	padding: 50px;
	border-radius: var(--radius);
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 40px;
	align-items: start
}
.about-content h3 {
	font-size: 1.8rem;
	margin-bottom: 20px;
	color: #fff
}
.about-content p {
	color: var(--text-muted);
	margin-bottom: 15px;
	font-size: 1.05rem
}
.about-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	align-self: center
}
.stat-item {
	background: rgb(0 0 0 / .2);
	padding: 20px;
	border-radius: 16px;
	text-align: center;
	border: 1px solid rgb(255 255 255 / .05)
}
.stat-number {
	font-size: 2rem;
	font-weight: 800;
	color: var(--accent-blue);
	display: block
}
.stat-label {
	font-size: .9rem;
	color: var(--text-muted)
}
.tech-stack-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 25px;
	margin-top: 20px
}
.tech-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 25px 10px;
	background: rgb(255 255 255 / .03);
	border: 1px solid rgb(255 255 255 / .05);
	border-radius: 20px;
	transition: all 0.4s cubic-bezier(.175, .885, .32, 1.275);
	text-align: center;
	position: relative;
	overflow: hidden
}
.tech-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgb(255 255 255 / .1) 0%, transparent 100%);
	opacity: 0;
	transition: 0.4s;
	pointer-events: none
}
.tech-card:hover {
	transform: translateY(-8px) scale(1.02);
	background: rgb(255 255 255 / .08);
	border-color: var(--accent-blue);
	box-shadow: 0 10px 30px rgb(0 198 255 / .15)
}
.tech-card:hover::before {
	opacity: 1
}
.tech-icon {
	font-size: 2.8rem;
	color: var(--text-muted);
	margin-bottom: 15px;
	transition: 0.4s ease
}
.tech-card:hover .tech-icon {
	color: #fff;
	transform: scale(1.1)
}
.tech-card:hover .fa-html5 {
	color: #e34c26;
	filter: drop-shadow(0 0 8px #e34c26)
}
.tech-card:hover .fa-css3-alt {
	color: #264de4;
	filter: drop-shadow(0 0 8px #264de4)
}
.tech-card:hover .fa-js {
	color: #f0db4f;
	filter: drop-shadow(0 0 8px #f0db4f)
}
.tech-card:hover .fa-python {
	color: #306998;
	filter: drop-shadow(0 0 8px #306998)
}
.tech-name {
	font-size: .95rem;
	font-weight: 600;
	color: var(--text-muted);
	transition: 0.3s
}
.tech-card:hover .tech-name {
	color: #fff
}
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px
}
.service-card {
	padding: 40px 30px;
	text-align: center
}
.service-card:hover {
	background: var(--bg-card-hover);
	transform: translateY(-8px)
}
.service-icon {
	font-size: 3rem;
	margin-bottom: 25px;
	background: var(--primary-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: #fff0
}
.service-card h3 {
	font-size: 1.4rem;
	margin-bottom: 15px;
	color: #fff
}
.service-card p {
	color: var(--text-muted);
	font-size: .95rem
}
.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 30px
}
.project-card {
	border-radius: var(--radius);
	overflow: hidden;
	transition: 0.4s;
	position: relative;
	display: flex;
	flex-direction: column
}
.project-card:hover {
	transform: translateY(-10px);
	border-color: var(--accent-purple);
	box-shadow: 0 15px 40px rgb(0 0 0 / .5)
}
.project-img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-bottom: 1px solid rgb(255 255 255 / .05)
}
.project-content {
	padding: 30px;
	flex-grow: 1;
	display: flex;
	flex-direction: column
}
.project-content h3 {
	font-size: 1.4rem;
	margin-bottom: 10px;
	color: #fff
}
.project-content p {
	color: var(--text-muted);
	font-size: .95rem;
	margin-bottom: 20px;
	flex-grow: 1
}
.project-buttons {
	display: flex;
	gap: 12px;
	margin-top: auto;
	margin-bottom: 20px
}
.btn-project {
	padding: 8px 16px;
	border-radius: 12px;
	font-size: .85rem;
	font-weight: 600;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: 0.3s
}
.btn-live {
	background: rgb(255 255 255 / .1);
	color: #fff;
	border: 1px solid rgb(255 255 255 / .1)
}
.btn-live:hover {
	background: rgb(255 255 255 / .2);
	color: #fff
}
.btn-code {
	color: var(--text-muted);
	border: 1px solid #fff0
}
.btn-code:hover {
	color: var(--accent-blue)
}
.project-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	pt-2;
	border-top: 1px solid rgb(255 255 255 / .05);
	padding-top: 15px
}
.tag {
	font-size: .75rem;
	padding: 4px 10px;
	background: rgb(255 255 255 / .05);
	border-radius: 20px;
	color: var(--text-muted)
}
.contact-box {
	max-width: 700px;
	margin: 0 auto;
	padding: 50px;
	border-radius: var(--radius)
}
.form-group {
	margin-bottom: 20px;
	text-align: left
}
.form-group label {
	display: block;
	font-size: .9rem;
	color: var(--text-muted);
	margin-bottom: 8px;
	margin-left: 5px
}
input, textarea {
	width: 100%;
	padding: 16px 20px;
	background: #0a0a0a;
	border: 1px solid rgb(255 255 255 / .1);
	border-radius: 12px;
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	transition: 0.3s
}
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, textarea:-webkit-autofill {
	-webkit-text-fill-color: white!important;
	box-shadow: 0 0 0 1000px #0a0a0a inset!important;
	transition: background-color 5000s ease-in-out 0s
}
input:focus, textarea:focus, input:not(:placeholder-shown), textarea:not(:placeholder-shown) {
	outline: none;
	border-color: var(--accent-blue);
	background: #111;
	box-shadow: 0 0 15px rgb(0 198 255 / .1)
}
button {
	width: 100%;
	margin-top: 10px
}
/* --- FINÁLNÍ MINIMALISTICKÁ PATIČKA --- */
.final-minimal-footer {
    width: 100%; /* Čára se teď roztáhne přes celou obrazovku */
    margin: 40px 0 0 0; /* Výrazně zmenšeno horní volné místo (z 80px na 40px) */
    padding: 20px 0; /* Zmenšen vnitřní prostor nad a pod obsahem */
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Ta čára přes celý displej */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Zmenšená mezera mezi ikonami a textem */
}

/* Řádek pro sociální sítě */
.footer-socials-row {
    width: auto;
}

/* Kontejner pro ikony */
.footer-social-icons {
    display: flex;
    gap: 12px;
}

/* Samotné ikony */
.footer-social-icons a {
    width: 36px; /* Ještě o kousek zmenšeno pro maximální decentnost */
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(.175, .885, .32, 1.15);
}

/* Jemný hover efekt */
.footer-social-icons a:hover {
    color: #fff;
    background: rgba(0, 198, 255, 0.1);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 198, 255, 0.2);
}

/* Spodní info - Zmenšené mezery a text */
.footer-bottom-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px; /* Minimální mezera mezi texty */
    color: #64748b;
    font-size: 0.78rem;
    text-align: center;
}

.footer-bottom-info p {
    margin: 0;
}

/* Ochrana pro zobrazení na mobilech */
@media (max-width: 600px) {
    .footer-top-row, .footer-bottom-row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
.reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: 0.8s ease
}
.reveal.active {
	opacity: 1;
	transform: translateY(0)
}
@media (max-width:768px) {
	.about-card {
		grid-template-columns: 1fr;
		padding: 30px
	}
	header h1 {
		font-size: 2.8rem
	}
	.section-header h2 {
		font-size: 2rem
	}
}

/* --- PROMĚNNÉ --- */
:root {
    --primary-gradient: linear-gradient(135deg, #9d00ff, #00c6ff);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --accent-blue: #00c6ff;
    --text-muted: #e0e0e0;
}

/* --- SPOUŠTĚCÍ TLAČÍTKO --- */
#chat-launcher {
    position: fixed;
    bottom: 20px; /* Posunuto dolů */
    right: 20px;  /* Posunuto k okraji */
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(157, 0, 255, 0.4);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

#chat-launcher:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(0, 198, 255, 0.5);
}

#chat-launcher.active {
    transform: scale(0) rotate(-90deg);
    opacity: 0;
}

/* --- HLAVNÍ KONTEJNER --- */
#chat-container {
    position: fixed;
    bottom: 85px; /* */
    right: 20px;  /* */
    width: 380px; /* */
    max-width: 90vw; /* */
    
    /* FIX PROTI POSOUVÁNÍ HLAVIČKY: */
    height: 500px;
    max-height: 75dvh; /* Přechod na dynamické VH (krásně drží i s klávesnicí) */
    touch-action: none; /* Zakáže mobilu posouvat a natahovat samotný box chatu */
    
    background: rgba(10, 14, 23, 0.96); /* */
    backdrop-filter: blur(20px); /* */
    -webkit-backdrop-filter: blur(20px); /* */
    border: var(--glass-border); /* */
    border-radius: 24px; /* */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); /* */
    z-index: 1005; /* Zvýšeno pro jistotu, aby byl chat vždy nejvýše */
    display: flex; /* */
    flex-direction: column; /* */
    overflow: hidden; /* */
    opacity: 0; /* */
    transform: translateY(20px) scale(0.95); /* */
    pointer-events: none; /* */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* */
    overscroll-behavior: contain;
}

#chat-container.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* --- HLAVIČKA --- */
#chat-header {
    padding: 15px 20px; /* */
    background: rgba(255, 255, 255, 0.03); /* */
    border-bottom: var(--glass-border); /* */
    display: flex; /* */
    justify-content: space-between; /* */
    align-items: center; /* */
    
    /* FIX: Hlavička s křížkem se nesmí prstem ani hnout */
    touch-action: none; 
}

/* --- OKNO SE ZPRÁVAMI --- */
#chat-window {
    flex: 1; /* */
    overflow-y: auto; /* */
    padding: 20px; /* */
    display: flex; /* */
    flex-direction: column; /* */
    gap: 15px; /* */
    overscroll-behavior: contain;
    
    /* FIX: Tady naopak skrolování prstem povolit musíme */
    touch-action: pan-y; 
}

/* --- INPUT AREA --- */
#chat-input-area {
    padding: 15px 20px; /* */
    background: rgba(0, 0, 0, 0.2); /* */
    border-top: var(--glass-border); /* */
    display: flex; /* */
    gap: 12px; /* */
    align-items: center; /* */
    
    /* FIX: Spodek chatu se taky nesmí hýbat */
    touch-action: none;
}

.chat-header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-avatar-container {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.bot-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-blue);
    /* Oprava ostrosti */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.status-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background: #00ff88;
    border: 2px solid #0a0e17;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff88;
}

.bot-info-text {
    display: flex;
    flex-direction: column;
}

.bot-name {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    letter-spacing: 0.3px;
}

.bot-status {
    font-size: 11px;
    color: #00ff88;
    font-weight: 600;
}

.chat-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-close-btn:hover {
    background: rgba(255, 50, 50, 0.25);
    color: #ff4d4d;
    transform: rotate(90deg);
}

/* --- OKNO SE ZPRÁVAMI --- */
#chat-window {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.msg-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: 85%;
    animation: msgPop 0.3s ease-out;
}

@keyframes msgPop {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-wrapper { align-self: flex-start; }
.user-wrapper { align-self: flex-end; flex-direction: row-reverse; }

/* OPRAVA OSTROSTI A KVALITY AVATARU */
.msg-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent-blue);
    flex-shrink: 0;
    margin-bottom: 2px;
    /* Zaostření low-res obrázků */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.msg {
    padding: 12px 16px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.bot-msg {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
    border-radius: 16px 16px 16px 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-msg {
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 4px 15px rgba(157, 0, 255, 0.2);
}

/* --- INPUT AREA --- */
#chat-input-area {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: var(--glass-border);
    display: flex;
    gap: 12px;
    align-items: center;
}

#user-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    padding: 12px 15px !important;
    color: white !important;
    outline: none;
    font-size: 0.95rem;
}

#user-input:focus {
    border-color: var(--accent-blue) !important;
}

#chat-send-btn {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

#chat-send-btn:hover {
    transform: scale(1.05);
}

.quick-reply-btn {
    background: rgba(0, 198, 255, 0.1);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 8px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    align-self: flex-start;
    transition: 0.3s;
    border-bottom-left-radius: 2px; /* Ladí k bublinám bota */
}

.quick-reply-btn:hover {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.4);
}

/* --- OKNO SE ZPRÁVAMI --- */
#chat-window {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    
    /* FIX: Zabrání "gumovému" tahání pozadí na iOS */
    overscroll-behavior: contain; 
}

/* Animace skákajících teček */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: typingDots 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDots {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-5px); opacity: 1; }
}

/* Zarovnání profilovky */
.bot-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--accent-blue);
    flex-shrink: 0;
}

/* Globální odsazení pro plynulé skrolování k sekcím */
section[id] {
    scroll-margin-top: 90px; /* Vytvoří neviditelnou rezervu pro fixní navbar */
}