:root {
    --primary-color: #6a5acd;
    --secondary-color: #8a2be2;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --warning-color: #f39c12;
    --transition-speed: 0.3s;
}
body {
    background: linear-gradient(135deg, var(--primary-color), #9370db, var(--secondary-color));
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow-x: hidden;
}
/* Bolhas de fundo decorativas */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 20px, transparent 25px),
        radial-gradient(circle at 90% 30%, rgba(255, 255, 255, 0.1) 15px, transparent 20px),
        radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.1) 25px, transparent 30px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 20px, transparent 25px);
    z-index: -1;
}
.app-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 30px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    z-index: 10;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.app-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}
.app-header {
    text-align: center;
    margin-bottom: 25px;
}
.app-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    padding: 15px;
    display: inline-flex;
    margin-bottom: 15px;
    box-shadow: 0 8px 16px rgba(106, 90, 205, 0.3);
    transition: transform var(--transition-speed) ease;
}
.app-icon:hover {
    transform: scale(1.05) rotate(5deg);
}
.app-title {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.9rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    margin-top: 10px;
}
.app-subtitle {
    color: #666;
    font-size: 1rem;
    margin-top: 5px;
}
.input-label {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #555;
    display: block;
}
.form-control {
    border: 2px solid #e6e6e6;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 1.1rem;
    color: #333;
    transition: all var(--transition-speed);
    text-align: center;
    letter-spacing: 1px;
    background: #fafafa;
}
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(106, 90, 205, 0.15);
    background: #fff;
}
.input-valid {
    border-color: var(--success-color);
}
.input-invalid {
    border-color: var(--error-color);
}
.btn-load {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    box-shadow: 0 6px 12px rgba(106, 90, 205, 0.25);
    position: relative;
    overflow: hidden;
}
.btn-load::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}
.btn-load:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(106, 90, 205, 0.4);
}
.btn-load:hover::after {
    left: 100%;
}
.btn-load:active {
    transform: translateY(0);
}
.btn-qr {
    background: linear-gradient(135deg, var(--success-color), #27ae60);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    box-shadow: 0 6px 12px rgba(46, 204, 113, 0.25);
    position: relative;
    overflow: hidden;
}
.btn-qr::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}
.btn-qr:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(46, 204, 113, 0.4);
}
.btn-qr:hover::after {
    left: 100%;
}
.btn-qr:active {
    transform: translateY(0);
}
.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.25);
    position: relative;
    overflow: hidden;
}
.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}
.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(108, 117, 125, 0.4);
    background: linear-gradient(135deg, #5a6268, #4e555b);
}
.btn-secondary:hover::after {
    left: 100%;
}
.btn-icon {
    margin-right: 10px;
}
.error-message {
    background: #ffebee;
    color: var(--error-color);
    border-radius: 12px;
    padding: 14px;
    margin-top: 15px;
    display: none;
    align-items: center;
    animation: fadeIn 0.4s ease;
    text-align: center;
    border-left: 4px solid var(--error-color);
}
.success-message {
    background: #e8f5e9;
    color: var(--success-color);
    border-radius: 12px;
    padding: 14px;
    margin-top: 15px;
    display: none;
    align-items: center;
    animation: fadeIn 0.4s ease;
    text-align: center;
    border-left: 4px solid var(--success-color);
}
.error-icon, .success-icon {
    margin-right: 10px;
    font-size: 1.3rem;
}
.code-length {
    text-align: center;
    font-size: 0.9rem;
    color: #999;
    margin-top: 8px;
    transition: color var(--transition-speed);
}
.code-length.valid {
    color: var(--success-color);
    font-weight: 600;
}
/* Fullscreen QR Scanner */
.qr-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.qr-fullscreen.active {
    display: flex;
    opacity: 1;
}
.qr-fullscreen-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: #111;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(106, 90, 205, 0.6);
    transform: scale(0.9);
    animation: zoomIn 0.4s ease forwards;
}
@keyframes zoomIn {
    to { transform: scale(1); }
}
.qr-fullscreen-video {
    width: 100%;
    display: block;
    border-radius: 24px;
}
.fullscreen-scanning-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scan 1.5s linear infinite;
    border-radius: 3px;
    z-index: 10;
}
.close-scanner {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.close-scanner:hover {
    background: var(--error-color);
    transform: rotate(90deg) scale(1.1);
}
.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 5;
}
.scanner-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    max-width: 300px;
    max-height: 300px;
    border: 2px solid var(--primary-color);
    border-radius: 24px;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.7);
    z-index: 6;
}
.scanner-corners {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 7;
}
.scanner-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: var(--primary-color);
    border-width: 0;
}
.scanner-corner.top-left {
    top: -2px;
    left: -2px;
    border-top-width: 5px;
    border-left-width: 5px;
    border-top-left-radius: 18px;
}
.scanner-corner.top-right {
    top: -2px;
    right: -2px;
    border-top-width: 5px;
    border-right-width: 5px;
    border-top-right-radius: 18px;
}
.scanner-corner.bottom-left {
    bottom: -2px;
    left: -2px;
    border-bottom-width: 5px;
    border-left-width: 5px;
    border-bottom-left-radius: 18px;
}
.scanner-corner.bottom-right {
    bottom: -2px;
    right: -2px;
    border-bottom-width: 5px;
    border-right-width: 5px;
    border-bottom-right-radius: 18px;
}
.fullscreen-instructions {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 1.1rem;
    z-index: 20;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    padding: 0 20px;
}
/* Modal de Personalização */
.customization-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 4000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.customization-modal.active {
    display: flex;
    opacity: 1;
}
.customization-container {
    background: white;
    border-radius: 24px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: scale(0.9);
    animation: zoomIn 0.4s ease forwards;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f8f9fa;
}
.customization-container::-webkit-scrollbar {
    width: 6px;
}
.customization-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
@keyframes zoomIn {
    to { transform: scale(1); }
}
.customization-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}
.close-customization {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}
.close-customization:hover {
    background: #e9ecef;
    transform: rotate(90deg) scale(1.1);
}
.customization-title {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.7rem;
    margin-bottom: 8px;
}
.customization-subtitle {
    color: #6c757d;
    font-size: 1rem;
}
.customization-section {
    margin-bottom: 25px;
}
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.section-title i {
    margin-right: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.2rem;
}
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}
.category-btn {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}
.category-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.category-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(106, 90, 205, 0.3);
}
.carousel-container {
    position: relative;
    margin-bottom: 20px;
}
.carousel-title {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 500;
}
.images-carousel, .phrases-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    padding: 12px 5px;
    margin-bottom: 12px;
    scrollbar-width: thin;
}
.images-carousel::-webkit-scrollbar, .phrases-carousel::-webkit-scrollbar {
    height: 6px;
}
.images-carousel::-webkit-scrollbar-thumb, .phrases-carousel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.image-item, .phrase-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    cursor: pointer;
    transition: all 0.3s;
}
.image-item {
    width: 130px;
    height: 130px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid #e9ecef;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.image-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}
.image-item.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.3), 0 6px 12px rgba(106, 90, 205, 0.2);
}
.image-item.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.image-item:hover .image-preview {
    transform: scale(1.1);
}
.phrase-item {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 18px;
    width: 240px;
    border: 2px solid #e9ecef;
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}
.phrase-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-color: #dee2e6;
}
.phrase-item.selected {
    border-color: var(--primary-color);
    background: rgba(106, 90, 205, 0.05);
    box-shadow: 0 0 0 2px rgba(106, 90, 205, 0.2), 0 6px 12px rgba(106, 90, 205, 0.15);
}
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}
.carousel-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(106, 90, 205, 0.3);
}
.carousel-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(106, 90, 205, 0.4);
}
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}
/* Modal de Confirmação com Pré-visualização */
.confirmation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 4000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.confirmation-modal.active {
    display: flex;
    opacity: 1;
}
.confirmation-container {
    background: white;
    border-radius: 24px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: scale(0.9);
    animation: zoomIn 0.4s ease forwards;
}
.confirmation-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}
.confirmation-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.confirmation-message {
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1.05rem;
}
/* Pré-visualização no Modal de Confirmação */
.preview-section {
    background: #f8f9fa;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 25px;
    text-align: center;
    border: 2px dashed #dee2e6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.preview-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
}
.preview-content {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    padding: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}
.preview-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    z-index: 1;
    transition: all 0.5s ease;
}
.preview-text, .preview-sender {
    position: relative;
    z-index: 2;
    text-align: center;
    transition: all 0.3s ease;
}
.preview-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    max-width: 100%;
    padding: 0 10px;
}
.preview-sender {
    font-style: italic;
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}
.confirmation-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
/* Visualização em Tela Cheia - Modificada */
.fullscreen-view {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    background-size: cover;
    background-position: center;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.fullscreen-view.active {
    display: flex;
    opacity: 1;
}
.fullscreen-view::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.fullscreen-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    max-width: 90%;
}
.fullscreen-text {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}
.fullscreen-sender {
    font-style: italic;
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 500;
}
.close-fullscreen {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.close-fullscreen:hover {
    background: var(--error-color);
    transform: scale(1.1);
}
@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Efeito de shimmer para loading */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 16px;
    min-height: 140px;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (max-width: 480px) {
    .app-container {
        padding: 25px 20px;
    }
    .app-title {
        font-size: 1.7rem;
    }
    .btn-load, .btn-qr {
        padding: 14px;
        font-size: 1rem;
    }
    .image-item {
        width: 110px;
        height: 110px;
    }
    .phrase-item {
        width: 200px;
        padding: 15px;
        font-size: 0.95rem;
    }
    .action-buttons, .confirmation-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .category-buttons {
        justify-content: center;
    }
    .customization-container, .confirmation-container {
        padding: 25px 20px;
    }
    .preview-content {
        min-height: 120px;
        padding: 15px;
    }
    .preview-text {
        font-size: 1.1rem;
    }
    .fullscreen-text {
        font-size: 1.4rem;
    }
    .fullscreen-sender {
        font-size: 1.1rem;
    }
    .images-carousel, .phrases-carousel {
        gap: 10px;
    }
    .image-item {
        width: calc(50% - 5px);
        height: auto;
        aspect-ratio: 1/1;
    }
    .phrase-item {
        width: calc(100% - 10px);
    }
    .carousel-nav {
        gap: 8px;
    }
    .carousel-btn {
        width: 32px;
        height: 32px;
    }
    .fullscreen-instructions {
        font-size: 1rem;
        bottom: 15px;
    }
    .close-scanner, .close-fullscreen {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        top: 15px;
        right: 15px;
    }
    .confirmation-container, .customization-container {
        padding: 20px;
    }
    .confirmation-title, .customization-title {
        font-size: 1.4rem;
    }
    .preview-content {
        padding: 15px;
    }
    .preview-text {
        font-size: 1rem;
    }
    .preview-sender {
        font-size: 0.9rem;
    }
    .confirmation-message {
        font-size: 0.95rem;
    }
}
@media (max-width: 360px) {
    .app-container {
        padding: 20px 15px;
    }
    .app-icon {
        padding: 10px;
    }
    .app-title {
        font-size: 1.5rem;
    }
    .input-label {
        font-size: 1rem;
    }
    .form-control {
        padding: 12px 16px;
        font-size: 1rem;
    }
    .btn-load, .btn-qr, .btn-secondary {
        padding: 12px;
        font-size: 1rem;
    }
    .code-length {
        font-size: 0.8rem;
    }
}
/* Melhorar scroll em dispositivos touch */
.images-carousel, .phrases-carousel {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}
.images-carousel::-webkit-scrollbar, .phrases-carousel::-webkit-scrollbar { 
    display: none;  /* Safari and Chrome */
}
/* Estilo para o contador de caracteres do remetente */
.sender-length {
    text-align: center;
    font-size: 0.9rem;
    color: #999;
    margin-top: 8px;
    transition: color var(--transition-speed);
}
.sender-length.valid {
    color: var(--success-color);
    font-weight: 600;
}
.app-subtitle {
  font-size: 19px;
  font-weight: bold;
  color: #6c757d;
}
.btn-buy {
    background: linear-gradient(135deg, #ff8c00, #ff5722);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    box-shadow: 0 6px 12px rgba(255, 140, 0, 0.25);
    position: relative;
    overflow: hidden;
}
.btn-buy::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}
.btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 140, 0, 0.4);
}
.btn-buy:hover::after {
    left: 100%;
}
.btn-buy:active {
    transform: translateY(0);
}