/* ========================================
   UseCash Web App - Styles
   Brand: UseCash Conta Digital v6.37
   Core: #356a89 (UseCash Blue-Teal)
   Accent: #ca6f35 (UseCash Orange)
   Font: Poppins (official app font)
   ======================================== */

@font-face {
    font-family: 'Glyphicons Halflings';
    src: url('fonts/glyphicons-halflings-regular.eot');
    src: url('fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
         url('fonts/glyphicons-halflings-regular.woff2') format('woff2'),
         url('fonts/glyphicons-halflings-regular.woff') format('woff'),
         url('fonts/glyphicons-halflings-regular.ttf') format('truetype');
}
.glyphicon {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.glyphicon-list-alt:before{content:"\e032"}
.glyphicon-credit-card:before{content:"\e177"}
.glyphicon-triangle-right:before{content:"\e250"}
.glyphicon-usd:before{content:"\e148"}
.glyphicon-minus-sign:before{content:"\e082"}
.glyphicon-briefcase:before{content:"\e139"}
.glyphicon-tasks:before{content:"\e137"}
.glyphicon-backward:before{content:"\e071"}
.glyphicon-lock:before{content:"\e033"}
.glyphicon-user:before{content:"\e008"}
.glyphicon-transfer:before{content:"\e178"}
.glyphicon-folder-close:before{content:"\e117"}
.glyphicon-barcode:before{content:"\e040"}
.glyphicon-th-list:before{content:"\e012"}
.glyphicon-dashboard:before{content:"\e141"}
.glyphicon-tag:before{content:"\e041"}
.glyphicon-ok:before{content:"\e013"}
.glyphicon-remove:before{content:"\e014"}
.glyphicon-search:before{content:"\e003"}
.glyphicon-floppy-disk:before{content:"\e172"}
.glyphicon-send:before{content:"\e171"}
.glyphicon-headphones:before{content:"\e035"}
.glyphicon-cog:before{content:"\e019"}
.glyphicon-qrcode:before{content:"\e039"}
.glyphicon-trash:before{content:"\e020"}
.glyphicon-export:before{content:"\e170"}
.glyphicon-refresh:before{content:"\e031"}
.glyphicon-home:before{content:"\e021"}
.glyphicon-stats:before{content:"\e185"}
.glyphicon-heart:before{content:"\e005"}
.glyphicon-star:before{content:"\e006"}
.glyphicon-flag:before{content:"\e034"}
.glyphicon-folder-open:before{content:"\e118"}
.glyphicon-check:before{content:"\e067"}
.glyphicon-ban-circle:before{content:"\e090"}
.glyphicon-time:before{content:"\e023"}
.glyphicon-eye-open:before{content:"\e105"}
.glyphicon-comment:before{content:"\e111"}
.glyphicon-warning-sign:before{content:"\e107"}
.glyphicon-info-sign:before{content:"\e086"}
.glyphicon-flash:before{content:"\e162"}
.glyphicon-ok-circle:before{content:"\e089"}
.glyphicon-edit:before{content:"\e065"}
.glyphicon-share-alt:before{content:"\e095"}
.glyphicon-print:before{content:"\e045"}
.glyphicon-download:before{content:"\e025"}
.glyphicon-upload:before{content:"\e027"}
.glyphicon-bell:before{content:"\e123"}
.glyphicon-chevron-left:before{content:"\e079"}
.glyphicon-chevron-right:before{content:"\e080"}
.center-block {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.menu-icon {
    display: block;
    text-align: center;
}

:root {
    --uc-blue: #356a89;
    --uc-blue-dark: #27536d;
    --uc-blue-light: #4d7f9f;
    --uc-blue-soft: #e8f0f5;
    --uc-orange: #ca6f35;
    --uc-orange-dark: #a85827;
    --uc-orange-soft: #fdf1e8;
    --uc-white: #ffffff;
    --uc-gray-bg: #f4f7fa;
    --uc-gray-border: #dde5ec;
    --uc-gray-text: #6b7a86;
    --uc-gray-muted: #9aa8b3;
    --uc-text: #1c2b36;
    --uc-success: #2e8b57;
    --uc-danger: #d9534f;
    --uc-shadow: 0 2px 12px rgba(53, 106, 137, 0.12);
    --uc-shadow-lg: 0 8px 24px rgba(53, 106, 137, 0.18);
    --radius: 14px;
    --radius-sm: 10px;
    --transition: all 0.22s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--uc-gray-bg);
    color: var(--uc-text);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button {
    font-family: inherit;
}

/* ========================================
   Screen Management
   ======================================== */
.screen {
    display: none;
    min-height: 100vh;
}
.screen.active {
    display: block;
}

/* ========================================
   Login Screen
   ======================================== */
#login-screen {
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 100vh;
    background: linear-gradient(160deg, #ffffff 0%, var(--uc-blue-soft) 60%, var(--uc-blue) 100%);
    position: relative;
    overflow: hidden;
}

#login-screen.active {
    display: flex;
}

#login-screen::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(202, 111, 53, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

#login-screen::after {
    content: "";
    position: absolute;
    bottom: -140px;
    left: -100px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(53, 106, 137, 0.20) 0%, transparent 70%);
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 400px;
    background: var(--uc-white);
    border-radius: var(--radius);
    box-shadow: var(--uc-shadow-lg);
    padding: 40px 32px;
    position: relative;
    z-index: 1;
    border-top: 4px solid var(--uc-orange);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.logo {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    margin: 0 auto 14px;
    object-fit: contain;
    display: block;
    box-shadow: var(--uc-shadow);
}

.login-header h1 {
    font-size: 30px;
    font-weight: 700;
    color: var(--uc-blue);
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.subtitle {
    color: var(--uc-gray-text);
    font-size: 14px;
    font-weight: 300;
}

.subtitle strong {
    font-weight: 600;
    color: var(--uc-orange);
}

/* ========================================
   Termos + Plano screens
   ======================================== */
#termos-screen.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 100vh;
    background: linear-gradient(160deg, #ffffff 0%, var(--uc-blue-soft) 60%, var(--uc-blue) 100%);
    position: relative;
    overflow: hidden;
}

#plano-screen.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 100vh;
    background: linear-gradient(160deg, #ffffff 0%, var(--uc-blue-soft) 60%, var(--uc-blue) 100%);
    position: relative;
    overflow: hidden;
}

.termos-container {
    max-height: 92vh;
    overflow-y: auto;
    padding: 32px 28px;
}

.termos-cliente {
    text-align: center;
    margin-bottom: 18px;
}

.termos-nome {
    font-size: 22px;
    font-weight: 700;
    color: var(--uc-blue);
    margin-top: 2px;
}

.termos-card {
    background: var(--uc-blue-soft);
    border: 1px solid var(--uc-gray-border);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    margin-bottom: 14px;
}

.termos-card.novo {
    background: var(--uc-orange-soft);
    border-color: rgba(202, 111, 53, 0.35);
}

.termos-card-titulo {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--uc-gray-text);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.termos-card-linha {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 5px 0;
    font-size: 13.5px;
}

.termos-card-linha span {
    color: var(--uc-gray-text);
}

.termos-card-linha strong {
    color: var(--uc-text);
    text-align: right;
}

.termos-desc {
    flex: 1;
    text-align: right;
    color: var(--uc-gray-text) !important;
}

.termos-valor-novo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(202, 111, 53, 0.4);
    font-size: 14px;
}

.termos-valor-novo span {
    color: var(--uc-gray-text);
}

.termos-valor-novo strong {
    font-size: 20px;
    font-weight: 700;
    color: var(--uc-orange);
}

.termos-texto {
    font-size: 13.5px;
    color: var(--uc-gray-text);
    line-height: 1.6;
}

.termos-aviso {
    font-size: 13px;
    color: var(--uc-gray-text);
    margin: 12px 0 16px;
    line-height: 1.5;
    text-align: center;
}

.termos-aviso strong {
    color: var(--uc-orange);
}

.termos-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--uc-text);
    cursor: pointer;
    margin: 4px 0 16px;
    line-height: 1.5;
}

.termos-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--uc-orange);
    flex-shrink: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--uc-blue);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 14px 48px 14px 16px;
    border: 2px solid var(--uc-gray-border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    font-weight: 400;
    color: var(--uc-text);
    background: var(--uc-white);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--uc-blue);
    box-shadow: 0 0 0 4px rgba(53, 106, 137, 0.12);
}

.form-group input::placeholder {
    color: var(--uc-gray-muted);
    font-weight: 300;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 36px;
    font-size: 17px;
    pointer-events: none;
    opacity: 0.55;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 36px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    opacity: 0.6;
    transition: var(--transition);
}

.toggle-password:hover {
    opacity: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}

.btn-primary {
    background: linear-gradient(135deg, var(--uc-blue) 0%, var(--uc-blue-dark) 100%);
    color: var(--uc-white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--uc-blue-light) 0%, var(--uc-blue) 100%);
    transform: translateY(-1px);
    box-shadow: var(--uc-shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: var(--uc-gray-border);
    color: var(--uc-gray-text);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-full {
    width: 100%;
}

.btn-secondary {
    background: var(--uc-white);
    color: var(--uc-blue);
    border: 2px solid var(--uc-blue);
    font-weight: 500;
}

.btn-secondary:hover {
    background: var(--uc-blue-soft);
    border-color: var(--uc-blue-dark);
}

.btn-small {
    padding: 10px 16px;
    font-size: 13px;
}

.login-hint {
    text-align: center;
    font-size: 12px;
    color: var(--uc-gray-muted);
    font-weight: 300;
    margin-top: 4px;
}

.error-message {
    background: #fef2f2;
    color: var(--uc-danger);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 400;
    text-align: center;
    margin-top: 16px;
    border: 1px solid #f5c6c6;
    animation: slideDown 0.3s ease;
}

.error-message.hidden {
    display: none;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-illustration {
    position: absolute;
    bottom: 28px;
    right: 28px;
    width: 160px;
    opacity: 0.9;
    z-index: 1;
    pointer-events: none;
}

.illustration-svg {
    width: 100%;
    height: auto;
}

/* ========================================
   Dashboard
   ======================================== */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--uc-white);
    border-bottom: 1px solid var(--uc-gray-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(53, 106, 137, 0.06);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-small {
    width: 38px;
    height: auto;
    object-fit: contain;
}

.app-name {
    font-size: 19px;
    font-weight: 700;
    color: var(--uc-blue);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-header {
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 380px) {
    .btn-header {
        padding: 8px 10px;
        font-size: 12px;
    }
}

.btn-icon {
    background: var(--uc-blue-soft);
    border: none;
    font-size: 18px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.btn-icon .glyphicon { font-size: 17px; color: var(--uc-blue); }
}

.btn-icon:hover {
    background: var(--uc-blue);
    color: var(--uc-white);
}

.dashboard-main {
    padding: 20px;
    max-width: 620px;
    margin: 0 auto;
}

/* Balance Section */
.balance-section {
    margin-bottom: 26px;
}

.balance-card {
    background: linear-gradient(135deg, var(--uc-blue) 0%, var(--uc-blue-dark) 55%, #1b4258 100%);
    border-radius: var(--radius);
    padding: 26px 24px;
    color: var(--uc-white);
    box-shadow: var(--uc-shadow-lg);
    position: relative;
    overflow: hidden;
}

.balance-card::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.balance-card::before {
    content: "";
    position: absolute;
    bottom: -40px;
    left: -30px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(202, 111, 53, 0.18);
}

.balance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.balance-label {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.85;
}

.btn-refresh {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--uc-white);
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
}

.btn-refresh:hover {
    background: rgba(255, 255, 255, 0.28);
}

.btn-refresh.spinning {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.balance-amount {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 22px;
    font-variant-numeric: tabular-nums;
    position: relative;
    z-index: 1;
}

.balance-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.balance-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--uc-white);
    backdrop-filter: blur(4px);
}

.balance-actions .btn-secondary:hover {
    background: var(--uc-orange);
    border-color: var(--uc-orange);
}

/* Actions Section */
.actions-section {
    margin-bottom: 26px;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--uc-blue);
    margin-bottom: 14px;
    padding-left: 4px;
}

.actions-grid {
    display: grid;
    gap: 12px;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--uc-white);
    border-radius: var(--radius);
    padding: 18px;
    border: 1px solid var(--uc-gray-border);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.action-card:hover {
    border-color: var(--uc-blue);
    box-shadow: var(--uc-shadow);
    transform: translateX(4px);
}

.action-card:active {
    transform: translateX(0) scale(0.99);
}

.action-card.primary {
    border-color: var(--uc-orange);
    background: var(--uc-orange-soft);
}

.action-card.primary:hover {
    background: linear-gradient(135deg, var(--uc-orange) 0%, var(--uc-orange-dark) 100%);
    color: var(--uc-white);
}

.action-card.primary:hover .action-info h3,
.action-card.primary:hover .action-info p {
    color: var(--uc-white);
}

.action-card.primary .action-badge {
    background: var(--uc-orange);
}

.action-icon {
    font-size: 26px;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--uc-blue-soft);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.action-icon .glyphicon { font-size: 24px; color: var(--uc-blue); }
.action-card.primary .action-icon .glyphicon { color: var(--uc-orange); }

.action-card.primary .action-icon {
    background: var(--uc-white);
}

.action-card.primary:hover .action-icon {
    background: rgba(255, 255, 255, 0.22);
}

.action-info {
    flex: 1;
    min-width: 0;
}

.action-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--uc-text);
    margin-bottom: 2px;
}

.action-info p {
    font-size: 12px;
    color: var(--uc-gray-text);
    font-weight: 300;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.action-badge {
    background: var(--uc-danger);
    color: var(--uc-white);
    font-size: 9px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    flex-shrink: 0;
}

/* User Info Section */
.user-info-section {
    margin-bottom: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--uc-white);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--uc-gray-border);
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--uc-blue-light);
    box-shadow: var(--uc-shadow);
}

.info-icon {
    font-size: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--uc-blue-soft);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.info-content {
    flex: 1;
    min-width: 0;
}

.info-content label {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: var(--uc-gray-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-content span {
    font-size: 13px;
    font-weight: 500;
    color: var(--uc-text);
    word-break: break-word;
}

/* Loading Screen (tela dedicada) */
#loading-screen {
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(160deg, #ffffff 0%, var(--uc-blue-soft) 55%, var(--uc-blue) 100%);
    position: relative;
    overflow: hidden;
}

#loading-screen.active {
    display: flex;
}

.loading-wrap {
    text-align: center;
    padding: 24px;
    max-width: 300px;
    width: 100%;
}

.loading-logo {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    margin: 0 auto 24px;
    object-fit: contain;
    display: block;
    box-shadow: var(--uc-shadow-lg);
    animation: pulseLogo 1.4s ease-in-out infinite;
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.loading-bar {
    width: 100%;
    height: 8px;
    background: rgba(53, 106, 137, 0.15);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
}

.loading-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--uc-blue) 0%, var(--uc-orange) 100%);
    border-radius: 20px;
    animation: fillBar 1.1s ease-in-out forwards;
}

@keyframes fillBar {
    to { width: 100%; }
}

#loading-text {
    font-size: 14px;
    color: var(--uc-blue);
    font-weight: 400;
}

/* Welcome Row */
.welcome-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.welcome-label {
    font-size: 13px;
    color: var(--uc-gray-text);
    font-weight: 300;
}

.welcome-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--uc-text);
    line-height: 1.25;
    word-break: break-word;
}

.badge-verified {
    background: var(--uc-blue-soft);
    color: var(--uc-blue);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.badge-verified .glyphicon { font-size: 11px; margin-right: 4px; }

.badge-pendente {
    background: var(--uc-orange-soft);
    color: var(--uc-orange-dark);
}

.status-analise {
    color: var(--uc-orange-dark);
    font-weight: 600;
    background: var(--uc-orange-soft);
    padding: 4px 10px;
    border-radius: 20px;
}

/* Account Section */
.account-section {
    margin-bottom: 26px;
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--uc-orange);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    padding: 4px;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--uc-orange-dark);
    text-decoration: underline;
}

.account-card {
    background: var(--uc-white);
    border-radius: var(--radius);
    padding: 6px 20px;
    border: 1px solid var(--uc-gray-border);
}

.account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--uc-gray-border);
}

.account-row:last-child {
    border-bottom: none;
}

.account-label {
    font-size: 13px;
    color: var(--uc-gray-text);
    font-weight: 300;
}

.account-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--uc-text);
    text-align: right;
}

/* Extrato */
.extrato-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--uc-gray-border);
}

.extrato-item:last-child {
    border-bottom: none;
}

.extrato-info {
    flex: 1;
    min-width: 0;
}

.extrato-desc {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--uc-text);
    word-break: break-word;
}

.extrato-data {
    display: block;
    font-size: 11px;
    color: var(--uc-gray-muted);
    font-weight: 300;
    margin-top: 2px;
}

.extrato-valor {
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.extrato-valor.credito {
    color: var(--uc-success);
}

.extrato-valor.debito {
    color: var(--uc-danger);
}

.extrato-vazio {
    text-align: center;
    color: var(--uc-gray-muted);
    font-size: 13px;
    padding: 22px 0;
    font-style: italic;
}

.extrato-total {
    text-align: center;
    font-size: 11px;
    color: var(--uc-gray-muted);
    padding-top: 12px;
    border-top: 1px solid var(--uc-gray-border);
}

.extrato-filters {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.extrato-filter {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 120px;
}

.extrato-filter label {
    font-size: 11px;
    font-weight: 500;
    color: var(--uc-blue);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.extrato-date {
    padding: 10px 12px;
    border: 2px solid var(--uc-gray-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    color: var(--uc-text);
    background: var(--uc-white);
    transition: var(--transition);
}

.extrato-date:focus {
    outline: none;
    border-color: var(--uc-blue);
    box-shadow: 0 0 0 4px rgba(53, 106, 137, 0.12);
}

/* Etapas do envio PIX */
.envio-step {
    display: none;
    animation: modalIn 0.3s ease;
}

.envio-step.active {
    display: block;
}

.step-titulo {
    font-size: 16px;
    font-weight: 600;
    color: var(--uc-blue);
    margin-bottom: 14px;
}

.envio-loading-text {
    color: var(--uc-blue);
    font-weight: 400;
    font-size: 14px;
}

/* Depósito */
.deposito-valor {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: var(--uc-blue);
    margin: 4px 0 14px;
}

.deposito-qr-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 220px;
    margin-bottom: 14px;
}

.deposito-qr {
    width: 200px;
    height: 200px;
    border: 1px solid var(--uc-gray-border);
    border-radius: var(--radius-sm);
    padding: 8px;
    background: var(--uc-white);
}

.deposito-loading {
    color: var(--uc-gray-text);
    font-size: 13px;
    text-align: center;
    align-items: center;
    justify-content: center;
    height: 200px;
    display: flex;
}

/* Análise */
.analise-wrap {
    text-align: center;
    padding: 12px 0;
}

.analise-icon {
    font-size: 52px;
    margin-bottom: 10px;
    animation: pulseLogo 1.4s ease-in-out infinite;
}
.analise-icon .glyphicon { font-size: 48px; color: var(--uc-blue); }

.analise-titulo {
    font-size: 17px;
    font-weight: 600;
    color: var(--uc-blue);
    margin-bottom: 8px;
}

.analise-texto {
    font-size: 13px;
    color: var(--uc-gray-text);
    line-height: 1.6;
    margin-bottom: 18px;
}

.analise-texto strong {
    color: var(--uc-orange);
}

/* Consulta de chave PIX */
.consulta-titulo {
    font-size: 13px;
    font-weight: 600;
    color: var(--uc-blue);
    margin-bottom: 8px;
}

.consulta-aviso {
    background: var(--uc-orange-soft);
    border: 1px solid var(--uc-orange);
    color: var(--uc-orange-dark);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.5;
    margin: 14px 0;
}

.consulta-aviso strong {
    font-weight: 700;
}

/* Tabs */
.tabs-row {
    display: flex;
    gap: 8px;
    background: var(--uc-white);
    border: 1px solid var(--uc-gray-border);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 14px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--uc-gray-text);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--uc-blue);
    color: var(--uc-white);
    font-weight: 600;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.panel-hint {
    font-size: 13px;
    color: var(--uc-gray-text);
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Chaves PIX */
.chave-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.chave-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--uc-white);
    border: 2px solid var(--uc-gray-border);
    border-radius: var(--radius-sm);
    padding: 14px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-align: left;
}

.chave-card:hover {
    border-color: var(--uc-blue);
    box-shadow: var(--uc-shadow);
}

.chave-card:active {
    transform: scale(0.98);
}

.chave-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.chave-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--uc-text);
}

.chave-sub {
    font-size: 11px;
    color: var(--uc-gray-muted);
    font-weight: 300;
}

.chave-form {
    margin-top: 8px;
}

.chave-form label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--uc-blue);
    margin-bottom: 6px;
}

/* Modal senha */
.senha-boxes {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.senha-input {
    width: 160px;
    text-align: center;
    font-size: 28px;
    letter-spacing: 12px;
    padding: 14px;
    border: 2px solid var(--uc-gray-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    color: var(--uc-text);
    transition: var(--transition);
}

.senha-input:focus {
    outline: none;
    border-color: var(--uc-blue);
    box-shadow: 0 0 0 4px rgba(53, 106, 137, 0.12);
}

@media (max-width: 480px) {
    .chave-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 34, 45, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    padding: 20px;
    backdrop-filter: blur(3px);
}

.modal-overlay.hidden {
    display: none;
}

.modal {
    background: var(--uc-white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--uc-shadow-lg);
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--uc-gray-border);
    position: sticky;
    top: 0;
    background: var(--uc-white);
    z-index: 1;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--uc-blue);
}

.modal-close {
    background: var(--uc-blue-soft);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: var(--uc-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--uc-blue);
    color: var(--uc-white);
}

.modal-body {
    padding: 20px;
}

.modal-loading {
    text-align: center;
    color: var(--uc-gray-text);
    font-size: 13px;
    padding: 24px 0;
}

.detail-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--uc-orange);
    margin: 18px 0 10px;
}

.detail-grid {
    display: grid;
    gap: 4px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid var(--uc-gray-border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 12px;
    color: var(--uc-gray-text);
    font-weight: 300;
    flex-shrink: 0;
}

.detail-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--uc-text);
    text-align: right;
    word-break: break-word;
}

.detail-empty {
    font-size: 13px;
    color: var(--uc-gray-muted);
    font-style: italic;
    margin-top: 8px;
}

/* Button loader state */
.btn-loader {
    display: inline-block;
}

.btn-loader.hidden {
    display: none;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: calc(100vw - 32px);
}

.toast {
    background: var(--uc-white);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    box-shadow: var(--uc-shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 400px;
    border-left: 4px solid var(--uc-blue);
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left-color: var(--uc-success);
}

.toast.error {
    border-left-color: var(--uc-danger);
}

.toast.warning {
    border-left-color: var(--uc-orange);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}
.toast-icon .glyphicon { font-size: 16px; }
.toast.success .toast-icon .glyphicon { color: var(--uc-success); }
.toast.error .toast-icon .glyphicon { color: var(--uc-danger); }
.toast.warning .toast-icon .glyphicon { color: var(--uc-orange); }
.toast.info .toast-icon .glyphicon { color: var(--uc-blue); }

.toast-message {
    flex: 1;
    font-size: 13px;
    color: var(--uc-text);
    font-weight: 400;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 32px 24px;
    }

    .login-illustration {
        display: none;
    }

    .balance-amount {
        font-size: 34px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-main {
        padding: 16px;
    }

    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .toast {
        min-width: auto;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* ========================================
   Ajuda / Tickets (chat)
   ======================================== */
.ajuda-intro {
    text-align: center;
    padding: 24px 20px;
}

.ajuda-icon {
    font-size: 40px;
}
.ajuda-icon .glyphicon { font-size: 38px; color: var(--uc-blue); }

.ajuda-desc {
    font-size: 13.5px;
    color: var(--uc-gray-text);
    line-height: 1.5;
}

.ajuda-titulo {
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--uc-blue);
}

.ticket-item {
    border: 1px solid var(--uc-gray-border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 10px;
    cursor: pointer;
    background: var(--uc-white);
    transition: var(--transition);
}

.ticket-item:hover {
    border-color: var(--uc-blue-light);
    box-shadow: var(--uc-shadow);
}

.ticket-item.fechado {
    opacity: 0.7;
}

.ticket-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.ticket-status {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.status-aberto {
    background: var(--uc-orange-soft);
    color: var(--uc-orange-dark);
}

.status-fechado {
    background: var(--uc-blue-soft);
    color: var(--uc-blue);
}

.ticket-item-meta {
    font-size: 12px;
    color: var(--uc-gray-muted);
    margin-top: 4px;
}

.ticket-item-preview {
    font-size: 12.5px;
    color: var(--uc-gray-text);
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-chat {
    width: 100%;
    max-width: 460px;
    height: 78vh;
    display: flex;
    flex-direction: column;
}

.modal-chat .modal-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: var(--uc-gray-bg);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-msg {
    max-width: 82%;
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 13.5px;
    word-wrap: break-word;
}

.msg-cliente {
    align-self: flex-end;
    background: var(--uc-blue);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.msg-admin {
    align-self: flex-start;
    background: var(--uc-white);
    color: var(--uc-text);
    border: 1px solid var(--uc-gray-border);
    border-bottom-left-radius: 4px;
}

.chat-msg-data {
    font-size: 10.5px;
    opacity: 0.75;
    margin-top: 3px;
}

.chat-input-row {
    display: flex;
    gap: 8px;
}

.chat-input-row input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--uc-gray-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.chat-input-row input:focus {
    border-color: var(--uc-blue-light);
}

.ajuda-novo-ticket select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--uc-gray-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--uc-white);
    color: var(--uc-text);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23356a89' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.ajuda-novo-ticket select:focus {
    border-color: var(--uc-blue-light);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
