* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 12px;
}

.app-wrapper {
    max-width: 480px;
    margin: 0 auto;
}

.main-card {
    background: #1e293b;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
}

.brand-header {
    text-align: center;
    margin-bottom: 20px;
}

.brand-header h1 {
    font-size: 1.8rem;
    color: #ffffff;
}

.brand-header .highlight {
    color: #38bdf8;
}

.brand-header p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 4px;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e293b;
    padding: 15px 20px;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid #334155;
}

.app-header h1 {
    font-size: 1.1rem;
    color: #fff;
}

.user-tag {
    font-size: 0.75rem;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-logout {
    background: #334155;
    color: #cbd5e1;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
}

h2 {
    font-size: 1.1rem;
    color: #f1f5f9;
    margin-bottom: 6px;
}

.subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

textarea {
    width: 100%;
    height: 90px;
    padding: 12px;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 10px;
    color: #f8fafc;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 12px;
}

.input-group {
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.input-group input {
    width: 100%;
    padding: 12px;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
}

.perfil-selector-3 {
    display: flex;
    gap: 5px;
    margin-bottom: 16px;
}

.btn-perfil {
    flex: 1;
    background: #0f172a;
    color: #94a3b8;
    border: 1px solid #475569;
    padding: 8px 4px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.75rem;
    text-align: center;
}

.btn-perfil.active {
    background: #0284c7;
    color: #fff;
    border-color: #0284c7;
}

.btn-main {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.btn-main.primary { background: #0284c7; color: white; }
.btn-main.call { background: #10b981; color: white; font-size: 1.1rem; margin-bottom: 12px; }
.btn-main.success { background: #059669; color: white; }
.btn-main.warning { background: #d97706; color: white; }
.btn-main.whatsapp { background: #16a34a; color: white; margin-top: 12px; }
.btn-main.orange { background: #ea580c; color: white; }
.btn-main.danger { background: #dc2626; color: white; font-size: 0.85rem; padding: 10px; }
.btn-main.secondary { background: #475569; color: white; font-size: 0.9rem; }

.hidden { display: none !important; }

.dialer-top-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.badge-counter {
    background: #334155;
    color: #38bdf8;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.lead-display-box {
    background: #0f172a;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 14px;
    border: 1px solid #334155;
}

.lead-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 1px;
}

.lead-display-box h3 {
    font-size: 1.3rem;
    color: #fff;
    margin: 4px 0;
}

.phone-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #38bdf8;
}

.feedback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stats-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.stat-card {
    flex: 1;
    background: #0f172a;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #334155;
}

.stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
    color: #38bdf8;
}

.stat-desc {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.periods-box {
    background: #0f172a;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 14px;
    border: 1px solid #334155;
}

.periods-box h3 {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: #cbd5e1;
}

.period-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.period-row input {
    width: 65px;
    padding: 6px;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 6px;
    color: #fff;
    text-align: center;
    font-size: 0.9rem;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 9999;
}

.modal-card {
    background: #1e293b;
    width: 100%;
    max-width: 420px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #475569;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.modal-card textarea {
    height: 160px;
    font-size: 0.8rem;
    background: #0f172a;
}

.corretor-card-live {
    background: #0f172a;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #0284c7;
    border: 1px solid #334155;
}

.corretor-card-live h3 {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 4px;
}

.corretor-card-live p {
    font-size: 0.8rem;
    color: #94a3b8;
}

.equipe-macro-card {
    background: #0f172a;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 4px solid #10b981;
    border: 1px solid #334155;
}

.equipe-macro-card h3 {
    font-size: 1rem;
    color: #38bdf8;
    margin-bottom: 6px;
}

.equipe-macro-card p {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 4px;
}