﻿:root {
            --bg-app: #f1f5f9;
            --bg-card: #ffffff;
            --text-main: #0f172a;
            --text-sec: #64748b;
            --primary: #10b981;
            --primary-hover: #059669;
            --border-color: #e2e8f0;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Outfit', sans-serif;
        }

        body {
            background-color: var(--bg-app);
            color: var(--text-main);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .header-logo {
            margin-bottom: 25px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

            .header-logo span {
                font-size: 1.8rem;
                font-weight: 800;
                letter-spacing: -.5px;
                background: linear-gradient(135deg, var(--primary), #3b82f6);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
            }

        .profile-card {
            background: var(--bg-card);
            width: 100%;
            max-width: 500px;
            border-radius: 24px;
            padding: 40px;
            box-shadow: 0 15px 50px -12px rgba(0,0,0,0.1);
            border: 1px solid var(--border-color);
            text-align: center;
        }

            .profile-card h2 {
                font-weight: 800;
                font-size: 1.8rem;
                color: var(--text-main);
                margin-bottom: 5px;
            }

            .profile-card p.subtitle {
                color: var(--text-sec);
                margin-bottom: 25px;
                font-size: 0.95rem;
            }

        .photo-section {
            background: var(--bg-app);
            padding: 20px;
            border-radius: 20px;
            margin-bottom: 20px;
            border: 1px dashed var(--border-color);
        }

            .photo-section label {
                display: block;
                font-size: 0.85rem;
                font-weight: 800;
                color: var(--text-sec);
                margin-bottom: 15px;
                text-transform: uppercase;
                letter-spacing: 1px;
            }

        #profilePicPreview {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid var(--primary);
            margin: 0 auto 15px auto;
            display: block;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            background: #e2e8f0;
        }

        .email-display {
            background: var(--bg-app);
            padding: 12px 16px;
            border-radius: 12px;
            margin-bottom: 25px;
            font-size: 0.95rem;
            color: var(--text-sec);
            display: flex;
            align-items: center;
            gap: 10px;
            border: 1px solid var(--border-color);
            text-align: left;
        }

        .form-group {
            margin-bottom: 15px;
            text-align: left;
            width: 100%;
        }

            .form-group label {
                display: block;
                font-size: 0.95rem;
                font-weight: 600;
                color: var(--text-sec);
                margin-bottom: 6px;
            }

        .form-control {
            width: 100%;
            padding: 14px 16px;
            border: 2px solid var(--border-color);
            border-radius: 12px;
            font-size: 1rem;
            background: var(--bg-app);
            outline: none;
            transition: 0.3s;
            color: var(--text-main);
            font-family: 'Outfit', sans-serif;
        }

            .form-control:focus {
                border-color: var(--primary);
                background: var(--bg-card);
                box-shadow: 0 0 0 4px rgba(16,185,129,0.1);
            }

        .btn-primary {
            background: var(--primary);
            color: #fff;
            border: none;
            padding: 14px 24px;
            border-radius: 12px;
            font-weight: 800;
            font-size: 1.05rem;
            cursor: pointer;
            transition: 0.2s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
        }

            .btn-primary:hover {
                background: var(--primary-hover);
                transform: translateY(-2px);
                box-shadow: 0 8px 20px rgba(16,185,129,0.15);
            }

            .btn-primary:disabled {
                background: var(--text-sec);
                cursor: not-allowed;
                transform: none;
                box-shadow: none;
            }

        .btn-secondary {
            background: var(--border-color);
            color: var(--text-main);
            border: none;
            padding: 14px 24px;
            border-radius: 12px;
            font-weight: 800;
            font-size: 1.05rem;
            cursor: pointer;
            transition: 0.2s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            margin-top: 10px;
            text-decoration: none;
        }

            .btn-secondary:hover {
                background: #cbd5e1;
            }

        .btn-icon-text {
            font-size: 0.9rem;
            font-weight: 600;
            background: var(--bg-card);
            padding: 10px 20px;
            border-radius: 12px;
            color: var(--text-main);
            border: 1px solid var(--border-color);
            cursor: pointer;
            transition: 0.2s;
            font-family: 'Outfit', sans-serif;
        }

            .btn-icon-text:hover {
                border-color: var(--primary);
                color: var(--primary);
            }

        /* MODAIS DE SEGURANÇA */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100dvh;
            background: rgba(15,23,42,0.75);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 100000;
            padding: 15px;
            opacity: 0;
            transition: .3s;
            backdrop-filter: blur(5px);
        }

            .modal-overlay.show {
                display: flex;
                opacity: 1;
            }

        .modal-content {
            background: var(--bg-card);
            width: 100%;
            max-width: 400px;
            border-radius: 20px;
            padding: 25px;
            text-align: left;
            transform: scale(0.95);
            transition: .3s cubic-bezier(0.4,0,0.2,1);
            max-height: 85dvh;
            overflow-y: auto;
            box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
            scrollbar-width: none;
            border: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
        }

        .modal-overlay.show .modal-content {
            transform: scale(1);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            flex-shrink: 0;
        }

        .btn-icon {
            background: none;
            border: none;
            color: var(--text-sec);
            padding: 8px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1.1rem;
            transition: .2s;
        }

            .btn-icon:hover {
                color: var(--text-main);
                background: var(--border-color);
            }

        #toastContainer {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 100001;
            display: flex;
            flex-direction: column;
            gap: 12px;
            width: 90%;
            max-width: 350px;
        }

        .toast {
            background: var(--text-main);
            color: var(--bg-card);
            padding: 14px 20px;
            border-radius: 30px;
            font-weight: 600;
            font-size: 0.95rem;
            opacity: 1;
            transition: 0.4s cubic-bezier(0.4,0,0.2,1);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            text-align: center;
        }

            .toast.error {
                background: #ef4444;
                color: #fff;
            }

            .toast.success {
                background: var(--primary);
                color: #fff;
            }

        @media (max-width: 600px) {
            .profile-card {
                padding: 30px 20px;
                border-radius: 20px;
            }

                .profile-card h2 {
                    font-size: 1.6rem;
                }

            .form-control {
                padding: 12px 14px;
                font-size: 0.95rem;
            }

            #profilePicPreview {
                width: 100px;
                height: 100px;
            }

            .btn-icon-text {
                font-size: 0.85rem;
                padding: 10px;
            }
        }