/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== HEADER ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--white) 92%, transparent);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.main-header.scrolled {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 4px 24px rgba(0, 0, 0, 0.05);
    background: color-mix(in srgb, var(--white) 97%, transparent);
}

.header-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 2rem;
}

/* Logo — left aligned */
.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.03em;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.logo:hover {
    opacity: 0.85;
}

.logo img {
    height: 34px;
    border-radius: 10px;
}

/* ===== CENTER NAVIGATION ===== */
.header-nav-center {
    display: flex;
    align-items: center;
    gap: 0;
    background: none;
    border: none;
    padding: 0;
    position: relative;
}

.header-nav-center a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 1rem;
    border-radius: 8px;
    border: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease;
    white-space: nowrap;
    position: relative;
    letter-spacing: -0.01em;
}

/* Animated underline indicator */
.header-nav-center a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.2s ease;
    transform-origin: center;
}

.header-nav-center a i {
    font-size: 0.8125rem;
    transition: color 0.18s ease;
    color: currentColor;
    opacity: 0.7;
}

.header-nav-center a:hover {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.035);
}

.header-nav-center a:hover i {
    opacity: 1;
}

.header-nav-center a:hover::after {
    transform: scaleX(1);
}

.header-nav-center a.active {
    color: var(--primary-color);
    background: transparent;
    font-weight: 600;
}

.header-nav-center a.active i {
    opacity: 1;
}

.header-nav-center a.active::after {
    transform: scaleX(1);
    background: var(--primary-color);
}

/* Right actions */
.header-right {
    flex-shrink: 0;
    justify-content: flex-end;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Desktop: hide mobile-only collapse */
.navbar-collapse {
    display: none !important;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.main-nav a:hover {
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.03);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

/* Sign In text button */
.btn-header-signin {
    padding: 0.4375rem 1rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.btn-header-signin:hover {
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.03);
}

.btn-header-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 1.25rem;
    border-radius: 8px;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 1px 3px color-mix(in srgb, var(--primary-color) 20%, transparent);
    letter-spacing: -0.01em;
}

.btn-header-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--primary-color) 30%, transparent);
    filter: brightness(1.05);
}

.btn-header-primary i {
    font-size: 0.6875rem;
    transition: transform 0.25s ease;
}

.btn-header-primary:hover i {
    transform: translateX(3px);
}

/* ===== User Dropdown ===== */
.user-dropdown {
    position: relative;
}

/* Trigger: avatar-only circle with name, no border pill */
.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem 0.25rem 0.25rem;
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.15s ease;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.8125rem;
}

.user-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.user-btn .user-name {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.user-btn > i {
    font-size: 0.625rem;
    color: var(--text-light);
    transition: transform 0.2s ease;
}

.user-dropdown.show .user-btn > i {
    transform: rotate(180deg);
}

/* Avatar: square-ish with rounded corners, not circle */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 55%, var(--primary-light)));
    color: var(--white, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Dropdown: dark header + light body */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.625rem);
    left: 0;
    z-index: 1000;
    display: none;
    width: 260px;
    padding: 0;
    background: var(--white, #fff);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 14px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.04);
    list-style: none;
    overflow: hidden;
    animation: dropdownFade 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.user-dropdown.show .dropdown-menu {
    display: block;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Primary color header section */
.dropdown-header {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.875rem 1rem;
    background: var(--primary-color);
}

.dropdown-header-name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-header-email {
    display: block;
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Menu items */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.6875rem 1rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.8125rem;
    text-decoration: none;
    border-radius: 0;
    transition: background 0.12s ease, color 0.12s ease;
    border: none;
    background: none;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.dropdown-item:hover {
    background: rgba(var(--primary-color-rgb), 0.04);
    color: var(--primary-color);
}

.dropdown-item i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    color: var(--text-light);
    transition: color 0.12s ease;
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

.dropdown-item.text-danger {
    color: var(--error-color);
}

.dropdown-item.text-danger i {
    color: var(--error-color);
}

.dropdown-item.text-danger:hover {
    background: var(--error-bg);
    color: var(--error-color);
}

.dropdown-item.text-danger:hover i {
    color: var(--error-color);
}

.dropdown-divider {
    height: 1px;
    margin: 0;
    background: rgba(0, 0, 0, 0.06);
    border: none;
}

/* ===== MOBILE NAV GRID ===== */
.mobile-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
    width: 100%;
}

.mobile-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.625rem 0.5rem 0.5rem;
    background: rgba(0, 0, 0, 0.025);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.6875rem;
    letter-spacing: -0.01em;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.mobile-nav-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 70%, var(--primary-light)));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mobile-nav-card:hover::before,
.mobile-nav-card:active::before {
    opacity: 1;
}

.mobile-nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--white);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mobile-nav-card span {
    position: relative;
    z-index: 1;
    transition: color 0.25s ease;
}

.mobile-nav-card:hover .mobile-nav-icon,
.mobile-nav-card:active .mobile-nav-icon {
    background: color-mix(in srgb, var(--white) 20%, transparent);
    color: var(--white);
    box-shadow: none;
}

.mobile-nav-card:hover span,
.mobile-nav-card:active span {
    color: var(--white);
}

/* Mobile user info card */
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: color-mix(in srgb, var(--primary-color) 6%, transparent);
    border: 1.5px solid color-mix(in srgb, var(--primary-color) 18%, transparent);
    border-left: 3px solid var(--primary-color);
    border-radius: 12px;
    margin-bottom: 0.25rem;
}

.mobile-user-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 55%, var(--primary-light)));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    overflow: hidden;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.mobile-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.mobile-user-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.015em;
}

.mobile-user-email {
    font-size: 0.75rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0;
}

/* Mobile menu action buttons */
.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    padding-top: 0.25rem;
}

.mobile-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8125rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.mobile-action-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.mobile-action-primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--primary-color) 35%, transparent);
}

.mobile-action-outline {
    background: rgba(0, 0, 0, 0.025);
    color: var(--text-dark);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
}

.mobile-action-outline:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
}

.mobile-action-danger {
    background: color-mix(in srgb, var(--error-color) 6%, transparent);
    color: var(--error-color);
    border: 1.5px solid color-mix(in srgb, var(--error-color) 15%, transparent);
}

.mobile-action-danger:hover {
    background: var(--error-color);
    color: var(--white);
    border-color: var(--error-color);
}

.d-none {
    display: none;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 4rem 0 4.5rem;
    background: linear-gradient(180deg, rgba(var(--primary-color-rgb), 0.04) 0%, var(--white) 100%);
}

/* Mobile-only featured label — hidden on desktop */
.services-mobile-label {
    display: none;
    text-align: center;
    padding: 0.25rem 0;
}

.services-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Single-column: carousel fills full width */
.services-layout {
    display: block;
}

/* Dribbble-style dark accent card — lives inside the carousel track */
.services-info-panel {
    flex: 0 0 calc((100% - 3.375rem) / 4);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 1.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, color-mix(in srgb, var(--primary-color) 68%, #0d0520) 100%);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 0 2px color-mix(in srgb, var(--primary-color) 40%, transparent),
        0 8px 32px rgba(var(--primary-color-rgb), 0.25),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.services-info-panel::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

.services-info-panel::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: -25px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.services-info-panel > * {
    position: relative;
    z-index: 1;
}

.services-info-panel .services-label {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.services-info-panel .services-title,
.services-info-panel .services-title strong {
    color: #fff;
}

.services-info-panel .services-desc {
    color: rgba(255, 255, 255, 0.72);
}

.services-info-panel .services-see-all {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.services-info-panel .services-see-all:hover {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
}

.services-label {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    background: color-mix(in srgb, var(--primary-color) 8%, transparent);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.services-title {
    font-size: 1.625rem;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.25;
    margin: 0 0 0.875rem;
    letter-spacing: -0.02em;
}

.services-title strong {
    font-weight: 800;
    display: block;
    font-size: 1.75rem;
}

.services-desc {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

.services-see-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1.5px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
    border-radius: 8px;
    transition: all 0.25s ease;
    background: var(--white);
}

.services-see-all:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.services-see-all i {
    font-size: 0.625rem;
    transition: transform 0.25s ease;
}

.services-see-all:hover i {
    transform: translateX(3px);
}

.services-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

/* Nav Buttons */
.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-dark);
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    outline: none;
}

.carousel-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--primary-color) 25%, transparent);
    transform: translateY(-1px);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Carousel Track */
.services-track-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    /* padding allows card shadows/borders to bleed through overflow:hidden on all sides */
    padding: 18px 8px 20px;
    margin: -18px -8px -20px;
}

.services-track {
    display: flex;
    gap: 1.125rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Carousel dots — hidden on desktop, shown via mobile media query */
.carousel-dots {
    display: none;
}

/* Service Card — 4 visible */
.service-card {
    flex: 0 0 calc((100% - 3.375rem) / 4);
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    /* box-shadow ring = visible border on all 4 sides, no border property needed */
    box-shadow:
        0 0 0 2px color-mix(in srgb, var(--primary-color) 22%, transparent),
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.07);
    border: none;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 0 0 2px color-mix(in srgb, var(--primary-color) 22%, transparent),
        0 20px 48px -6px rgba(0, 0, 0, 0.14),
        0 8px 20px rgba(0, 0, 0, 0.08);
}

.service-card:hover .service-image img {
    transform: scale(1.07);
}

.service-image {
    position: relative;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(var(--primary-color-rgb), 0.06), rgba(var(--primary-color-rgb), 0.13));
    flex-shrink: 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.2;
    background: linear-gradient(145deg, rgba(var(--primary-color-rgb), 0.06), rgba(var(--primary-color-rgb), 0.13));
}

.service-badge {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    padding: 0.2rem 0.625rem;
    background: color-mix(in srgb, var(--white) 92%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    font-size: 0.5625rem;
    font-weight: 700;
    color: var(--primary-color);
    z-index: 3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.service-badge-featured {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(var(--primary-color-rgb), 0.4);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.services-label-featured {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    box-shadow: 0 2px 10px rgba(var(--primary-color-rgb), 0.3);
}

/* Featured section top border accent */
#featured-services {
    border-top: 3px solid var(--primary-color);
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 4%, transparent) 0%, transparent 60%);
}

/* ===== NEW SERVICES SECTION — centered header + distinct card style ===== */
.services-section-new {
    background: var(--white);
    padding: 0 0 4rem;
    border-top: none;
    position: relative;
}

.services-section-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Centered header */
.new-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.625rem;
    padding: 3rem 1rem 2rem;
}

.new-section-header .services-label {
    margin-bottom: 0;
}

.new-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.03em;
}

.new-section-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    max-width: 400px;
}

.new-section-header .services-see-all {
    margin-top: 0.25rem;
}

/* Card overrides for new section — 5 columns, minimal, clean, no colored ring */
.services-section-new .service-card {
    flex: 0 0 calc((100% - 4.5rem) / 5);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.services-section-new .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.08);
}

.services-section-new .service-card:hover .service-image img {
    transform: scale(1.04);
}

/* Cleaner badge in new section */
.services-section-new .service-badge {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Featured star — top-right corner of card image */
.service-featured-star {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    line-height: 1;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.5);
}

/* Card Body */
.service-body {
    padding: 0.875rem 1rem 0.625rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.service-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    letter-spacing: -0.015em;
    transition: color 0.3s ease;
}

.service-card:hover .service-name {
    color: var(--primary-color);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.125rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.5625rem;
    font-weight: 600;
    padding: 0.175rem 0.5rem;
    border-radius: 20px;
}

.tag i {
    font-size: 0.25rem;
}

.tag-primary {
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
}

/* Card Footer Action */
.service-card-action {
    padding: 0.625rem 0.875rem 0.875rem;
}

/* Action Buttons */
.btn-cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    height: 38px;
    padding: 0 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, color-mix(in srgb, var(--primary-color) 75%, var(--primary-light)) 100%);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-cart-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-cart-price {
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    opacity: 0.95;
}

.btn-cart::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 55%);
    pointer-events: none;
    border-radius: inherit;
}

.btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary-color) 40%, transparent);
    filter: brightness(1.06);
}

.btn-cart:active {
    transform: scale(0.98);
    filter: brightness(0.97);
}

.btn-cart i {
    font-size: 0.8125rem;
    position: relative;
    z-index: 1;
    transition: transform 0.25s ease;
}

.btn-cart:hover i {
    transform: translateX(2px);
}

.btn-cart-contact {
    background: linear-gradient(135deg, var(--text-light) 0%, var(--text-dark) 100%);
}

.btn-cart-contact:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-cart-login {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
}

.btn-cart-login:hover {
    box-shadow: 0 8px 24px rgba(var(--primary-color-rgb), 0.25);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 3rem 2rem 4rem;
    background: var(--white);
}

.cta-card {
    padding: 3rem 3.5rem;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--primary-color) 92%, #000 8%) 0%,
        color-mix(in srgb, var(--primary-color) 80%, #000 20%) 100%
    );
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cta-content {
    color: var(--white);
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 1rem;
    opacity: 0.85;
    max-width: 400px;
}

.cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.btn-cta-primary {
    padding: 0.875rem 1.75rem;
    background: var(--white);
    color: var(--text-dark);
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-cta-secondary {
    padding: 0.875rem 1.75rem;
    background: transparent;
    color: var(--white);
    font-weight: 600;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* ===== FOOTER ===== */
.main-footer {
    background: linear-gradient(180deg, 
        color-mix(in srgb, var(--primary-color) 92%, #000 8%) 0%, 
        color-mix(in srgb, var(--primary-color) 78%, #000 22%) 100%
    );
    color: rgba(255, 255, 255, 0.7);
    padding: 2.25rem 0 0;
}

/* Main row: brand | navigate | legal | contact */
.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brand column */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
}

.footer-logo img {
    max-height: 40px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.footer-tagline {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    max-width: 260px;
}

.footer-socials {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.social-link {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    transform: translateY(-1px);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.footer-heading {
    font-size: 0.6875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.375rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.15rem 0;
    transition: color 0.15s ease;
}

.footer-col a:hover {
    color: var(--white);
}

/* Contact column */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.15rem 0;
    transition: color 0.15s ease;
}

a.footer-contact-item:hover {
    color: var(--white);
}

.footer-contact-item i {
    font-size: 0.75rem;
    opacity: 0.6;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

/* Bottom bar */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.15s ease;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

.footer-dot {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.625rem;
}

/* ===== RESPONSIVE ===== */

/* Large tablet / small laptop: iPad Pro (1024px) range */
@media (max-width: 1199.98px) {
    .services-section {
        padding: 2.5rem 0;
    }

    .services-container {
        padding: 0 1.5rem;
    }

    .services-layout {
        gap: 0.75rem;
    }

    /* Hide info panel entirely on tablet — show label above instead */
    .services-info-panel {
        display: none;
    }

    .services-mobile-label {
        display: block;
    }

    /* New section — compact centered header */
    .services-section-new {
        padding: 0 0 2.5rem;
    }

    .services-section-new .services-container {
        max-width: 100%;
    }

    .new-section-header {
        padding: 2rem 1rem 1rem;
    }

    .new-section-title,
    .new-section-desc,
    .new-section-header .services-see-all {
        display: none !important;
    }

    /* 3 cards visible */
    .service-card {
        flex: 0 0 calc((100% - 2.25rem) / 3);
    }

    /* New section still shows 3 at this breakpoint */
    .services-section-new .service-card {
        flex: 0 0 calc((100% - 2.25rem) / 3);
    }
}

@media (max-width: 991.98px) {
    .header-container {
        padding: 0 1rem;
    }

    /* Hide desktop center nav and right actions */
    .header-nav-center,
    .header-right {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar-collapse {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
        padding: 1.125rem 1rem 1.25rem;
        flex-direction: column;
        gap: 0.875rem;
        z-index: 1000;
    }
    
    .navbar-collapse.show {
        display: flex !important;
        animation: mobileMenuIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    }

    @keyframes mobileMenuIn {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .user-dropdown {
        width: 100%;
    }

    .user-btn {
        width: 100%;
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }

    /* Services */
    .services-container {
        padding: 0 1.25rem;
    }

    .services-section {
        padding: 2rem 0;
    }

    .services-layout {
        gap: 0.75rem;
    }

    .services-info-panel {
        display: none;
    }

    /* New section tablet */
    .new-section-header {
        padding: 1.5rem 1rem 0.75rem;
    }

    .new-section-title,
    .new-section-desc,
    .new-section-header .services-see-all {
        display: none !important;
    }

    /* 2 cards visible on tablets */
    .service-card {
        flex: 0 0 calc((100% - 1.25rem) / 2);
    }

    .services-section-new .service-card {
        flex: 0 0 calc((100% - 1.25rem) / 2);
    }
    
    /* CTA */
    .cta-section {
        padding: 2rem 1.25rem;
    }
    
    .cta-card {
        flex-direction: column;
        padding: 2.5rem 2rem;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.625rem;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        text-align: center;
    }

    /* Footer */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-tagline {
        text-align: center;
        max-width: 100%;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-col,
    .footer-contact {
        text-align: center;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .container {
        padding: 0 1rem;
    }

    /* Services */
    .services-title {
        font-size: 1.25rem;
    }

    .services-container {
        padding: 0 0.75rem;
    }

    .services-track {
        gap: 0.875rem;
    }

    .service-name {
        font-size: 0.8125rem;
    }

    /* Footer */
    .main-footer {
        padding-top: 1.75rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding-bottom: 1.25rem;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-tagline {
        text-align: center;
        max-width: 100%;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-col,
    .footer-contact {
        align-items: center;
    }
}

@media (max-width: 575.98px) {
    .header-content {
        padding: 0.5rem 0;
    }
    
    .logo {
        font-size: 1.125rem;
    }
    
    .logo img {
        height: 30px;
    }

    /* Services */
    .services-section {
        padding: 1.25rem 0 1.5rem;
    }

    .services-container {
        padding: 0 0.75rem;
    }

    .services-layout {
        gap: 0.75rem;
    }

    /* Hide info panel on mobile */
    .services-info-panel {
        display: none;
    }

    /* New section mobile */
    .services-section-new {
        padding: 0 0 1.5rem;
    }

    .new-section-header {
        padding: 1.25rem 0.75rem 0.5rem;
    }

    .new-section-title,
    .new-section-desc,
    .new-section-header .services-see-all {
        display: none !important;
    }

    /* New section cards match featured on mobile — 1 card */
    .services-section-new .service-card {
        flex: 0 0 calc(100% - 20px);
        margin: 0 10px;
        min-width: 0;
        border-radius: inherit;
        border: none;
        box-shadow:
            0 4px 20px rgba(0, 0, 0, 0.10),
            0 1px 4px rgba(0, 0, 0, 0.06);
    }

    .services-section-new .service-card:hover {
        transform: none;
        box-shadow:
            0 8px 28px rgba(0, 0, 0, 0.13),
            0 2px 6px rgba(0, 0, 0, 0.07);
    }

    /* Stack carousel: overflow:hidden here clips adjacent cards */
    .services-right {
        flex-direction: column;
        gap: 0.75rem;
        overflow: hidden;
    }

    .carousel-btn {
        display: none;
    }

    /* No overflow clip here — services-right handles clipping adjacent cards.
       Shadow breathes within the card's 10px horizontal margin space. */
    .services-track-wrap {
        padding: 8px 0 12px;
        margin: 0;
        width: 100%;
        overflow: visible;
    }

    .services-track {
        gap: 0;
    }

    .service-card {
        /* 10px margin on each side = room for shadow; flex-basis shrinks to match */
        flex: 0 0 calc(100% - 20px);
        margin: 0 10px;
        min-width: 0;
        box-shadow:
            0 4px 20px rgba(0, 0, 0, 0.10),
            0 1px 4px rgba(0, 0, 0, 0.06);
    }

    .service-card:hover {
        transform: none;
        box-shadow:
            0 8px 28px rgba(0, 0, 0, 0.13),
            0 2px 6px rgba(0, 0, 0, 0.07);
    }

    /* Mobile carousel dots */
    .carousel-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        padding: 0.375rem 0 0.25rem;
    }

    .carousel-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        border: none;
        background: rgba(0, 0, 0, 0.15);
        cursor: pointer;
        padding: 0;
        transition: all 0.25s ease;
    }

    .carousel-dot.active {
        background: var(--primary-color);
        width: 20px;
        border-radius: 4px;
        transform: none;
    }

    /* Hide tags on mobile */
    .service-tags {
        display: none !important;
    }

    .service-name {
        font-size: 0.8125rem;
    }

    .price-amount {
        font-size: 0.9375rem;
    }

    /* Fix buttons - full width proper display */
    .btn-cart {
        width: 100%;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 1rem;
        font-size: 0.75rem;
    }

    .btn-cart-label,
    .btn-cart-price {
        display: flex;
    }

    /* CTA */
    .cta-section {
        padding: 1.25rem 0.5rem 1.5rem;
    }

    .cta-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .cta-content h2 {
        font-size: 1.375rem;
    }

    .cta-content p {
        font-size: 0.875rem;
    }

    /* Footer */
    .main-footer {
        padding-top: 1.25rem;
    }

    /* Hide Navigate and Legal columns on mobile */
    .footer-col {
        display: none !important;
    }

    /* Single-column layout: brand + contact + bottom */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-bottom: 1rem;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        gap: 0.25rem;
        text-align: center;
        padding: 0.75rem 0 0.875rem;
    }

    /* Notifications */
    .notification {
        min-width: auto;
        max-width: calc(100vw - 32px);
        right: 16px;
        top: 16px;
        padding: 14px;
    }
}

/* ===== TOAST NOTIFICATION ===== */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 16px;
    z-index: 99999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 360px;
    max-width: 420px;
    border-left: 4px solid var(--primary-color);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-left-color: var(--primary-color);
}

.notification-error {
    border-left-color: var(--error-color);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.notification-success .notification-icon {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

.notification-success .notification-icon svg {
    color: var(--primary-color);
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.notification-error .notification-icon {
    background: var(--error-bg);
    color: var(--error-color);
}

.notification-error .notification-icon svg {
    color: var(--error-color);
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* Sparkle effect for success */
.notification-success .notification-icon::before {
    content: '✨';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 20px;
    animation: notificationSparkle 1.5s ease-in-out infinite;
}

@keyframes notificationSparkle {
    0%, 100% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 1;
    }
}

.notification-text {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
    line-height: 1.4;
}

.notification-message {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    word-wrap: break-word;
}

.notification-close {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 4px;
}

.notification-close:hover {
    background: rgba(var(--primary-color-rgb), 0.06);
    color: var(--text-dark);
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-color);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.notification-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    animation: notificationProgress 5s linear forwards;
}

.notification-success .notification-progress-bar {
    background: var(--primary-color);
}

.notification-error .notification-progress-bar {
    background: var(--error-color);
}

@keyframes notificationProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* ===== NOTIFICATION MODAL ===== */
.notification-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.notification-modal.show {
    opacity: 1;
    visibility: visible;
}

.notification-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.notification-modal-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notification-modal.show .notification-modal-container {
    transform: scale(1) translateY(0);
}

.notification-modal-content {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

/* Decorative background circles */
.notification-modal-content::before,
.notification-modal-content::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
}

.notification-modal-content::before {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -50px;
}

.notification-modal-content::after {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: -50px;
}

.notification-modal-success .notification-modal-content::before,
.notification-modal-success .notification-modal-content::after {
    background: var(--primary-color);
}

.notification-modal-error .notification-modal-content::before,
.notification-modal-error .notification-modal-content::after {
    background: var(--error-color);
}

/* Icon */
.notification-modal-icon {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.notification-modal-icon .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.notification-modal-icon .icon-circle.success {
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.15), rgba(var(--primary-color-rgb), 0.05));
    color: var(--primary-color);
}

.notification-modal-icon .icon-circle.error {
    background: linear-gradient(135deg, color-mix(in srgb, var(--error-color) 15%, transparent), color-mix(in srgb, var(--error-color) 5%, transparent));
    color: var(--error-color);
}

.notification-modal-icon .icon-circle svg {
    width: 40px;
    height: 40px;
    stroke-width: 2.5;
}

/* Success animation */
.notification-modal-success .icon-circle.success {
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(var(--primary-color-rgb), 0);
    }
}

/* Error animation */
.notification-modal-error .icon-circle.error {
    animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

/* Checkmark animation for success */
.notification-modal-success .icon-circle.success svg path {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: checkDraw 0.5s ease forwards 0.2s;
}

@keyframes checkDraw {
    to {
        stroke-dashoffset: 0;
    }
}

/* X animation for error */
.notification-modal-error .icon-circle.error svg path {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: xDraw 0.4s ease forwards 0.2s;
}

@keyframes xDraw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Title */
.notification-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.notification-modal-success .notification-modal-title {
    color: var(--primary-color);
}

.notification-modal-error .notification-modal-title {
    color: var(--error-color);
}

/* Message */
.notification-modal-message {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* Button */
.notification-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    min-width: 140px;
}

.notification-modal-btn.success {
    background: var(--gradient-bg);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.35);
}

.notification-modal-btn.success:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(var(--primary-color-rgb), 0.45);
}

.notification-modal-btn.error {
    background: linear-gradient(135deg, var(--error-color), color-mix(in srgb, var(--error-color) 80%, #000));
    color: var(--white);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--error-color) 35%, transparent);
}

.notification-modal-btn.error:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px color-mix(in srgb, var(--error-color) 45%, transparent);
}

/* Confetti effect for success */
.notification-modal-success .notification-modal-content::before {
    animation: confettiFloat 3s ease-in-out infinite;
}

@keyframes confettiFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Responsive */
@media (max-width: 575.98px) {
    .notification-modal {
        padding: 1rem;
    }
    
    .notification-modal-content {
        padding: 2rem 1.5rem 1.5rem;
        border-radius: 20px;
    }
    
    .notification-modal-icon .icon-circle {
        width: 70px;
        height: 70px;
    }
    
    .notification-modal-icon .icon-circle svg {
        width: 35px;
        height: 35px;
    }
    
    .notification-modal-title {
        font-size: 1.25rem;
    }
    
    .notification-modal-message {
        font-size: 0.9375rem;
    }
    
    .notification-modal-btn {
        width: 100%;
        padding: 0.875rem 2rem;
    }
}