/* Importar Google Fonts - Tipografia Premium */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
    /* Sistema de Cores Premium */
    --bg-primary: #0F0F0F;
    --bg-secondary: #1A1A1A;
    --bg-tertiary: #242424;
    --bg-card: #1E1E1E;
    --bg-surface: #2A2A2A;
    --bg-elevated: #333333;
    
    /* Borders & Dividers */
    --border-light: #333333;
    --border-medium: #404040;
    --border-heavy: #525252;
    
    /* Text System */
    --text-primary: #FFFFFF;
    --text-secondary: #E5E5E5;
    --text-tertiary: #A3A3A3;
    --text-quaternary: #737373;
    --text-disabled: #525252;
    
    /* Brand Colors */
    --brand-blue: #4A90E2;
    --brand-green: #10B981;
    --brand-red: #EF4444;
    --brand-orange: #F97316;
    --brand-purple: #8B5CF6;
    
    /* Spacing System */
    --space-xs: 0.25rem;   /* 4px */
    --space-sm: 0.5rem;    /* 8px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-2xl: 3rem;     /* 48px */
    --space-3xl: 4rem;     /* 64px */
    
    /* Border Radius System */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Shadow System */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transition System */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-slower: 500ms ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    font-weight: 400;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

/* Container Principal - Mobile First */
.app-container {
    max-width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
    overflow-x: hidden;
    padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 428px) {
    .app-container {
        max-width: 428px;
        margin: 0 auto;
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Botões em telas muito pequenas */
    button,
    .btn-generate,
    .btn-success,
    .btn-primary,
    .btn-action {
        font-size: 0.9rem !important;
        padding: 0.7rem 0.9rem !important;
        min-height: 48px !important;
    }
}

@media (max-width: 768px) {
    .app-container {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100vw;
    }
}

@media (min-width: 769px) {
    .app-container {
        max-width: 100%;
    }
}

.container {
    max-width: 100%;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    padding: var(--space-md);
    padding-top: 80px; /* Espaço para menu superior no desktop */
    padding-bottom: 20px; /* Espaço padrão no desktop */
}

@media (max-width: 768px) {
    .container {
        padding-top: 60px; /* Espaço para header mobile */
        padding-bottom: 20px;
    }
}

@media (max-width: 428px) {
    .container {
        max-width: 428px;
        padding: var(--space-md);
        padding-top: 60px;
        padding-bottom: 20px;
    }
}

@media (min-width: 769px) {
    .container {
        max-width: 1400px;
        padding-top: 80px;
        padding-bottom: 20px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.header-title {
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.header-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
    letter-spacing: 0.1em;
    margin: 0;
    padding: 0.5rem 0;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #b0b0b0;
}

.btn-logout {
    background: #ef4444;
    color: white;
    text-decoration: none;
    padding: 0.4rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-logout:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.panel {
    background: #242424;
    border: 1px solid #333;
    border-radius: 0.5rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.panel.results-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 500px;
}

.panel:first-child form {
    display: flex;
    flex-direction: column;
}

.panel:first-child .form-grid {
    flex: 1;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0;
    align-items: stretch;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    text-align: left;
}

.grid-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0;
}

.grid-row-5 {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 0.75rem;
    align-items: start;
    margin-bottom: 0;
}

.toggle-col {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1.75rem;
}

.toggle-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #10b981;
    letter-spacing: 0.03em;
    white-space: nowrap;
}


.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #b0b0b0;
    margin-bottom: 0.3rem;
    letter-spacing: 0.03em;
    text-align: left;
}


.form-group input,
.form-group select {
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    color: #e0e0e0;
    font-size: 0.8rem;
    outline: none;
    transition: all 0.2s;
    text-align: left;
    text-align-last: left;
    height: 38px;
    box-sizing: border-box;
    width: 100%;
}

.form-group select option {
    text-align: left;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #10b981;
    background: #1f1f1f;
}

.form-group select {
    cursor: pointer;
}

.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 18px;
    flex-shrink: 0;
    align-self: center;
    vertical-align: middle;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #4a4a4a;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.slider:after {
    position: absolute;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    left: 3px;
    top: 2px;
    transition: 0.3s;
    content: "✕";
}

.switch input:checked + .slider {
    background: #10b981;
}

.switch input:checked + .slider:before {
    transform: translateX(18px);
}

.switch input:checked + .slider:after {
    content: "✓";
    left: 21px;
}

.btn-x {
    background: transparent;
    border: none;
    color: #999;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-x:hover {
    color: #fff;
}

.btn-generate {
    width: 100%;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 0.375rem;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-generate:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-generate svg {
    width: 14px;
    height: 14px;
}

.results {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0.375rem;
    padding: 0.75rem;
    flex: 1;
    min-height: 0;
    max-height: 450px;
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #a0a0a0;
    overflow-y: auto;
    overflow-x: hidden;
    line-height: 1.2;
    white-space: pre-wrap;
    word-break: break-word;
    text-align: left;
}

/* Scrollbar customizada para .results */
.results::-webkit-scrollbar {
    width: 8px;
}

.results::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.results::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.results::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.btn-action {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #b0b0b0;
    border-radius: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-action svg {
    width: 14px;
    height: 14px;
    stroke: #b0b0b0;
}

.btn-action:hover {
    background: #333;
    color: #fff;
    border-color: #444;
}

.btn-action:hover svg {
    stroke: #fff;
}

.btn-action.btn-success {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.btn-action.btn-success:hover {
    background: #059669;
    border-color: #059669;
    color: white;
}

/* Estilos específicos para Email para Outlook */
.email-card-outlook {
    padding: 1.25rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.email-card-outlook:hover {
    border-color: var(--brand-green);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.badge-disponivel {
    background: #10b981 !important;
    color: white !important;
    padding: 0.25rem 0.6rem;
    border-radius: 0.375rem;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.email-actions-outlook {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.actions-row-1,
.actions-row-2 {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.actions-row-1 .btn-action {
    flex: 1;
}

.actions-row-2 .btn-action {
    flex: 1;
}

.btn-copy-email {
    background: #4A90E2 !important;
    border-color: #4A90E2 !important;
    color: white !important;
}

.btn-copy-email:hover {
    background: #357ABD !important;
    border-color: #357ABD !important;
    color: white !important;
}

.btn-copy-senha {
    background: #F97316 !important;
    border-color: #F97316 !important;
    color: white !important;
}

.btn-copy-senha:hover {
    background: #EA580C !important;
    border-color: #EA580C !important;
    color: white !important;
}

.btn-criado-outlook {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    justify-content: center;
}

.btn-criado-outlook:hover {
    background: #059669 !important;
    border-color: #059669 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

@media (max-width: 768px) {
    .email-actions-outlook {
        gap: 0.5rem;
    }
    
    .actions-row-1,
    .actions-row-2 {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .actions-row-1 .btn-action,
    .actions-row-2 .btn-action {
        width: 100%;
    }
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #242424;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PÁGINA DE LOGIN ===== */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-lg);
    width: 100%;
}

.login-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-green), transparent);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .login-container {
        padding: var(--space-md);
        min-height: calc(100vh - 20px);
    }
    
    .login-box {
        padding: var(--space-xl);
        max-width: 100%;
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-green);
    letter-spacing: -0.025em;
    margin: 0 0 var(--space-sm) 0;
}

.login-header p {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin: 0;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-form .form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #b0b0b0;
    letter-spacing: 0.03em;
}

.login-form .form-group input {
    background: var(--bg-surface);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    transition: all var(--transition-base);
    min-height: 48px;
    box-sizing: border-box;
}

.login-form .form-group input:focus {
    border-color: var(--brand-green);
    background: var(--bg-elevated);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--brand-green) 0%, #059669 100%);
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-xl);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: all var(--transition-base);
    margin-top: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4);
}

.btn-login svg {
    width: 18px;
    height: 18px;
}

.login-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    text-align: center;
}

.login-footer p {
    color: #666;
    font-size: 0.75rem;
    margin: 0;
}

/* ===== MENSAGENS ===== */
.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #10b981;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    text-align: center;
}

/* ===== BOTÃO VOLTAR ===== */
.btn-back {
    background: #3a3a3a;
    color: white;
    text-decoration: none;
    padding: 0.4rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-back:hover {
    background: #4a4a4a;
    transform: translateY(-1px);
}

/* ===== TABELA DE USUÁRIOS ===== */
.users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.users-table thead {
    background: #1a1a1a;
}

.users-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: #10b981;
    border-bottom: 2px solid #333;
}

.users-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #333;
    color: #e0e0e0;
}

.users-table tbody tr:hover {
    background: #1a1a1a;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-badge.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* ===== CLASSES DE VISIBILIDADE ===== */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
}

/* ===== MENU FLUTUANTE (DESKTOP) ===== */
.floating-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(36, 36, 36, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--brand-green);
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
    padding: 0.5rem 0;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.nav-brand .prime-video-logo-img {
    margin: 0 auto;
}

.nav-icon {
    font-size: 1.5rem;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-green);
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.nav-btn {
    background: transparent;
    border: 2px solid transparent;
    color: var(--text-secondary);
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.nav-btn:hover {
    background: var(--bg-secondary);
    color: var(--brand-green);
    border-color: var(--brand-green);
}

.nav-btn.active {
    background: var(--brand-green);
    color: var(--text-primary);
    border-color: var(--brand-green);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-user {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-logout-nav {
    background: var(--brand-red);
    color: var(--text-primary);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-base);
}

.btn-logout-nav:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* ===== HEADER COMPACTO (MOBILE) ===== */
.app-header {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.app-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-green), transparent);
    opacity: 0.6;
}

.header-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    position: relative;
}

@media (max-width: 428px) {
    .header-content {
        max-width: 428px;
    }
}

.header-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
    justify-content: center;
}

.header-brand .prime-video-logo-img {
    margin: 0 auto;
    display: block;
}

/* Botão Hambúrguer */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 36px;
    height: 36px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }
}

.nav-hamburger span {
    width: 100%;
    height: 3px;
    background: var(--brand-green);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.nav-hamburger:hover span {
    background: var(--brand-green);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.header-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.3));
}

.header-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.header-user {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-left: auto;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: none;
}

@media (min-width: 769px) {
    .user-name {
        display: block;
    }
}

.btn-logout-header {
    background: var(--brand-red);
    color: var(--text-primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-logout-header:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ===== MENU LATERAL (SIDEBAR) MOBILE ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #1A1A1A;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.sidebar-menu.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
}

.sidebar-brand .prime-video-logo-img {
    margin: 0 auto;
}

.sidebar-icon {
    font-size: 1.75rem;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.5));
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.025em;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.sidebar-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
    font-weight: 300;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.sidebar-close:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: rotate(90deg);
}

.sidebar-close span {
    display: block;
    font-weight: 300;
}

.sidebar-content {
    flex: 1;
    padding: 0.75rem 0;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.01);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 1rem 1.25rem;
    color: #E5E5E5;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.02);
    margin: 0.25rem 0.5rem;
    border-radius: 8px;
}

.sidebar-link:hover {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-left-color: #10b981;
    transform: translateX(4px);
}

.sidebar-link:hover .sidebar-link-text {
    color: #10b981;
}

.sidebar-link.active {
    background: rgba(16, 185, 129, 0.25);
    color: #10b981;
    border-left-color: #10b981;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.sidebar-link.active .sidebar-link-text {
    color: #10b981;
    font-weight: 600;
}

.sidebar-link-icon {
    font-size: 1.5rem;
    width: 32px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.2));
}

.sidebar-link-text {
    flex: 1;
    color: #FFFFFF;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.sidebar-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.sidebar-user-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

.sidebar-user-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
}

@media (min-width: 769px) {
    .sidebar-overlay,
    .sidebar-menu {
        display: none !important;
    }
}


@media (max-width: 768px) {
    .steps-container {
        margin: 1rem auto 2rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.75rem;
        min-width: 80px;
    }
    
    .step-connector {
        top: -20px;
    }
}

/* ===== PAINEL ADMINISTRATIVO ===== */
.admin-container {
    display: flex;
    min-height: 100vh;
    background: #1a1a1a;
}

.admin-container-simple {
    min-height: 100vh;
    background: var(--bg-primary);
    padding-top: 70px;
    padding-bottom: 20px;
    max-width: 100%;
    margin: 0 auto;
}

@media (max-width: 428px) {
    .admin-container-simple {
        max-width: 428px;
    }
}

@media (max-width: 768px) {
    .admin-container-simple {
        padding-top: 60px;
        padding-bottom: 20px;
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
}

@media (min-width: 769px) {
    .admin-container-simple {
        max-width: 1200px;
    }
}

.admin-sidebar {
    width: 250px;
    background: #242424;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #333;
}

.sidebar-header h2 {
    color: #10b981;
    font-size: 1.2rem;
    margin: 0;
    letter-spacing: 0.1em;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: #1a1a1a;
    color: #10b981;
    border-left-color: #10b981;
}

.nav-item.active {
    background: #1a1a1a;
    color: #10b981;
    border-left-color: #10b981;
    font-weight: 600;
}

.nav-item.logout {
    color: #ef4444;
}

.nav-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid #333;
    text-align: center;
}

.sidebar-footer p {
    margin: 0 0 0.5rem 0;
    color: #666;
    font-size: 0.75rem;
}

.sidebar-footer strong {
    color: #10b981;
    font-size: 0.9rem;
}

.admin-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.admin-main-simple {
    min-height: calc(100vh - 80px);
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

@media (max-width: 768px) {
    .admin-main-simple {
        padding: 0;
        padding-bottom: 0;
        width: 100%;
    }
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #333;
}

.admin-header h1 {
    color: #10b981;
    font-size: 1.8rem;
    margin: 0;
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-badge {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.btn-primary {
    background: #3a3a3a;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #4a4a4a;
    transform: translateY(-1px);
}

.btn-danger {
    background: #ef4444;
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-success {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

.admin-section {
    animation: fadeIn 0.3s;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.content-section.active {
    display: block;
}

/* Garante alinhamento quando não há título na seção de contas */
section.content-section.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

section.content-section.active > * {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .content-section {
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        margin: 0;
    }
    
    section.content-section {
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
}

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

.section-title {
    color: var(--brand-green);
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
    margin-top: var(--space-sm);
    padding-bottom: var(--space-sm);
    text-align: center;
    width: 100%;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.1rem;
        margin-bottom: var(--space-md);
        padding: 0 var(--space-md);
        text-align: left;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) auto;
    max-width: 900px;
    width: 100%;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        margin: var(--space-lg) auto;
        padding: 0 var(--space-md);
        width: 100%;
        box-sizing: border-box;
    }
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: all var(--transition-base);
}

.stat-card:hover {
    border-color: var(--brand-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .stat-card {
        padding: var(--space-lg);
    }
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-content h3 {
    color: #b0b0b0;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
}

.stat-number {
    color: #10b981;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.recent-activity {
    background: #242424;
    border: 1px solid #333;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.recent-activity h3 {
    color: #10b981;
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 0.375rem;
    border: 1px solid #333;
}

.activity-icon {
    font-size: 1.5rem;
}

.activity-content strong {
    color: #e0e0e0;
    display: block;
    margin-bottom: 0.25rem;
}

.activity-content small {
    color: #666;
    font-size: 0.8rem;
}

.admin-form {
    background: #242424;
    border: 1px solid #333;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-form-simple {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    max-width: 500px;
    margin: var(--space-lg) auto;
    box-shadow: var(--shadow-lg);
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .admin-form-simple {
        padding: var(--space-lg);
        margin: var(--space-md) auto;
        max-width: 100%;
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

.admin-form-simple .form-field {
    margin-bottom: 1rem;
}

.admin-form-simple .form-field:last-of-type {
    margin-bottom: 1.5rem;
}

.admin-form-simple input {
    font-size: 1rem;
    padding: 1rem;
}

.admin-form-simple .btn-success {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.form-field input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 0.375rem;
    padding: 0.75rem;
    color: #e0e0e0;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.form-field input:focus {
    outline: none;
    border-color: #10b981;
    background: #1f1f1f;
}

.table-container {
    background: #242424;
    border: 1px solid #333;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: #1a1a1a;
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 2px solid #333;
}

.admin-table td {
    padding: 1rem;
    color: #e0e0e0;
    border-bottom: 1px solid #333;
    font-size: 0.85rem;
}

.admin-table tbody tr:hover {
    background: #1a1a1a;
}

.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.btn-toggle {
    padding: 0.4rem 0.8rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
    background: #3a3a3a;
    color: white;
}

.btn-toggle:hover {
    background: #4a4a4a;
}

.alert {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .alert {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: var(--space-md);
    }
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #10b981;
}

/* ===== LISTA DE USUÁRIOS ===== */
.users-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

@media (max-width: 768px) {
    .users-list {
        padding: 0 var(--space-md);
        width: 100%;
        box-sizing: border-box;
    }
}

.user-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* Contas Criadas - layout específico melhorado */
.lista_contas .user-card,
section.lista_contas .user-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    padding: 1rem 1.25rem;
    position: relative;
}

/* Checkbox de seleção */
.conta-checkbox-wrapper {
    flex: 0 0 auto;
    margin-right: 0.75rem;
}

.conta-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #10b981;
}

.conta-card-item {
    transition: all 0.2s ease;
}

.conta-card-item:hover {
    background: #242424;
}

.conta-card-item:has(.conta-checkbox:checked) {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

/* Header com ações */
.header-actions-contas {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.checkbox-select-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #e0e0e0;
    font-size: 0.9rem;
    user-select: none;
}

.checkbox-select-all input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #10b981;
}

.btn-copiar-selecionadas {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid #3b82f6;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.btn-copiar-selecionadas:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    -webkit-transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    text-decoration: none;
}

.btn-copiar-selecionadas.btn-email-senha {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border: 1px solid #8b5cf6;
}

.btn-copiar-selecionadas.btn-email-senha:hover {
    background: #8b5cf6;
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Botões de seleção de contas */
#botoesSelecionadas {
    display: none !important;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

#botoesSelecionadas.show,
#botoesSelecionadas[style*="flex"] {
    display: flex !important;
}

/* Logo Prime Video */
.prime-video-logo {
    display: inline-flex;
    align-items: baseline;
    font-family: 'Amazon Ember', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: #e0e0e0;
}

.prime-video-logo .prime-text {
    font-size: 1.5rem;
    color: #00a8e1;
    font-weight: 500;
}

.prime-video-logo .prime-smile {
    display: inline-block;
    vertical-align: baseline;
    margin: 0 2px;
}

.prime-video-logo .video-text {
    font-size: 1.5rem;
    color: #e0e0e0;
    font-weight: 300;
    margin-left: 4px;
}

.prime-video-logo-section {
    display: inline-flex;
    align-items: baseline;
    font-family: 'Amazon Ember', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    letter-spacing: -0.5px;
}

.prime-video-logo-section .prime-text {
    font-size: 2rem;
    color: #00a8e1;
    font-weight: 500;
}

.prime-video-logo-section .prime-smile-section {
    display: inline-block;
    vertical-align: baseline;
    margin: 0 3px;
}

.prime-video-logo-section .video-text {
    font-size: 2rem;
    color: #e0e0e0;
    font-weight: 300;
    margin-left: 6px;
}

.lista_contas .user-card .user-info,
section.lista_contas .user-card .user-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lista_contas .user-card .user-name,
section.lista_contas .user-card .user-name {
    margin-bottom: 0;
    font-size: 1rem;
}

.lista_contas .user-card .user-meta-contas,
section.lista_contas .user-card .user-meta-contas {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    margin-top: 0;
}

.lista_contas .user-card .user-meta-contas .meta-item,
section.lista_contas .user-card .user-meta-contas .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.lista_contas .user-card .user-actions,
section.lista_contas .user-card .user-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

@media (max-width: 768px) {
    .lista_contas .user-card,
    section.lista_contas .user-card {
        flex-direction: column;
        gap: 0;
        padding: 1.25rem;
        padding-top: 3rem;
        border-radius: 12px;
        margin-bottom: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: var(--bg-card);
        position: relative;
    }
    
    .lista_contas .user-card .user-info,
    section.lista_contas .user-card .user-info {
        flex: 1;
        min-width: 0;
        width: 100%;
    }
    
    .conta-checkbox-wrapper {
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 10;
    }
    
    .lista_contas .user-card .user-actions,
    section.lista_contas .user-card .user-actions {
        width: 100%;
        margin-top: 1rem;
    }
}

.user-card:hover {
    border-color: var(--brand-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .user-card {
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-md);
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .user-card .user-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .user-card .user-name {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        word-break: break-all;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #e0e0e0 !important;
    }
    
    
    .lista_contas .user-card .user-name,
    section.lista_contas .user-card .user-name {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
        word-break: break-all;
        line-height: 1.5;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .lista_contas .user-card .user-name .badge {
        align-self: flex-start;
        margin-top: 0.25rem;
    }
    
    .lista_contas .user-card .user-meta-contas,
    section.lista_contas .user-card .user-meta-contas {
        margin-top: 0.75rem;
        gap: 0.75rem;
        flex-direction: column;
        padding: 0.75rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .lista_contas .user-card .user-meta-contas .meta-item,
    section.lista_contas .user-card .user-meta-contas .meta-item {
        font-size: 0.85rem;
        padding: 0.5rem 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    
    .lista_contas .user-card .user-meta-contas .meta-label,
    section.lista_contas .user-card .user-meta-contas .meta-label {
        font-size: 0.8rem;
        color: #888;
        font-weight: 500;
        min-width: 60px;
    }
    
    .conta-checkbox-wrapper {
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 10;
    }
    
    .conta-checkbox {
        width: 24px;
        height: 24px;
        cursor: pointer;
    }
    
    .lista_contas .user-card .user-actions,
    section.lista_contas .user-card .user-actions {
        flex-direction: row;
        gap: 0.5rem;
        width: 100%;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .lista_contas .user-card .user-actions .btn-action,
    section.lista_contas .user-card .user-actions .btn-action {
        flex: 1;
        padding: 0.75rem;
        font-size: 0.85rem;
        justify-content: center;
        min-height: 44px;
    }
    
    .header-actions-contas {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
        margin-top: 1rem;
    }
    
    .checkbox-select-all {
        width: 100%;
        padding: 0.875rem 1rem;
        background: rgba(16, 185, 129, 0.1);
        border-radius: 8px;
        border: 1px solid rgba(16, 185, 129, 0.3);
        font-size: 0.9rem;
        transition: all 0.2s ease;
    }
    
    .checkbox-select-all:hover {
        background: rgba(16, 185, 129, 0.15);
    }
    
    .checkbox-select-all input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
    
    .btn-copiar-selecionadas,
    .btn-excluir-todas {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        min-height: 48px;
    }
    
    .contas-lista-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 12px;
        margin-bottom: 1.5rem;
    }
    
    .contas-stats {
        width: 100%;
        justify-content: center;
    }
    
    .contas-stats .badge-count {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
    }
    
    /* Ajuste específico para seção lista_contas no mobile */
    .lista_contas.content-section,
    section.lista_contas.content-section {
        padding: 1rem;
    }
    
    .lista_contas .section-title,
    section.lista_contas .section-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .lista_contas .users-list,
    section.lista_contas .users-list {
        padding: 0;
        margin: 0;
    }
}

.user-info {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 768px) {
    .user-info {
        min-width: 100%;
        width: 100%;
    }
}

.user-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    visibility: visible !important;
    opacity: 1 !important;
}

.user-meta {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: #888;
    visibility: visible !important;
    opacity: 1 !important;
}

.user-meta span {
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap;
}

.user-meta strong {
    color: #e0e0e0;
    font-weight: 600;
    margin-left: 0.25rem;
}

/* Mobile - user-meta visível e organizado */
@media (max-width: 768px) {
    .user-meta {
        display: flex !important;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.75rem;
        width: 100%;
        font-size: 0.85rem;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .user-meta span {
        display: block !important;
        padding: 0.25rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .user-meta span:last-child {
        border-bottom: none;
    }
    
    .user-meta strong {
        color: #e0e0e0;
        font-weight: 600;
        margin-left: 0.25rem;
    }
}

/* Layout específico para Contas Criadas */
.user-meta-contas {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    margin-top: 0;
}

.user-meta-contas .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.user-meta-contas .meta-label {
    color: #888;
    font-weight: 500;
}

.user-meta-contas .meta-item strong {
    color: #e0e0e0;
    font-weight: 600;
}

/* Mobile - layout em coluna */
@media (max-width: 768px) {
    .user-meta-contas {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }
}

.user-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-items: center;
}

/* Específico para Contas Criadas - botões simplificados */
.contas-actions {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    flex-wrap: nowrap;
    align-items: center;
    width: auto;
    justify-content: flex-end;
}

.contas-actions .btn-action {
    flex: 0 1 auto;
    white-space: nowrap;
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 130px;
}

.contas-actions .btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.contas-actions .btn-action:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Cores específicas para cada botão */
.contas-actions .btn-edit {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
}

.contas-actions .btn-edit:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.contas-actions .btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
}

.contas-actions .btn-delete:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

@media (max-width: 768px) {
    .user-actions {
        width: 100%;
        justify-content: flex-start;
        gap: var(--space-xs);
        flex-wrap: wrap;
    }
    
    /* Em mobile, Contas Criadas - botões lado a lado ou empilhados */
    .contas-actions {
        flex-wrap: wrap;
        gap: 0.75rem;
        width: 100%;
        justify-content: stretch;
    }
    
    .contas-actions .btn-action {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 0.85rem;
        padding: 0.85rem 1rem;
        width: 100%;
    }
}

.btn-action {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .btn-action {
        flex: 1;
        min-width: 0;
        padding: var(--space-sm) var(--space-md);
        font-size: 0.75rem;
        min-height: 44px;
    }
}

.btn-edit {
    background: #3b82f6;
    color: white;
}

.btn-edit:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-pause {
    background: #f59e0b;
    color: white;
}

.btn-pause:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.btn-delete {
    background: #ef4444;
    color: white;
}

.btn-delete:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.badge-admin {
    background: #10b981;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}

.modal-content {
    background: var(--bg-card);
    border: 2px solid var(--brand-green);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    animation: slideIn 0.3s;
    position: relative;
}

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

.modal-content h3 {
    color: var(--brand-green);
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
}

.modal-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    white-space: pre-line;
    text-align: center;
    font-size: 0.95rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
}

.btn-cancel {
    flex: 1;
    padding: 0.75rem;
    background: #3a3a3a;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #4a4a4a;
}

.modal-buttons .btn-success {
    flex: 1;
    margin: 0;
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: white;
    font-weight: 700;
}

.modal-buttons .btn-success:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-cancel {
    background: #3a3a3a;
    color: white;
    border: 1px solid #4a4a4a;
}

.btn-cancel:hover {
    background: #4a4a4a;
    border-color: #5a5a5a;
}

/* ===== DASHBOARD ===== */
.dashboard-actions {
    max-width: 900px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 768px) {
    .dashboard-actions {
        grid-template-columns: 1fr;
        margin: var(--space-xl) auto 0;
        padding: 0 var(--space-md);
        width: 100%;
        box-sizing: border-box;
    }
}

.action-card {
    background: #242424;
    border: 2px solid #333;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.action-card:hover {
    border-color: #10b981;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.action-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.action-card h3 {
    color: #10b981;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
}

.action-card p {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

/* ===== LISTA DE EMAILS PARA HOTMAIL ===== */
.emails-list-container {
    max-width: 1000px;
    margin: 1.5rem auto;
    display: grid;
    gap: 1rem;
}

.hotmail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.email-card-hotmail {
    background: #242424;
    border: 1px solid #333;
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s;
}

.email-card-hotmail:hover {
    border-color: #10b981;
    transform: translateY(-2px);
}

.email-prefixo-section,
.email-senha-section {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.prefixo-display,
.senha-display {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    width: 100%;
}

.prefixo-text,
.senha-text {
    font-family: monospace;
    font-size: 0.95rem;
    color: #e0e0e0;
    font-weight: 600;
    word-break: break-all;
    flex: 0 1 auto;
    min-width: 0;
}

.prefixo-text {
    color: #10b981;
}

.senha-text {
    color: #10b981;
}

.btn-copy-prefixo,
.btn-copy-senha {
    flex-shrink: 0;
    margin-left: 0.15rem;
    padding: 0.4rem 0.5rem;
}

.email-info-hotmail {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}

.email-display, .senha-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.email-text, .senha-text {
    font-family: monospace;
    font-size: 0.95rem;
    color: #e0e0e0;
    font-weight: 600;
    flex: 1;
    word-break: break-all;
}

.senha-text {
    color: #10b981;
}

.btn-copy-small,
.btn-copy-prefixo,
.btn-copy-senha {
    background: #3a3a3a;
    border: none;
    color: #b0b0b0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    min-width: 45px;
}

.btn-copy-small:hover,
.btn-copy-prefixo:hover,
.btn-copy-senha:hover {
    background: #10b981;
    color: white;
    transform: scale(1.1);
}

.email-actions-hotmail {
    display: flex;
    align-items: center;
}

.btn-criado {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.btn-criado:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-criado:active {
    transform: translateY(0);
}

/* ===== LAYOUT CRIAR EMAIL ===== */
.criar-email-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1rem;
    max-width: 1400px;
    margin: 0.5rem auto;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
    padding: 0 var(--space-md);
    max-height: calc(100vh - 100px);
}

@media (max-width: 1024px) {
    .criar-email-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-side {
        position: static;
        top: auto;
    }
}

@media (max-width: 768px) {
    .criar-email-layout {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
        gap: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

.form-side {
    position: sticky;
    top: 70px;
    width: 100%;
    box-sizing: border-box;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
}

.form-side::-webkit-scrollbar {
    width: 6px;
}

.form-side::-webkit-scrollbar-track {
    background: transparent;
}

.form-side::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.form-side::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (max-width: 768px) {
    .form-side {
        position: static;
        top: auto;
    }
}

.table-side {
    min-height: auto;
    width: 100%;
    box-sizing: border-box;
    transition: min-height 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: calc(100vh - 150px);
    overflow: hidden;
}

@media (max-width: 768px) {
    .table-side {
        min-height: auto;
        max-height: none;
        height: auto;
        overflow: visible;
    }
}

.form-title {
    color: #10b981;
    font-size: 1rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
    text-align: center;
}

/* ===== FORMULÁRIO ORGANIZADO ===== */
.form-container-organized {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.form-organized {
    padding: 0;
}

.form-grid-organized {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.form-group-organized {
    display: flex;
    flex-direction: column;
}

.form-group-organized label {
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group-organized input,
.form-group-organized select {
    width: 100%;
    max-width: 100%;
    background: var(--bg-surface);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.65rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition-base);
    box-sizing: border-box;
}

.form-group-organized input:focus,
.form-group-organized select:focus {
    outline: none;
    border-color: #10b981;
    background: #1f1f1f;
}

.form-group-organized small {
    color: #666;
    font-size: 0.7rem;
    margin-top: 0.3rem;
    line-height: 1.3;
}

.form-actions-organized {
    display: flex;
    justify-content: center;
    padding-top: 0.75rem;
    border-top: 1px solid #333;
    margin-top: 0.5rem;
}

.form-actions-organized .btn-success {
    min-width: 200px;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .criar-email-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-side {
        position: static;
    }
}


/* ===== SEÇÃO DE EMAILS ORGANIZADA ===== */
.emails-section-organized {
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    min-height: 0;
}

@media (max-width: 768px) {
    .emails-section-organized {
        padding: 0;
        margin: 0;
        width: 100%;
        height: auto;
        flex: none;
    }
}

.section-header-organized {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #333;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .section-header-organized {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
        padding: var(--space-md);
        margin-bottom: var(--space-md);
        width: 100%;
        box-sizing: border-box;
    }
}

.section-header-organized h3 {
    color: #10b981;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    width: auto;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: var(--space-sm);
        flex-wrap: wrap;
    }
}

.badge-count {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 0.3rem 0.65rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .badge-count {
        width: 100%;
        text-align: center;
        padding: var(--space-sm);
    }
}

.btn-limpar-todos {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
    padding: 0.4rem 0.85rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.btn-limpar-todos:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-limpar-todos:active {
    transform: translateY(0);
}

.emails-grid-organized {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.email-card-organized {
    background: #242424;
    border: 1px solid #333;
    border-radius: 0.5rem;
    padding: 1rem;
    position: relative;
    transition: all 0.2s;
}

.email-card-organized:hover {
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.email-header-organized {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.email-address {
    font-family: monospace;
    font-size: 0.9rem;
    color: #e0e0e0;
    font-weight: 600;
    flex: 1;
    word-break: break-all;
}

.btn-copy-icon {
    background: #3a3a3a;
    border: none;
    color: #b0b0b0;
    padding: 0.4rem 0.6rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-copy-icon:hover {
    background: #10b981;
    color: white;
    transform: scale(1.1);
}

.email-footer-organized {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
    gap: 1rem;
}

.email-password {
    color: #10b981;
}

.email-password strong {
    color: #10b981;
    font-weight: 600;
}

.email-date {
    color: #666;
    font-size: 0.75rem;
}

.btn-delete-small {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    color: #ef4444;
    padding: 0.3rem 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-small:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
}

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #666;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .empty-state {
        padding: var(--space-xl) var(--space-md);
    }
}

.empty-state p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* ===== TABELA DE EMAILS ===== */
.table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    overflow-y: auto;
    margin-top: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: opacity 0.15s ease;
    flex: 1;
    min-height: 0;
}

.table-wrapper.loading {
    opacity: 0.6;
    pointer-events: none;
}

.table-wrapper::-webkit-scrollbar {
    width: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
    transition: background 0.2s;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

/* Estilos específicos para tabela de emails gerados */
.table-wrapper-gerados {
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.table-emails-gerados {
    max-height: 550px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.table-emails-gerados .emails-section-organized {
    height: 100%;
    max-height: 550px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.table-emails-gerados .table-wrapper-gerados {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .table-emails-gerados {
        max-height: 400px;
    }
    
    .table-emails-gerados .emails-section-organized {
        max-height: 400px;
    }
    
    .table-wrapper-gerados {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .table-wrapper {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-top: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.emails-table {
    width: 100%;
    border-collapse: collapse;
}

.emails-table thead {
    background: #1a1a1a;
}

.emails-table th {
    padding: 0.6rem;
    text-align: left;
    color: #10b981;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #333;
}

.emails-table td {
    padding: 0.6rem;
    border-bottom: 1px solid #333;
    color: #e0e0e0;
    font-size: 0.8rem;
}

.emails-table tbody tr:hover {
    background: #1a1a1a;
}

.emails-table tbody tr:last-child td {
    border-bottom: none;
}

.email-cell {
    font-family: monospace;
    font-weight: 600;
    color: #e0e0e0;
    font-size: 0.8rem;
    word-break: break-all;
}

.senha-cell {
    font-family: monospace;
    color: #10b981;
    font-weight: 600;
    font-size: 0.8rem;
}

.date-cell {
    color: #888;
    font-size: 0.8rem;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-table-copy,
.btn-table-delete {
    background: #3a3a3a;
    border: none;
    color: #b0b0b0;
    padding: 0.4rem 0.6rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-table-copy:hover {
    background: #10b981;
    color: white;
    transform: scale(1.1);
}

.btn-table-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-table-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
}

/* ===== PAGINAÇÃO ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .pagination {
        padding: var(--space-md);
        gap: var(--space-sm);
        flex-wrap: wrap;
    }
}

.pagination-btn {
    background: #3a3a3a;
    color: #e0e0e0;
    padding: 0.4rem 0.8rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid #333;
    min-width: 36px;
    text-align: center;
    cursor: pointer;
}

.pagination-btn:hover:not(.disabled) {
    background: #10b981;
    color: white;
    border-color: #10b981;
    transform: translateY(-1px);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn button {
    border: none;
    background: inherit;
    color: inherit;
    font: inherit;
    cursor: inherit;
    padding: inherit;
    width: 100%;
    height: 100%;
}

.pagination-info {
    color: #b0b0b0;
    font-size: 0.75rem;
}

.pagination-info strong {
    color: #10b981;
    font-weight: 700;
}

@media (max-width: 768px) {
    .table-wrapper {
        overflow-x: auto;
    }
    
    .emails-table {
        min-width: 600px;
    }
    
    .emails-table th,
    .emails-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
}

.btn-criado.criado,
.btn-criado[disabled] {
    background: #10b981;
    opacity: 0.8;
    cursor: not-allowed;
}

/* ===== SISTEMA DE ETAPAS PRIME VIDEO ===== */
.prime-steps-container {
    max-width: 800px;
    margin: 2rem auto;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-sizing: border-box;
}

.steps-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    padding: 0 1rem;
}

.steps-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #333;
    z-index: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    padding: 0 0.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    border: 2px solid #333;
}

.step-item.active .step-number {
    background: var(--brand-green);
    color: white;
    border-color: var(--brand-green);
    transform: scale(1.1);
}

.step-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.step-item.active .step-label {
    color: var(--brand-green);
}

.prime-form-steps {
    position: relative;
    min-height: 400px;
}

.step-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step-panel.active {
    display: block;
}

.step-title {
    color: var(--brand-green);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.form-group-prime {
    margin-bottom: 1.5rem;
}

.form-group-prime label {
    display: block;
    color: var(--brand-green);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group-prime input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-surface);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-group-prime input:focus {
    outline: none;
    border-color: var(--brand-green);
    background: #1f1f1f;
}

.form-group-prime small {
    display: block;
    color: #666;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.form-row-prime {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-with-copy {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-with-copy input {
    flex: 1;
}

.btn-copy-field {
    background: var(--brand-green);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 50px;
}

.btn-copy-field:hover {
    background: #059669;
    transform: scale(1.05);
}

.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

.btn-continue,
.btn-back-step,
.btn-finalizar {
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-continue {
    background: var(--brand-green);
    color: white;
    margin-left: auto;
}

.btn-continue:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-back-step {
    background: #3a3a3a;
    color: var(--text-primary);
}

.btn-back-step:hover {
    background: #4a4a4a;
}

.btn-finalizar {
    background: var(--brand-green);
    color: white;
    margin-left: auto;
}

.btn-finalizar:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.section-subtitle {
    color: var(--brand-green);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contas-criadas-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #333;
}

/* ===== DADOS FIXOS PARA COPIAR ===== */
.dados-fixos-container {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 0 auto 2rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.dados-fixos-title {
    color: var(--brand-green);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.dados-fixos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.dado-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dado-item label {
    color: var(--brand-green);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dado-value-copy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-surface);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.65rem;
    min-height: 44px;
}

.dado-value {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: monospace;
    word-break: break-all;
}

.btn-copy-dado {
    background: var(--brand-green);
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-copy-dado:hover {
    background: #059669;
    transform: scale(1.05);
}

.dado-input {
    flex: 1;
    background: var(--bg-surface);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.65rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: monospace;
    min-height: 44px;
    box-sizing: border-box;
}

.dado-input:focus {
    outline: none;
    border-color: var(--brand-green);
    background: #1f1f1f;
}

.btn-pular-cartao {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-pular-cartao:hover {
    background: #d97706;
    transform: scale(1.05);
}

.dados-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #333;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-conta-criada,
.btn-conta-erro {
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 180px;
}

.btn-conta-criada {
    background: var(--brand-green);
    color: white;
}

.btn-conta-criada:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-conta-erro {
    background: #ef4444;
    color: white;
}

.btn-conta-erro:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.mensagem-cartoes {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: var(--radius-md);
    text-align: center;
}

.mensagem-cartoes p {
    color: #ef4444;
    margin: 0;
    font-weight: 600;
}

.mensagem-cartoes a {
    color: var(--brand-green);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .dados-actions {
        flex-direction: column;
    }
    
    .btn-conta-criada,
    .btn-conta-erro {
        width: 100%;
    }
    
    .dado-input {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
}

/* ===== LISTA DE CONTAS ===== */
.contas-lista-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #333;
    flex-wrap: wrap;
    gap: 1rem;
}

.contas-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-importar-emails {
    background: transparent;
    color: #10b981;
    border: 1px solid #10b981;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-importar-emails:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-importar-emails:active {
    transform: translateY(0);
}

.btn-excluir-todas {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.btn-excluir-todas:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
    -webkit-transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    text-decoration: none;
}

.btn-excluir-selecionadas {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.btn-excluir-selecionadas:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
    -webkit-transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    text-decoration: none;
}

@media (max-width: 768px) {
    .dados-fixos-container {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .dados-fixos-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .dado-value-copy {
        padding: 0.75rem;
        min-height: 48px;
    }
    
    .dado-value {
        font-size: 0.85rem;
    }
    
    .btn-copy-dado {
        min-width: 48px;
        min-height: 48px;
        padding: 0.5rem;
    }
    
    .contas-lista-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-buttons {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-importar-emails,
    .btn-excluir-todas {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .prime-steps-container {
        padding: 1rem;
        margin: 1rem auto;
    }
    
    .steps-indicator {
        padding: 0;
        margin-bottom: 1.5rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.65rem;
    }
    
    .step-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .form-row-prime {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .step-actions {
        flex-direction: column;
    }
    
    .btn-continue,
    .btn-back-step,
    .btn-finalizar {
        width: 100%;
        margin-left: 0;
    }
}

/* ===== SISTEMA DE ETAPAS ===== */
.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto 2rem;
    max-width: 600px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #3a3a3a;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    border: 3px solid #333;
    transition: all 0.3s;
}

.step-item.active .step-number {
    background: #10b981;
    color: white;
    border-color: #10b981;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.step-item.completed .step-number {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.step-label {
    color: #888;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    min-width: 100px;
}

.step-item.active .step-label {
    color: #10b981;
    font-weight: 700;
}

.step-item.completed .step-label {
    color: #10b981;
}

.step-connector {
    flex: 1;
    height: 3px;
    background: #333;
    margin: 0 1rem;
    position: relative;
    top: -25px;
    transition: all 0.3s;
}

.step-connector.completed {
    background: #10b981;
}

.steps-content {
    max-width: 700px;
    margin: 0 auto;
}

.step-panel {
    background: #242424;
    border: 1px solid #333;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 1rem;
}

.step-panel h3 {
    color: #10b981;
    font-size: 1rem;
    margin: 0 0 1rem 0;
    text-align: center;
}

/* ===== NOTIFICAÇÕES POP-UP ===== */
.notificacoes-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
    max-width: 400px;
    pointer-events: none;
}

.notificacao {
    background: #242424;
    border: 1px solid #333;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(150px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
}

.notificacao.show {
    transform: translateY(0);
    opacity: 1;
}

.notificacao-success {
    border-left: 4px solid #10b981;
    background: #1a2e1f;
}

.notificacao-error {
    border-left: 4px solid #ef4444;
    background: #2e1a1a;
}

.notificacao-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.notificacao-mensagem {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
    line-height: 1.5;
}

.notificacao-success .notificacao-mensagem {
    color: #10b981;
}

.notificacao-error .notificacao-mensagem {
    color: #ef4444;
}

.notificacao-fechar {
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.notificacao-fechar:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

@media (max-width: 768px) {
    /* Body e Container */
    body {
        padding: 0;
        overflow-x: hidden !important;
        overflow-y: auto;
        font-size: 16px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    /* Centralizar logo Prime Video no mobile */
    .nav-brand,
    .header-brand,
    .sidebar-brand {
        justify-content: center !important;
        width: 100%;
    }
    
    .nav-brand .prime-video-logo-img,
    .header-brand .prime-video-logo-img,
    .sidebar-brand .prime-video-logo-img {
        margin: 0 auto;
        display: block;
    }
    
    html {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100vw;
    }
    
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Previne overflow em todos os elementos */
    div, section, article, aside, header, footer, nav, main {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Garante que imagens não quebrem */
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
    
    /* Header compacto no mobile */
    .app-header {
        padding: 0.75rem 1rem;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .header-content {
        max-width: 100%;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        flex: 1;
        width: 100%;
    }
    
    .header-brand .prime-video-logo-img {
        margin: 0 auto;
    }
    
    .header-title {
        font-size: 0.9rem;
        font-weight: 800;
        text-align: left;
    }
    
    .header-icon {
        font-size: 1.2rem;
    }
    
    .btn-logout-header {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
        min-height: 32px;
        white-space: nowrap;
    }
    
    /* Container ajustado */
    .container {
        padding: 0;
        max-width: 100%;
        width: 100%;
        padding-bottom: 20px;
        box-sizing: border-box;
        overflow-x: hidden;
        margin: 0;
    }
    
    @media (max-width: 428px) {
        .container {
            max-width: 428px;
            margin: 0 auto;
            width: 100%;
        }
    }
    
    /* Grid e Panels */
    .grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .panel {
        padding: 0.75rem;
        min-height: auto;
    }
    
    /* Formulários */
    .form-container-organized {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin: 0;
        background: var(--bg-card);
    }
    
    .form-title {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding: 0;
        text-align: center;
    }
    
    .form-grid-organized {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .form-group-organized {
        margin-bottom: 0;
        width: 100%;
        box-sizing: border-box;
        padding: 0;
    }
    
    .form-group-organized label {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
        font-weight: 700;
    }
    
    .form-group-organized input,
    .form-group-organized select {
        padding: 0.75rem;
        font-size: 16px;
        min-height: 50px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-radius: 0.5rem;
        -webkit-appearance: none;
        appearance: none;
        border: 2px solid var(--border-light);
        background: var(--bg-surface);
    }
    
    .form-group-organized small {
        font-size: 0.7rem;
        margin-top: 0.35rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        display: block;
        width: 100%;
        max-width: 100%;
        line-height: 1.4;
        color: #666;
    }
    
    .form-actions-organized {
        padding: 1rem 0 0;
        margin: 0;
        border-top: 1px solid #333;
    }
    
    .form-actions-organized .btn-success {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        min-height: 52px;
        font-weight: 700;
        box-sizing: border-box;
    }
    
    /* Layout Criar Email */
    .criar-email-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    .form-side {
        position: static;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        order: 1;
        padding: 0;
        margin: 0;
    }
    
    .table-side {
        order: 2;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
    }
    
    .emails-section-organized {
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Tabelas */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }
    
    .emails-table {
        min-width: 600px;
        width: 100%;
        box-sizing: border-box;
        font-size: 0.85rem;
    }
    
    .emails-table th,
    .emails-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .email-cell,
    .senha-cell {
        font-size: 0.85rem;
    }
    
    .btn-table-copy,
    .btn-table-delete {
        padding: 0.5rem;
        font-size: 1rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Cards Hotmail */
    .hotmail-layout {
        gap: 1rem;
    }
    
    .email-card-hotmail {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .email-prefixo-section,
    .email-senha-section {
        width: 100%;
    }
    
    .prefixo-display,
    .senha-display {
        gap: 0.5rem;
    }
    
    .prefixo-text,
    .senha-text {
        font-size: 1rem;
    }
    
    .btn-copy-prefixo,
    .btn-copy-senha {
        padding: 0.6rem 0.75rem;
        font-size: 1rem;
        min-width: 50px;
        min-height: 44px;
    }
    
    .email-actions-hotmail {
        width: 100%;
    }
    
    .btn-criado {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 50px;
    }
    
    /* Paginação */
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .pagination-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
        min-width: 35px;
    }
    
    .pagination-info {
        font-size: 0.75rem;
    }
    
    /* Seções */
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .section-header-organized {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .section-header-organized h3 {
        width: 100%;
        text-align: left;
        margin: 0;
        font-size: 1rem;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.5rem;
    }
    
    .btn-limpar-todos {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
        font-size: 0.9rem;
        min-height: 48px;
        box-sizing: border-box;
    }
    
    /* Notificações */
    .notificacoes-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: 100%;
    }
    
    .notificacao {
        transform: translateY(150px);
        padding: 0.75rem 1rem;
    }
    
    .notificacao.show {
        transform: translateY(0);
    }
    
    .notificacao-mensagem {
        font-size: 0.8rem;
    }
    
    /* Botões Gerais */
    .btn-success,
    .btn-primary {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        min-height: 50px;
    }
    
    .btn-action {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    /* Contas */
    .emails-list-container {
        gap: 0.75rem;
    }
    
    .email-card-hotmail {
        padding: 1rem;
    }
    
    /* Formulário Gerar BIN */
    .form-row,
    .grid-row-2,
    .grid-row-5 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .toggle-col {
        padding-top: 0;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .toggle-label {
        font-size: 0.75rem;
    }
    
    .form-group label {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.75rem;
        font-size: 0.9rem;
        height: 44px;
        min-height: 44px;
    }
    
    .form-group textarea {
        padding: 0.75rem;
        font-size: 16px;
        min-height: 120px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Painéis e Grid */
    .panel {
        padding: 1rem;
        min-height: auto;
        max-height: none;
    }
    
    .panel.results-panel {
        height: auto;
    }
    
    .results {
        min-height: 0;
    }
    
    /* Botões */
    .btn-generate,
    .btn-primary,
    .btn-success {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        min-height: 50px;
    }
    
    .btn-action {
        flex: 1;
        min-width: 0;
    }
    
    /* Actions */
    .actions {
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }
    
    /* Resultados */
    #results {
        font-size: 0.85rem;
        padding: 0.75rem;
        line-height: 1.6;
        word-break: break-all;
    }
    
    /* Alerts */
    .alert,
    .alert-success,
    .alert-error {
        padding: 1rem;
        font-size: 0.9rem;
        margin: 0.75rem 0;
        border-radius: 0.5rem;
    }
    
    /* Seções de conteúdo */
    .content-section {
        padding: 0.5rem;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin: 0.75rem 0 1rem;
    }
    
    /* Empty State */
    .empty-state {
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .empty-state p {
        font-size: 0.9rem;
    }
    
    /* Badge */
    .badge-count {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
    
    /* Form Title */
    .form-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Section Header */
    .section-header-organized h3 {
        font-size: 1rem;
    }
    
    /* Contas Prime */
    .emails-list-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .email-card-prime {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Textarea */
    textarea {
        font-size: 16px;
        padding: 0.75rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-radius: 0.5rem;
        min-height: 150px;
    }
    
    /* Switch/Toggle */
    .switch {
        width: 44px;
        height: 24px;
    }
    
    .slider {
        border-radius: 24px;
    }
    
    .slider:before {
        width: 20px;
        height: 20px;
    }
    
    /* Garante que imagens e elementos não quebrem */
    img,
    video,
    iframe {
        max-width: 100%;
        height: auto;
    }
    
    /* Garante que inputs não quebrem */
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    select,
    textarea {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Previne overflow horizontal */
    body,
    html {
        overflow-x: hidden;
        width: 100%;
    }
    
    .container,
    .panel,
    .form-container-organized,
    .table-wrapper {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Força todos elementos a respeitarem limites no mobile */
    * {
        max-width: 100%;
    }
    
    .container, 
    .criar-email-layout, 
    .form-container-organized, 
    .emails-section-organized, 
    .table-side, 
    .form-side,
    section,
    div {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Inputs e Selects - força 16px para evitar zoom no iOS */
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea,
    button {
        font-size: 16px !important;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Garante que textos longos quebrem */
    p, span, div, td, th, label, small {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    /* Melhorias específicas para botões em mobile */
    button,
    .btn-generate,
    .btn-success,
    .btn-primary,
    .btn-action,
    .btn-logout,
    .btn-logout-header,
    .btn-logout-nav,
    .btn-copy-senha,
    .btn-copy-prefixo,
    .btn-copy-dado,
    .btn-table-copy,
    .btn-table-delete,
    .btn-criado,
    .btn-limpar-todos,
    .btn-excluir-todas,
    .btn-continue,
    .btn-back-step,
    .btn-finalizar,
    .btn-edit,
    .btn-pause,
    .btn-delete,
    .btn-cancel,
    .pagination-btn,
    .nav-btn,
    .nav-item,
    a[class*="btn"] {
        min-height: 44px !important;
        min-width: 44px !important;
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(16, 185, 129, 0.3);
        user-select: none;
        -webkit-user-select: none;
        box-sizing: border-box !important;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: auto;
        max-width: 100%;
    }
    
    /* Botões de ação em grupos */
    .actions button,
    .user-actions button,
    .user-actions a,
    .email-actions-hotmail button,
    .contas-lista-header button {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0.25rem 0;
    }
    
    /* Botões em grid/flex */
    .form-actions-organized button,
    .step-actions button,
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        max-width: 95%;
        border-radius: var(--radius-md);
    }
    
    .modal-content h3 {
        font-size: 1.1rem;
    }
    
    .modal-content p {
        font-size: 0.9rem;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .modal-buttons button {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    /* Botões pequenos (ícones) */
    .btn-x,
    .btn-table-copy,
    .btn-table-delete {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem !important;
    }
    
    /* Garantir que botões não saiam da tela */
    .actions,
    .user-actions,
    .email-actions-hotmail,
    .contas-lista-header,
    .form-actions-organized,
    .step-actions,
    .modal-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Botões em tabelas mobile */
    .emails-table .btn-table-copy,
    .emails-table .btn-table-delete {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    /* Menu inferior mobile - botões maiores */
    .bottom-nav .nav-item {
        min-height: 56px;
        padding: 0.5rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .bottom-nav .nav-icon {
        font-size: 1.5rem;
    }
    
    .bottom-nav .nav-label {
        font-size: 0.7rem;
    }
    
    /* Login button */
    .btn-login {
        width: 100%;
        min-height: 52px;
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Admin buttons */
    .admin-form-simple button,
    .admin-form-simple .btn-success {
        width: 100%;
        min-height: 52px;
        padding: 1rem;
    }
    
    /* Cards de usuário - botões empilhados */
    .user-card .user-actions {
        flex-direction: row;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .user-card .user-actions button,
    .user-card .user-actions a {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
        margin: 0.25rem 0;
    }
    
    /* Contas Criadas - mantém lado a lado mesmo em mobile se possível */
    .lista_contas .user-card .user-actions,
    #lista_contas .user-card .user-actions,
    section[data-section="lista_contas"] .user-card .user-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .lista_contas .user-card .user-actions button,
    .lista_contas .user-card .user-actions a,
    #lista_contas .user-card .user-actions button,
    #lista_contas .user-card .user-actions a,
    section[data-section="lista_contas"] .user-card .user-actions button,
    section[data-section="lista_contas"] .user-card .user-actions a {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 120px;
    }
}

/* Botão de Configuração de Senha Prime Video - Responsivo */
.btn-config-senha {
    transition: all 0.3s ease;
}

.btn-config-senha:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.4) !important;
}

/* Garantir que título e botão fiquem sempre na mesma linha */
.content-section > div:first-child {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.content-section > div:first-child .section-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .btn-config-senha {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    .content-section > div:first-child .section-title {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .btn-config-senha {
        font-size: 0.7rem !important;
        padding: 0.35rem 0.7rem !important;
    }
    
    .content-section > div:first-child .section-title {
        font-size: 0.9rem !important;
    }
    
    .content-section > div:first-child {
        gap: 0.5rem !important;
    }
}

