/* ============================================
   DESIGN SYSTEM - AppShield Security
   ============================================ */

:root {
    /* Cores Primárias */
    --primary: #2196F3;
    --primary-dark: #1976D2;
    --primary-light: #BBDEFB;
    
    /* Status */
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;
    
    /* Severidade */
    --severity-critical: #D32F2F;
    --severity-high: #F44336;
    --severity-medium: #FF9800;
    --severity-low: #FFC107;
    --severity-safe: #4CAF50;
    
    /* Planos */
    --plan-basic: #9E9E9E;
    --plan-pro: #2196F3;
    --plan-ultra: #FFD700;
    
    /* Neutros */
    --background: #F5F5F5;
    --surface: #FFFFFF;
    --text-primary: #212121;
    --text-secondary: #757575;
    --divider: #E0E0E0;
    
    /* Sombras */
    --shadow-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-2: 0 3px 6px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.12);
    --shadow-3: 0 10px 20px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #1a1a2e;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Container do Protótipo */
.prototype-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Painel de Controle */
.control-panel {
    background: #16213e;
    border-radius: 16px;
    padding: 24px;
    color: white;
    min-width: 280px;
}

.control-panel h2 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-panel h2 .material-icons {
    color: var(--primary);
}

.control-section {
    margin-bottom: 24px;
}

.control-section h3 {
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
    text-align: left;
}

.control-btn:hover {
    background: rgba(255,255,255,0.1);
}

.control-btn.active {
    background: var(--primary);
}

.control-btn .material-icons {
    font-size: 20px;
    opacity: 0.7;
}

.plan-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.plan-btn {
    flex: 1;
    padding: 8px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.plan-btn.basic { border-color: var(--plan-basic); }
.plan-btn.pro { border-color: var(--plan-pro); }
.plan-btn.ultra { border-color: var(--plan-ultra); }

.plan-btn.active.basic { background: var(--plan-basic); }
.plan-btn.active.pro { background: var(--plan-pro); }
.plan-btn.active.ultra { background: var(--plan-ultra); color: #333; }

/* Frame do Celular */
.phone-frame {
    width: 375px;
    height: 812px;
    background: #000;
    border-radius: 50px;
    padding: 12px;
    box-shadow: var(--shadow-3);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--background);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}

/* Status Bar */
.status-bar {
    height: 44px;
    background: var(--surface);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 500;
}

.status-bar-left {
    font-weight: 600;
}

.status-bar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-bar-right .material-icons {
    font-size: 18px;
}

/* Telas */
.screen {
    display: none;
    height: calc(100% - 44px - 56px);
    overflow-y: auto;
    background: var(--background);
}

.screen.active {
    display: block;
}

.screen.fullscreen {
    height: calc(100% - 44px);
}

/* Bottom Navigation */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--surface);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--divider);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 16px;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item .material-icons {
    font-size: 24px;
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
}

/* ============================================
   COMPONENTES REUTILIZÁVEIS
   ============================================ */

/* Plan Badge */
.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.plan-badge.basic {
    background: rgba(158, 158, 158, 0.2);
    color: #757575;
}

.plan-badge.pro {
    background: rgba(33, 150, 243, 0.2);
    color: var(--primary-dark);
}

.plan-badge.ultra {
    background: rgba(255, 215, 0, 0.2);
    color: #B8860B;
}

.plan-badge.free {
    background: rgba(158, 158, 158, 0.15);
    color: #9e9e9e;
}

/* Card */
.card {
    background: var(--surface);
    border-radius: 16px;
    padding: 20px;
    margin: 16px;
    box-shadow: var(--shadow-1);
}

/* Status Card */
.status-card {
    text-align: center;
    padding: 32px 20px;
}

.status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 40px;
}

.status-icon.protected {
    background: rgba(76, 175, 80, 0.15);
    color: var(--success);
}

.status-icon.scanning {
    background: rgba(33, 150, 243, 0.15);
    color: var(--primary);
    animation: pulse 2s infinite;
}

.status-icon.threat {
    background: rgba(244, 67, 54, 0.15);
    color: var(--error);
    animation: shake 0.5s ease-in-out;
}

.status-icon.pending {
    background: rgba(255, 152, 0, 0.15);
    color: var(--warning);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.status-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.status-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-full {
    width: 100%;
}

/* Threat Card */
.threat-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--surface);
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 4px solid var(--error);
}

.threat-card.critical { border-left-color: var(--severity-critical); }
.threat-card.high { border-left-color: var(--severity-high); }
.threat-card.medium { border-left-color: var(--severity-medium); }
.threat-card.low { border-left-color: var(--severity-low); }

.threat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.threat-info {
    flex: 1;
}

.threat-name {
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 2px;
}

.threat-package {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.threat-severity {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.threat-severity.critical {
    background: rgba(211, 47, 47, 0.15);
    color: var(--severity-critical);
}

.threat-severity.high {
    background: rgba(244, 67, 54, 0.15);
    color: var(--severity-high);
}

.threat-severity.medium {
    background: rgba(255, 152, 0, 0.15);
    color: var(--severity-medium);
}

.threat-action {
    color: var(--text-secondary);
    cursor: pointer;
}

/* Settings Item */
.settings-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--divider);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.settings-info {
    flex: 1;
}

.settings-title {
    font-weight: 500;
    font-size: 15px;
}

.settings-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Toggle Switch */
.toggle {
    width: 48px;
    height: 28px;
    background: #ccc;
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle.on {
    background: var(--primary);
}

.toggle::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s;
    box-shadow: var(--shadow-1);
}

.toggle.on::after {
    left: 22px;
}

/* Progress Bar */
.progress-bar {
    height: 8px;
    background: var(--divider);
    border-radius: 4px;
    overflow: hidden;
    margin: 16px 0;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s;
}

/* Threat Summary */
.threat-summary {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    background: rgba(244, 67, 54, 0.05);
    border-radius: 12px;
    margin-top: 16px;
}

.summary-item {
    text-align: center;
}

.summary-count {
    font-size: 24px;
    font-weight: 700;
}

.summary-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.summary-item.critical .summary-count { color: var(--severity-critical); }
.summary-item.high .summary-count { color: var(--severity-high); }
.summary-item.medium .summary-count { color: var(--severity-medium); }
.summary-item.low .summary-count { color: var(--severity-low); }

/* Section Header */
.section-header {
    padding: 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Feature Locked */
.feature-locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    text-align: center;
}

.lock-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.lock-icon .material-icons {
    font-size: 40px;
    color: var(--text-secondary);
}

.lock-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.lock-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* DNS Option */
.dns-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--surface);
    border-radius: 12px;
    margin-bottom: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.dns-option:hover {
    border-color: var(--primary-light);
}

.dns-option.selected {
    border-color: var(--primary);
    background: rgba(33, 150, 243, 0.05);
}

.dns-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    position: relative;
}

.dns-option.selected .dns-radio {
    border-color: var(--primary);
}

.dns-option.selected .dns-radio::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dns-info {
    flex: 1;
}

.dns-name {
    font-weight: 500;
    font-size: 15px;
}

.dns-description {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Login Screen */
.login-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 32px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.login-logo {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-2);
}

.login-logo .material-icons {
    font-size: 56px;
    color: var(--primary);
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 48px;
}

.google-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #333;
    padding: 14px 24px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    margin-bottom: 16px;
    box-shadow: var(--shadow-1);
}

.google-btn img {
    width: 24px;
    height: 24px;
}

.skip-btn {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

.login-footer {
    position: absolute;
    bottom: 32px;
    font-size: 12px;
    opacity: 0.7;
}

.login-footer a {
    color: white;
}

/* Header com Back Button */
.screen-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--divider);
}

.screen-header .back-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 4px;
}

.screen-header h1 {
    font-size: 18px;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-state .material-icons {
    font-size: 64px;
    opacity: 0.3;
    margin-bottom: 16px;
}

/* Scan Animation */
.scan-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
}

.scan-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: scan-pulse 2s ease-out infinite;
}

.scan-circle:nth-child(2) { animation-delay: 0.5s; }
.scan-circle:nth-child(3) { animation-delay: 1s; }

@keyframes scan-pulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.scan-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Account Card */
.account-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.account-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.account-info {
    flex: 1;
}

.account-name {
    font-size: 16px;
    font-weight: 500;
}

.account-email {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Guardian History */
.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--divider);
}

.history-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.history-status.active { background: var(--error); }
.history-status.resolved { background: var(--success); }

.history-info {
    flex: 1;
}

.history-app {
    font-size: 14px;
    font-weight: 500;
}

.history-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.history-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}

.history-badge.detected {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error);
}

.history-badge.removed {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
}

/* Plan Selection Screen */
.plan-selection-screen {
    padding: 24px 16px;
    height: 100%;
    overflow-y: auto;
}

.plan-selection-header {
    text-align: center;
    margin-bottom: 24px;
}

.plan-selection-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.plan-selection-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.plan-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 12px;
    border: 2px solid var(--divider);
    cursor: pointer;
    transition: all 0.2s;
}

.plan-card:hover {
    border-color: var(--primary-light);
}

.plan-card.selected {
    border-color: var(--primary);
    background: rgba(33, 150, 243, 0.05);
}

.plan-card.recommended {
    position: relative;
}

.plan-card.recommended::before {
    content: 'RECOMENDADO';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 10px;
}

.plan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.plan-card-name {
    font-size: 18px;
    font-weight: 600;
}

.plan-card-price {
    text-align: right;
}

.plan-card-price .price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.plan-card-price .period {
    font-size: 12px;
    color: var(--text-secondary);
}

.plan-card-features {
    list-style: none;
}

.plan-card-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.plan-card-features li .material-icons {
    font-size: 16px;
    color: var(--success);
}

.plan-card-features li.disabled {
    color: #ccc;
}

.plan-card-features li.disabled .material-icons {
    color: #ccc;
}

/* Payment Screen */
.payment-screen {
    padding: 24px 16px;
    height: 100%;
    overflow-y: auto;
}

.payment-summary {
    background: var(--surface);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.payment-summary h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.payment-plan-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--divider);
    margin-bottom: 16px;
}

.payment-plan-name {
    font-size: 18px;
    font-weight: 600;
}

.payment-plan-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.payment-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.payment-methods h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--surface);
    border-radius: 12px;
    margin-bottom: 8px;
    border: 2px solid var(--divider);
    cursor: pointer;
}

.payment-method.selected {
    border-color: var(--primary);
}

.payment-method-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.payment-method-info {
    flex: 1;
}

.payment-method-name {
    font-weight: 500;
}

.payment-method-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Pending Approval Screen */
.pending-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 32px;
    text-align: center;
    background: var(--background);
}

.pending-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 152, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.pending-icon .material-icons {
    font-size: 48px;
    color: var(--warning);
}

.pending-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.pending-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.5;
}

.pending-email {
    background: var(--surface);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 24px;
}

.pending-info {
    background: rgba(33, 150, 243, 0.1);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.pending-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.pending-info p:last-child {
    margin-bottom: 0;
}

.pending-info .material-icons {
    font-size: 16px;
    vertical-align: middle;
    margin-right: 4px;
    color: var(--primary);
}

/* ============================================
   NOVAS TELAS - Trial, Assinatura, Dispositivos
   ============================================ */

/* Trial Screen */
.trial-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 32px;
    text-align: center;
    background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%);
    color: white;
}

.trial-badge {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 24px;
}

.trial-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.trial-icon .material-icons {
    font-size: 48px;
}

.trial-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.trial-days {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
}

.trial-subtitle {
    opacity: 0.9;
    margin-bottom: 32px;
}

.trial-plan-badge {
    background: white;
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 24px;
}

.trial-admin {
    background: rgba(255,255,255,0.15);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 32px;
}

/* Subscription Management Screen */
.subscription-screen {
    padding: 16px;
    height: calc(100% - 56px);
    overflow-y: auto;
}

.subscription-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-1);
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.subscription-plan {
    display: flex;
    align-items: center;
    gap: 12px;
}

.subscription-plan-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscription-plan-icon .material-icons {
    color: var(--primary);
    font-size: 24px;
}

.subscription-plan-name {
    font-size: 18px;
    font-weight: 600;
}

.subscription-plan-price {
    font-size: 13px;
    color: var(--text-secondary);
}

.subscription-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.subscription-status.active {
    background: rgba(76, 175, 80, 0.15);
    color: var(--success);
}

.subscription-status.trial {
    background: rgba(33, 150, 243, 0.15);
    color: var(--primary);
}

.subscription-status.expired {
    background: rgba(244, 67, 54, 0.15);
    color: var(--error);
}

.subscription-info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--divider);
}

.subscription-info-row:last-child {
    border-bottom: none;
}

.subscription-info-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.subscription-info-value {
    font-weight: 500;
    font-size: 14px;
}

.subscription-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--surface);
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.subscription-action:hover {
    background: var(--background);
}

.subscription-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscription-action-icon .material-icons {
    font-size: 20px;
}

.subscription-action-info {
    flex: 1;
}

.subscription-action-title {
    font-weight: 500;
    font-size: 14px;
}

.subscription-action-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Devices/Affiliates Management Screen */
.devices-screen {
    padding: 16px;
    height: calc(100% - 56px);
    overflow-y: auto;
}

.devices-header-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    padding: 20px;
    color: white;
    margin-bottom: 16px;
}

.devices-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.devices-count-number {
    font-size: 36px;
    font-weight: 700;
}

.devices-count-total {
    font-size: 18px;
    opacity: 0.8;
}

.devices-count-label {
    font-size: 14px;
    opacity: 0.9;
}

.device-item {
    background: var(--surface);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.device-item.master {
    border: 2px solid var(--primary);
}

.device-avatar {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-avatar .material-icons {
    color: var(--primary);
}

.device-avatar.master {
    background: var(--primary);
}

.device-avatar.master .material-icons {
    color: white;
}

.device-info {
    flex: 1;
}

.device-email {
    font-weight: 500;
    font-size: 14px;
}

.device-role {
    font-size: 12px;
    color: var(--text-secondary);
}

.device-actions {
    display: flex;
    gap: 8px;
}

.device-remove-btn {
    width: 36px;
    height: 36px;
    border-radius: 18px;
    border: none;
    background: rgba(244, 67, 54, 0.1);
    color: var(--error);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-device-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    border: 2px dashed var(--divider);
    border-radius: 12px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
}

.add-device-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Add Device Modal */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-content {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 320px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.modal-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--divider);
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
}

.modal-input:focus {
    outline: none;
    border-color: var(--primary);
}

.modal-buttons {
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.modal-btn.cancel {
    background: var(--background);
    color: var(--text-secondary);
}

.modal-btn.confirm {
    background: var(--primary);
    color: white;
}

/* Session Overlay */
.session-overlay.active {
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Session Dialog */
.session-dialog {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 320px;
    text-align: center;
}

.session-icon {
    width: 64px;
    height: 64px;
    border-radius: 32px;
    background: rgba(255, 152, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.session-icon .material-icons {
    font-size: 32px;
    color: var(--warning);
}

/* Error States */
.error-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 32px;
    text-align: center;
    background: var(--background);
}

.error-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.error-icon.expired {
    background: rgba(244, 67, 54, 0.15);
}

.error-icon.expired .material-icons {
    font-size: 48px;
    color: var(--error);
}

.error-icon.offline {
    background: rgba(158, 158, 158, 0.15);
}

.error-icon.offline .material-icons {
    font-size: 48px;
    color: var(--text-secondary);
}

.error-icon.denied {
    background: rgba(244, 67, 54, 0.15);
}

.error-icon.denied .material-icons {
    font-size: 48px;
    color: var(--error);
}

.error-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.error-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Terms Screen */
.terms-screen {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.terms-header {
    text-align: center;
    margin-bottom: 24px;
}

.terms-header h1 {
    font-size: 20px;
    margin-bottom: 8px;
}

.terms-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.terms-content {
    background: var(--surface);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.terms-content h3 {
    font-size: 14px;
    color: var(--text-primary);
    margin: 16px 0 8px;
}

.terms-content h3:first-child {
    margin-top: 0;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.terms-checkbox input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.terms-checkbox label {
    font-size: 14px;
    line-height: 1.4;
}

/* Billing cycle toggle */
.billing-toggle {
    display: flex;
    background: var(--surface);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
}

.billing-option {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: transparent;
}

.billing-option.active {
    background: var(--primary);
    color: white;
}

.billing-option .discount {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
}

/* Settings Screen Completo */
.settings-screen-full {
    padding: 16px;
    height: calc(100% - 56px);
    overflow-y: auto;
}

.settings-account-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    padding: 20px;
    color: white;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.settings-account-avatar {
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-account-avatar .material-icons {
    font-size: 28px;
}

.settings-account-info {
    flex: 1;
}

.settings-account-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.settings-account-email {
    font-size: 13px;
    opacity: 0.9;
}

.settings-account-badge {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.settings-section-title {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 20px 0 12px;
    padding-left: 4px;
    letter-spacing: 0.5px;
}

.settings-group {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
}

.settings-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--divider);
    cursor: pointer;
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-row-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-row-icon .material-icons {
    font-size: 20px;
}

.settings-row-content {
    flex: 1;
}

.settings-row-title {
    font-size: 14px;
    font-weight: 500;
}

.settings-row-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

.settings-row-action {
    color: var(--text-secondary);
}

.settings-row .plan-lock {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.settings-row .plan-lock.pro {
    background: rgba(33, 150, 243, 0.15);
    color: var(--primary);
}

.settings-row .plan-lock.ultra {
    background: rgba(255, 215, 0, 0.15);
    color: #B8860B;
}

/* ============================================
   FAKE NOTIFICATION
   ============================================ */

.fake-notification {
    position: absolute;
    top: 28px;
    left: 8px;
    right: 8px;
    background: rgba(30, 30, 40, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 12px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.3s ease-out;
    display: none;
}

.fake-notification.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.fake-notification-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.fake-notification-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fake-notification-icon .material-icons {
    font-size: 14px;
    color: white;
}

.fake-notification-app {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    flex: 1;
}

.fake-notification-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.fake-notification-title {
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin-bottom: 4px;
}

.fake-notification-body {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.fake-notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fake-notification-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.fake-notification-btn.primary {
    background: var(--primary);
    color: white;
}

.fake-notification-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.fake-notification-btn:hover {
    opacity: 0.9;
}

.fake-notification.warning .fake-notification-icon {
    background: linear-gradient(135deg, var(--warning), #E65100);
}

.fake-notification.error .fake-notification-icon {
    background: linear-gradient(135deg, var(--error), #C62828);
}

.fake-notification.success .fake-notification-icon {
    background: linear-gradient(135deg, var(--success), #2E7D32);
}

.fake-notification.info .fake-notification-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

/* ============================================
   TELA DETALHES DO APP DETECTADO
   ============================================ */

.threat-details-screen {
    height: 100%;
    background: linear-gradient(180deg, #D32F2F 0%, #B71C1C 100%);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.threat-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.threat-details-header .back-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.threat-details-badge {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.threat-details-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.threat-details-icon .material-icons {
    font-size: 44px;
    opacity: 0.9;
}

.threat-details-name {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}

.threat-details-package {
    font-size: 13px;
    opacity: 0.7;
    text-align: center;
    margin-bottom: 16px;
}

.threat-details-severity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin: 0 auto 24px;
}

.threat-details-severity.critical {
    background: rgba(255,255,255,0.2);
}

.threat-details-severity .material-icons {
    font-size: 16px;
}

.threat-details-card {
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.threat-details-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0.9;
}

.threat-details-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.threat-details-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.threat-details-card li:last-child {
    margin-bottom: 0;
}

.threat-details-card li .material-icons {
    font-size: 18px;
    opacity: 0.8;
    flex-shrink: 0;
}

.threat-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.threat-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.threat-info-row span {
    opacity: 0.7;
}

.threat-details-actions {
    margin-top: auto;
    padding-top: 20px;
}

.threat-details-actions .btn-danger {
    background: white;
    color: var(--error);
    font-weight: 600;
}

.threat-details-footer {
    text-align: center;
    font-size: 12px;
    opacity: 0.7;
    margin-top: 16px;
    line-height: 1.4;
}
/* ============================================
   MODO FULLSCREEN & CENÁRIOS
   ============================================ */

/* Container Principal - Scroll Independente */
.prototype-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-height: 100vh;
}

.control-panel {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Firefox and Chrome 121+ */
@supports (scrollbar-width: thin) {
    .control-panel {
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.2) transparent;
    }
}

/* WebKit browsers (Chrome, Safari, Edge) */
.control-panel::-webkit-scrollbar {
    width: 6px;
}

.control-panel::-webkit-scrollbar-track {
    background: transparent;
}

.control-panel::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.control-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

/* Phone Frame Sticky */
.phone-frame {
    position: sticky;
    top: 20px;
}

/* ============================================
   ACORDEÃO - SEÇÕES COLAPSÁVEIS
   ============================================ */

.accordion-section {
    margin-bottom: 8px;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
}

.accordion-header:hover {
    background: rgba(255,255,255,0.03);
    margin: 0 -12px;
    padding: 12px;
    border-radius: 8px;
    border-bottom-color: transparent;
}

.accordion-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.accordion-header .accordion-icon {
    font-size: 20px;
    opacity: 0.5;
    transition: transform 0.3s;
}

.accordion-section.collapsed .accordion-icon {
    transform: rotate(-90deg);
}

.accordion-content {
    max-height: 800px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding-top: 12px;
}

.accordion-section.collapsed .accordion-content {
    max-height: 0;
    padding-top: 0;
}

/* ============================================
   CARDS DE CENÁRIO
   ============================================ */

.scenarios-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.scenarios-section h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scenarios-section h3 .material-icons {
    font-size: 20px;
}

.scenario-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scenario-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
}

.scenario-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}

.scenario-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.scenario-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.scenario-card-icon.master { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.scenario-card-icon.affiliate { background: linear-gradient(135deg, #9C27B0, #7B1FA2); }
.scenario-card-icon.offline { background: linear-gradient(135deg, #607D8B, #455A64); }
.scenario-card-icon.expired { background: linear-gradient(135deg, var(--error), #C62828); }
.scenario-card-icon.denied { background: linear-gradient(135deg, #FF5722, #E64A19); }
.scenario-card-icon.ended { background: linear-gradient(135deg, #795548, #5D4037); }

.scenario-card-title {
    font-size: 14px;
    font-weight: 500;
}

.scenario-card-desc {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 2px;
}

.scenario-card-options {
    margin-bottom: 12px;
}

.scenario-option-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.scenario-option-label {
    font-size: 11px;
    opacity: 0.7;
    min-width: 50px;
}

.scenario-option-buttons {
    display: flex;
    gap: 4px;
}

.scenario-opt-btn {
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    background: transparent;
    color: white;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.scenario-opt-btn:hover {
    background: rgba(255,255,255,0.1);
}

.scenario-opt-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

.scenario-start-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.scenario-start-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.scenario-start-btn .material-icons {
    font-size: 18px;
}

/* ============================================
   TOGGLE MOBILE / FULLSCREEN
   ============================================ */

.view-toggle {
    display: none;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(22, 33, 62, 0.9);
    border-radius: 20px;
    padding: 3px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.view-toggle-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 16px;
    background: transparent;
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-toggle-btn .material-icons {
    font-size: 14px;
}

.view-toggle-btn.active {
    background: var(--primary);
    color: white;
}

/* ============================================
   MODO FULLSCREEN
   ============================================ */

body.fullscreen-mode {
    padding: 0;
    background: #000;
}

body.fullscreen-mode .prototype-container {
    justify-content: center;
}

body.fullscreen-mode .control-panel {
    display: none;
}

body.fullscreen-mode .phone-frame {
    position: relative;
    top: 0;
    transform: none;
    border-radius: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100%;
}

body.fullscreen-mode .phone-screen {
    border-radius: 0;
}

/* ============================================
   RESPONSIVO MOBILE
   ============================================ */

@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .prototype-container {
        flex-direction: column;
        gap: 0;
        max-height: none;
    }
    
    .view-toggle {
        display: flex;
    }
    
    .control-panel {
        width: 100%;
        max-height: none;
        border-radius: 0;
        padding: 16px;
        padding-bottom: 80px; /* Espaço para toggle */
    }
    
    .phone-frame {
        position: relative;
        top: 0;
        width: 100%;
        max-width: 375px;
        margin: 0 auto;
        border-radius: 0;
        padding: 0;
    }
    
    .phone-screen {
        border-radius: 0;
    }
    
    /* Modo Dev Mobile */
    body.mobile-dev-mode .control-panel {
        display: block;
    }
    
    body.mobile-dev-mode .phone-frame {
        display: none;
    }
    
    /* Modo Fullscreen Mobile */
    body.mobile-fullscreen-mode .control-panel {
        display: none;
    }
    
    body.mobile-fullscreen-mode .phone-frame {
        display: block;
        width: 100vw;
        height: 100vh;
        max-width: none;
    }
    
    body.mobile-fullscreen-mode .phone-screen {
        height: 100%;
    }
}

/* ============================================
   CENÁRIO ATIVO - INDICADOR
   ============================================ */

.scenario-active-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(22, 33, 62, 0.95);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s;
    pointer-events: none;
}

.scenario-active-indicator.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scenario-active-indicator .material-icons {
    color: var(--primary);
}

.scenario-active-indicator .close-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
}

.scenario-active-indicator .close-btn:hover {
    color: white;
}

/* ============================================
   CALL MODE SELECTOR
   ============================================ */

.call-mode-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.call-mode-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.call-mode-option:hover {
    border-color: rgba(156, 39, 176, 0.3);
}

.call-mode-option.selected {
    border-color: #9C27B0;
    background: rgba(156, 39, 176, 0.05);
}

.call-mode-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.call-mode-option.selected .call-mode-radio {
    border-color: #9C27B0;
}

.call-mode-option.selected .call-mode-radio::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #9C27B0;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.call-mode-info {
    flex: 1;
}

.call-mode-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.call-mode-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============================================
   CALL POPUP OVERLAY
   ============================================ */

.call-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.call-popup {
    background: var(--surface);
    border-radius: 20px;
    padding: 24px;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.call-popup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--warning);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.call-popup-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.call-popup-location {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
}

.call-popup-reports {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--warning);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
}

.call-popup-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.call-popup-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    transition: all 0.2s;
}

.call-popup-btn .material-icons {
    font-size: 24px;
}

.call-popup-btn.answer {
    background: rgba(76, 175, 80, 0.15);
    color: var(--success);
}

.call-popup-btn.answer:hover {
    background: rgba(76, 175, 80, 0.25);
}

.call-popup-btn.ignore {
    background: rgba(255, 152, 0, 0.15);
    color: var(--warning);
}

.call-popup-btn.ignore:hover {
    background: rgba(255, 152, 0, 0.25);
}

.call-popup-btn.block {
    background: rgba(244, 67, 54, 0.15);
    color: var(--error);
}

.call-popup-btn.block:hover {
    background: rgba(244, 67, 54, 0.25);
}

.call-popup-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    padding-top: 4px;
}

.call-popup-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* ============================================
   SMS TABS
   ============================================ */

.sms-tabs {
    display: flex;
    background: var(--surface);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.sms-tab {
    flex: 1;
    padding: 10px 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.sms-tab.active {
    background: var(--primary);
    color: white;
}

.sms-tab:hover:not(.active) {
    background: rgba(33, 150, 243, 0.1);
}

.sms-tab-content {
    padding-bottom: 80px;
}

/* ============================================
   SMS ITEMS
   ============================================ */

.sms-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.sms-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.sms-sender {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sms-sender-number {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.sms-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.sms-preview {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sms-item-actions {
    display: flex;
    gap: 8px;
}

.sms-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.sms-action-btn .material-icons {
    font-size: 16px;
}

.sms-action-btn.safe {
    background: rgba(76, 175, 80, 0.12);
    color: var(--success);
}

.sms-action-btn.safe:hover {
    background: rgba(76, 175, 80, 0.22);
}

.sms-action-btn.spam {
    background: rgba(255, 152, 0, 0.12);
    color: var(--warning);
}

.sms-action-btn.spam:hover {
    background: rgba(255, 152, 0, 0.22);
}

.sms-action-btn.scam {
    background: rgba(244, 67, 54, 0.12);
    color: var(--error);
}

.sms-action-btn.scam:hover {
    background: rgba(244, 67, 54, 0.22);
}

.sms-blocked-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--error);
    padding: 6px 10px;
    background: rgba(244, 67, 54, 0.08);
    border-radius: 6px;
    margin-top: 4px;
}

/* ============================================
   SMS WHITELIST ITEMS
   ============================================ */

.sms-whitelist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.sms-whitelist-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sms-whitelist-icon .material-icons {
    font-size: 20px;
}

.sms-whitelist-icon.bank {
    background: rgba(33, 150, 243, 0.15);
    color: var(--primary);
}

.sms-whitelist-icon.twofa {
    background: rgba(76, 175, 80, 0.15);
    color: var(--success);
}

.sms-whitelist-icon.delivery {
    background: rgba(255, 152, 0, 0.15);
    color: var(--warning);
}

.sms-whitelist-icon.telecom {
    background: rgba(156, 39, 176, 0.15);
    color: #9C27B0;
}

.sms-whitelist-info {
    flex: 1;
}

.sms-whitelist-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.sms-whitelist-sender {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.sms-whitelist-badge {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 4px 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
}