/* --- Global Styles & Variables --- */
:root {
    --primary-color: #12afe2; /* Light Blue */
    --secondary-color: #0f40a7; /* Dark Blue */
    --text-dark: #1d2d35;
    --text-light: #5a6a72;
    --bg-light: #f7fafd;
    --white: #ffffff;
    --border-color: #e8eef2;
    --skeleton-color: #e8eef2;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.3;
}

h1 {
    font-size: 3.8rem;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 1.5rem auto 2.5rem;
}

.highlight {
    color: var(--primary-color);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(18, 175, 226, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(18, 175, 226, 0.4);
    }

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

    .btn-secondary:hover {
        background-color: #0c3383;
    }

.btn-secondary-light {
    background-color: var(--white);
    color: var(--secondary-color);
}

    .btn-secondary-light:hover {
        background-color: #f0f0f0;
        transform: translateY(-2px);
    }


/* --- Animations --- */
.anim-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.anim-delay-1 {
    animation-delay: 0.2s;
}

.anim-delay-2 {
    animation-delay: 0.4s;
}

.anim-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

    .anim-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .anim-scroll.anim-delay-1 {
        transition-delay: 0.2s;
    }

    .anim-scroll.anim-delay-2 {
        transition-delay: 0.4s;
    }


@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Navbar --- */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .navbar .logo img {
        height: 80px;
        display: block;
    }

    .navbar nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 35px;
    }

    .navbar nav a {
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .navbar nav a:not(.btn):hover {
            color: var(--primary-color);
        }

        .navbar nav a.btn-secondary {
            color: white;
        }

/* --- Hero Section --- */
.hero {
    background: var(--bg-light);
    padding: 120px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

/* --- Payouts Showcase --- */
.payouts-showcase {
    padding: 100px 0;
}

    .payouts-showcase .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 60px;
    }

    .payouts-showcase .showcase-content {
        flex: 1;
    }

    .payouts-showcase .showcase-visual {
        flex: 1;
    }

    .payouts-showcase h2 {
        text-align: left;
    }

    .payouts-showcase p {
        max-width: 450px;
    }

    .payouts-showcase ul {
        list-style: none;
        padding: 0;
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .payouts-showcase li {
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 500;
        font-size: 1.1rem;
    }

        .payouts-showcase li i {
            color: var(--primary-color);
        }

/* Phone Mockup */
.phone-mockup {
    background: #111;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 50px -10px rgba(15, 64, 167, 0.2);
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.phone-screen {
    background: #f0f0f0;
    border-radius: 30px;
    padding: 20px;
    height: 600px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.notification {
    background: var(--white);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(20px);
}

    .notification .icon {
        width: 48px;
        height: 48px;
    }

    .notification .text-content {
        flex-grow: 1;
    }

    .notification strong {
        font-size: 1rem;
        font-weight: 600;
        color: #111;
    }

    .notification p {
        font-size: 0.9rem;
        margin: 2px 0;
        line-height: 1.4;
    }

    .notification span {
        font-size: 0.8rem;
        color: #999;
    }

/* --- Steps Section --- */
.steps-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 4rem;
    text-align: center;
}

.step {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 6rem;
    font-weight: 800;
    color: var(--border-color);
    z-index: 1;
}

.step-icon, .step h3, .step p {
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(15, 64, 167, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem auto;
}

    .step-icon i {
        color: var(--secondary-color);
        width: 30px;
        height: 30px;
    }

/* --- For Brands Section --- */
.for-brands {
    padding: 100px 0;
    background-color: var(--secondary-color);
    background-image: radial-gradient(circle at top left, rgba(18, 175, 226, 0.2), transparent 40%);
}

    .for-brands .brand-content {
        max-width: 600px;
        margin: 0 auto;
        text-align: center;
    }

    .for-brands h2 {
        color: var(--white);
    }

    .for-brands p {
        color: rgba(255,255,255,0.8);
        margin-bottom: 2.5rem;
    }

/* --- Footer --- */
.footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    font-size: 0.9rem;
}

    .footer .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .footer p {
        margin: 0;
        color: var(--text-light);
    }

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

    .footer-links a:hover {
        color: var(--primary-color);
    }

/* --- Offers Page Styles --- */
.page-header {
    background: var(--bg-light);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

    .page-header h1 {
        font-size: 3.2rem;
    }

.offers-grid-section {
    padding: 80px 0;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.offer-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .offer-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px -10px rgba(15, 64, 167, 0.15);
    }

.card-header {
    position: relative;
    height: 180px;
}

.campaign-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-logo {
    position: absolute;
    bottom: -15px;
    left: 25px;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    border: 3px solid var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-body {
    padding: 40px 25px 25px 25px;
    flex-grow: 1;
}

.niche-tag {
    display: inline-block;
    background-color: rgba(18, 175, 226, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.campaign-title {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .detail-item i {
        width: 18px;
        height: 18px;
    }

.platforms {
    display: flex;
    gap: 15px;
    color: var(--text-light);
    margin-top: 15px;
}

    .platforms i {
        width: 20px;
    }

    .platforms svg {
        width: 20px;
        height: 20px;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.card-footer {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    margin: 0 25px;
}

.payout-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.payout-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.blurred-payout {
    font-size: 1.6rem;
    font-weight: 700;
    filter: blur(6px);
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
}

    .blurred-payout i {
        width: 18px;
        filter: blur(0) !important;
        opacity: 0.5;
    }

.card-fade-in {
    animation: cardFadeIn 0.5s ease forwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Skeleton Loading Styles --- */
.skeleton-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.skeleton-header {
    height: 180px;
    background-color: var(--skeleton-color);
    position: relative;
}

.skeleton-logo {
    position: absolute;
    bottom: -15px;
    left: 25px;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: #ccc;
    border: 3px solid var(--white);
}

.skeleton-body {
    padding: 40px 25px 25px 25px;
}

.skeleton-text {
    height: 20px;
    background-color: var(--skeleton-color);
    border-radius: 4px;
    margin-bottom: 12px;
}

    .skeleton-text.short {
        width: 60%;
    }

.shimmer-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: shimmer 2s infinite;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* --- Login/Register Page Styles --- */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-light);
    padding: 40px 20px;
    box-sizing: border-box;
}

.auth-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(15, 64, 167, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.auth-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.auth-form-wrapper h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.auth-subtitle {
    margin-top: 0;
    margin-bottom: 30px;
    color: var(--text-light);
}

.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.role-option {
    padding: 15px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    background-color: transparent;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

    .role-option:hover {
        background-color: var(--bg-light);
    }

    .role-option.active {
        border-color: var(--primary-color);
        background-color: rgba(18, 175, 226, 0.1);
        color: var(--primary-color);
    }

#g_id_onload {
    margin-bottom: 20px;
}

.g_id_signin {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #ccc;
    margin-bottom: 20px;
}

    .divider::before, .divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid var(--border-color);
    }

    .divider span {
        padding: 0 15px;
        font-size: 0.9rem;
        font-weight: 500;
    }

.auth-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .form-group input {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 1rem;
        box-sizing: border-box;
        transition: border-color 0.3s ease;
    }

        .form-group input:focus {
            outline: none;
            border-color: var(--primary-color);
        }

.form-message {
    text-align: center;
    margin-bottom: 15px;
    font-weight: 500;
}

    .form-message.error {
        color: #e74c3c;
    }

    .form-message.success {
        color: #2ecc71;
    }

.btn-full {
    width: 100%;
    padding-top: 15px;
    padding-bottom: 15px;
}

.auth-footer-link {
    margin-top: 30px;
    font-size: 0.95rem;
}

    .auth-footer-link a {
        color: var(--primary-color);
        font-weight: 600;
        text-decoration: none;
    }

/* REVISED: Final Fixes for Register & Contact Pages */
.auth-logo img.large-logo {
    height: 90px;
    margin-bottom: 10px;
}

#brand-form {
    text-align: center;
}

.brand-intro-text {
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1.05rem;
    color: var(--text-dark);
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.contact-subtitle-text {
    margin-bottom: 35px;
    font-size: 1.05rem;
    color: var(--text-dark);
    max-width: none; /* Allow full width */
}

.contact-methods {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

    .contact-methods .btn {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: 100%;
        max-width: 320px;
    }

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1, .page-header h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .payouts-showcase .container {
        flex-direction: column;
        text-align: center;
    }

    .payouts-showcase h2, .payouts-showcase p {
        text-align: center;
        max-width: 100%;
    }

    .payouts-showcase ul {
        align-items: center;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .stats-section .container {
        flex-direction: column;
        gap: 30px;
    }

    .stat-divider {
        width: 100px;
        height: 2px;
    }
}

@media (max-width: 480px) {
    .brand-intro-text, .contact-subtitle-text {
        font-size: 1rem;
        max-width: 100%;
    }
}

/* --- Custom Google Button Style --- */

.btn-google {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 20px auto;
    padding: 0 15px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #747775;
    background-color: var(--white);
    color: #1f1f1f;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .btn-google:hover {
        background-color: #f7f7f7;
    }

.google-icon {
    width: 18px;
    height: 18px;
}

/* --- REVISED: Ban Pop-up Styles --- */

.ban-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(29, 45, 53, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

    .ban-overlay.visible {
        opacity: 1;
        pointer-events: auto;
    }

.ban-modal {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.ban-overlay.visible .ban-modal {
    transform: scale(1);
}

.ban-icon {
    width: 60px;
    height: 60px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.ban-modal h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-dark); /* Changed from red to be less alarming */
}

.ban-modal p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- Google Button Alignment Fix --- */
#google-button-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px; /* Restores proper spacing */
}

/* --- Dashboard Layout Styles --- */

.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-light);
}

.sidebar {
    width: 260px;
    background-color: var(--white);
    border-right: 1px solid var(--border-color);
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-logo img {
    height: 45px;
    margin-bottom: 40px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    transition: all 0.3s ease;
}

    .nav-item:hover {
        background-color: var(--bg-light);
        color: var(--text-dark);
    }

    .nav-item.active {
        background-color: rgba(18, 175, 226, 0.1);
        color: var(--primary-color);
    }

.main-content {
    flex-grow: 1;
    padding: 40px;
}

.main-header h1 {
    margin-top: 0;
}

/* --- Sidebar Logo Text Style --- */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* --- Dashboard Sidebar Fixes --- */

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 40px; /* Reset margin from main logo style if needed */
}

    .sidebar-logo img {
        height: 45px; /* Adjust this value to your preferred logo size */
    }

    .sidebar-logo span {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--secondary-color);
        line-height: 1; /* Ensures perfect vertical alignment */
    }

.nav-item span {
    font-weight: 600;
}

.sidebar-footer {
    margin-top: auto; /* Pushes the logout button to the bottom */
    padding-top: 20px; /* Adds space above the logout button */
    border-top: 1px solid var(--border-color); /* Adds a separator line */
}

/* Password And Confirm Password Toggle */
.password-field {
    position: relative;
}

    .password-field input {
        width: 100%;
        padding-right: 42px;
    }

.toggle-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 6px;
    cursor: pointer;
}

    .toggle-eye i {
        width: 20px;
        height: 20px;
        color: var(--text-light);
    }

.input-error {
    border-color: #e74c3c !important;
}