@charset "UTF-8";

/* ========================================
   RESET E BASE - Mobile First 480px
   ESQUEMA DE CORES: Oceano Tropical
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 50%, #006ed9 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 10px;
    color: #1a2332;
    line-height: 1.65;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    pointer-events: none;
    z-index: 0;
}

/* ========================================
   CONTAINER PRINCIPAL
   ======================================== */
.container {
    max-width: 480px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 25px 70px rgba(0, 100, 200, 0.25), 0 10px 30px rgba(0, 150, 255, 0.15);
    overflow: hidden;
    min-height: calc(100vh - 20px);
    position: relative;
    z-index: 1;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
   HEADER
   ======================================== */
.header {
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 50%, #006ed9 100%);
    color: #ffffff;
    padding: 28px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 153, 255, 0.3);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100"><path fill="%23ffffff" fill-opacity="0.1" d="M0,32L80,37.3C160,43,320,53,480,58.7C640,64,800,64,960,58.7C1120,53,1280,43,1360,37.3L1440,32L1440,100L1360,100C1280,100,1120,100,960,100C800,100,640,100,480,100C320,100,160,100,80,100L0,100Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.5;
}

.header h1 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: -0.8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    padding-right: 80px;
}

.header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.header p {
    font-size: 15px;
    opacity: 0.95;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.logout-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 14px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.logout-btn:hover,
.logout-btn:active {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* ========================================
   CONTENT AREA
   ======================================== */
.content {
    padding: 20px;
}

.login-form {
    padding: 30px 20px;
}

/* ========================================
   FORMULÁRIOS
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #d4f4ff;
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #fafcfe 0%, #f5faff 100%);
    color: #1a2332;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #00d4ff;
    background: #ffffff;
    box-shadow: 0 0 0 5px rgba(0, 212, 255, 0.12), 0 4px 12px rgba(0, 153, 255, 0.08);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.form-control:focus {
    outline: none;
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========================================
   BOTÕES
   ======================================== */
.btn {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 10px 25px rgba(0, 153, 255, 0.5);
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, #00e5a0 0%, #00b383 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-success:hover {
    box-shadow: 0 10px 25px rgba(0, 229, 160, 0.5);
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-warning {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff4081 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-warning:hover {
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.5);
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-info {
    background: linear-gradient(135deg, #00d4ff 0%, #00a6cc 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-info:hover {
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.5);
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    color: #334e68;
    border: 2px solid #cbd5e0;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(51, 78, 104, 0.15);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

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

.btn-resgatar {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    margin-top: 12px;
}

.btn-resgatar:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.btn-resgatar:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.back-btn {
    background: #6b7280;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

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

/* ========================================
   CARDS
   ======================================== */
.card {
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 6px 18px rgba(0, 153, 255, 0.12), 0 2px 8px rgba(0, 100, 200, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
    border: 2px solid rgba(0, 212, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 153, 255, 0.18), 0 4px 12px rgba(0, 100, 200, 0.12);
}

.card-header {
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    color: #ffffff;
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.card-header h2,
.card-header h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.card-body {
    padding: 22px;
    background: linear-gradient(to bottom, #ffffff 0%, #fafcfe 100%);
}

.success-card .card-header {
    background: linear-gradient(135deg, #00e5a0 0%, #00b383 100%);
}

.client-card .card-header {
    background: linear-gradient(135deg, #00d4ff 0%, #00a6cc 100%);
}

.history-card .card-header {
    background: linear-gradient(135deg, #0099ff 0%, #006ed9 100%);
}

.confirm-card .card-header {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff4081 100%);
}

.saldo-card {
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 50%, #006ed9 100%);
    color: #ffffff;
    padding: 28px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 153, 255, 0.35), 0 4px 12px rgba(0, 100, 200, 0.2);
    position: relative;
    overflow: hidden;
}

.saldo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

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

.saldo-card h2 {
    font-size: 22px;
    margin-bottom: 14px;
    font-weight: 700;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.saldo-valor {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.saldo-real,
.saldo-telefone {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 4px;
}

.box {
    background: #f9fafb;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.box h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #1f2937;
    font-weight: 600;
}

/* ========================================
   AÇÕES PRINCIPAIS
   ======================================== */
.main-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.action-btn {
    aspect-ratio: 1;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-btn i {
    font-size: 36px;
    margin-bottom: 8px;
}

.action-btn span {
    font-size: 15px;
}

.action-btn:active {
    transform: scale(0.95);
}

.pontuar-btn {
    background: linear-gradient(135deg, #00e5a0 0%, #00b383 100%);
    position: relative;
    overflow: hidden;
}

.pontuar-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.pontuar-btn:hover::before {
    width: 300px;
    height: 300px;
}

.pontuar-btn:hover {
    box-shadow: 0 15px 35px rgba(0, 229, 160, 0.4);
    transform: translateY(-5px) scale(1.03);
}

.resgatar-btn {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff4081 100%);
    position: relative;
    overflow: hidden;
}

.resgatar-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.resgatar-btn:hover::before {
    width: 300px;
    height: 300px;
}

.resgatar-btn:hover {
    box-shadow: 0 15px 35px rgba(255, 107, 157, 0.4);
    transform: translateY(-5px) scale(1.03);
}

.secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

/* ========================================
   ALERTS
   ======================================== */
.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid transparent;
}

.alert i {
    margin-top: 2px;
    flex-shrink: 0;
}

.alert-success {
    background: linear-gradient(135deg, #d0f8ec 0%, #b8f2df 100%);
    color: #006b54;
    border-color: #00e5a0;
    border-width: 2px;
    border-left-width: 5px;
}

.alert-error {
    background: linear-gradient(135deg, #ffe5ef 0%, #ffd4e5 100%);
    color: #c41e5b;
    border-color: #ff6b9d;
    border-width: 2px;
    border-left-width: 5px;
}

.alert-info {
    background: linear-gradient(135deg, #d4f4ff 0%, #b8ecff 100%);
    color: #005a8c;
    border-color: #00d4ff;
    border-width: 2px;
    border-left-width: 5px;
}

.alert-warning {
    background: linear-gradient(135deg, #fff4d9 0%, #ffe9b8 100%);
    color: #8c5b00;
    border-color: #ffb800;
    border-width: 2px;
    border-left-width: 5px;
}

/* ========================================
   HISTÓRICO
   ======================================== */
.historico {
    margin-top: 24px;
}

.historico h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #1f2937;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.historico-item {
    background: linear-gradient(135deg, #f8fcfe 0%, #f0f8ff 100%);
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 14px;
    border-left: 5px solid #00d4ff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 153, 255, 0.08);
}

.historico-item:hover {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f4ff 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 153, 255, 0.15);
}

.historico-item.entrada {
    border-left-color: #00e5a0;
    background: linear-gradient(135deg, #f8fefb 0%, #f0fdf7 100%);
}

.historico-item.entrada:hover {
    background: linear-gradient(135deg, #f0fdf7 0%, #e6fcf2 100%);
}

.historico-item.saida {
    border-left-color: #ff6b9d;
    background: linear-gradient(135deg, #fffbfc 0%, #fff5f8 100%);
}

.historico-item.saida:hover {
    background: linear-gradient(135deg, #fff5f8 0%, #ffeff5 100%);
}

.historico-item .tipo {
    font-weight: 700;
    color: #00d4ff;
    font-size: 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.historico-item.entrada .tipo {
    color: #00b383;
}

.historico-item.saida .tipo {
    color: #ff4081;
}

.historico-item .pontos {
    font-size: 16px;
    font-weight: 700;
    margin: 8px 0;
    color: #1f2937;
}

.historico-item .descricao {
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
    margin: 6px 0;
}

.historico-item .data {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
}

/* ========================================
   CONFIGURAÇÕES
   ======================================== */
.config-section {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.config-section h2,
.config-section h3 {
    margin-bottom: 16px;
    color: #1f2937;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.config-row label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.config-row input,
.config-row select {
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.config-row input:focus,
.config-row select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* ========================================
   CLIENTES
   ======================================== */
.clientes-lista {
    margin-bottom: 20px;
}

.cliente-item {
    margin-bottom: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.cliente-item:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.cliente-option {
    display: block;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.cliente-option input[type="radio"] {
    display: none;
}

.cliente-option input[type="radio"]:checked + .cliente-info {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
}

.cliente-info {
    padding: 16px;
    transition: all 0.2s ease;
}

.cliente-nome {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cliente-telefone {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cliente-option input[type="radio"]:checked + .cliente-info .cliente-telefone {
    color: rgba(255, 255, 255, 0.9);
}

.cliente-saldo {
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cliente-option input[type="radio"]:checked + .cliente-info .cliente-saldo {
    color: rgba(255, 255, 255, 0.95);
}

.clients-list {
    margin-top: 16px;
}

.client-option {
    margin-bottom: 12px;
    padding: 14px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.client-option:hover {
    border-color: #6366f1;
    background: #ffffff;
}

.client-option input[type="radio"] {
    margin-right: 10px;
}

.client-info {
    font-size: 14px;
    color: #1f2937;
}

/* ========================================
   PRÊMIOS
   ======================================== */
.premios-grid {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.premio-card {
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.premio-card h4 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
}

.premio-card p {
    margin: 6px 0;
    font-size: 13px;
    color: #6b7280;
}

.premio-disponivel {
    border-color: #10b981;
}

.premio-disponivel:hover {
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

.premio-indisponivel {
    border-color: #ef4444;
    opacity: 0.7;
}

.premio-pontos {
    font-size: 14px;
    font-weight: 700;
    color: #10b981;
    margin: 8px 0;
}

.premio-descricao {
    font-size: 13px;
    color: #6b7280;
    margin: 8px 0;
    line-height: 1.5;
}

.premio-obs {
    font-size: 13px;
    color: #4b5563;
    margin: 8px 0;
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
}

.premio-item {
    margin-bottom: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.premio-item.disponivel {
    border-color: #10b981;
}

.premio-item.disponivel:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.premio-item.indisponivel {
    border-color: #ef4444;
    opacity: 0.65;
}

.premio-option {
    display: block;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.premio-option input[type="radio"] {
    display: none;
}

.premio-option input[type="radio"]:checked + .premio-info {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}

.premio-option input[type="radio"]:disabled + .premio-info {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.premio-info {
    padding: 16px;
    transition: all 0.2s ease;
}

.premio-nome {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.premio-option input[type="radio"]:checked + .premio-info .premio-pontos {
    color: rgba(255, 255, 255, 0.95);
}

.premio-option input[type="radio"]:checked + .premio-info .premio-descricao {
    color: rgba(255, 255, 255, 0.85);
}

.premio-falta {
    font-size: 12px;
    color: #ef4444;
    font-weight: 500;
    margin-top: 6px;
}

.premio-option input[type="radio"]:disabled + .premio-info .premio-falta {
    color: #9ca3af;
}

.premios-gerenciar {
    margin-top: 16px;
}

.premio-gerenciar {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.premio-gerenciar.ativo {
    border-color: #10b981;
}

.premio-gerenciar.inativo {
    border-color: #ef4444;
    opacity: 0.7;
}

.premio-header {
    background: #f9fafb;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.premio-gerenciar.ativo .premio-header {
    background: #d1fae5;
}

.premio-gerenciar.inativo .premio-header {
    background: #fee2e2;
}

.premio-header h4 {
    margin: 0;
    font-size: 15px;
    color: #1f2937;
    font-weight: 600;
}

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

.premio-detalhes {
    padding: 16px;
}

.premio-detalhes p,
.premio-detalhes h3 {
    margin: 6px 0;
    font-size: 13px;
    color: #4b5563;
}

/* ========================================
   PONTOS DETALHES
   ======================================== */
.pontos-detalhes {
    margin-top: 16px;
    background: #f9fafb;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.pontos-detalhes h4 {
    margin-bottom: 12px;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pontos-grid {
    display: grid;
    gap: 8px;
}

.pontos-grid > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.pontos-grid > div:hover {
    transform: translateX(2px);
}

.detalhe-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
}

/* ========================================
   TABELAS
   ======================================== */
.table-responsive {
    overflow-x: auto;
    margin-top: 16px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table thead {
    background: #f9fafb;
}

.table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    font-size: 12px;
}

.table td {
    padding: 12px 10px;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
}

.table tbody tr:hover {
    background: #f9fafb;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-active,
.status-ativo {
    background: linear-gradient(135deg, #d0f8ec 0%, #b8f2df 100%);
    color: #006b54;
    border: 1px solid #00e5a0;
}

.status-pending,
.status-carencia {
    background: linear-gradient(135deg, #fff4d9 0%, #ffe9b8 100%);
    color: #8c5b00;
    border: 1px solid #ffb800;
}

.status-expired,
.status-vencido {
    background: linear-gradient(135deg, #ffe5ef 0%, #ffd4e5 100%);
    color: #c41e5b;
    border: 1px solid #ff6b9d;
}

.status-redeemed,
.status-resgatado {
    background: linear-gradient(135deg, #d4f4ff 0%, #b8ecff 100%);
    color: #005a8c;
    border: 1px solid #00d4ff;
}

/* ========================================
   MODAL
   ======================================== */
.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #ffffff;
    margin: 0 20px;
    padding: 24px;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close {
    color: #9ca3af;
    float: right;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close:hover {
    color: #1f2937;
    background: #f3f4f6;
}

.modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1f2937;
    font-size: 20px;
    font-weight: 600;
    padding-right: 40px;
}

.confirm-form {
    margin-top: 20px;
}

/* ========================================
   WHATSAPP
   ======================================== */
.whatsapp-preview {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    font-size: 13px;
    line-height: 1.6;
    color: #1f2937;
}

.whatsapp-btn {
    background: #25d366 !important;
    color: #ffffff !important;
}

.whatsapp-btn:hover {
    background: #20ba5a !important;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4) !important;
}

.whatsapp-icon {
    color: #25d366;
}

.alert-pontos {
    font-size: 18px;
    text-align: center;
    justify-content: center;
}

.info-resgate {
    margin-bottom: 20px;
}

.info-resgate p {
    margin: 8px 0;
    font-size: 14px;
    color: #4b5563;
}

.info-resgate strong {
    color: #1f2937;
    font-weight: 600;
}

.buttons-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
}

.buttons-group .btn {
    flex: 1;
    min-width: 140px;
}

.compartilhar-section {
    margin-top: 20px;
}

.compartilhar-section h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #1f2937;
    font-weight: 600;
}

/* ========================================
   PÚBLICO (CLIENTE)
   ======================================== */
.public-header {
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 50%, #006ed9 100%);
    color: #ffffff;
    padding: 28px 20px;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 22px;
    box-shadow: 0 8px 24px rgba(0, 153, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.public-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.public-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 12px;
    background: linear-gradient(to bottom, #f0f8ff 0%, #e6f4ff 100%);
    min-height: 100vh;
}

.saldo-publico {
    background: #ffffff;
    padding: 28px 20px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 153, 255, 0.15);
    margin-bottom: 22px;
    text-align: center;
    border: 2px solid rgba(0, 212, 255, 0.2);
}

.saldo-principal {
    font-size: 52px;
    font-weight: 900;
    color: #00d4ff;
    margin-bottom: 10px;
    letter-spacing: -2.5px;
    text-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.saldo-subtitulo {
    font-size: 19px;
    color: #5a6c7d;
    margin-bottom: 22px;
    font-weight: 600;
}

.valor-real {
    font-size: 26px;
    font-weight: 800;
    color: #00b383;
    text-shadow: 0 2px 10px rgba(0, 179, 131, 0.25);
}

.detalhes-pontos {
    margin-top: 20px;
    text-align: left;
    background: #f9fafb;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.detalhes-pontos .detalhe-item {
    margin-bottom: 10px;
    font-size: 14px;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detalhes-pontos .valor-destaque {
    font-weight: 700;
    color: #1f2937;
}

.extrato-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.extrato-tipo strong {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.extrato-item.pontuar .extrato-tipo i {
    color: #10b981;
}

.extrato-item.resgatar .extrato-tipo i {
    color: #ef4444;
}

.extrato-data {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.extrato-valor {
    text-align: right;
}

.extrato-pontos {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.extrato-descricao {
    margin-top: 10px;
    font-style: italic;
    color: #6b7280;
    font-size: 13px;
}

.premio-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.premio-info-left {
    flex: 1;
}

.premio-titulo {
    margin: 0 0 6px 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
}

.premio-card .premio-descricao {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

.premio-info-right {
    text-align: right;
    flex-shrink: 0;
}

.premio-pontos {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.premio-pontos.disponivel {
    color: #10b981;
}

.premio-pontos.indisponivel {
    color: #9ca3af;
}

.premio-status {
    font-size: 12px;
    margin-top: 4px;
}

.premio-status.disponivel {
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.premio-status.indisponivel {
    color: #9ca3af;
}

.rodape-publico {
    text-align: center;
    margin-top: 32px;
    padding: 20px;
    color: #6b7280;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.rodape-publico .fa-heart {
    color: #ef4444;
}

@media (max-width: 480px) {
    .saldo-principal {
        font-size: 40px;
    }
    
    .saldo-subtitulo {
        font-size: 16px;
    }

    .valor-real {
        font-size: 20px;
    }
    
    .premio-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .premio-info-right {
        text-align: center;
    }
    
    .premio-status.disponivel {
        justify-content: center;
    }
}

.extrato-item {
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.extrato-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.extrato-item.pontuar {
    border-left: 4px solid #10b981;
}

.extrato-item.resgatar {
    border-left: 4px solid #ef4444;
}

.mensagem-sucesso {
    background: #d1fae5;
    color: #065f46;
    padding: 14px 16px;
    border-radius: 12px;
    margin: 12px 0;
    font-weight: 500;
}

.mensagem-erro {
    background: #fee2e2;
    color: #991b1b;
    padding: 14px 16px;
    border-radius: 12px;
    margin: 12px 0;
    font-weight: 500;
}

.search-form {
    margin-bottom: 20px;
}

/* ========================================
   BADGES
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

/* ========================================
   ANIMAÇÕES
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.historico-item {
    animation: slideIn 0.3s ease-out;
}

/* ========================================
   UTILITÁRIOS
   ======================================== */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 12px;
}

.mt-4 {
    margin-top: 16px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 12px;
}

.mb-4 {
    margin-bottom: 16px;
}

.p-2 {
    padding: 8px;
}

.p-3 {
    padding: 12px;
}

.p-4 {
    padding: 16px;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media (max-width: 480px) {
    body {
        padding: 8px;
    }

    .container {
        border-radius: 16px;
        min-height: calc(100vh - 16px);
    }

    .header {
        padding: 20px 16px;
    }

    .header h1 {
        font-size: 24px;
    }

    .content {
        padding: 16px;
    }

    .login-form {
        padding: 24px 16px;
    }

    .main-actions {
        gap: 10px;
    }

    .action-btn {
        border-radius: 14px;
    }

    .action-btn i {
        font-size: 32px;
    }

    .action-btn span {
        font-size: 14px;
    }

    .secondary-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .saldo-principal {
        font-size: 40px;
    }

    .valor-real {
        font-size: 20px;
    }

    .buttons-group {
        flex-direction: column;
    }

    .buttons-group .btn {
        width: 100%;
        min-width: auto;
    }

    .premio-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .premio-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .modal-content {
        margin: 0 12px;
        padding: 20px;
    }

    .table {
        font-size: 12px;
    }

    .table th,
    .table td {
        padding: 8px 6px;
    }

    .config-row {
        flex-direction: column;
    }
}

@media (min-width: 481px) {
    body {
        padding: 16px;
    }

    .container {
        min-height: calc(100vh - 32px);
    }

    .config-row {
        flex-direction: row;
        align-items: center;
    }

    .config-row label {
        flex: 1;
        margin-bottom: 0;
        margin-right: 12px;
    }

    .config-row input,
    .config-row select {
        width: 180px;
    }
}

/* ========================================
   IMPRESSÃO
   ======================================== */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
        border-radius: 0;
    }

    .logout-btn,
    .back-btn,
    .btn,
    .action-btn {
        display: none;
    }

    .header {
        background: #6366f1;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* ========================================
   MODAL DE EDIÇÃO
   ======================================== */
#modalEdicao {
    padding: 20px;
}

#modalEdicao > div {
    animation: modalSlideIn 0.3s ease-out;
}

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

/* Mobile - Modal ocupa mais espaço */
@media (max-width: 480px) {
    #modalEdicao > div {
        max-width: 95%;
        margin: 20px auto;
        padding: 20px;
    }
    
    #modalEdicao h2 {
        font-size: 20px;
    }
    
    #modalEdicao input,
    #modalEdicao textarea {
        font-size: 16px; /* Previne zoom no iOS */
    }
    
    #modalEdicao .btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    /* Melhorar usabilidade dos botões de edição em mobile */
    .historico-item > div {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .historico-item .btn {
        margin-top: 10px;
        width: 100%;
    }
}

/* Tablet e Desktop */
@media (min-width: 481px) {
    #modalEdicao > div {
        margin: 80px auto;
    }
}

