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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f6f8;
    min-height: 100vh;
}

.container {
    display: flex;
    height: 100vh;
}

/* ===== LEFT SIDE - WHEEL ===== */
.wheel-section {
    flex: 0 0 52%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: white;
    position: relative;
}

#svg-wrapper {
    width: 92%;
    height: 92%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#svg-wrapper svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* Make text non-clickable but allow clicks on backgrounds */
#svg-wrapper text {
    pointer-events: none;
}

#svg-wrapper g[id*="-background"] {
    pointer-events: auto;
    cursor: pointer;
}

/* Cursor glow effect on wheel */
.cursor-glow {
    position: fixed;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 50;
    opacity: 0;
    transition: opacity 0.15s;
}

/* Selection marker on wheel */
.selection-marker {
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border: 3px solid #333;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.8), 0 2px 8px rgba(0,0,0,0.3);
    pointer-events: none;
    z-index: 60;
    transition: all 0.3s ease;
    display: none;
}

.selection-marker.visible {
    display: block;
}

.selection-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
}

/* SVG Interaction Styles - Subtle hover */
#svg-wrapper g[id*="-1-"],
#svg-wrapper g[id*="-2-"],
#svg-wrapper g[id*="-3-"],
#svg-wrapper g[id*="-4-"] {
    cursor: pointer;
    transition: filter 0.15s ease, opacity 0.15s ease;
}

/* Hover effect - subtle brightness */
#svg-wrapper g[id*="-1-"]:hover,
#svg-wrapper g[id*="-2-"]:hover,
#svg-wrapper g[id*="-3-"]:hover,
#svg-wrapper g[id*="-4-"]:hover,
#svg-wrapper g[id*="-background"]:hover {
    filter: brightness(1.08);
}

/* Active/Selected state */
#svg-wrapper g.active {
    filter: brightness(1.1) drop-shadow(0 0 6px rgba(0, 0, 0, 0.2));
}

/* ===== RIGHT SIDE - INFO PANEL ===== */
.info-section {
    flex: 0 0 48%;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Panel header */
.panel-header {
    padding: 14px 20px;
    background: white;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h1 {
    font-size: 1.15rem;
    color: #333;
    font-weight: 600;
}

.language-selector {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
    background: white;
    cursor: pointer;
}

/* ===== EMOTION HEADER - COLORED BOX ===== */
.emotion-header {
    margin: 16px;
    padding: 18px 20px;
    border-radius: 12px;
    color: white;
    animation: fadeIn 0.3s ease;
}

/* Category-specific header colors */
.emotion-header.joy {
    background: linear-gradient(135deg, #ffcb09 0%, #f5bc00 100%);
    box-shadow: 0 4px 12px rgba(255, 203, 9, 0.35);
}
.emotion-header.trust {
    background: linear-gradient(135deg, #89c24f 0%, #7ab343 100%);
    box-shadow: 0 4px 12px rgba(137, 194, 79, 0.35);
}
.emotion-header.fear {
    background: linear-gradient(135deg, #03a54c 0%, #029a45 100%);
    box-shadow: 0 4px 12px rgba(3, 165, 76, 0.35);
}
.emotion-header.surprise {
    background: linear-gradient(135deg, #2782c5 0%, #2276b5 100%);
    box-shadow: 0 4px 12px rgba(39, 130, 197, 0.35);
}
.emotion-header.sadness {
    background: linear-gradient(135deg, #34689d 0%, #2d5a8a 100%);
    box-shadow: 0 4px 12px rgba(52, 104, 157, 0.35);
}
.emotion-header.disgust {
    background: linear-gradient(135deg, #8774b3 0%, #7a67a6 100%);
    box-shadow: 0 4px 12px rgba(135, 116, 179, 0.35);
}
.emotion-header.anger {
    background: linear-gradient(135deg, #f05d5f 0%, #e54d4f 100%);
    box-shadow: 0 4px 12px rgba(240, 93, 95, 0.35);
}
.emotion-header.anticipation {
    background: linear-gradient(135deg, #f2913b 0%, #e88530 100%);
    box-shadow: 0 4px 12px rgba(242, 145, 59, 0.35);
}

.emotion-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.85;
    margin-bottom: 4px;
}

.emotion-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.emotion-name {
    font-size: 1.9rem;
    font-weight: 700;
}

.main-emoji {
    font-size: 1.8rem;
}

/* ===== TOOLBAR ===== */
.toolbar {
    display: flex;
    padding: 0 16px;
    background: white;
    border-bottom: 1px solid #e8e8e8;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    border: none;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.toolbar-btn:hover {
    color: #333;
    background: #f8f8f8;
}

.toolbar-btn.active {
    color: #03a54c;
    border-bottom-color: #03a54c;
    background: white;
}

.toolbar-btn .icon {
    font-size: 1rem;
}

/* ===== CONTENT AREA ===== */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.25s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Welcome message */
.welcome-message {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.welcome-message p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.welcome-message ul {
    color: #555;
    margin-left: 20px;
    line-height: 1.8;
}

.welcome-message ul li {
    margin-bottom: 8px;
}

/* Random Feeling Button */
.random-feeling-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.random-feeling-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.45);
}

.random-feeling-btn:active {
    transform: translateY(0);
}

/* ===== SECTION BLOCKS ===== */
.section-block {
    background: white;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 8px;
}

.section-text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #444;
}

/* Essentials Tab */
.definition-block {
    border-left: 3px solid #03a54c;
    padding-left: 14px;
}

.purpose-block {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 3px solid #16a34a;
}

.purpose-block .section-label {
    color: #16a34a;
}

/* About/Book promo card - styled like definition block */
.about-card {
    position: relative;
    background: white;
    border-radius: 10px;
    padding: 16px 18px;
    padding-right: 36px;
    margin-top: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border-left: 3px solid #03a54c;
}

.about-card.hidden {
    display: none;
}

.about-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 8px;
}

.about-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #444;
    margin: 0 0 10px 0;
}

.about-card p:last-of-type {
    margin-bottom: 0;
}

.about-card a {
    color: #03a54c;
    text-decoration: none;
    font-weight: 500;
}

.about-card a:hover {
    text-decoration: underline;
}

.about-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(3, 165, 76, 0.1);
    border-radius: 50%;
    font-size: 1.1rem;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.about-close-btn:hover {
    background: rgba(3, 165, 76, 0.2);
    color: #333;
}

.about-reopen-btn {
    display: none;
    margin-top: 12px;
    padding: 8px 14px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #166534;
    cursor: pointer;
    transition: all 0.2s;
}

.about-reopen-btn.visible {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.about-reopen-btn:hover {
    background: #dcfce7;
}

/* ===== ALGEBRA TAB ===== */
.algebra-note {
    padding: 14px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #444;
    border-left: 3px solid #667eea;
}

.algebra-note strong {
    color: #667eea;
}

.related-feelings-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.15s;
    cursor: pointer;
}

.related-item:hover {
    background: #e8f5e9;
    transform: translateX(4px);
}

.related-emojis {
    font-size: 1.15rem;
    min-width: 55px;
}

.related-name {
    flex: 1;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.copy-btn {
    padding: 5px 12px;
    background: #e8e8e8;
    border: none;
    border-radius: 5px;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.15s;
    color: #555;
}

.copy-btn:hover {
    background: #03a54c;
    color: white;
}

.explore-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.explore-card,
.explore-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s;
}

.explore-card:hover,
.explore-chip:hover {
    background: #667eea;
    color: white;
}

.explore-emoji,
.explore-chip .chip-emoji {
    font-size: 0.95rem;
}

.explore-name {
    font-weight: 500;
}

/* Feeling chips in Algebra tab */
.feeling-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 6px;
    margin-bottom: 6px;
}

/* Opposite card structure */
.opposite-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #b91c1c;
    margin-bottom: 8px;
}

.opposite-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.opposite-name {
    font-weight: 600;
    color: #991b1b;
    font-size: 0.95rem;
}

/* No content message */
.no-content {
    color: #888;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

.opposite-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fef3f2 0%, #fee2e2 100%);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
    border: 1px solid #fecaca;
}

.opposite-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.opposite-emoji {
    font-size: 1.4rem;
}

.opposite-info .name {
    font-weight: 600;
    color: #991b1b;
    font-size: 0.95rem;
}

.opposite-info .category {
    font-size: 0.72rem;
    color: #b91c1c;
    opacity: 0.8;
}

/* ===== WISDOM TAB ===== */
.wisdom-question {
    padding: 16px;
    background: #f8f9ff;
    border-radius: 8px;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.55;
    color: #333;
    border-left: 3px solid #667eea;
}

.wisdom-risk {
    padding: 14px;
    background: #fffbeb;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #92400e;
    border-left: 3px solid #f59e0b;
}

.wisdom-tip {
    padding: 14px;
    background: #f0fdf4;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #166534;
    border-left: 3px solid #22c55e;
}

/* ===== EXAMPLES TAB ===== */
.quote-card {
    padding: 14px 16px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #667eea;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.quote-text {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

.quote-attribution {
    font-size: 0.8rem;
    color: #666;
    margin-top: 6px;
}

.story-card {
    padding: 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 10px;
    margin-top: 14px;
}

.story-card .story-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #92400e;
    margin-bottom: 8px;
}

.story-card p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #78350f;
}

/* ===== EMOJIS TAB ===== */
.emoji-grid-equal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.emoji-card,
.emoji-card-equal {
    background: white;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.15s;
    border: 2px solid #e8e8e8;
}

.emoji-card:hover,
.emoji-card-equal:hover {
    border-color: #03a54c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.emoji-display,
.emoji-card-equal .emojis {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.emoji-label,
.emoji-card-equal .name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

.copy-emoji-btn,
.emoji-copy-btn {
    padding: 8px 16px;
    background: #03a54c;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-emoji-btn:hover,
.emoji-copy-btn:hover {
    background: #028a3d;
    transform: translateY(-1px);
}

/* ===== FOOTER ===== */
.panel-footer {
    padding: 12px 20px;
    background: white;
    border-top: 1px solid #e8e8e8;
    text-align: center;
}

.panel-footer .copyright {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 4px;
}

.panel-footer .copyright a {
    color: #667eea;
    text-decoration: none;
}

.panel-footer .copyright a:hover {
    text-decoration: underline;
}

.panel-footer .version {
    font-size: 0.7rem;
    color: #aaa;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.toast.show,
.toast.visible {
    transform: translateX(-50%) translateY(0);
}

/* ===== IFRAME EMBED OPTIMIZATION ===== */
/* Detect if we're in an iframe and adjust layout */
@media (min-width: 1201px) {
    /* When in iframe, ensure wheel is properly centered and sized */
    .wheel-section {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #svg-wrapper {
        width: 90%;
        height: 90%;
        max-height: calc(100vh - 48px);
    }

    #svg-wrapper svg {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    .wheel-section {
        flex: 0 0 auto;
        width: 100%;
        min-height: 60vh;
        padding: 20px;
    }

    .info-section {
        flex: 0 0 auto;
        width: 100%;
        min-height: 400px;
    }

    #svg-wrapper {
        width: 95%;
        height: auto;
    }

    #svg-wrapper svg {
        max-width: 90vw;
        max-height: 55vh;
    }
}

@media (max-width: 768px) {
    .panel-header h1 {
        font-size: 1rem;
    }

    .toolbar-btn {
        padding: 10px 8px;
        font-size: 0.75rem;
    }

    .toolbar-btn .icon {
        font-size: 0.9rem;
    }

    .emotion-name {
        font-size: 1.5rem;
    }

    .emoji-grid-equal {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .emoji-card-equal {
        padding: 14px 10px;
    }

    .emoji-card-equal .emojis {
        font-size: 1.8rem;
    }
}

/* ===== SUBSCRIBER GATING ===== */

/* Gated tab button styling */
.toolbar-btn.gated {
    position: relative;
    opacity: 0.7;
}

.toolbar-btn .lock-icon {
    font-size: 0.7rem;
    margin-left: 4px;
}

.toolbar-btn.gated:hover {
    opacity: 1;
}

/* ===== SUBSCRIBE MODAL ===== */
.subscribe-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.subscribe-modal.visible {
    opacity: 1;
    visibility: visible;
}

.subscribe-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.subscribe-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.subscribe-modal.visible .subscribe-modal-content {
    transform: translateY(0);
}

.subscribe-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 1.4rem;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.subscribe-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.subscribe-modal-header {
    text-align: center;
    margin-bottom: 16px;
}

.subscribe-modal-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 8px;
}

.subscribe-modal-header h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.subscribe-modal-description {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Subscribe Form */
.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.subscribe-form .form-group {
    display: flex;
    flex-direction: column;
}

.subscribe-form input,
.subscribe-form select {
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
}

.subscribe-form input:focus,
.subscribe-form select:focus {
    outline: none;
    border-color: #03a54c;
    box-shadow: 0 0 0 3px rgba(3, 165, 76, 0.1);
}

.subscribe-form input::placeholder {
    color: #aaa;
}

.subscribe-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.subscribe-submit-btn {
    padding: 16px 24px;
    background: linear-gradient(135deg, #03a54c 0%, #028a3d 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(3, 165, 76, 0.3);
    margin-top: 8px;
}

.subscribe-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(3, 165, 76, 0.4);
}

.subscribe-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.subscribe-privacy {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    margin-top: 16px;
    margin-bottom: 0;
}

.subscribe-privacy a {
    color: #03a54c;
    text-decoration: none;
}

.subscribe-privacy a:hover {
    text-decoration: underline;
}

.subscribe-gdpr {
    text-align: center;
    font-size: 0.7rem;
    color: #999;
    margin-top: 10px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Welcome back modal */
.welcome-content {
    text-align: center;
}

.welcome-content .subscribe-modal-description {
    margin-bottom: 20px;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

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

/* Mobile responsive for modal */
@media (max-width: 480px) {
    .subscribe-modal-content {
        padding: 24px 20px;
        margin: 16px;
    }

    .subscribe-modal-header h2 {
        font-size: 1.3rem;
    }

    .subscribe-form input,
    .subscribe-form select {
        padding: 12px 14px;
    }

    .subscribe-submit-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
}
