html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .auth-buttons .btn {
        font-size: 0.9rem;
        font-weight: 500;
        border-radius: 8px;
        padding: 6px 16px;
        border: 1px solid transparent;
    }

    .auth-buttons .btn-login {
        color: #0d0d0d;
        background: transparent;
    }

        .auth-buttons .btn-login:hover {
            background: #f2f2f3;
        }

    .auth-buttons .btn-register {
        color: #fff;
        background: #0d0d0d;
    }

        .auth-buttons .btn-register:hover {
            background: #2b2b2b;
            color: #fff;
        }

.profile-menu {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    padding: 4px 12px 4px 4px;
    cursor: pointer;
}

    .profile-trigger:hover {
        background: #f7f7f8;
    }

.profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0d0d0d;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-email {
    font-size: 0.85rem;
    color: #0d0d0d;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 200px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 6px;
    z-index: 1000;
}

    .profile-dropdown.show {
        display: block;
    }

.profile-dropdown-header {
    padding: 8px 10px 10px;
    font-size: 0.8rem;
    color: #6e6e80;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown a,
.profile-dropdown button.dropdown-item-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    font-size: 0.88rem;
    color: #0d0d0d;
    background: none;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
}

    .profile-dropdown a:hover,
    .profile-dropdown button.dropdown-item-btn:hover {
        background: #f2f2f3;
    }

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, calc(100% - 40px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    z-index: 9999;
}

@@media (max-width: 768px) {
    .cookie-banner {
        top: auto;
        bottom: 20px;
    }
}