.fran-overlay {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; z-index: 999999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.fran-overlay.fran-active { opacity: 1; visibility: visible; }
.fran-modal {
    background: #ffffff; width: 92%; max-width: 550px;
    border-radius: 28px; position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    transform: scale(0.95) translateY(20px); opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    max-height: 90vh; overflow-y: auto; overflow-x: hidden;
}
.fran-overlay.fran-active .fran-modal { transform: scale(1) translateY(0); opacity: 1; }
.fran-close {
    position: absolute; top: 20px; right: 20px; z-index: 10;
    background: #f1f5f9; border: none; width: 32px; height: 32px;
    border-radius: 50%; color: #64748b; cursor: pointer; 
    display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.fran-close:hover { background: #e2e8f0; color: #0f172a; }
.fran-header {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    padding: 35px 30px 25px; text-align: center; border-radius: 28px 28px 0 0;
}
.fran-title { color: #0f172a; font-size: 24px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.5px; }
.fran-subtitle { color: #166534; font-size: 14px; margin: 0; font-weight: 500; }
.fran-body { padding: 30px; }
.fran-row { display: flex; gap: 15px; }
.fran-col { flex: 1; }
.fran-group { margin-bottom: 18px; }
.fran-group label { display: block; font-size: 13px; color: #334155; margin-bottom: 6px; font-weight: 600; }
.fran-group label span { color: #ef4444; }
.fran-input, .fran-select, .fran-textarea {
    width: 100%; padding: 14px 16px;
    border: 1px solid #e2e8f0; border-radius: 12px;
    font-size: 14px; font-family: inherit; font-weight: 500;
    background: #f8fafc; color: #0f172a; box-sizing: border-box; transition: 0.2s;
}
.fran-textarea { resize: vertical; min-height: 80px; }
.fran-input:focus, .fran-select:focus, .fran-textarea:focus {
    background: #ffffff; outline: none; border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}
.fran-select {
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.fran-btn {
    width: 100%; background: linear-gradient(135deg, #10b981, #059669); color: #fff;
    border: none; padding: 16px; border-radius: 14px; font-size: 16px; font-weight: 600;
    cursor: pointer; transition: 0.3s; margin-top: 10px; box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}
.fran-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(16, 185, 129, 0.3); }
.fran-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.fran-msg-box { display: none; margin-bottom: 15px; padding: 10px 15px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.fran-msg-error { background: #fee2e2; color: #b91c1c; border-left: 4px solid #ef4444; }
/* Success State */
.fran-success-state { display: none; text-align: center; padding: 40px 20px; }
.fran-success-icon {
    width: 80px; height: 80px; background: #dcfce7; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: #10b981;
}
.fran-success-title { font-size: 24px; color: #0f172a; font-weight: 700; margin-bottom: 10px; }
.fran-success-text { font-size: 15px; color: #64748b; line-height: 1.6; }
/* Custom Scrollbar */
.fran-modal::-webkit-scrollbar { width: 6px; }
.fran-modal::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
@media (max-width: 600px) {
    .fran-row { flex-direction: column; gap: 0; }
    .fran-modal { width: 95%; border-radius: 20px; }
    .fran-header { padding: 25px 20px; border-radius: 20px 20px 0 0; }
    .fran-body { padding: 20px; }
}