:root {
    --bg-color: #0b0f12;
    --card-bg: rgba(27, 36, 41, 0.85);
    --accent-color: #50D2C1;
    --text-primary: #f6fefd;
    --text-secondary: #949e9c;
    --border-color: rgba(255, 255, 255, 0.05);
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    height: 100vh;
    overflow: hidden;
}

.app-container {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    height: 56px;
    background: rgba(15, 26, 31, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 24px;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.logo svg {
    width: 24px;
    height: 24px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-connect {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.nav-right {
    margin-left: auto;
}

.iframe-container {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

/* Overlay - USER CUSTOM MATCH */
.overlay-blur {

    animation: fadeIn 0.1s ease-in;
    z-index: 81;
    position: fixed;
    inset: 0px;
    background: rgba(15, 18, 29, 0);
    backdrop-filter: blur(2px);
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
}

.referral-card {
    width: 520px;
    position: relative;
    background: rgb(15, 26, 31);
    border: 1px solid rgb(39, 48, 53);
    border-radius: 16px;
    max-height: 100%;
    overflow: auto;
    box-sizing: border-box;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: slideUp 0.4s ease-out;
}

.referral-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.referral-card h1 {
    color: rgb(255, 255, 255);
    font-size: 20px;
    font-weight: 400;
    margin: 0;
    line-height: normal;
}

.referral-card p {
    color: rgb(207, 209, 210);
    font-size: 12px;
    margin: 0;
    line-height: normal;
}

.referral-actions {
    width: 100%;
    margin-top: 0px;
}

.btn-primary {
    background: var(--accent-color);
    color: #0b0f12;
    border: none;
    width: 100%;
    height: 40px;
    border-radius: 8px;
    font-weight: 400;
    font-size: 12px;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: var(--font-family);
}

.btn-primary:hover {
    color: rgb(4, 6, 12);
    background-color: rgb(151, 252, 228);
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 12px;
    }

    .nav-links {
        display: none;
    }

    .overlay-blur {
        top: 0;
        align-items: flex-end;
        padding: 0;
        backdrop-filter: none;
    }

    .referral-card {
        position: fixed !important;
        box-sizing: border-box !important;
        padding: 0px !important;
        height: auto !important;
        background: rgb(15, 26, 31) !important;
        overflow-x: hidden !important;
        border: 0px !important;
        border-radius: 0px !important;
        left: 0px !important;
        right: 0px !important;
        bottom: 0px !important;
        width: 100% !important;
        display: flex;
        flex-direction: column;
        gap: 0;
        text-align: left;
    }

    .referral-card-content {
        padding: 24px 24px 8px 24px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .referral-actions {
        padding: 8px 24px 32px 24px;
        /* Action block padding */
    }

    .referral-card h1 {
        font-size: 20px !important;
        font-weight: 400 !important;
        line-height: normal;
        margin-bottom: 0;
    }

    .referral-card p {
        font-size: 12px !important;
        color: rgb(207, 209, 210) !important;
        margin-top: 4px;
    }

    .btn-primary {
        height: 40px !important;
        font-size: 12px !important;
        font-weight: 400 !important;
        border-radius: 8px !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}