/* CSS Reset and Variables */
:root {
    --font-primary: 'Inter', sans-serif;

    --color-1: #5963e7;
    --color-2: #a5d7f5;
    --color-3: #a18ce4;
    --color-4: #5963e7;

    --color-bg: #FFFFFF;
    --color-text-main: #222222;
    --color-text-secondary: #717171;
    /* --color-accent: #E6007E; */
    --color-accent: #000000;
    --color-accent-hover: #5760ec;
    --color-border: #EEEEEE;
    --color-hover-bg: #F7F7F7;

    --container-width: 1600px;
    --header-height: 80px;
    --grid-gap: 24px;

    --radius-sm: 8px;
    --radius-md: 20px;
    --radius-pill: 10px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-dropdown: 0 10px 40px rgba(0, 0, 0, 0.1);
}

@font-face {
    font-family: hamdy;
    src: url(./fonts/hamdy4.ttf);
}

@font-face {
    font-family: hamdy2;
    src: url(./fonts/hamdy2.otf);
}

/* Site Loader / Intro */
.site-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.6s ease;
}

.site-loader.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.loader-text {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 32px;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: #5963e7;
}

.loader-text .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: letterIn 0.5s cubic-bezier(0.2, 0.6, 0.3, 1.1) forwards;
}

.loader-text .space {
    width: 12px;
}

.loader-text .highlight {
    color: var(--color-accent);
    font-weight: 900;
    font-size: 42px;
    /* Making COLLAB larger like Bytesed's SED */
}

@keyframes letterIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered delays for letters */
.loader-text .letter:nth-child(1) {
    animation-delay: 0.1s;
}

.loader-text .letter:nth-child(2) {
    animation-delay: 0.15s;
}

.loader-text .letter:nth-child(3) {
    animation-delay: 0.2s;
}

.loader-text .letter:nth-child(4) {
    animation-delay: 0.25s;
}

.loader-text .letter:nth-child(5) {
    animation-delay: 0.3s;
}

.loader-text .letter:nth-child(6) {
    animation-delay: 0.35s;
}

.loader-text .letter:nth-child(7) {
    animation-delay: 0.4s;
}

.loader-text .letter:nth-child(8) {
    animation-delay: 0.45s;
}

.loader-text .letter:nth-child(9) {
    animation-delay: 0.5s;
}

.loader-text .letter:nth-child(10) {
    animation-delay: 0.55s;
}

.loader-text .letter:nth-child(11) {
    animation-delay: 0.6s;
}

.loader-text .letter:nth-child(12) {
    animation-delay: 0.65s;
}

* {

    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
#main-header {
    height: var(--header-height);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 80px;
    /* نفس ارتفاع اللوجو القديم */
    width: auto;
    display: block;
}

.logo-img {
    transition: 0.3s;
}

.logo:hover .logo-img {
    opacity: 0.8;
}

.desktop-nav {
    display: flex;
    gap: 32px;
}

/* .nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-main);
}

.nav-link:hover {
    color: var(--color-accent);
} */

.nav-link {
    position: relative;
    text-decoration: none;
    color: #333;
    padding: 8px 12px;
    border-radius: 8px;
    transition: 0.3s;
}

.nav-link:hover {
    background: rgb(0, 0, 0);
    color: #ffffff;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #000000;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 24px;
}

.btn {
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    transform: skewX(-25deg);
    transition: all 0.75s ease;
    z-index: 1;
}

.btn-primary:hover {
    /* background-color: var(--color-3);
    color: rgb(0, 0, 0); */
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover::before {
    left: 130%;
}

.btn-primary span {
    position: relative;
    z-index: 2;
}

/* Filter Section */
.filters-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
    background: #fff;
    z-index: 100;
    position: relative;
}

.search-bar-wrapper {
    margin: 0 auto 24px auto;
    max-width: 600px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--color-text-secondary);
}

.search-input-group input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 15px;
    border: 1px solid #E0E0E0;
    border-radius: var(--radius-pill);
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

.search-input-group input:focus {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

/* New Dropdown Filters Layout */
.filter-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.clear-filters-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.2s;
    text-decoration: underline;
}

.clear-filters-btn:hover {
    color: #000;
}

.dropdown-group {
    position: relative;
}

.dropdown-btn {
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-main);
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.dropdown-btn:hover,
.dropdown-group.active .dropdown-btn {
    border-color: #000;
    background: var(--color-hover-bg);
}

.dropdown-btn .chevron {
    font-size: 10px;
    transition: transform 0.2s;
}

.dropdown-group.active .dropdown-btn .chevron {
    transform: rotate(180deg);
}

/* Dropdown Menus */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-dropdown);
    border: 1px solid var(--color-border);
    padding: 16px;
    min-width: 260px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    /* Above grid */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dropdown-group.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-heading {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

/* Form Elements inside Dropdown */
.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #444;
    user-select: none;
}

.filter-option:hover {
    color: #000;
}

/* Custom Checkbox */
.filter-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.filter-option input:checked+.checkmark {
    background-color: #000;
    border-color: #000;
}

.checkmark::after {
    content: "";
    display: none;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.filter-option input:checked+.checkmark::after {
    display: block;
}

/* Custom Radio */
.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #444;
}

.radio-option input[type="radio"] {
    display: none;
}

.custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-option input:checked+.custom-radio {
    border-color: var(--color-accent);
}

.custom-radio::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent);
    transform: scale(0);
    transition: 0.2s;
}

.radio-option input:checked+.custom-radio::after {
    transform: scale(1);
}

/* Followers Logic List Layout */
.followers-grid {
    min-width: 250px;
}

.radio-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Grid Section */
.grid-section {
    padding: 40px 0 80px;
    background: #FAFAFA;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
}

.influencer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--grid-gap);
}

/* Card Component */
.card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    /* group: hover; */
}

.card-image-wrapper {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #eee;
    margin-bottom: 12px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-overlay-top {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.badge {
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-platform {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
}

.card-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 12px 12px;
    /* background-color: rgb(255 255 255 / 60%); */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    color: white;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.vendor-overlay {
    /* background: rgba(0, 0, 0, 0.3) !important; */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* padding: 12px 16px !important; */
    /* background-color: rgb(255 255 255 / 60%); */
    -webkit-backdrop-filter: blur(5px);
    /* backdrop-filter: blur(5px); */
    margin: 6px;
    width: -webkit-fill-available;
    padding: 10px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
}

.platform-badges-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.influencer-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.card-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.influencer-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-main);
}

.influencer-category {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.influencer-location {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-main);
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    .desktop-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .filters-section {
        padding: 16px 0;
    }

    .search-bar-wrapper {
        max-width: 100%;
    }

    .filter-controls {
        overflow-x: auto;
        padding-bottom: 8px;
        flex-wrap: nowrap;
    }

    .hide-mobile {
        display: none;
    }
}

/* Next Page Section */
.next-page-container {
    display: flex;
    justify-content: center;
    margin-top: 48px;
    width: 100%;
}

.btn-next {
    background: #000;
    color: #fff;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-next::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    transform: skewX(-25deg);
    transition: all 0.75s ease;
    z-index: 1;
}

.btn-next:hover {
    background: #222;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}



.btn-next:hover::before {
    left: 130%;
}

.btn-icon {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
}

.btn-next:hover .btn-icon {
    transform: translateX(5px);
}

/* Ensure text is above sweep */
.btn-next span {
    position: relative;
    z-index: 2;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: #fff;
    width: 100%;
    max-width: 680px;
    border-radius: 32px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-title {
    font-size: 28px;
    font-weight: 600;
    color: #000;
    margin-bottom: 24px;
    line-height: 1.2;
}

.modal-graphic-wrapper {
    width: 100%;
    height: 220px;
    /* background: linear-gradient(135deg, #FF7DB4 0%, #A445B2 50%, #D41872 100%);*/
    background: linear-gradient(135deg, #6d707b 0%, #f5f5f5 50%, #000000 100%);
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
}

.magnifier-circle {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-emoji {
    font-size: 100px;
    line-height: 1;
}

.modal-description {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: start;
}

.modal-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}


.modal-btn {
    flex: 1;
    max-width: 240px;
    padding: 16px 24px;
    background: #000;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    transform: skewX(-25deg);
    transition: all 0.75s ease;
    z-index: 1;
}

.modal-btn:hover {
    background: #222;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-btn:hover::before {
    left: 130%;
}

.modal-btn span {
    position: relative;
    z-index: 2;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #999;
    cursor: pointer;
    font-size: 24px;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #000;
}

/* Responsive Modal */
@media (max-width: 600px) {
    .modal-card {
        padding: 32px 24px;
    }

    .modal-actions {
        flex-direction: column;
        align-items: center;
    }

    .modal-btn {
        max-width: 100%;
        width: 100%;
    }
}

/* Footer Section */
footer {
    background-color: var(--color-accent);
    color: #ffffff;
    padding: 80px 0 20px;
    font-size: 14px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #fff;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo-text {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
}

.footer-tagline {
    color: var(--color-bg);
    line-height: 1.6;
    max-width: 250px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

/* .footer-links a {
    color: var(--color-bg);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.footer-links a::before {
    content: "›";
    font-size: 18px;
    color: var(--color-bg);
}

.footer-links a:hover {
    color: #fff;
} */

.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1.5px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links a {
    position: relative;
    display: inline-block;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(3px);
}


.newsletter-text {
    color: var(--color-bg);
    margin-bottom: 24px;
    line-height: 1.6;
}

.newsletter-form {
    position: relative;
    max-width: 300px;
}

.newsletter-form input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    outline: none;
    font-family: inherit;
}

.newsletter-form input::placeholder {
    color: var(--color-bg);
}

.newsletter-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.footer-social {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover.instagram {
    color: #E4405F;
}

.footer-social a:hover.facebook {
    color: #1877F2;
}

.footer-social a:hover.tiktok {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.footer-social a:hover.twitter {
    color: #1DA1F2;
}

.footer-social a:hover.whatsapp {
    color: #25D366;
}

.footer-social a:hover {
    transform: translateY(-2px);
}

.payment-icons {
    display: flex;
    gap: 12px;
}

.payment-icon {
    width: 42px;
    height: 28px;
    background: #fff;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: 800;
    color: #000;
    text-transform: uppercase;
}

.payment-icon img {
    max-width: 100%;
    /* max-height: 100%; */
    object-fit: contain;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    color: white;
    border: 2px solid rgb(255, 255, 255);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #5a5c5e;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.scroll-top-btn:active {
    transform: scale(0.95);
}

@media (max-width: 600px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* 404 Error Section */
.error-404-section {
    padding: 50px 0;
    text-align: center;
    background: #fff;
    min-height: calc(100vh - var(--header-height) - 400px);
    /* Adjust based on footer height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.error-image-wrapper {
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
}

.error-image {
    width: 100%;
    height: auto;
    display: block;
    animation: floatIllustration 2s ease-in-out infinite;
}

.error-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-text-main);
    margin: 0;
}

.error-message {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.error-actions {
    margin-top: 20px;
}

.error-actions .btn-next {
    padding: 14px 32px;
}

@media (max-width: 768px) {
    .error-404-section {
        padding: 60px 20px;
    }

    .error-title {
        font-size: 32px;
    }

    .error-message {
        font-size: 16px;
    }
}

/* Contact Page Styles */
.contact-page-wrapper {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.contact-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar Info Blocks */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-block {
    background: #fff;
    padding: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: left;
    /* Ensure text is left-aligned */
}

.info-block:hover {
    transform: translateX(10px);
}

.info-icon-wrapper {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.info-icon-wrapper.mail {
    background: #5963e7;
}

.info-icon-wrapper.location {
    background: #5963e7;
}

.info-icon-wrapper.phone {
    background: #5963e7;
}

.info-text h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-text-main);
}

.info-text p {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 0;
    line-height: 1.4;
}

/* Contact Form Section (Main) */
.contact-card {
    background: #fff;
    width: 100%;
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.contact-card h3 {
    font-size: 26px;
    font-weight: 800;
    text-align: left;
    margin-bottom: 30px;
    color: var(--color-text-main);
}

.actual-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-main);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    background: #fafafa;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-actions {
    display: flex;
    justify-content: flex-start;
    /* justify-content: center; */
    margin-top: 10px;
}

@media (max-width: 1100px) {
    .contact-container {
        grid-template-columns: 300px 1fr;
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .info-block {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .contact-page-wrapper {
        padding: 40px 0;
    }

    .contact-sidebar {
        flex-direction: column;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* FAQ Page Styles */
.faq-page-section {
    padding: 50px 0;
    background-color: #fff;
    min-height: calc(100vh - 400px);
}

.faq-main-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}


.faq-illustration-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.faq-main-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.05));
    animation: floatIllustration 2s ease-in-out infinite;
}

@keyframes floatIllustration {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.faq-header {
    text-align: left;
    margin-bottom: 40px;
}

.faq-header h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--color-text-main);
}

.faq-header p {
    font-size: 18px;
    color: var(--color-text-secondary);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


.faq-item {
    width: 100%;
}

.faq-question {
    width: 100%;
    padding: 24px 35px;
    background-color: #EDF2F9;
    border: none;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.faq-question span {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    padding-right: 20px;
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #000;
}

.faq-item.active .faq-question {
    background-color: #F9EED4;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.answer-content {
    padding: 20px 40px 10px 45px;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    background: #fff;
}

@media (max-width: 1024px) {
    .faq-main-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .faq-header {
        text-align: center;
    }

    .faq-illustration-column {
        order: -1;
        /* Image on top for mobile */
    }

    .faq-main-img {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .faq-page-section {
        padding: 60px 0;
    }

    .faq-header h1 {
        font-size: 32px;
    }

    .faq-question {
        padding: 18px 25px;
        border-radius: 40px;
    }

    .faq-question span {
        font-size: 16px;
    }

    .answer-content {
        padding: 15px 25px;
    }
}

/* Pricing Page Styles */
.pricing-page-section {
    padding: 50px 0;
    background-color: #f8f9fa;
    min-height: calc(100vh - 400px);
}

.pricing-header {
    text-align: center;
    margin-bottom: 50px;
}

.pricing-header h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.pricing-header p {
    font-size: 18px;
    color: var(--color-text-secondary);
}

/* Pricing Toggle */
.pricing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.toggle-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: color 0.3s;
}

.toggle-label.active {
    color: var(--color-text-main);
}

.discount-badge {
    background: #e2e8f0;
    color: #5963e7;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 99px;
    margin-left: 5px;
    font-weight: 700;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked+.slider {
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
    border: 2px solid #6366f1;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #6366f1;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 12px;
}

.card-header {
    margin-bottom: 30px;
}

.plan-icon {
    width: 60px;
    height: 60px;
    background: #f8fafc;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.plan-name {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--color-text-main);
}

.plan-desc {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.card-price {
    margin-bottom: 30px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.card-price .currency {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-main);
}

.card-price .amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-text-main);
}

.card-price .period {
    font-size: 16px;
    color: var(--color-text-secondary);
}

.amount.hidden {
    display: none;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    flex-grow: 1;
}

.plan-features li {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-features li::before {
    content: "";
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%236366f1" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat center;
    background-size: contain;
}

.plan-features li.accent::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ec4899" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat center;
    background-size: contain;
}

.plan-features li span {
    font-weight: 700;
    color: var(--color-text-main);
}

.btn-pricing {
    display: block;
    width: 100%;
    padding: 16px;
    background: #f1f5f9;
    color: #475569;
    text-align: center;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-pricing:hover {
    background: #e2e8f0;
}

.btn-pricing.featured {
    background: #6366f1;
    color: #fff;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2);
}

.btn-pricing.featured:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(99, 102, 241, 0.3);
}

@media (max-width: 991px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-header h1 {
        font-size: 36px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 30px;
    }
}



/* Login Page Styles */
.login-page-wrapper {
    background: #f8fafc;
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
    padding: 50px 0;
}

.login-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Slightly more balanced to allow larger illustration */
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    max-width: 1100px;
    margin: 0 auto;
}

/* Left Form Area */
.login-form-area {
    padding: 60px;
    display: flex;
    flex-direction: column;
}

.login-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.login-tab-btn {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    /* Thicker border */
    background: #f8fafc;
    /* Not pure white */
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-secondary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.login-tab-btn:hover:not(.active) {
    background: #fff;
    border-color: #cbd5e1;
}

.login-tab-btn.active {
    background: var(--color-primary) !important;
    color: var(--color-1) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.login-header {
    margin-bottom: 35px;
}

.back-link {
    margin-bottom: 25px;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: transform 0.3s;
}

.back-link a:hover {
    transform: translateX(-5px);
}

.login-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 10px;
}

.login-header p {
    color: var(--color-text-secondary);
}

.login-form .input-group {
    margin-bottom: 25px;
}

.login-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 8px;
}

.login-form .required {
    color: #ef4444;
}

.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"],
.login-form input[type="tel"],
.login-form input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.forgot-password {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-1);
    /* Red as requested */
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
}

.login-divider {
    text-align: center;
    position: relative;
    margin: 30px 0;
}

.login-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.login-divider span {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 0 15px;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
}

.google-login-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    transition: background 0.3s;
}

.google-login-btn:hover {
    background: #f8fafc;
}

.google-icon {
    width: 20px;
    height: 20px;
}

.login-footer-text {
    text-align: center;
    margin-top: 30px;
    font-size: 15px;
    color: var(--color-text-secondary);
}

.login-footer-text a {
    color: var(--color-1);
    font-weight: 700;
    text-decoration: none;
}

/* Right Visual Area */
.login-visual-area {
    background: #f1f5f9;
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.login-illustration-wrapper {
    width: 100%;
    max-width: 500px;
    /* Increased from 400px */
    margin-bottom: 40px;
}

.login-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    animation: floatIllustration 2s ease-in-out infinite;
}

.login-visual-text h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 15px;
}

.login-visual-text p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Checkbox Styling */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text-secondary);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 100%;
    /* Ensure full height clickability */
    width: 100%;
    left: 0;
    top: 0;
    z-index: 5;
}

.checkbox-container .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--color-primary);
    border-color: var(--color-accent);
}

.checkbox-container .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    /* Adjusted */
    top: 2px;
    width: 5px;
    /* Slightly larger */
    height: 10px;
    /* Slightly taller */
    border: solid #000000;
    /* Explicit color */
    border-width: 0 3px 3px 0;
    /* Thicker checkmark */
    transform: rotate(45deg);
}

@media (max-width: 900px) {
    .login-card {
        grid-template-columns: 1fr;
    }

    .login-visual-area {
        display: none;
    }

    .login-form-area {
        padding: 40px 30px;
    }
}

/* Registration Form Specific Styles */
.registration-card {
    max-width: 1200px;
    /* Wider for more fields */
}

.registration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 10px;
    margin-bottom: 25px;
}

.registration-grid .full-width {
    grid-column: span 2;
}

.registration-form .input-group input {
    width: 100%;
    padding: 15px 20px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    color: #374151;
    background: #fff;
    transition: all 0.3s;
}

.registration-form .input-group input::placeholder {
    color: #9ca3af;
}

.registration-form .input-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.registration-form .input-group label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    color: #374151;
}

.registration-agreements {
    margin-top: 10px;
    margin-bottom: 25px;
}

.registration-agreements a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.registration-agreements a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .registration-grid {
        grid-template-columns: 1fr;
    }

    .registration-grid .full-width {
        grid-column: span 1;
    }
}

/* Legal Page Styles (Terms of Service / Privacy Policy) */
.legal-page-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    /* Light grey background like StarryHire */
    min-height: calc(100vh - var(--header-height));
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.legal-card {
    background: #ffffff;
    width: 100%;
    max-width: 1000px;
    padding: 60px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin: 0 auto;
}

.legal-card h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--color-1);
    text-align: left;
    font-family: hamdy;
}

.legal-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 32px 0 16px 0;
    color: var(--color-1);
    font-family: hamdy;
}

.legal-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.legal-card ul {
    margin-bottom: 24px;
    padding-left: 20px;
}

.legal-card li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
    list-style-type: disc;
}

.legal-card strong {
    color: var(--color-text-main);
    font-weight: 600;
}

@media (max-width: 768px) {
    .legal-page-section {
        padding: 40px 15px;
    }

    .legal-card {
        padding: 30px 20px;
    }

    .legal-card h1 {
        font-size: 26px;
    }

    .legal-card h2 {
        font-size: 18px;
    }
}