@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #080c14;
    --card-bg: #111625;
    --card-border: #1a2236;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #06b6d4;
    
    --success: #10b981;
    --warning: #fbbf24;
    --danger: #ef4444;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
    padding-top: 70px; /* Space for sticky navbar */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 5rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.logo-badge {
    background: var(--primary);
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 800;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: #fff;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    color: #fff;
}

header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.75rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-count {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Search and Filters wrapper */
.search-filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.search-box-container {
    position: relative;
    width: 100%;
}

.search-box {
    width: 100%;
    background: #0b0f19;
    border: 1px solid var(--card-border);
    color: #fff;
    padding: 0.9rem 1.25rem 0.9rem 2.8rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.search-box:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.25);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.categories {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none; /* Firefox */
}

.categories::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}

.cat-pill {
    background: #111625;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 0.45rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.cat-pill:hover {
    color: #fff;
    border-color: var(--text-secondary);
}

.cat-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Referrals Grid and Cards Layout */
.referrals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: #26314d;
}

/* Card Header Banner */
.brand-banner {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 1.25rem;
}

.brand-banner-content {
    z-index: 2;
}

.brand-icon {
    font-size: 1.85rem;
    margin-bottom: 0.15rem;
}

.brand-banner h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.brand-banner p {
    font-size: 0.82rem;
    opacity: 0.85;
    color: #fff;
    margin-top: 0.15rem;
}

/* Card Body */
.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    flex: 1;
}

/* Collapsible Details Panel */
.card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px dashed var(--card-border);
    padding-top: 0;
    margin-top: 0;
}

.card-details.expanded {
    max-height: 500px;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.btn-toggle-details {
    background: transparent;
    border: none;
    color: var(--secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.4rem 0;
    transition: var(--transition);
    margin-top: 0.25rem;
    font-family: inherit;
    outline: none;
}

.btn-toggle-details:hover {
    color: #fff;
}

.info-section h4 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.info-section p {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.4;
}

/* Reward breakdown boxes */
.reward-box {
    background: #0b0f19;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reward-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.reward-icon {
    font-size: 1.15rem;
    line-height: 1;
    margin-top: 0.15rem;
}

.reward-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.reward-value {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Promo Code Box */
.code-box {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.code-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.code-input-container {
    display: flex;
    gap: 0.5rem;
}

.code-input {
    flex: 1;
    background: #080c14;
    border: 1px solid var(--card-border);
    color: #fff;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 0.85rem;
    outline: none;
    text-align: center;
}

.btn-copy-code {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 1rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy-code:hover {
    background: var(--primary-hover);
}

/* Card Actions */
.card-footer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-action-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #fff;
    color: #080c14;
    text-decoration: none;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
}

.btn-action-primary:hover {
    background: #e2e8f0;
}

.btn-action-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    padding: 0.7rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-action-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Outlook Tracker styles */
.outlook-card-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.outlook-table-wrapper {
    overflow-x: auto;
}

.outlook-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.outlook-table th {
    padding: 0.9rem;
    border-bottom: 2px solid var(--card-border);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.outlook-table td {
    padding: 1rem 0.9rem;
    border-bottom: 1px solid var(--card-border);
    font-size: 0.95rem;
}

.outlook-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
}

.status-badge.top-choice {
    background: rgba(251, 191, 36, 0.1);
    color: var(--warning);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.status-badge.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.neutral {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.status-badge.limited-experience {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.status-badge.not-familiar {
    background: rgba(71, 85, 105, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(71, 85, 105, 0.25);
}

.status-badge.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Request Form */
.request-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 550px;
    margin: 0 auto;
}

.request-card h2 {
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.request-card p {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    background: #080c14;
    border: 1px solid var(--card-border);
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
}

/* Toast Message */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #18181b;
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--success);
    color: #fff;
    padding: 0.9rem 1.35rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 4.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: #fff;
}

/* Responsive (Mobile first approach) */
@media (max-width: 640px) {
    header h1 {
        font-size: 2rem;
    }
    .referrals-grid {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 1.5rem 1rem 3.5rem;
    }
    .brand-banner {
        height: 120px;
    }
}
