* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --claro-color: #FF0000;
    --tim-color: #0066CC;
    --vivo-color: #660099;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
}

body.client-page {
    background: #f5f7fa;
}

/* Top Bar */
.top-bar {
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    color: white;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 0.9em;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-client-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-client-area:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.top-info i {
    color: #fbbf24;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.admin-container {
    max-width: 1200px;
}

/* Header */
.main-header {
    text-align: center;
    color: white;
    margin: 40px 0 50px;
}

.logo-section {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 25px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
}

.logo-text h1 {
    font-size: 3em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -1px;
}

.logo-text h1 span {
    color: #fbbf24;
}

.tagline {
    font-size: 1.1em;
    opacity: 0.95;
    margin-top: 5px;
}

/* Cards */
.card, .info-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: fadeInUp 0.6s ease-out;
}

.main-card {
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f3f4f6;
}

.card-header i {
    font-size: 2em;
    color: var(--primary-color);
}

.card-header h2 {
    color: #1f2937;
    margin: 0;
    font-size: 2em;
    font-weight: 700;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #374151;
    font-weight: 600;
    font-size: 1.05em;
}

.form-label i {
    color: var(--primary-color);
}

.form-row {
    display: flex;
    gap: 15px;
}

.col-30 {
    flex: 0 0 30%;
}

.col-70 {
    flex: 1;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1.05em;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

/* Operadora Cards */
.operadora-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 10px;
}

.operadora-card {
    background: #f9fafb;
    border: 3px solid #e5e7eb;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.operadora-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.operadora-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.operadora-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    transition: transform 0.3s ease;
}

.operadora-card:hover .operadora-logo {
    transform: scale(1.1);
}

.operadora-card span {
    display: block;
    font-weight: 600;
    color: #374151;
    font-size: 1.1em;
}

/* Valor Cards */
.valor-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 10px;
}

.valor-card {
    background: #f9fafb;
    border: 3px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.valor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.valor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.valor-card:hover::before {
    transform: scaleX(1);
}

.valor-card.active {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.valor-card.active::before {
    transform: scaleX(1);
    background: var(--success-color);
}

.valor-nominal {
    font-size: 1.6em;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
}

.valor-pagar {
    font-size: 1.1em;
    color: var(--success-color);
    font-weight: 600;
}

.valor-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--success-color);
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
}

.valor-card.active .valor-badge {
    display: block;
}

.valor-info {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border-left: 5px solid var(--success-color);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.info-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-content i {
    font-size: 2em;
    color: var(--success-color);
}

.valor-info p {
    color: #065f46;
    font-weight: 600;
    font-size: 1.2em;
    margin: 0;
}

/* Buttons */
.btn-primary, .btn-secondary {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.15em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    margin-bottom: 10px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2em;
    color: white;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.feature-card h3 {
    color: #1f2937;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.feature-card p {
    color: #6b7280;
    margin: 0;
}

/* Footer */
.main-footer {
    text-align: center;
    color: white;
    margin-top: 50px;
    padding: 30px 20px;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo i {
    color: #fbbf24;
}

.main-footer p {
    margin: 15px 0;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.footer-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #000;
}

#modalTitle {
    color: #667eea;
    margin-bottom: 15px;
}

#modalMessage {
    color: #555;
    line-height: 1.6;
}

/* Admin Styles */
.admin-top-bar {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    margin-bottom: 20px;
}

.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.3em;
    font-weight: 700;
}

.admin-logo i {
    color: #fbbf24;
    font-size: 1.5em;
}

.admin-user {
    font-size: 0.75em;
    color: #fbbf24;
    font-weight: 600;
    margin-left: 5px;
}

.admin-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(-3px);
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

.admin-main-header {
    text-align: center;
    color: white;
    margin: 20px 0 40px;
}

.admin-main-header h1 {
    font-size: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.admin-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-admin-action {
    flex: 1;
    min-width: 200px;
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-admin-action.refresh {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.btn-admin-action.refresh:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-admin-action.clear {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-admin-action.clear:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: white;
}

.pending-stat .stat-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.completed-stat .stat-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.total-stat .stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-info h3 {
    color: #6b7280;
    margin-bottom: 5px;
    font-size: 1em;
    font-weight: 600;
}

.stat-info p {
    font-size: 2.5em;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
}

.orders-section {
    margin-bottom: 40px;
}

.orders-section h2 {
    color: white;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.orders-list {
    display: grid;
    gap: 20px;
}

.order-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-color);
}

.order-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.order-card.completed {
    opacity: 0.8;
    background: #f9fafb;
    border-left-color: var(--success-color);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.order-id {
    font-weight: 800;
    font-size: 1.2em;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-id::before {
    content: '📋';
}

.order-status {
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.95em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-status.pending {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.order-status.pending::before {
    content: '⏳';
}

.order-status.completed {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.order-status.completed::before {
    content: '✅';
}

.order-details {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.order-details p {
    margin: 0;
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-details strong {
    color: #1f2937;
    font-weight: 700;
}

.order-actions {
    display: flex;
    gap: 12px;
}

.btn-complete, .btn-delete {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1em;
}

.btn-complete {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.btn-complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.empty-state {
    text-align: center;
    padding: 60px 40px;
    color: white;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.empty-state i {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: fadeInUp 0.6s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 3em;
    color: white;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.login-header h1 {
    color: #1f2937;
    font-size: 2em;
    margin-bottom: 10px;
}

.login-header p {
    color: #6b7280;
    font-size: 1.05em;
}

.login-form {
    margin-bottom: 30px;
}

.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 600;
    animation: slideIn 0.3s ease-out;
}

.alert.error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.alert.success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert.warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert i {
    font-size: 1.3em;
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    font-size: 1.1em;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.btn-login {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.15em;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 10px;
}

.login-info i {
    color: var(--primary-color);
    margin-top: 2px;
}

.login-info p {
    color: #6b7280;
    margin: 0;
    font-size: 0.95em;
}

.back-home {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.back-home a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 8px;
}

.back-home a:hover {
    color: var(--primary-color);
    background: #f3f4f6;
}

.security-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255,255,255,0.95);
    padding: 12px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    font-weight: 600;
    color: #059669;
}

.security-badge i {
    color: #10b981;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 50px rgba(37, 211, 102, 0.7);
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: white;
    color: #128C7E;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.45em;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 10px 40px rgba(37, 211, 102, 0.8), 0 0 0 15px rgba(37, 211, 102, 0.1);
    }
}

/* Support Section */
.support-section {
    margin-top: 40px;
}

.support-card {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(18, 140, 126, 0.1));
    border: 3px solid #25D366;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.2);
    transition: all 0.3s ease;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(37, 211, 102, 0.3);
}

.support-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5em;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.support-content {
    flex: 1;
}

.support-content h3 {
    color: #128C7E;
    font-size: 2em;
    margin-bottom: 10px;
}

.support-content p {
    color: #6b7280;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp i {
    font-size: 1.3em;
}

/* Footer Improvements */
.footer-desc {
    font-size: 1.05em;
    margin: 15px 0 25px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.contact-item i {
    font-size: 1.3em;
}

.footer-links {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 25px 0;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.footer-copy {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
    font-size: 0.95em;
}

/* Responsive */
@media (max-width: 768px) {
    .login-card {
        padding: 30px 25px;
    }

    .login-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5em;
    }

    .login-header h1 {
        font-size: 1.6em;
    }

    .security-badge {
        bottom: 90px;
        right: 10px;
        font-size: 0.85em;
        padding: 8px 12px;
    }

    .whatsapp-float {
        width: 60px;
        height: 60px;
        font-size: 1.8em;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-tooltip {
        display: none;
    }

    .top-info {
        font-size: 0.75em;
        gap: 10px;
    }

    .logo-section {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .logo-text h1 {
        font-size: 2em;
    }

    .card, .info-card {
        padding: 25px;
    }

    .card-header h2 {
        font-size: 1.5em;
    }

    .operadora-cards {
        grid-template-columns: 1fr;
    }

    .valor-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        flex-direction: column;
    }

    .col-30, .col-70 {
        flex: 1;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .support-card {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
    }

    .support-icon {
        width: 80px;
        height: 80px;
        font-size: 3em;
    }

    .support-content h3 {
        font-size: 1.5em;
    }

    .btn-whatsapp {
        font-size: 1.1em;
        padding: 12px 20px;
    }

    .footer-contact {
        flex-direction: column;
        gap: 15px;
    }

    .contact-item {
        font-size: 1em;
    }

    .footer-links {
        gap: 10px;
    }

    .admin-controls {
        flex-direction: column;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .admin-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-back, .btn-logout {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .operadora-logo {
        width: 60px;
        height: 60px;
    }

    .valor-cards {
        grid-template-columns: 1fr;
    }

    .valor-card {
        padding: 15px;
    }

    .valor-nominal {
        font-size: 1.4em;
    }
}

/* ==================== ÁREA DO CLIENTE ==================== */

/* Tab buttons */
.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    background: white;
    color: #666;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Client Header */
.client-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    margin-bottom: 30px;
}

.client-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo i {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    color: #333;
    font-weight: 500;
}

.btn-logout {
    padding: 8px 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

/* Client Area */
.client-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.welcome-section {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.welcome-section h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-section p {
    color: #666;
    font-size: 1.1em;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
}

.stat-icon.pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.stat-icon.completed {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.stat-icon.total {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.stat-info h3 {
    font-size: 2em;
    color: #333;
    margin-bottom: 5px;
}

.stat-info p {
    color: #666;
    font-size: 0.95em;
}

/* Action Buttons */
.action-buttons {
    text-align: center;
    margin-bottom: 30px;
}

.btn-new-recharge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-new-recharge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    color: #666;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
}

/* Orders Section */
.orders-section {
    margin-top: 40px;
}

.orders-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
}

#ordersContainer {
    display: grid;
    gap: 20px;
}

.order-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.order-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.order-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
}

.order-operator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    color: white;
}

.order-operator.claro {
    background: linear-gradient(135deg, #FF0000, #cc0000);
}

.order-operator.tim {
    background: linear-gradient(135deg, #0066CC, #0052a3);
}

.order-operator.vivo {
    background: linear-gradient(135deg, #660099, #520077);
}

.order-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
}

.order-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.order-status.completed {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.order-body {
    padding: 25px;
}

.order-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-item i {
    color: #667eea;
    font-size: 1.2em;
    margin-top: 3px;
}

.info-item .label {
    display: block;
    color: #9ca3af;
    font-size: 0.85em;
    margin-bottom: 3px;
}

.info-item .value {
    display: block;
    color: #333;
    font-weight: 600;
    font-size: 1em;
}

.order-footer {
    padding: 15px 25px;
    background: rgba(245, 158, 11, 0.05);
    border-top: 1px solid #fef3c7;
}

.order-footer.success {
    background: rgba(16, 185, 129, 0.05);
    border-top: 1px solid #d1fae5;
}

.processing-message {
    color: #92400e;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-message {
    color: #065f46;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
}

.empty-state i {
    font-size: 4em;
    color: #d1d5db;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.empty-state p {
    color: #666;
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Responsive - Client Area */
@media (max-width: 768px) {
    .client-area {
        padding: 20px 15px;
    }

    .welcome-section h1 {
        font-size: 1.6em;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .user-info {
        flex-direction: column;
        width: 100%;
    }

    .btn-logout {
        width: 100%;
        justify-content: center;
    }

    .order-info {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== CARTEIRA / NÍVEIS ==================== */

.user-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: white;
}

.user-details h2 {
    color: white;
    margin-bottom: 5px;
}

.user-details p {
    color: rgba(255, 255, 255, 0.8);
}

/* Níveis */
.nivel-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.nivel-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.nivel-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: white;
    background: linear-gradient(135deg, #CD7F32, #8B4513);
}

.nivel-info h3 {
    font-size: 1.8em;
    margin: 0;
    color: #333;
}

.nivel-info p {
    color: #666;
    margin: 5px 0 0;
}

.nivel-progress {
    margin-top: 15px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.5s ease;
}

.nivel-progress p {
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-size: 0.9em;
}

/* Wallet Actions */
.wallet-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.btn-action {
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-action.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-action.secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

/* Níveis Info */
.niveis-info,
.stats-detalhadas {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.niveis-info h2,
.stats-detalhadas h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.5em;
}

.niveis-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nivel-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nivel-item:hover {
    transform: translateX(5px);
}

.nivel-item.bronze {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(139, 69, 19, 0.1));
    border-left: 4px solid #CD7F32;
}

.nivel-item.prata {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(128, 128, 128, 0.1));
    border-left: 4px solid #C0C0C0;
}

.nivel-item.ouro {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border-left: 4px solid #FFD700;
}

.nivel-item.platina {
    background: linear-gradient(135deg, rgba(229, 228, 226, 0.1), rgba(185, 183, 181, 0.1));
    border-left: 4px solid #E5E4E2;
}

.nivel-item.diamante {
    background: linear-gradient(135deg, rgba(185, 242, 255, 0.1), rgba(0, 168, 255, 0.1));
    border-left: 4px solid #00a8ff;
}

.nivel-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
}

.nivel-item.bronze .nivel-badge {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: white;
}

.nivel-item.prata .nivel-badge {
    background: linear-gradient(135deg, #C0C0C0, #808080);
    color: white;
}

.nivel-item.ouro .nivel-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.nivel-item.platina .nivel-badge {
    background: linear-gradient(135deg, #E5E4E2, #B9B7B5);
    color: #333;
}

.nivel-item.diamante .nivel-badge {
    background: linear-gradient(135deg, #b9f2ff, #00a8ff);
    color: white;
}

.nivel-details h4 {
    margin: 0 0 5px;
    color: #333;
    font-size: 1.1em;
}

.nivel-details p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

/* Stats Detalhadas */
.stats-detalhadas .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.stat-detail i {
    font-size: 2em;
    color: #667eea;
}

.stat-detail h3 {
    font-size: 1.5em;
    margin: 0 0 5px;
    color: #333;
}

.stat-detail p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

/* Modal Add Saldo */
.add-saldo-form {
    padding: 20px 0;
}

.add-saldo-form label {
    display: block;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.valor-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.valor-btn {
    padding: 15px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.valor-btn:hover,
.valor-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
}

.custom-valor input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1em;
    margin-bottom: 20px;
}

.custom-valor input:focus {
    outline: none;
    border-color: #667eea;
}

/* Responsive Carteira */
@media (max-width: 768px) {
    .user-card {
        flex-direction: column;
        text-align: center;
    }
    
    .wallet-actions {
        grid-template-columns: 1fr;
    }
    
    .valor-options {
        grid-template-columns: 1fr;
    }
    
    .stats-detalhadas .stats-grid {
        grid-template-columns: 1fr;
    }
}
