:root {
    --bg-dark: #000000;
    --bg-card: #121212;
    --bg-input: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #888888;
    --color-primary: #F5F5DC; /* Beige / Creme */
    --color-primary-hover: #e3e3cb;
    --color-success: #28A745;
    --color-danger: #DC3545;
    --color-warning: #FFC107;
    --color-info: #17A2B8;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-pill: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* NAVBAR SIMPLES */
.top-nav {
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    font-size: 0.9rem;
}
.top-nav .user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}
.top-nav .logout-btn {
    color: var(--color-danger);
    text-decoration: none;
    font-weight: 600;
}

/* APP CONTAINER */
.app-container {
    width: 100%;
    max-width: 480px;
    flex: 1;
    background-color: var(--bg-dark);
    padding: 0 20px 30px;
    position: relative;
    overflow: hidden;
}

.screen {
    display: none;
    flex-direction: column;
    animation: fadeIn 0.3s ease-in-out;
    height: 100%;
}
.screen.active {
    display: flex;
}

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

.header-title {
    margin-bottom: 25px;
}
.header-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.d-flex { display: flex; }
.justify-between { justify-content: space-between; align-items: center; }

/* INPUTS & GROUPS */
.section-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    margin-top: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group-modern {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 5px;
    align-items: center;
    border: 1px solid #222;
}
.input-group-modern.single {
    padding: 15px;
}
.input-group-modern .location-icon {
    padding: 0 15px;
    color: var(--text-muted);
}
.input-group-modern input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
}
.input-group-modern .btn-atual {
    background: #222;
    color: var(--text-main);
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

/* RADIO BUTTONS CUSTOMIZADOS */
.radio-group {
    display: grid;
    gap: 10px;
}
.radio-group.row-2 { grid-template-columns: 1fr 1fr; }
.radio-group.row-3 { grid-template-columns: 1fr 1fr 1fr; }

.radio-box {
    cursor: pointer;
    position: relative;
}
.radio-box input {
    display: none;
}
.radio-box .radio-content {
    background: var(--bg-card);
    border: 1px solid #222;
    border-radius: var(--radius-md);
    padding: 15px 10px;
    text-align: center;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.radio-box .radio-content i { font-size: 1.2rem; }
.radio-box input:checked + .radio-content {
    background: var(--color-primary);
    color: var(--bg-dark);
    border-color: var(--color-primary);
    font-weight: 700;
}

/* PROXY PANEL & SWITCH */
.proxy-panel {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 15px;
    border: 1px solid #222;
}
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider { background-color: var(--color-success); }
input:checked + .slider:before { transform: translateX(20px); }
.slider.round { border-radius: 24px; }
.slider.round:before { border-radius: 50%; }

/* AMOUNT STEPPER */
.amount-container {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.amount-label {
    font-weight: 600;
    margin-bottom: 15px;
}
.amount-stepper {
    display: flex;
    align-items: center;
    gap: 20px;
}
.amount-stepper button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.amount-stepper input {
    width: 60px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    outline: none;
}
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

/* ACTIONS */
.action-footer {
    margin-top: 40px;
    margin-bottom: 20px;
}
.btn-primary-beige {
    width: 100%;
    background: var(--color-primary);
    color: var(--bg-dark);
    border: none;
    padding: 18px;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}
.btn-primary-beige:hover { background: var(--color-primary-hover); }
.btn-primary-beige:disabled { opacity: 0.7; cursor: not-allowed; }

.btn-secondary {
    width: 100%;
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid #333;
    padding: 15px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
}

/* TELA AO VIVO - STATS */
.live-dot {
    display: inline-block;
    width: 12px; height: 12px;
    background-color: var(--color-danger);
    border-radius: 50%;
    animation: blink 1s infinite;
    margin-right: 8px;
}
@keyframes blink { 50% { opacity: 0.3; } }

.btn-stop {
    background: transparent;
    color: var(--color-danger);
    border: 1px solid var(--color-danger);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #222;
}
.stat-icon { font-size: 1.5rem; margin-bottom: 5px; }
.stat-icon.success { color: var(--color-success); }
.stat-icon.fail { color: var(--color-danger); }
.stat-icon.veriff { color: var(--color-warning); }
.stat-icon.secure { color: var(--color-info); }
.stat-val { font-size: 1.8rem; font-weight: 800; }
.stat-lbl { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; }

/* CONSOLE E PILLS */
.console-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid #222;
    overflow: hidden;
    height: 350px;
}
.console-header {
    background: #1a1a1a;
    padding: 10px 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid #222;
}
.log-container {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.log-pill {
    background: #222;
    padding: 10px 15px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.log-pill .time { color: var(--text-muted); font-size: 0.75rem; min-width: 45px; }
.log-pill .msg { flex: 1; color: #ddd; }
.log-pill i { font-size: 1.1rem; }
.log-pill.info i { color: var(--color-info); }
.log-pill.success { background: rgba(40, 167, 69, 0.1); border: 1px solid rgba(40, 167, 69, 0.2); }
.log-pill.success i { color: var(--color-success); }
.log-pill.error { background: rgba(220, 53, 69, 0.1); border: 1px solid rgba(220, 53, 69, 0.2); }
.log-pill.error i { color: var(--color-danger); }
.log-pill.warning i { color: var(--color-warning); }
