* { box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; }

.invite-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    position: relative;
    overflow: hidden;
    padding: 1rem;
}
[data-theme="dark"] .invite-section { background: #090d1a; }

/* Card centrale */
.invite-card {
    background: white;
    border: 1.5px solid var(--sky-border);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(37,47,82,0.1);
    position: relative;
    z-index: 1;
}
[data-theme="dark"] .invite-card {
    background: #161b2e;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* Icone Discord animée */
.invite-icon-wrap {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, #5865f2, #7289da);
    border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    font-size: 2.2rem;
    color: white;
    box-shadow: 0 8px 24px rgba(88,101,242,0.4);
    animation: iconPulse 2s ease-in-out infinite;
}
@keyframes iconPulse {
    0%,100% { transform: scale(1); box-shadow: 0 8px 24px rgba(88,101,242,0.4); }
    50%      { transform: scale(1.05); box-shadow: 0 12px 32px rgba(88,101,242,0.6); }
}

.invite-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--sky-text);
    line-height: 1.2;
    margin-bottom: 12px;
}
.invite-sub {
    font-size: 0.9rem;
    color: var(--sky-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Countdown ring */
.countdown-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 28px;
}
.countdown-ring {
    position: relative;
    width: 72px; height: 72px;
    flex-shrink: 0;
}
.countdown-ring svg {
    transform: rotate(-90deg);
    width: 72px; height: 72px;
}
.countdown-ring circle {
    fill: none;
    stroke-width: 5;
}
.ring-bg   { stroke: var(--sky-border); }
.ring-fill {
    stroke: #5865f2;
    stroke-dasharray: 201;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}
.countdown-number {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--sky-text);
}
.countdown-text {
    text-align: left;
}
.countdown-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sky-text);
    margin-bottom: 3px;
}
.countdown-text span {
    font-size: 0.78rem;
    color: var(--sky-muted);
}

/* Barre de progression */
.invite-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--sky-border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 28px;
}
.invite-progress-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #5865f2, #7289da);
    border-radius: 10px;
    transform-origin: left;
    animation: progressShrink 10s linear forwards;
}
@keyframes progressShrink {
    from { width: 100%; }
    to   { width: 0%; }
}

/* Bouton */
.invite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: #5865f2;
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    border: none;
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
    box-shadow: 0 4px 16px rgba(88,101,242,0.35);
    margin-bottom: 16px;
}
.invite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(88,101,242,0.5);
    filter: brightness(1.1);
    color: white;
}

.invite-manual {
    font-size: 0.78rem;
    color: var(--sky-muted);
}
.invite-manual a {
    color: #5865f2;
    font-weight: 600;
    text-decoration: none;
}
.invite-manual a:hover { text-decoration: underline; }

/* Features strip */
.invite-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--sky-border);
    flex-wrap: wrap;
}
.invite-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sky-muted);
}
.invite-feature i { color: #5865f2; font-size: 0.7rem; }

/* AD */
.gb-ad { padding: 30px 0 10px; background: var(--sky-off); }
[data-theme="dark"] .gb-ad { background: #0d1117; }

@media (max-width: 576px) {
    .invite-card { padding: 36px 24px; }
    .invite-title { font-size: 1.3rem; }
}