/* ============================================================
   motodez.ro - stiluri custom modernizate
   ============================================================ */

:root {
    --brand-dark: #0b1623;
    --brand-mid: #162235;
    --brand-light: #3f5875;
    --brand-accent: #ffb703;
    --brand-accent-hover: #e5a300;
    --brand-red: #d62828;
    --brand-red-hover: #b91f1f;

    --surface: #f4f6f8;
    --surface-soft: #eef2f6;
    --card-bg: #ffffff;
    --border-soft: #e4e8ee;

    --text-main: #162235;
    --text-muted: #6c757d;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --shadow-sm: 0 4px 14px rgba(13, 27, 42, 0.06);
    --shadow-md: 0 12px 32px rgba(13, 27, 42, 0.10);
    --shadow-lg: 0 22px 55px rgba(13, 27, 42, 0.16);

    --transition: 0.18s ease;
}

body {
    background:
        radial-gradient(circle at top left, rgba(255, 183, 3, 0.08), transparent 30%),
        linear-gradient(180deg, #f8f9fb 0%, var(--surface) 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    text-rendering: optimizeLegibility;
}

/* Utilities */
.bg-brand { background-color: var(--brand-dark) !important; }
.bg-brand-mid { background-color: var(--brand-mid) !important; }
.text-brand { color: var(--brand-dark) !important; }
.text-accent { color: var(--brand-accent) !important; }

a {
    transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}

/* ============================================================
   Navbar modern
   ============================================================ */

.motodez-navbar {
    min-height: 76px;
    padding: 0.65rem 0;
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 183, 3, 0.09), transparent 26%),
        linear-gradient(135deg, #08121d 0%, var(--brand-dark) 55%, var(--brand-mid) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 12px 35px rgba(4, 12, 22, 0.18);
    z-index: 1030;
}

.motodez-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0;
    color: #fff;
    text-decoration: none;
}

.motodez-brand:hover {
    color: #fff;
}

.brand-symbol {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    color: var(--brand-dark);
    background: linear-gradient(135deg, var(--brand-accent), #ffd166);
    border-radius: 13px;
    box-shadow: 0 8px 24px rgba(255, 183, 3, 0.24);
    transform: rotate(-2deg);
}

.brand-symbol svg {
    width: 27px;
    height: 27px;
}

.brand-text {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.05em;
}

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

/* Navigație principală */

.motodez-main-nav {
    gap: 0.3rem;
}

.motodez-main-nav .nav-link {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    padding: 0.65rem 0.9rem !important;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 12px;
    transition:
        color var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.motodez-main-nav .nav-link svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
}

.motodez-main-nav .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.motodez-main-nav .nav-link.active {
    color: var(--brand-dark);
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    box-shadow: 0 8px 20px rgba(255, 183, 3, 0.18);
}


/* POPUP */
/* ============================================================
   MotoDez - Pop-up înscrieri
   ============================================================ */

.motodez-registration-modal {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 183, 3, 0.14),
            transparent 38%
        ),
        #fff;
}

.motodez-registration-modal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--brand-accent, #ffb703),
        var(--brand-red, #d62828)
    );
}

.motodez-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    padding: 0.7rem;
    border-radius: 50%;
    background-color: rgba(13, 27, 42, 0.06);
}

.motodez-modal-close:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 183, 3, 0.25);
}

.motodez-modal-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(255, 183, 3, 0.35);
    border-radius: 999px;
    background: rgba(255, 183, 3, 0.12);
    color: #7a5700;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.motodez-register-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
    color: var(--brand-dark, #0d1b2a);
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.motodez-register-option:hover {
    transform: translateY(-2px);
    border-color: var(--brand-accent, #ffb703);
    background: #fffdf7;
    color: var(--brand-dark, #0d1b2a);
    box-shadow: 0 0.75rem 1.75rem rgba(13, 27, 42, 0.1);
}

.motodez-register-option:focus-visible {
    outline: 3px solid rgba(255, 183, 3, 0.45);
    outline-offset: 2px;
}

.motodez-register-option-business:hover {
    border-color: var(--brand-light, #415a77);
    background: #f8fafc;
}

.motodez-option-icon {
    display: inline-flex;
    flex: 0 0 3.25rem;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.9rem;
    background: rgba(255, 183, 3, 0.14);
    font-size: 1.5rem;
}

.motodez-register-option-business .motodez-option-icon {
    background: rgba(65, 90, 119, 0.12);
}

.motodez-option-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.motodez-option-content strong {
    margin-bottom: 0.2rem;
    font-size: 1rem;
    line-height: 1.3;
}

.motodez-option-content small {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.45;
}

.motodez-option-arrow {
    flex: 0 0 auto;
    font-size: 1.4rem;
    transition: transform 0.2s ease;
}

.motodez-register-option:hover .motodez-option-arrow {
    transform: translateX(4px);
}

.motodez-remind-later {
    font-size: 0.9rem;
}

@media (max-width: 575.98px) {
    .motodez-registration-modal {
        border-radius: 1rem;
    }

    .motodez-register-option {
        align-items: flex-start;
        padding: 0.9rem;
    }

    .motodez-option-icon {
        flex-basis: 2.75rem;
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.25rem;
    }

    .motodez-option-arrow {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .motodez-register-option,
    .motodez-option-arrow {
        transition: none;
    }
}

/* Acțiuni navbar */

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.navbar-create-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-right: 0.15rem;
}

.nav-action-primary,
.nav-action-secondary {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    padding: 0.62rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
}

.nav-action-primary svg,
.nav-action-secondary svg {
    width: 18px;
    height: 18px;
}

.nav-action-primary {
    color: var(--brand-dark);
    background: var(--brand-accent);
    border: 1px solid var(--brand-accent);
    box-shadow: 0 8px 20px rgba(255, 183, 3, 0.19);
}

.nav-action-primary:hover {
    color: var(--brand-dark);
    background: #ffc52f;
    border-color: #ffc52f;
    box-shadow: 0 12px 28px rgba(255, 183, 3, 0.26);
}

.nav-action-secondary {
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.nav-action-secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-login-link {
    padding: 0.65rem 0.8rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    text-decoration: none;
}

.nav-login-link:hover {
    color: var(--brand-accent);
}

/* Butoane icon */

.nav-icon-button {
    position: relative;
    width: 43px;
    height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 43px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
}

.nav-icon-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.nav-icon-button svg {
    width: 21px;
    height: 21px;
}

.nav-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--brand-red);
    border: 2px solid var(--brand-dark);
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 850;
    line-height: 1;
}

/* Cont utilizator */

.account-dropdown {
    margin-left: 0.15rem;
}

.account-button {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.7rem 0.35rem 0.4rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 14px;
}

.account-button:hover,
.account-button.show {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.18);
}

.account-button::after {
    margin-left: 0.15rem;
    opacity: 0.65;
}

.account-avatar {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    color: var(--brand-dark);
    background: linear-gradient(135deg, var(--brand-accent), #ffd166);
    border-radius: 11px;
    font-size: 0.95rem;
    font-weight: 900;
}

.account-info {
    max-width: 125px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.account-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.68rem;
    font-weight: 650;
}

.account-name {
    width: 100%;
    overflow: hidden;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-notifications,
.menu-count {
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--brand-red);
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 850;
}

/* Dropdown cont */

.account-menu {
    width: 300px;
    margin-top: 0.75rem !important;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    box-shadow: 0 22px 55px rgba(5, 18, 31, 0.2);
}

.account-menu::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 24px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-top: 1px solid var(--border-soft);
    border-left: 1px solid var(--border-soft);
    transform: rotate(45deg);
}

.account-menu-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
}

.account-avatar-large {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 13px;
}

.account-menu-header strong,
.account-menu-header small {
    display: block;
}

.account-menu-header strong {
    max-width: 190px;
    overflow: hidden;
    color: var(--brand-dark);
    font-size: 0.94rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-menu-header small {
    margin-top: 0.15rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.account-menu .dropdown-item {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.58rem 0.7rem;
    color: var(--text-main);
    border-radius: 11px;
    font-size: 0.88rem;
    font-weight: 650;
}

.account-menu .dropdown-item:hover,
.account-menu .dropdown-item:focus {
    color: var(--brand-dark);
    background: var(--surface-soft);
}

.dropdown-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    color: var(--brand-light);
    background: var(--surface-soft);
    border-radius: 9px;
}

.dropdown-icon svg {
    width: 17px;
    height: 17px;
}

.account-menu .admin-link {
    color: #a26f00;
}

.account-menu .admin-link .dropdown-icon {
    color: #8d6505;
    background: rgba(255, 183, 3, 0.15);
}

.account-menu .logout-link {
    color: var(--brand-red);
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}

.account-menu .logout-link .dropdown-icon {
    color: var(--brand-red);
    background: rgba(214, 40, 40, 0.08);
}

.account-menu .dropdown-divider {
    margin: 0.45rem 0;
    border-color: var(--border-soft);
}

/* Toggler mobil */

.motodez-toggler {
    width: 44px;
    height: 44px;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    box-shadow: none !important;
}

.toggler-line {
    width: 20px;
    height: 2px;
    display: block;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.motodez-toggler[aria-expanded="true"] .toggler-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.motodez-toggler[aria-expanded="true"] .toggler-line:nth-child(2) {
    opacity: 0;
}

.motodez-toggler[aria-expanded="true"] .toggler-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-quick-actions,
.mobile-account-links {
    display: none;
}

/* Responsive navbar */

@media (max-width: 1199.98px) and (min-width: 992px) {
    .account-info {
        display: none;
    }

    .navbar-create-actions .nav-action-secondary {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .motodez-navbar {
        min-height: 68px;
        padding: 0.55rem 0;
    }

    .motodez-toggler {
        display: flex;
    }

    .mobile-quick-actions {
        display: flex;
        margin-left: auto;
        margin-right: 0.55rem;
    }

    .navbar-collapse {
        margin-top: 0.7rem;
        padding: 1rem;
        background: rgba(7, 18, 29, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
    }

    .motodez-main-nav {
        gap: 0.35rem;
        margin: 0 !important;
    }

    .motodez-main-nav .nav-link {
        width: 100%;
        min-height: 48px;
        padding: 0.75rem 0.9rem !important;
    }

    .navbar-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        margin-top: 0.8rem;
        padding-top: 0.8rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .navbar-create-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
        margin: 0;
    }

    .nav-action-primary,
    .nav-action-secondary {
        min-height: 48px;
    }

    .nav-login-link {
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
    }

    .account-dropdown {
        width: 100%;
        margin: 0;
    }

    .account-button {
        width: 100%;
        min-height: 56px;
    }

    .account-info {
        max-width: none;
        flex-grow: 1;
    }

    .account-menu {
        position: static !important;
        width: 100%;
        margin-top: 0.6rem !important;
        transform: none !important;
        box-shadow: none;
    }

    .account-menu::before {
        display: none;
    }

    .mobile-account-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .mobile-account-links a {
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.7rem 0.8rem;
        color: rgba(255, 255, 255, 0.82);
        background: rgba(255, 255, 255, 0.055);
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 11px;
        font-size: 0.82rem;
        font-weight: 700;
        text-decoration: none;
    }

    .mobile-account-links span {
        min-width: 22px;
        height: 22px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        background: var(--brand-red);
        border-radius: 999px;
        font-size: 0.68rem;
    }
}

@media (max-width: 575.98px) {
    .brand-symbol {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 11px;
    }

    .brand-symbol svg {
        width: 24px;
        height: 24px;
    }

    .brand-text {
        font-size: 1.28rem;
    }

    .navbar-collapse {
        margin-right: -0.15rem;
        margin-left: -0.15rem;
        padding: 0.8rem;
        border-radius: 15px;
    }

    .navbar-create-actions,
    .mobile-account-links {
        grid-template-columns: 1fr;
    }

    .account-menu {
        padding: 0.45rem;
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .motodez-navbar *,
    .motodez-navbar *::before,
    .motodez-navbar *::after {
        transition: none !important;
    }
}

/* Hero home */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 183, 3, 0.24), transparent 24%),
        linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-mid) 58%, var(--brand-light) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(2.2rem, 5vw, 4.5rem);
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.hero h1 {
    position: relative;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hero .lead {
    position: relative;
    color: rgba(255, 255, 255, 0.82);
}

/* Cards anunturi */
.listing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 183, 3, 0.55);
}

.listing-card .listing-photo {
    aspect-ratio: 4 / 3;
    background: var(--surface-soft) center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 2rem;
}

.listing-card .listing-body {
    padding: 1.05rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.listing-card .listing-title {
    font-weight: 700;
    color: var(--brand-dark);
    text-decoration: none;
    margin-bottom: 0.55rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.32;
}

.listing-card .listing-title:hover {
    color: var(--brand-red);
}

.listing-card .listing-price {
    font-size: 1.32rem;
    font-weight: 800;
    color: #ffb703;
    margin-top: auto;
}

.listing-card .listing-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.55rem;
}

/* Cards cereri */
.request-card {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-left: 5px solid var(--brand-accent);
    padding: 1.15rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.request-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.request-card h5 {
    color: var(--brand-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Featured badge */
.badge-featured {
    background: linear-gradient(135deg, var(--brand-accent), #ffd166);
    color: var(--brand-dark);
    font-weight: 800;
    letter-spacing: 0.04em;
    border-radius: 999px;
    padding: 0.42rem 0.7rem;
}

/* Formulare auth */
.auth-card {
    max-width: 460px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border: 1px solid rgba(228, 232, 238, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.auth-card h1 {
    color: var(--brand-dark);
    margin-bottom: 1.5rem;
    font-weight: 800;
    font-size: 1.65rem;
    letter-spacing: -0.03em;
}

/* Bootstrap overrides */
.btn {
    border-radius: 999px;
    font-weight: 700;
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

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

.btn-warning:hover {
    background-color: var(--brand-accent-hover);
    border-color: var(--brand-accent-hover);
    color: var(--brand-dark);
    box-shadow: 0 10px 22px rgba(255, 183, 3, 0.28);
}

.btn-danger {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
}

.btn-danger:hover {
    background-color: var(--brand-red-hover);
    border-color: var(--brand-red-hover);
}

.btn-primary {
    background-color: var(--brand-light);
    border-color: var(--brand-light);
}

.btn-primary:hover {
    background-color: var(--brand-mid);
    border-color: var(--brand-mid);
}

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border-color: var(--border-soft);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-light);
    box-shadow: 0 0 0 0.22rem rgba(65, 90, 119, 0.16);
}

/* Sectiuni home */
.section-title {
    color: var(--brand-dark);
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: -0.03em;
}

.section-title .link-all {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--brand-light);
    text-decoration: none;
}

.section-title .link-all:hover {
    color: var(--brand-red);
}

/* Category grid */
.category-tile {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 1.35rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--brand-dark);
    border: 1px solid var(--border-soft);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition);
    display: block;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.category-tile:hover {
    border-color: var(--brand-accent);
    transform: translateY(-4px);
    color: var(--brand-red);
    box-shadow: var(--shadow-md);
}

.cat-icon{
    width:64px;
    height:64px;
    object-fit:contain;
    display:block;
    margin:0 auto 12px;
    transition:transform .2s ease;
}
.how-icon{
    width:72px;
    height:72px;
    object-fit:contain;
    display:block;
    margin:0 auto;
    transition:.25s ease;
}

.text-center:hover .how-icon{
    transform:translateY(-4px) scale(1.06);
}
.category-tile:hover .cat-icon{
    transform:scale(1.08);
}
.category-tile .cat-name {
    font-weight: 750;
    font-size: 0.96rem;
}

/* Footer */
.footer-link {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color var(--transition), padding-left var(--transition);
}

.footer-link:hover {
    color: var(--brand-accent);
    padding-left: 4px;
}

footer .btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer img {
    transition: transform var(--transition), opacity var(--transition);
}

footer img:hover {
    transform: scale(1.045);
    opacity: 0.95;
}

/* Responsive */
@media (max-width: 576px) {
    .hero {
        padding: 2rem 1.35rem;
        border-radius: var(--radius-md);
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .auth-card {
        padding: 1.5rem;
        margin: 1rem auto;
        border-radius: var(--radius-md);
    }

    .section-title {
        align-items: flex-start;
        gap: 0.5rem;
        flex-direction: column;
    }
}