* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
}

.app-container {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.app-container::-webkit-scrollbar {
    display: none;
}

body {
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

body::before,
body::after {
    content: '';
    position: fixed;
    width: 900px;
    height: 900px;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.35;
    filter: blur(150px);
    animation: float 20s infinite alternate ease-in-out;
}

body::before {
    top: -300px;
    left: -200px;
    background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%);
}

body::after {
    bottom: -300px;
    right: -200px;
    background: radial-gradient(circle, #a855f7 0%, rgba(168, 85, 247, 0) 70%);
    animation-delay: -7s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(100px, 50px) scale(1.1);
    }
    100% {
        transform: translate(-50px, 100px) scale(0.9);
    }
}

header {
    position: sticky;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
    letter-spacing: -1px;
}

.logo img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.btn-login {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white !important;
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 600 !important;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
}

.btn-login:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.5);
}

.user-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
}

.user-link:hover {
    color: #fff !important;
}

.oauth-section {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 8% 100px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    width: 100%;
}

.section-header h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.title-underline {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    margin: 0 auto;
    border-radius: 3px;
}

.content-card {
    max-width: 900px;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 48px 56px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.content-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
}

.description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 40px;
    text-align: left;
}

.highlight-text {
    color: #fff;
    font-weight: 500;
}

.business-link {
    color: #a855f7;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 1px dashed rgba(168, 85, 247, 0.5);
}

.business-link:hover {
    color: #c084fc;
    border-bottom-color: #c084fc;
}

.steps-container {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 40px;
}

.steps-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    background: linear-gradient(90deg, #a855f7, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    padding: 20px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.step-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.step-content p {
    color: #999;
    font-size: 0.95rem;
    line-height: 1.5;
}

.menu-toggle {
    display: none;
}

.side-menu {
    display: none;
}

.menu-overlay {
    display: none;
}

.product-card {
    margin-top: 40px;
}

.product-note {
    color: #a855f7;
    font-weight: 500;
    margin-bottom: 32px;
    padding: 12px 16px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 12px;
    border-left: 3px solid #a855f7;
}

.step-block {
    margin-bottom: 48px;
}

.api-section {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 8% 100px;
    position: relative;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
    background: linear-gradient(90deg, #fff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-block p {
    color: #bbb;
    margin-bottom: 20px;
    line-height: 1.6;
}

.image-container {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
}

.step-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.step-image:hover {
    transform: scale(1.02);
}

.code-section {
    margin: 24px 0;
    background: #0a0a0f;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 500;
    color: #a855f7;
}

.copy-btn {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a855f7;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.6);
    transform: translateY(-1px);
}

.code-block {
    margin: 0;
    padding: 20px;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #c084fc;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.js-scroll-track {
    position: fixed;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    background: rgba(30, 30, 45, 0.35);
    backdrop-filter: blur(8px);
    z-index: 9999;
    pointer-events: none;
    border-radius: 12px;
}

.js-scroll-thumb {
    position: fixed;
    right: 0;
    width: 8px;
    background: linear-gradient(180deg, rgba(140, 140, 210, 0.85), rgba(100, 100, 200, 0.95));
    border-radius: 12px;
    cursor: pointer;
    z-index: 10000;
    transition: background 0.2s, width 0.1s;
    pointer-events: auto;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.js-scroll-thumb:hover {
    background: linear-gradient(180deg, rgba(170, 170, 240, 0.95), rgba(130, 130, 220, 1));
    width: 10px;
    right: -1px;
}

@media (max-width: 768px) {
    header {
        padding: 0 5%;
        height: 70px;
    }

    .logo {
        font-size: 20px;
        gap: 10px;
    }

    .logo img {
        height: 30px;
    }

    .nav-right {
        display: none;
    }

    .menu-toggle {
        display: flex;
        width: 40px;
        height: 40px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        z-index: 1002;
    }

    .menu-toggle span {
        width: 24px;
        height: 2px;
        background-color: #fff;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .side-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 1001;
        transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        padding: 100px 25px 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .side-menu.active {
        right: 0;
    }

    .menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .menu-btn-container {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 30px;
    }

    .menu-login-btn {
        background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
        color: white;
        padding: 14px 30px;
        border-radius: 40px;
        font-weight: 700;
        font-size: 18px;
        text-decoration: none;
        display: inline-block;
        box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
        transition: all 0.2s ease;
        width: 100%;
        text-align: center;
    }

    .menu-user-name {
        color: white;
        font-weight: 700;
        font-size: 20px;
        padding: 14px 0;
        text-align: center;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 40px;
        width: 100%;
        border: 1px solid rgba(255, 255, 255, 0.1);
        text-decoration: none;
    }

    .menu-divider {
        width: 80%;
        height: 1px;
        background: rgba(255, 255, 255, 0.15);
        margin: 25px 0;
    }

    .menu-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        width: 100%;
    }

    .menu-link {
        text-decoration: none;
        color: rgba(255, 255, 255, 0.8);
        font-weight: 500;
        font-size: 18px;
        transition: all 0.3s ease;
        padding: 10px 0;
        width: 100%;
        text-align: center;
        border-radius: 30px;
    }

    .menu-link:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.05);
    }

    .oauth-section {
        padding: 40px 5% 80px;
    }

    .content-card {
        padding: 32px 24px;
    }

    .description {
        font-size: 1rem;
        text-align: left;
    }

    .step-item {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .steps-title {
        font-size: 1.3rem;
    }

    .step-title {
        font-size: 1.1rem;
    }
    
    .code-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .copy-btn {
        width: 100%;
        max-width: 150px;
    }
    
    .code-block {
        font-size: 0.75rem;
        padding: 16px;
    }
    
    .step-block {
        margin-bottom: 32px;
    }
}