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

/* Loading spinner for buttons */
.btn-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: btn-spin 0.75s linear infinite;
    vertical-align: middle;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

.btn-loading-hide {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

:root {
    --primary: #0066FF;
    --primary-hover: #0052CC;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --border: #e5e5e7;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
    line-height: 1.6;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}

a, a:hover, a:visited, a:active {
    color: var(--primary);
    text-decoration: none;
}

.logo {
    text-decoration: none !important;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary) !important;
}

img.logo,
.logo img {
    max-width: 90px;
    height: auto;
}

.button {
    text-decoration: none !important;
    background: var(--primary);
    color: #fff !important;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    font-family: 'Inter', sans-serif;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.button:disabled,
.button.disabled {
    cursor: not-allowed;
    pointer-events: none;
    background: var(--primary);
    color: #fff !important;
    opacity: 0.5;
}

.danger {
    background: #ff3b30 !important;
}

.button:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.ad-element {
    margin: 16px auto;
    max-width: 728px;
    width: 100%;
    text-align: center;
}

.link-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-primary);
    padding: 40px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin: 24px 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.link-container h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0;
    text-align: center;
}

article {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin: 24px 0;
}

article h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

article hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

article p {
    color: var(--text-secondary);
    line-height: 1.7;
}

footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 20px;
    text-align: center;
    margin-top: auto;
    font-size: 13px;
    color: var(--text-secondary);
}

.steps-container {
    background: var(--bg-primary);
    padding: 40px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.earning-steps {
    margin: 32px 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.step {
    padding: 28px 24px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-secondary);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.step img {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.step h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.step p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.countdown {
    text-align: center;
    margin: 24px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.countdown .timer {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.countdown span:last-child {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.actions {
    text-align: center;
    margin: 24px 0;
}

.actions p {
    margin: 0 0 12px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    transition: var(--transition);
}

.form-link:hover {
    color: var(--primary-hover);
}

.procced {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.link-button {
    min-width: 200px;
}

.flex {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

#captchaShortlink {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#link-view {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
    header {
        padding: 12px 16px;
        gap: 12px;
    }

    .logo {
        font-size: 17px;
    }

    img.logo,
    .logo img {
        max-width: 70px;
    }

    .button {
        font-size: 13px;
        padding: 8px 16px;
    }

    .container {
        padding: 0 16px;
    }

    .link-container {
        padding: 24px 20px;
        margin: 16px 0;
    }

    .link-container h4 {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .steps {
        gap: 16px;
    }

    .step {
        padding: 20px 16px;
    }

    .step img {
        width: 60px;
        height: 60px;
    }

    .steps-container {
        padding: 28px 20px;
    }

    article {
        padding: 24px 20px;
    }

    article h1 {
        font-size: 22px;
    }

    .countdown .timer {
        font-size: 36px;
    }
}
