/* Sweden Community – Public Styles */

.sweden-subscription-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero */
.sweden-hero {
    text-align: center;
    margin-bottom: 40px;
}
.sweden-hero h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #1a1a2e;
}
.sweden-hero p { color: #666; font-size: 1.1rem; }

/* Plan Grid */
.sweden-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Plan Card */
.sweden-plan-card {
    position: relative;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.sweden-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
}
.sweden-plan-featured {
    border-color: #0077b6;
    background: linear-gradient(135deg, #f0f8ff 0%, #fff 100%);
}

/* Badge */
.sweden-plan-badge {
    display: inline-block;
    background: #e5e7eb;
    color: #555;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.sweden-plan-badge.premium { background: #0077b6; color: #fff; }

.sweden-plan-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; color: #1a1a2e; }

.sweden-plan-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0077b6;
    margin-bottom: 20px;
    line-height: 1;
}
.sweden-currency { font-size: 1.4rem; vertical-align: super; }
.sweden-period { font-size: 1rem; color: #888; font-weight: 400; }

.sweden-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: left;
}
.sweden-plan-features li { padding: 6px 0; font-size: 14px; color: #444; }

/* Buttons */
.sweden-join-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s, transform .1s;
}
.sweden-join-btn:active { transform: scale(.98); }
.button-foundation  { background: #1a1a2e; color: #fff; }
.button-foundation:hover  { background: #2d2d50; }
.button-accelerator { background: #0077b6; color: #fff; }
.button-accelerator:hover { background: #005f8e; }

/* Modal */
.sweden-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9998;
}
.sweden-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 24px 64px rgba(0,0,0,.2);
}
.sweden-modal-close {
    position: absolute; top: 16px; right: 20px;
    background: none; border: none;
    font-size: 24px; cursor: pointer; color: #888;
}
.sweden-modal h3 { margin-bottom: 4px; font-size: 1.4rem; color: #1a1a2e; }
#sweden-modal-subtitle { color: #0077b6; font-weight: 600; margin-bottom: 24px; font-size: 13px; }

/* Form */
.sweden-form-group { margin-bottom: 16px; }
.sweden-form-group label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: #333; }
.sweden-form-group input {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px; font-size: 14px;
    box-sizing: border-box;
    transition: border-color .15s;
}
.sweden-form-group input:focus { outline: none; border-color: #0077b6; }
.sweden-form-group small { display: block; margin-top: 4px; font-size: 12px; color: #888; }

.sweden-notice.error {
    background: #fef2f2; border: 1px solid #fca5a5;
    color: #dc2626; padding: 10px 14px;
    border-radius: 8px; font-size: 13px; margin-bottom: 14px;
}

.sweden-btn-primary {
    width: 100%; padding: 13px;
    background: #0077b6; color: #fff;
    border: none; border-radius: 10px;
    font-size: 15px; font-weight: 700; cursor: pointer;
}
.sweden-btn-primary:hover { background: #005f8e; }
.sweden-btn-primary:disabled { opacity: .6; cursor: not-allowed; }

/* Success */
.sweden-success-icon { font-size: 48px; text-align: center; margin-bottom: 12px; }
#sweden-success-section h4 { text-align: center; font-size: 1.3rem; margin-bottom: 10px; }
#sweden-success-section p { text-align: center; color: #555; }

.sweden-invite-box { text-align: center; margin: 16px 0; }
.sweden-invite-btn {
    display: inline-block;
    background: #0077b6; color: #fff;
    padding: 12px 24px; border-radius: 10px;
    font-weight: 700; text-decoration: none;
    font-size: 14px;
}
.sweden-invite-note { font-size: 12px; color: #e67e22; margin-top: 10px; }

@media (max-width: 600px) {
    .sweden-modal { padding: 24px 18px; }
    .sweden-plan-price { font-size: 2.2rem; }
}

/* Spinner */
.sweden-spinner {
    width: 40px; height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #0077b6;
    border-radius: 50%;
    animation: sweden-spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes sweden-spin { to { transform: rotate(360deg); } }

/* Success/Error Pages */
.sweden-success-page,
.sweden-error-page {
    text-align: center;
    max-width: 500px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.sweden-success-icon,
.sweden-error-icon { font-size: 56px; margin-bottom: 16px; }
.sweden-success-page h2,
.sweden-error-page h2 { font-size: 1.6rem; margin-bottom: 10px; color: #1a1a2e; }
.sweden-success-page p,
.sweden-error-page p { color: #555; }
