:root {
    --primary: #6B4C9A;
    --primary-dark: #5a3d82;
    --primary-light: #9b6dd1;
    --accent: #FFC939;
    --accent-dark: #e6b430;
    --bg: #FFF9ED;
    --bg-light: #FFFFFF;
    --bg-dark: #2D2D2D;
    --text: #2D2D2D;
    --text-light: #ffffff;
    --gray: #666666;
    --gray-light: #E0E0E0;
    --border: #E0E0E0;
    --success: #4CAF50;
    --error: #EF5350;
    --warning: #FF9800;
    --info: #2196F3;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#root { flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

/* === NAVBAR === */
.navbar {
    background: var(--bg-light);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 3.2rem;
    color: var(--primary);
    cursor: pointer;
    letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
}
.nav-menu a:hover { color: var(--primary); }

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* === BUTTONS === */
.btn {
    padding: 0.75rem 1.75rem;
    border-radius: 25px;
    border: 2px solid var(--primary);
    background: var(--primary);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn:hover:not(:disabled) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
    background: transparent;
    color: var(--primary);
}
.btn-secondary:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
}
.btn-success:hover:not(:disabled) { background: #3d8b40; border-color: #3d8b40; }

.btn-warning {
    background: var(--warning);
    border-color: var(--warning);
}

.btn-danger {
    background: var(--error);
    border-color: var(--error);
}
.btn-danger:hover:not(:disabled) { background: #d32f2f; border-color: #d32f2f; }

.btn-accent {
    background: var(--accent);
    color: var(--text);
    border-color: var(--accent);
}
.btn-accent:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-sm { padding: 0.4rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* === CONTAINERS === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
    width: 100%;
}

.container-narrow {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 5%;
}

/* === ONEPAGE - HERO === */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 5rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 50%;
    height: 200%;
    background: var(--accent);
    opacity: 0.1;
    transform: rotate(15deg);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero .accent-text { color: var(--accent); }

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === SECTIONS === */
.section {
    padding: 4rem 5%;
}

.section-light { background: var(--bg-light); }

.section-title {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === FEATURE CARDS === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
}

.feature-card p { color: var(--gray); }

/* === HOW IT WORKS === */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--accent);
    color: var(--text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.step h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
}

.step p { color: var(--gray); font-size: 0.95rem; }

/* === PRICING === */
.pricing-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    border: 3px solid var(--accent);
}

.pricing-card .price {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 4rem;
    color: var(--primary);
    margin: 1rem 0;
}

.pricing-card .price-unit {
    font-size: 1.2rem;
    color: var(--gray);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--text);
}

.pricing-features li::before {
    content: '✓ ';
    color: var(--success);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* === FORMS === */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* === CARDS === */
.card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.card-title {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    color: var(--primary);
    font-size: 1.5rem;
}

/* === MESSAGES === */
.message {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.message-error { background: #ffebee; color: var(--error); border: 1px solid var(--error); }
.message-success { background: #e8f5e9; color: var(--success); border: 1px solid var(--success); }
.message-info { background: #fff3e0; color: var(--warning); border: 1px solid var(--warning); }

/* === LOADING === */
.loading {
    text-align: center;
    padding: 4rem;
}

.spinner {
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === AVATAR === */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.avatar-lg { width: 80px; height: 80px; font-size: 1.75rem; }
.avatar-sm { width: 32px; height: 32px; font-size: 0.875rem; }
.avatar-xl { width: 120px; height: 120px; font-size: 2.5rem; }

/* === DASHBOARD === */
.dashboard-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 80px);
}

.sidebar {
    background: var(--bg-light);
    padding: 2rem 1rem;
    border-right: 2px solid var(--border);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
}

.sidebar-menu li:hover { background: var(--bg); }
.sidebar-menu li.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.main-content {
    padding: 2rem;
    overflow-y: auto;
}

.page-title {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.page-subtitle {
    color: var(--gray);
    margin-bottom: 2rem;
}

/* === GRID === */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* === STATS === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-value {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

/* === SESSION CARDS === */
.session-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    border-left: 5px solid var(--primary);
}

.session-card.active {
    border-left-color: var(--success);
    background: linear-gradient(to right, #e8f5e9, white 20%);
}

.session-card.waiting { border-left-color: var(--warning); }
.session-card.completed { opacity: 0.7; border-left-color: var(--gray); }

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.session-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-upcoming { background: #e3f2fd; color: #1976d2; }
.status-active { background: #e8f5e9; color: var(--success); }
.status-completed { background: #f5f5f5; color: var(--gray); }
.status-cancelled { background: #ffebee; color: var(--error); }

.countdown {
    background: var(--bg);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
    font-weight: 600;
}

.countdown.active {
    background: #e8f5e9;
    color: var(--success);
}

/* === TABS === */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    overflow-x: auto;
}

.tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

/* === MODAL === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 1rem;
}

.modal {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    color: var(--primary);
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

/* === TABLE === */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

tr:last-child td { border-bottom: none; }
tr:hover { background: var(--bg); }

/* === BADGES === */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary { background: var(--primary); color: white; }
.badge-accent { background: var(--accent); color: var(--text); }
.badge-success { background: var(--success); color: white; }

/* === FOOTER === */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 5% 1rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 1rem;
}

.footer-section p, .footer-section a {
    color: #cccccc;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
    transition: color 0.3s;
    cursor: pointer;
}

.footer-section a:hover { color: var(--accent); }

.footer-brand {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}
.footer-brand span { color: var(--accent); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
    font-size: 0.9rem;
}

/* === EMPTY STATES === */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .sidebar {
        padding: 1rem;
        border-right: none;
        border-bottom: 2px solid var(--border);
    }
    .sidebar-menu {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
    }
    .sidebar-menu li { white-space: nowrap; }
    .form-row { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .navbar { padding: 1rem; }
    .nav-menu { gap: 0.75rem; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .footer-content { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
}

/* === Czerwona kropka (nieprzeczytane wiadomości) === */
.unread-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--error);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    min-width: 20px;
    height: 20px;
    padding: 0 0.4rem;
    margin-left: 0.5rem;
    animation: pulseDot 1.5s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* === Chat załączniki === */
.chat-attachment-image {
    max-width: 280px;
    max-height: 220px;
    border-radius: 10px;
    margin-top: 0.4rem;
    cursor: pointer;
    display: block;
}
.chat-attachment-file {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.85rem;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    margin-top: 0.4rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.chat-attachment-file:hover { background: rgba(255,255,255,0.3); }
.chat-attachment-icon { font-size: 1.4rem; }
.chat-attachment-name { font-weight: 600; font-size: 0.85rem; }
.chat-attachment-size { font-size: 0.75rem; opacity: 0.8; }

.emoji-picker {
    position: absolute;
    bottom: 60px;
    right: 10px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    max-width: 280px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 100;
}
.emoji-picker-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.15rem;
}
.emoji-picker-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 0.2rem;
    border-radius: 6px;
    transition: background 0.1s;
}
.emoji-picker-btn:hover { background: var(--bg); }
.emoji-picker-cat {
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
    margin: 0.4rem 0 0.2rem;
    padding-left: 0.25rem;
}

.chat-dropzone-active {
    outline: 3px dashed var(--primary);
    outline-offset: -8px;
    background: rgba(107, 76, 154, 0.08) !important;
}

/* === Kalendarz tygodniowy === */
.week-cal {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.week-cal-header {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    background: var(--primary);
    color: white;
}
.week-cal-header > div {
    padding: 0.75rem 0.4rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.week-cal-header > div:last-child { border-right: none; }
.week-cal-header .today {
    background: var(--accent);
    color: var(--text);
}
.week-cal-grid {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    position: relative;
}
.week-cal-hour-col {
    border-right: 1px solid var(--border);
}
.week-cal-hour {
    height: 60px;
    padding: 0.2rem 0.3rem;
    font-size: 0.7rem;
    color: var(--gray);
    text-align: right;
    border-top: 1px solid var(--border);
}
.week-cal-day-col {
    border-right: 1px solid var(--border);
    position: relative;
}
.week-cal-day-col:last-child { border-right: none; }
.week-cal-half {
    height: 30px;
    border-top: 1px solid #f1f1f1;
}
.week-cal-half:first-child {
    border-top: 1px solid var(--border);
}
.week-cal-event {
    position: absolute;
    left: 4px;
    right: 4px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    overflow: hidden;
    transition: transform 0.1s;
}
.week-cal-event:hover { transform: scale(1.02); z-index: 5; }
.week-cal-event.completed { background: #888; }
.week-cal-event.cancelled { background: #ccc; color: #555; text-decoration: line-through; }
.week-cal-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.week-cal-nav-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}
.week-cal-week-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.05rem;
}

/* === v11 - kalendarz scrollowalny (0-24h) === */
.week-cal-scroll {
    max-height: 600px;
    overflow-y: auto;
}

/* === v11 - chat input row z spójnymi kształtami === */
.chat-input-row {
    padding: 0.75rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.5rem;
    position: relative;
    align-items: center;
}
.chat-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.1s;
    color: var(--text);
}
.chat-icon-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}
.chat-icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-icon-btn.chat-send-btn {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.chat-icon-btn.chat-send-btn:disabled {
    background: var(--bg);
    color: var(--gray);
    border-color: var(--border);
}
.chat-text-input {
    flex: 1;
    height: 42px;
    border-radius: 21px;
    border: 1px solid var(--border);
    padding: 0 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color 0.15s;
}
.chat-text-input:focus {
    border-color: var(--primary);
}

/* === v11 - status odczytu wiadomości === */
.read-status {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.7rem;
}
.read-status.delivered { color: rgba(255,255,255,0.75); }
.read-status.read { color: #4FC3F7; }

/* === v11 - kolory wiadomości w grupie === */
.chat-bubble-from-other {
    /* Bubbles cudze - kolor brany z user.avatar_color, ustawiany inline */
}

/* === v12 - poprawka scroll-margin po kliknięciu w zakładki nav === */
/* Sticky navbar ma ~70-80px wysokości - sekcje powinny mieć offset by tytuł był widoczny */
section[id] {
    scroll-margin-top: 90px;
}
html {
    scroll-behavior: smooth;
}

/* === v12 - Zostań korepetytorem - link wyróżniony w navbarze === */
.become-tutor-link {
    background: var(--accent);
    color: var(--text) !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    transition: transform 0.15s;
}
.become-tutor-link:hover {
    transform: scale(1.05);
}

/* === v14 - Sekcja "Jak to działa?" jako 3 akapity tekstowe === */
.how-it-works-content {
    max-width: 800px;
    margin: 2rem auto 0;
    text-align: center;
}
.how-it-works-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.5rem;
}
.how-it-works-content p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.15rem;
}

/* === v14 - Blok zgody w formularzu korepetytora (styl GoStudent) === */
.consent-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}
.consent-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
}
.consent-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}
.consent-list {
    margin: 0;
    padding-left: 2.2rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text);
}
.consent-list li {
    margin-bottom: 0.2rem;
}
.consent-list a {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}
.consent-list a:hover {
    color: var(--accent);
}
