/* ============================================
   DevPlus — Home (index.html)
   Visual moderno tech: glassmorphism, glow,
   scroll-reveal, métricas, gradientes suaves
   ============================================ */

/* --- BG AMBIENT --- */
.bg-ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(13, 185, 199, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 60%, rgba(122, 204, 69, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 70%);
}

/* --- HERO SECTION --- */
.hero {
    padding: 160px 0 60px;
    text-align: center;
    position: relative;
}

/* Glow orb atrás do logo */
.hero::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 185, 199, 0.15) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 550px;
    max-width: 80%;
    margin: 0 auto 50px;
    filter: drop-shadow(0 0 40px rgba(13, 185, 199, 0.25));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(13, 185, 199, 0.08);
    border: 1px solid rgba(13, 185, 199, 0.2);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-cyan);
    margin-bottom: 28px;
    letter-spacing: 0.04em;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--brand-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(122, 204, 69, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(122, 204, 69, 0); }
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- SECTION BASE --- */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 64px;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-cyan);
    margin-bottom: 12px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 16px;
    position: relative;
    letter-spacing: -0.01em;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--brand-gradient);
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- SERVICES GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 36px 32px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

/* Gradiente de topo sutil no hover */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(13, 185, 199, 0.05);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: white;
    font-weight: 700;
}

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(13, 185, 199, 0.08);
    margin-bottom: 20px;
    color: var(--brand-green);
    transition: background var(--transition-base), transform var(--transition-base);
}

.icon-box svg {
    display: block;
    width: 26px;
    height: 26px;
}

.card:hover .icon-box {
    background: rgba(13, 185, 199, 0.15);
    transform: scale(1.05);
}

/* --- MÉTRICAS / NÚMEROS --- */
.metrics-section {
    padding: 80px 0;
    position: relative;
}

.metrics-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 185, 199, 0.03) 0%, transparent 50%, rgba(122, 204, 69, 0.02) 100%);
    pointer-events: none;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.metric-item {
    text-align: center;
    padding: 32px 16px;
}

.metric-number {
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--brand-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- SOBRE (ABOUT) --- */
.about-section {
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 28px;
}

.about-text h2::after {
    margin: 16px 0 0;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.98rem;
}

.about-tagline {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-top: 8px;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: center;
    transition: border-color var(--transition-base);
}

.highlight-card:hover {
    border-color: var(--border-hover);
}

.highlight-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.highlight-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.highlight-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- FOOTER GRID --- */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 0.8fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-col p,
.footer-col a {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 2;
    text-decoration: none;
    display: block;
}

.footer-col a:hover {
    color: var(--brand-green);
}

.footer-brand-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    transition: all var(--transition-base);
}

.footer-socials a:hover {
    background: rgba(13, 185, 199, 0.1);
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
    transform: translateY(-2px);
}

/* --- MINIGAME: BUG HUNTER (Easter Egg Modal) --- */
.game-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.game-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.game-modal {
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 90%;
    max-width: 680px;
    position: relative;
    box-shadow: 0 0 60px rgba(13, 185, 199, 0.15);
    backdrop-filter: blur(12px);
    text-align: center;
}

.game-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color var(--transition-base);
    line-height: 1;
}

.game-modal-close:hover {
    color: #fff;
}

.game-modal .section-title {
    margin-bottom: 8px;
}

.game-modal-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px;
}

.game-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 350px;
    margin: 30px auto;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.88);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity var(--transition-base);
}

.game-overlay h3 { font-size: 2rem; color: white; margin-bottom: 10px; }
.game-overlay p { color: var(--text-muted); margin-bottom: 20px; }

.bug-item {
    position: absolute;
    font-size: 24px;
    cursor: pointer;
    user-select: none;
    animation: popIn 0.3s ease-out;
    transition: transform 0.1s;
}

.bug-item:active { transform: scale(0.8); }

.bug-fixed {
    font-size: 24px;
    color: var(--brand-green);
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
}

.score-board {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-green);
    margin-bottom: 12px;
}

@keyframes popIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

@keyframes floatUp {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-30px); }
}

/* --- CTA SECTION --- */
.cta-section {
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(circle, rgba(13, 185, 199, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 16px;
    position: relative;
}

.cta-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .about-content { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero { padding: 130px 0 40px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-logo { width: 280px; margin-bottom: 32px; }
    .hero p { font-size: 1rem; }

    section { padding: 70px 0; }
    .section-title { font-size: 1.8rem; }

    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .card { padding: 28px 24px; }

    .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .metric-number { font-size: 2rem; }

    .about-content { grid-template-columns: 1fr; }
    .about-highlights { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .cta-section h2 { font-size: 1.8rem; }

    .modal-body { flex-direction: column; }
    .modal-info, .modal-form-side { min-width: auto; }
    .modal-content { max-width: 95vw; max-height: 90vh; margin: 16px; }
}

/* ============================================
   MODAL — POPUP DE CONTATO
   ============================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 24px;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #111111;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 820px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(13, 185, 199, 0.06);
}

.modal-backdrop.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: var(--border-hover);
}

.modal-header {
    padding: 32px 32px 0;
    text-align: center;
}

.modal-header h2 {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.modal-body {
    display: flex;
    gap: 32px;
    padding: 28px 32px 32px;
}

/* Lado esquerdo — Dados de contato */
.modal-info {
    min-width: 240px;
    flex-shrink: 0;
}

.modal-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(13, 185, 199, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--brand-cyan);
}

.contact-item-icon svg {
    width: 16px;
    height: 16px;
}

.contact-item-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.contact-item-text a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-item-text a:hover {
    color: var(--brand-cyan);
}

.contact-item-text strong {
    display: block;
    color: white;
    font-size: 0.82rem;
    margin-bottom: 2px;
}

.modal-divider {
    width: 1px;
    background: var(--border-subtle);
    flex-shrink: 0;
}

/* Lado direito — Formulário */
.modal-form-side {
    flex: 1;
}

.modal-form-side h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.modal-form-side > p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    outline: none;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brand-cyan);
    background: rgba(13, 185, 199, 0.04);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #555;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-submit {
    margin-top: 8px;
    width: 100%;
}

/* Estados do formulário */
.form-message {
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 12px;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(122, 204, 69, 0.1);
    border: 1px solid rgba(122, 204, 69, 0.3);
    color: var(--brand-green);
}

.form-message.error {
    display: block;
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: #ff5252;
}

.btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

@media (max-width: 768px) {
    .modal-body { flex-direction: column; gap: 24px; }
    .modal-divider { width: 100%; height: 1px; }
    .modal-content { margin: 8px; }
    .modal-header { padding: 24px 20px 0; }
    .modal-body { padding: 20px; }
    .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   CARD — LINK "Saiba mais"
   ============================================ */
.card-detail-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-cyan);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.card:hover .card-detail-link {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   POPUP DE DETALHES DO SERVIÇO
   ============================================ */
.service-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 24px;
}

.service-popup-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.service-popup-content {
    background: #111111;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(13, 185, 199, 0.06);
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(13, 185, 199, 0.3) transparent;
}

.service-popup-content::-webkit-scrollbar {
    width: 6px;
}

.service-popup-content::-webkit-scrollbar-track {
    background: transparent;
}

.service-popup-content::-webkit-scrollbar-thumb {
    background: rgba(13, 185, 199, 0.3);
    border-radius: 3px;
}

.service-popup-content::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 185, 199, 0.5);
}

.service-popup-backdrop.active .service-popup-content {
    transform: translateY(0) scale(1);
}

.service-popup-body {
    padding: 40px 36px 24px;
}

.service-popup-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: rgba(13, 185, 199, 0.08);
    border: 1px solid rgba(13, 185, 199, 0.15);
    color: var(--brand-cyan);
    margin-bottom: 20px;
}

.service-popup-body h2 {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.service-popup-intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-popup-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-popup-list li {
    position: relative;
    padding-left: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.service-popup-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-gradient);
}

.service-popup-list li strong {
    color: white;
}

.service-popup-footer {
    padding: 20px 36px 32px;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.service-popup-footer .btn {
    min-width: 180px;
}

/* ============================================
   TELA DE SUCESSO (após envio do formulário)
   ============================================ */
.success-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-box {
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-overlay.active .success-box {
    transform: scale(1);
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 900;
    color: white;
    margin: 0 auto 24px;
    box-shadow: 0 0 40px rgba(122, 204, 69, 0.3);
    animation: pulseSuccess 2s ease-in-out infinite;
}

@keyframes pulseSuccess {
    0%, 100% { box-shadow: 0 0 40px rgba(122, 204, 69, 0.3); }
    50% { box-shadow: 0 0 60px rgba(122, 204, 69, 0.5); }
}

.success-box h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.success-box p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.success-box .btn {
    min-width: 180px;
}

/* --- RESPONSIVE: Service Popup & Success --- */
@media (max-width: 768px) {
    .service-popup-content {
        max-width: 95vw;
        max-height: 90vh;
        margin: 8px;
    }
    .service-popup-body {
        padding: 32px 20px 20px;
    }
    .service-popup-footer {
        padding: 16px 20px 24px;
    }
    .service-popup-body h2 {
        font-size: 1.3rem;
    }
    .success-icon {
        width: 64px;
        height: 64px;
        font-size: 1.8rem;
    }
    .success-box h2 {
        font-size: 1.6rem;
    }
}
