/* ============================================
   ARCE — Advanced Relationship Compatibility Engine
   Frontend Stylesheet — "Modern Love" Theme
   Mobile-first, romantic, premium UI
   ============================================ */

/* ---- Design Tokens ---- */
:root {
    /* Romantic palette */
    --arce-rose:        #ff5c8a;
    --arce-rose-deep:   #e23e6d;
    --arce-coral:       #ff7eb3;
    --arce-blush:       #ffd6e7;
    --arce-plum:        #6d2c63;
    --arce-violet:      #a44cf6;
    --arce-lav:         #f4e9ff;

    /* Semantic */
    --arce-primary:     #2a1430;          /* deep plum ink for headings */
    --arce-accent:      #ff4d80;          /* main love accent */
    --arce-accent-2:    #ff8fb1;          /* lighter accent */
    --arce-accent-3:    #b15cff;          /* violet accent for gradients */

    --arce-grad:        linear-gradient(135deg, #ff5c8a 0%, #ff7eb3 45%, #b15cff 100%);
    --arce-grad-soft:   linear-gradient(135deg, #fff0f5 0%, #fce7ff 100%);
    --arce-grad-warm:   linear-gradient(135deg, #ff6b9d 0%, #ff9a6b 100%);

    --arce-bg:          #fff5f8;
    --arce-bg-2:        #fdeef6;
    --arce-card-bg:     #ffffff;
    --arce-card-glass:  rgba(255, 255, 255, 0.72);

    --arce-text:        #3a2540;
    --arce-text-light:  #6b5570;
    --arce-text-muted:  #9c8aa3;
    --arce-border:      #f4d9e6;
    --arce-border-2:    #ffe3ee;

    --arce-shadow:      0 2px 8px rgba(226, 62, 109, 0.08);
    --arce-shadow-md:   0 10px 30px -8px rgba(226, 62, 109, 0.22);
    --arce-shadow-lg:   0 24px 60px -16px rgba(177, 92, 255, 0.30);
    --arce-glow:        0 0 0 4px rgba(255, 77, 128, 0.14);

    --arce-radius:      22px;
    --arce-radius-sm:   14px;
    --arce-radius-xs:   10px;

    --arce-transition:  0.32s cubic-bezier(0.22, 1, 0.36, 1);
    --arce-font-heading:'Playfair Display', Georgia, serif;
    --arce-font-body:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Dark "Midnight Romance" theme ---- */
.arce-container[data-theme="dark"] {
    --arce-primary:    #ffe3ef;
    --arce-accent:     #ff6f9c;
    --arce-accent-2:   #ff9bbd;
    --arce-accent-3:   #c98bff;
    --arce-grad:       linear-gradient(135deg, #ff6f9c 0%, #c98bff 100%);
    --arce-grad-soft:  linear-gradient(135deg, #2a1430 0%, #1d1030 100%);
    --arce-bg:         #160b1f;
    --arce-bg-2:       #1d1030;
    --arce-card-bg:    #241333;
    --arce-card-glass: rgba(36, 19, 51, 0.72);
    --arce-text:       #f6e9f3;
    --arce-text-light: #c8a9c9;
    --arce-text-muted: #9579a0;
    --arce-border:     #3a2347;
    --arce-border-2:   #3a2347;
    --arce-shadow:     0 2px 8px rgba(0, 0, 0, 0.35);
    --arce-shadow-md:  0 10px 30px -8px rgba(0, 0, 0, 0.5);
    --arce-shadow-lg:  0 24px 60px -16px rgba(0, 0, 0, 0.6);
}

/* ---- Minimal "Soft Blush" theme ---- */
.arce-container[data-theme="minimal"] {
    --arce-primary:    #2b1a2f;
    --arce-accent:     #ff5c8a;
    --arce-accent-2:   #ffa9c4;
    --arce-accent-3:   #ff5c8a;
    --arce-grad:       linear-gradient(135deg, #ff5c8a 0%, #ff9a6b 100%);
    --arce-grad-soft:  linear-gradient(135deg, #ffffff 0%, #fff5f8 100%);
    --arce-bg:         #ffffff;
    --arce-bg-2:       #fff7fa;
    --arce-card-bg:    #ffffff;
    --arce-card-glass: rgba(255, 255, 255, 0.85);
    --arce-border:     #f1dde7;
}

/* ============================================
   Base Container + animated heart backdrop
   ============================================ */
.arce-container {
    position: relative;
    font-family: var(--arce-font-body);
    color: var(--arce-text);
    background: radial-gradient(120% 120% at 50% 0%, var(--arce-bg-2) 0%, var(--arce-bg) 55%);
    max-width: 100%;
    margin: 0 auto;
    padding: clamp(16px, 4vw, 48px);
    box-sizing: border-box;
    line-height: 1.6;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.arce-container *,
.arce-container *::before,
.arce-container *::after {
    box-sizing: border-box;
}

/* Floating hearts in the background */
.arce-container::before,
.arce-container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(2px);
    opacity: 0.5;
}
.arce-container::before {
    width: 260px; height: 260px;
    top: -90px; right: -70px;
    background: radial-gradient(circle, rgba(255, 126, 179, 0.45), transparent 70%);
    animation: arce-float 9s ease-in-out infinite;
}
.arce-container::after {
    width: 220px; height: 220px;
    bottom: -80px; left: -60px;
    background: radial-gradient(circle, rgba(177, 92, 255, 0.35), transparent 70%);
    animation: arce-float 11s ease-in-out infinite reverse;
}

@keyframes arce-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-24px) scale(1.08); }
}

.arce-container > * { position: relative; z-index: 1; }

.arce-embed-body {
    margin: 0;
    padding: 0;
    background: var(--arce-bg);
}

/* ============================================
   Form Card (glassmorphism)
   ============================================ */
.arce-form-wrapper {
    position: relative;
    background: var(--arce-card-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--arce-radius);
    box-shadow: var(--arce-shadow-md);
    padding: clamp(22px, 5vw, 48px);
    max-width: 760px;
    margin: 0 auto;
    border: 1px solid var(--arce-border-2);
    overflow: hidden;
}

.arce-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--arce-grad);
}

.arce-header {
    text-align: center;
    margin-bottom: clamp(22px, 4vw, 38px);
}

/* Decorative heart badge above title */
.arce-header::before {
    content: '♥';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    font-size: 24px;
    color: #fff;
    background: var(--arce-grad);
    border-radius: 50%;
    box-shadow: 0 8px 22px -6px rgba(255, 77, 128, 0.6);
    animation: arce-heartbeat 1.8s ease-in-out infinite;
}

@keyframes arce-heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.18); }
    28% { transform: scale(1); }
    42% { transform: scale(1.12); }
    56% { transform: scale(1); }
}

.arce-title {
    font-family: var(--arce-font-heading);
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.2;
    background: var(--arce-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--arce-accent);
}

.arce-subtitle {
    font-size: clamp(13px, 2.4vw, 15.5px);
    color: var(--arce-text-light);
    margin: 0 auto;
    max-width: 520px;
}

/* ============================================
   Form Elements
   ============================================ */
.arce-form {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 3vw, 24px);
}

.arce-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(14px, 3vw, 20px);
}

.arce-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.arce-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--arce-text);
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.arce-input,
.arce-select {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--arce-font-body);
    font-size: 16px; /* >=16px prevents iOS zoom */
    color: var(--arce-text);
    background: var(--arce-card-bg);
    border: 1.5px solid var(--arce-border);
    border-radius: var(--arce-radius-sm);
    transition: border-color var(--arce-transition), box-shadow var(--arce-transition), transform var(--arce-transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    min-height: 52px;
}

.arce-input:hover,
.arce-select:hover {
    border-color: var(--arce-accent-2);
}

.arce-input:focus,
.arce-select:focus {
    border-color: var(--arce-accent);
    box-shadow: var(--arce-glow);
}

.arce-input::placeholder {
    color: var(--arce-text-muted);
}

.arce-select {
    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='%23ff4d80' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Date input calendar icon tint on supported browsers */
.arce-input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
    filter: invert(38%) sepia(82%) saturate(2876%) hue-rotate(314deg) brightness(102%) contrast(101%);
}

/* ============================================
   Quiz Section
   ============================================ */
.arce-quiz-section {
    border-top: 1px dashed var(--arce-border);
    padding-top: clamp(18px, 3vw, 26px);
    margin-top: clamp(8px, 2vw, 14px);
}

.arce-section-title {
    font-family: var(--arce-font-heading);
    font-size: clamp(17px, 3.2vw, 21px);
    font-weight: 700;
    color: var(--arce-primary);
    margin: 0 0 clamp(14px, 2vw, 20px) 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.arce-section-title::before { content: '💞'; }

.arce-quiz-questions {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 3vw, 20px);
}

.arce-quiz-question {
    background: var(--arce-grad-soft);
    border-radius: var(--arce-radius-sm);
    padding: clamp(14px, 3vw, 20px);
    border: 1px solid var(--arce-border-2);
}

.arce-question-text {
    font-size: clamp(14px, 2.4vw, 15.5px);
    font-weight: 600;
    color: var(--arce-text);
    margin: 0 0 14px 0;
    line-height: 1.5;
}

.arce-options {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.arce-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--arce-radius-xs);
    cursor: pointer;
    transition: background var(--arce-transition), border-color var(--arce-transition), transform var(--arce-transition);
    font-size: 14.5px;
    line-height: 1.5;
    background: var(--arce-card-bg);
    border: 1.5px solid var(--arce-border);
    min-height: 48px;
}

.arce-option:hover {
    border-color: var(--arce-accent-2);
    background: var(--arce-bg-2);
}

.arce-option:has(input:checked) {
    border-color: var(--arce-accent);
    background: linear-gradient(135deg, rgba(255, 92, 138, 0.10), rgba(177, 92, 255, 0.08));
    box-shadow: var(--arce-glow);
}

.arce-option input[type="radio"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: var(--arce-accent);
    cursor: pointer;
}

.arce-option-text {
    color: var(--arce-text-light);
}
.arce-option:has(input:checked) .arce-option-text {
    color: var(--arce-text);
    font-weight: 500;
}

/* ============================================
   Primary Button
   ============================================ */
.arce-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 17px 22px;
    font-family: var(--arce-font-body);
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background: var(--arce-grad);
    background-size: 180% 180%;
    border: none;
    border-radius: var(--arce-radius-sm);
    cursor: pointer;
    transition: transform var(--arce-transition), box-shadow var(--arce-transition), background-position var(--arce-transition);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    min-height: 56px;
    box-shadow: 0 12px 28px -10px rgba(255, 77, 128, 0.65);
    -webkit-tap-highlight-color: transparent;
}

/* Shimmer sweep */
.arce-btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.arce-btn-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -10px rgba(255, 77, 128, 0.75);
}
.arce-btn-primary:hover::after { left: 140%; }

.arce-btn-primary:active { transform: translateY(0) scale(0.99); }

.arce-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.arce-btn-text { display: inline-flex; align-items: center; gap: 8px; }
.arce-btn-text::before { content: '💘'; font-size: 1.1em; }

.arce-btn-loader { display: inline-flex; align-items: center; }

.arce-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: arce-spin 0.6s linear infinite;
}

@keyframes arce-spin { to { transform: rotate(360deg); } }

/* ============================================
   Results Wrapper
   ============================================ */
.arce-results-wrapper {
    max-width: 820px;
    margin: clamp(26px, 4vw, 44px) auto 0;
    animation: arce-fadeIn 0.6s ease-out;
}

@keyframes arce-fadeIn {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Compatibility Meter (Circular, heart-centered)
   ============================================ */
.arce-meter-section {
    position: relative;
    text-align: center;
    padding: clamp(28px, 5vw, 52px) clamp(18px, 4vw, 36px);
    background: var(--arce-card-bg);
    border-radius: var(--arce-radius);
    box-shadow: var(--arce-shadow-md);
    border: 1px solid var(--arce-border-2);
    margin-bottom: clamp(16px, 3vw, 24px);
    overflow: hidden;
}
.arce-meter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 60% at 80% 0%, rgba(255, 126, 179, 0.16), transparent 70%),
        radial-gradient(60% 60% at 10% 100%, rgba(177, 92, 255, 0.14), transparent 70%);
    pointer-events: none;
}
.arce-meter-section > * { position: relative; z-index: 1; }

.arce-meter-names {
    font-family: var(--arce-font-heading);
    font-size: clamp(18px, 3.6vw, 24px);
    color: var(--arce-primary);
    margin-bottom: clamp(18px, 3vw, 30px);
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 10px;
}

.arce-meter-names .arce-ampersand {
    display: inline-flex;
    color: var(--arce-accent);
    font-style: normal;
    animation: arce-heartbeat 1.8s ease-in-out infinite;
}

.arce-meter-container {
    position: relative;
    width: clamp(190px, 56vw, 260px);
    height: clamp(190px, 56vw, 260px);
    margin: 0 auto clamp(18px, 3vw, 28px);
}

.arce-meter-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.arce-meter-bg {
    fill: none;
    stroke: var(--arce-border);
    stroke-width: 10;
}

.arce-meter-fill {
    fill: none;
    stroke: url(#arce-meter-gradient);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 0 628;
    transition: stroke-dasharray 1.8s cubic-bezier(0.22, 1, 0.36, 1);
    filter: drop-shadow(0 0 8px rgba(255, 77, 128, 0.45));
}

.arce-meter-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
}
.arce-meter-value::before {
    content: '♥';
    display: block;
    font-size: clamp(16px, 4vw, 22px);
    color: var(--arce-accent);
    margin-bottom: 2px;
    animation: arce-heartbeat 1.6s ease-in-out infinite;
}

.arce-meter-percent {
    font-family: var(--arce-font-heading);
    font-size: clamp(40px, 11vw, 58px);
    font-weight: 700;
    color: var(--arce-primary);
    line-height: 1;
    display: block;
}

.arce-meter-percent-sign {
    font-size: 0.5em;
    color: var(--arce-accent);
}

.arce-meter-label {
    font-size: clamp(12px, 2.4vw, 14px);
    color: var(--arce-text-light);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 6px;
    display: block;
}

.arce-compatibility-label {
    font-family: var(--arce-font-heading);
    font-size: clamp(15px, 2.8vw, 19px);
    color: var(--arce-accent);
    font-weight: 600;
    font-style: italic;
    margin-top: 6px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.arce-meter-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 76%;
    height: 76%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 77, 128, 0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: arce-glow 3s ease-in-out infinite alternate;
}

@keyframes arce-glow {
    from { opacity: 0.4; transform: translate(-50%, -50%) scale(0.95); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

/* ============================================
   Breakdown Bars
   ============================================ */
.arce-breakdown-section {
    background: var(--arce-card-bg);
    border-radius: var(--arce-radius);
    box-shadow: var(--arce-shadow);
    border: 1px solid var(--arce-border-2);
    padding: clamp(18px, 4vw, 32px);
    margin-bottom: clamp(16px, 3vw, 24px);
}

.arce-breakdown-title {
    font-family: var(--arce-font-heading);
    font-size: clamp(17px, 3.2vw, 21px);
    font-weight: 700;
    color: var(--arce-primary);
    margin: 0 0 clamp(16px, 2.5vw, 22px) 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.arce-breakdown-title::before { content: '💗'; }

.arce-breakdown-bars {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.5vw, 20px);
}

.arce-bar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.arce-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arce-bar-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--arce-text);
}

.arce-bar-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--arce-accent);
}

.arce-bar-track {
    width: 100%;
    height: 12px;
    background: var(--arce-bg-2);
    border-radius: 100px;
    overflow: hidden;
    border: 1px solid var(--arce-border);
}

.arce-bar-fill {
    height: 100%;
    background: var(--arce-grad);
    border-radius: 100px;
    width: 0;
    transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}
.arce-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: arce-shine 2.4s ease-in-out infinite;
}
@keyframes arce-shine {
    0% { transform: translateX(-100%); }
    60%, 100% { transform: translateX(220%); }
}

/* ============================================
   Narrative Sections
   ============================================ */
.arce-narrative-section {
    background: var(--arce-card-bg);
    border-radius: var(--arce-radius);
    box-shadow: var(--arce-shadow);
    border: 1px solid var(--arce-border-2);
    padding: clamp(18px, 4vw, 30px);
    margin-bottom: clamp(16px, 3vw, 24px);
    animation: arce-slideUp 0.5s ease-out both;
}

.arce-narrative-section:nth-child(2) { animation-delay: 0.08s; }
.arce-narrative-section:nth-child(3) { animation-delay: 0.16s; }
.arce-narrative-section:nth-child(4) { animation-delay: 0.24s; }
.arce-narrative-section:nth-child(5) { animation-delay: 0.32s; }
.arce-narrative-section:nth-child(6) { animation-delay: 0.40s; }
.arce-narrative-section:nth-child(7) { animation-delay: 0.48s; }

@keyframes arce-slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.arce-narrative-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: clamp(12px, 2vw, 16px);
}

.arce-narrative-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 20px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--arce-grad-soft);
    border: 1px solid var(--arce-border-2);
    box-shadow: var(--arce-shadow);
}

.arce-narrative-title {
    font-family: var(--arce-font-heading);
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 700;
    color: var(--arce-primary);
    margin: 0;
    line-height: 1.25;
}

.arce-narrative-text {
    font-size: clamp(13.5px, 2.4vw, 15.5px);
    color: var(--arce-text-light);
    line-height: 1.75;
    margin: 0;
}

/* ============================================
   Risk & Growth Lists
   ============================================ */
.arce-list-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.arce-list-items li {
    font-size: clamp(13.5px, 2.4vw, 15px);
    color: var(--arce-text-light);
    line-height: 1.6;
    padding: 12px 14px 12px 40px;
    position: relative;
    background: var(--arce-grad-soft);
    border-radius: var(--arce-radius-xs);
    border: 1px solid var(--arce-border-2);
}

.arce-list-items li::before {
    content: '🌿';
    position: absolute;
    left: 12px;
    top: 11px;
    font-size: 14px;
}

.arce-risk-items li::before { content: '⚠️'; }

/* ============================================
   Forecast Card
   ============================================ */
.arce-forecast-card {
    position: relative;
    background: linear-gradient(135deg, #2a1430 0%, #4a1e54 55%, #6d2c63 100%);
    border-radius: var(--arce-radius);
    padding: clamp(22px, 4vw, 34px);
    color: #ffe9f3;
    margin-bottom: clamp(16px, 3vw, 24px);
    overflow: hidden;
    box-shadow: var(--arce-shadow-md);
}
.arce-forecast-card::before {
    content: '🌙';
    position: absolute;
    top: 16px; right: 20px;
    font-size: 44px;
    opacity: 0.25;
}

.arce-forecast-card .arce-narrative-icon {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.16);
}
.arce-forecast-card .arce-narrative-title { color: #ffd9e8; }
.arce-forecast-card .arce-narrative-text { color: #e9cfe2; }

.arce-forecast-energy {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 16px 0;
}

.arce-forecast-energy-value {
    font-family: var(--arce-font-heading);
    font-size: clamp(34px, 8vw, 48px);
    font-weight: 700;
    background: var(--arce-grad-warm);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.arce-forecast-energy-label {
    font-size: clamp(12px, 2.2vw, 14px);
    color: #d9b9d0;
}

.arce-forecast-outlook {
    display: inline-block;
    background: rgba(255, 142, 177, 0.18);
    color: #ffc4da;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: clamp(12px, 2.2vw, 13.5px);
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 142, 177, 0.25);
}

/* ============================================
   Season Grid
   ============================================ */
.arce-season-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
    gap: clamp(12px, 2.5vw, 16px);
    margin-top: 18px;
}

.arce-season-item {
    background: var(--arce-grad-soft);
    border-radius: var(--arce-radius-sm);
    padding: clamp(16px, 3vw, 22px);
    border: 1px solid var(--arce-border-2);
    text-align: center;
    transition: transform var(--arce-transition), box-shadow var(--arce-transition);
}
.arce-season-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--arce-shadow-md);
}

.arce-season-item-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.arce-season-item-label {
    font-size: clamp(10.5px, 2vw, 12px);
    color: var(--arce-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    margin-bottom: 6px;
}

.arce-season-item-value {
    font-family: var(--arce-font-heading);
    font-size: clamp(14px, 2.6vw, 16px);
    color: var(--arce-primary);
    font-weight: 600;
}

/* ============================================
   Share Section
   ============================================ */
.arce-share-section {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: clamp(18px, 3vw, 26px) 0;
}

.arce-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    font-family: var(--arce-font-body);
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid var(--arce-border);
    border-radius: 100px;
    background: var(--arce-card-bg);
    color: var(--arce-text);
    cursor: pointer;
    transition: all var(--arce-transition);
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}

.arce-share-btn:hover {
    border-color: transparent;
    color: #fff;
    background: var(--arce-grad);
    transform: translateY(-2px);
    box-shadow: var(--arce-shadow-md);
}

.arce-share-btn svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

/* ============================================
   Branding
   ============================================ */
.arce-branding {
    text-align: center;
    padding: clamp(14px, 2vw, 18px) 0;
    margin-top: clamp(8px, 2vw, 14px);
}

.arce-branding a {
    font-size: 13px;
    color: var(--arce-text-muted);
    text-decoration: none;
    transition: color var(--arce-transition);
}
.arce-branding a::before { content: '♥ '; color: var(--arce-accent); }
.arce-branding a:hover { color: var(--arce-accent); }

/* ============================================
   Error State
   ============================================ */
.arce-error {
    background: #fff0f3;
    border: 1px solid #ffc9d6;
    border-radius: var(--arce-radius-sm);
    padding: 16px 18px 16px 46px;
    color: #b3164b;
    font-size: 14.5px;
    font-weight: 500;
    margin-top: 12px;
    position: relative;
}
.arce-error::before {
    content: '💔';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

/* ============================================
   Loading Overlay
   ============================================ */
.arce-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(42, 20, 48, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.arce-loading-content {
    background: var(--arce-card-bg);
    border-radius: var(--arce-radius);
    padding: 36px 52px;
    text-align: center;
    box-shadow: var(--arce-shadow-lg);
}

.arce-loading-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--arce-border);
    border-top-color: var(--arce-accent);
    border-radius: 50%;
    animation: arce-spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.arce-loading-text {
    font-size: 14px;
    color: var(--arce-text-light);
    font-weight: 500;
}

/* ============================================
   Marriage Challenge Cards
   ============================================ */
.arce-challenge-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.arce-challenge-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: clamp(12px, 2.5vw, 18px);
    background: var(--arce-grad-soft);
    border-radius: var(--arce-radius-sm);
    border-left: 4px solid var(--arce-accent);
}

.arce-challenge-card.significant { border-left-color: #ef4444; }
.arce-challenge-card.moderate { border-left-color: #f59e0b; }
.arce-challenge-card.low { border-left-color: #22c55e; }

.arce-challenge-area {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--arce-text);
    margin-bottom: 3px;
}

.arce-challenge-note {
    font-size: 13.5px;
    color: var(--arce-text-light);
    line-height: 1.55;
}

.arce-result-canvas { display: none; }

/* ============================================
   Responsive Breakpoints
   ============================================ */

/* Stack name/dob pairs on phones for comfortable typing */
@media (max-width: 600px) {
    .arce-form-row {
        grid-template-columns: 1fr;
    }
    .arce-share-btn {
        flex: 1 1 auto;
    }
}

@media (min-width: 1024px) {
    .arce-container {
        max-width: 1000px;
        margin: 0 auto;
    }
}

/* Prevent horizontal overflow everywhere */
.arce-container,
.arce-form-wrapper,
.arce-results-wrapper,
.arce-meter-section,
.arce-breakdown-section,
.arce-narrative-section,
.arce-forecast-card {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .arce-container::before,
    .arce-container::after,
    .arce-header::before,
    .arce-meter-value::before,
    .arce-meter-names .arce-ampersand,
    .arce-meter-glow,
    .arce-bar-fill::after,
    .arce-btn-primary::after {
        animation: none !important;
    }
    * { scroll-behavior: auto !important; }
}

/* Print styles */
@media print {
    .arce-share-section,
    .arce-form-wrapper { display: none; }
    .arce-container::before,
    .arce-container::after { display: none; }
    .arce-results-wrapper { margin-top: 0; }
    .arce-narrative-section,
    .arce-breakdown-section,
    .arce-meter-section {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}
