/* Hero */
.milan-page-hero { background: var(--hero-gradient); color: white; text-align: center; padding: 24px 24px 20px; position: relative; overflow: hidden; }
.milan-page-hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.milan-page-hero h1 { font-size: 32px; font-weight: 900; color: white; line-height: 1.2; margin-bottom: 12px; letter-spacing: -0.02em; }
.milan-page-hero p  { font-size: 16px; color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto; line-height: 1.6; }

.milan-wrapper { max-width: 860px; margin: -20px auto 0; padding: 0 20px 56px; position: relative; z-index: 1; }

.milan-hero { display: none; }

.milan-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px;
}
@media (max-width: 640px) { .milan-grid { grid-template-columns: 1fr; } }

.milan-person-card {
    background: var(--bg-card); border: 2px solid var(--border); border-radius: 18px; padding: 24px 20px;
    box-shadow: var(--shadow-sm);
}
.milan-person-card.p1 { border-color: var(--accent-border); }
.milan-person-card.p2 { border-color: var(--accent-border); }
.milan-person-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.p1 .milan-person-title { color: #c2410c; }
.p2 .milan-person-title { color: #db2777; }

.milan-person-card label {
    display: block; font-weight: 600; color: #334155; margin-bottom: 5px; margin-top: 12px; font-size: 13px;
}

.milan-submit-row { text-align: center; margin-top: 8px; }
.milan-submit-btn {
    display: inline-block; padding: 14px 40px;
    background: var(--brand-gradient);
    color: white; border: none; border-radius: 14px; font-size: 17px; font-weight: 700;
    cursor: pointer; transition: opacity 0.15s, transform 0.15s;
}
.milan-submit-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.error-box {
    background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
    padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 20px;
}

/* Free limit banner */
.free-limit-banner {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 2px solid #fde68a;
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}
.free-limit-banner h2 { font-size: 18px; font-weight: 800; color: #92400e; margin-bottom: 8px; }
.free-limit-banner p { font-size: 14px; color: #78350f; line-height: 1.6; margin-bottom: 16px; }
.upgrade-cta-btn {
    display: inline-block;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: white; padding: 12px 28px; border-radius: 12px;
    font-weight: 700; font-size: 15px; text-decoration: none; transition: opacity 0.15s;
}
.upgrade-cta-btn:hover { opacity: 0.88; }

/* Last result card */
.milan-last-result {
    background: var(--bg-card); border: 2px solid var(--accent-border); border-radius: 20px; padding: 24px; margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}
.milan-last-header { margin-bottom: 16px; }
.milan-last-header h2 { font-size: 20px; font-weight: 800; color: #0f172a; }
.milan-last-header p { font-size: 13px; color: #64748b; margin-top: 3px; }

.milan-section { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #f1f5f9; }
.milan-section:last-child { border-bottom: none; }
.milan-section-heading { font-size: 16px; font-weight: 800; color: #0f172a; margin-bottom: 6px; }
/* 8 kootas / 36 gunas guide (_milan_guide.html) */
.milan-guide { background: var(--bg-card); border: 1.5px solid var(--accent-border); border-radius: 20px; padding: 22px 20px; margin-top: 32px; }
.milan-guide h2 { font-size: 18px; font-weight: 800; color: var(--text-900); margin: 0 0 4px; }
.milan-guide h3 { font-size: 15px; font-weight: 800; color: var(--text-900); margin: 18px 0 6px; }
.milan-guide p { font-size: 14px; color: var(--text-600); line-height: 1.7; margin: 0 0 8px; }
.milan-guide .milan-guide-sub { font-size: 13px; color: var(--text-400); margin: 0 0 14px; line-height: 1.6; }
.milan-guide a { color: var(--accent-text); font-weight: 700; }
.milan-guide-table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--text-900); margin-bottom: 8px; }
.milan-guide-table th, .milan-guide-table td { border-top: 1px solid var(--accent-border); padding: 9px 6px; text-align: left; vertical-align: top; line-height: 1.6; }
.milan-guide-table thead th { border-top: 0; font-size: 13px; color: var(--text-400); font-weight: 700; }
.milan-guide-table tbody th { white-space: nowrap; font-weight: 800; }
.milan-section-body p { font-size: 14px; color: #334155; line-height: 1.7; margin-bottom: 4px; }


/* Loading overlay */
@keyframes spin { from{transform:rotate(0deg)}to{transform:rotate(360deg)} }
@keyframes bounce { 0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-8px);opacity:1} }
