/* ========================================
   SMS VIRTUAL - VAREJÃO DA CONTINGÊNCIA
   CSS Completo e Final - Versão Limpa
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

/* ========================================
   RESET E BASE
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Poppins', sans-serif;
    height: 100%;
    overflow-x: hidden;
    background: linear-gradient(180deg, #007a00 0%, #004d00 100%);
    color: white;
}

/* ========================================
   VARIÁVEIS CSS
======================================== */
:root {
    --primary-green: #007a00;
    --primary-green-dark: #004d00;
    --accent-gold: #FFD700;
    --accent-green-light: #32CD32;
    --accent-green-neon: #ADFF2F;
    --accent-cyan: #00CED1;
    --accent-turquoise: #40E0D0;
    --accent-orange: #FFA500;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* ========================================
   MAIN CONTAINER
======================================== */
.main-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 1rem;
    padding-top: 180px;
    /* Adjusted for header + quick-access-bar */
    min-height: 100vh;
}

/* Mobile spacing for quick-access-bar */
@media (max-width: 991px) {
    .main-container {
        padding-top: 160px;
        /* header (60px) + quick-access-bar (50px) + spacing */
    }
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 60px;
    /* Extra spacing for quick-access-bar */
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-green-neon), var(--accent-cyan));
    background-size: 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 6s linear infinite;
}

@keyframes gradientFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-title {
    font-size: clamp(1.5rem, 5vw, 2.8rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.gradient-text {
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-green-neon), var(--accent-cyan));
    background-size: 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 6s linear infinite;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0.5rem;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.feature-badge {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.feature-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(173, 255, 47, 0.2);
}

.feature-badge i {
    font-size: 1.8rem;
    color: var(--accent-green-neon);
}

.feature-badge span {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

/* ========================================
   CONTENT GRID - 2 COLUNAS
======================================== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ========================================
   GLASS CARDS
======================================== */
.glass-card,
.buy-section,
.orders-section {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 12px rgba(255, 215, 0, 0.1);
}

/* ========================================
   SECTION HEADER
======================================== */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(173, 255, 47, 0.3);
}

.section-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-green-neon));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.section-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.section-info p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ========================================
   SELECTION CONTAINER
======================================== */
.selection-container {
    margin-bottom: 2rem;
}

.selection-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selection-title i {
    color: var(--accent-green-neon);
}

/* ========================================
   COUNTRIES GRID - COM SCROLL
======================================== */
.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.countries-grid::-webkit-scrollbar {
    width: 8px;
}

.countries-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.countries-grid::-webkit-scrollbar-thumb {
    background: var(--accent-green-neon);
    border-radius: 10px;
}

.countries-grid::-webkit-scrollbar-thumb:hover {
    background: var(--accent-green-light);
}

.country-card {
    background: var(--glass-bg);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.country-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-green-neon);
    box-shadow: 0 6px 20px rgba(173, 255, 47, 0.3);
}

.country-card.selected {
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.2), rgba(173, 255, 47, 0.2));
    border-color: var(--accent-green-neon);
    box-shadow: 0 6px 20px rgba(173, 255, 47, 0.4);
}

.country-flag {
    width: 50px;
    height: 34px;
    object-fit: cover;
    border-radius: 4px;
    margin: 0 auto 0.4rem;
    display: block;
}

.country-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    line-height: 1.2;
}

.country-available {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.country-loading,
.service-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.country-loading i,
.service-loading i {
    font-size: 2rem;
    color: var(--accent-green-neon);
    margin-bottom: 1rem;
    display: block;
}

/* ========================================
   TOP SERVICES
======================================== */
.top-services-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 12px;
}

.top-services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
    max-height: 280px;
    overflow-y: auto;
}

.top-services-list::-webkit-scrollbar {
    width: 8px;
}

.top-services-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.top-services-list::-webkit-scrollbar-thumb {
    background: var(--accent-orange);
    border-radius: 10px;
}

.top-service-card {
    background: var(--glass-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.top-service-card::before {
    content: '🔥';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 1.2rem;
}

.top-service-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-orange);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.3);
}

.top-service-card.selected {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(173, 255, 47, 0.2));
    border-color: var(--accent-orange);
}

/* ========================================
   SERVICES GRID - COM SCROLL
======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.services-grid::-webkit-scrollbar {
    width: 8px;
}

.services-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.services-grid::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 10px;
}

.service-card {
    background: var(--glass-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-cyan);
    box-shadow: 0 6px 20px rgba(64, 224, 208, 0.3);
}

.service-card.selected {
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.2), rgba(173, 255, 47, 0.2));
    border-color: var(--accent-cyan);
}

.service-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin: 0 auto 0.5rem;
    display: block;
    border-radius: 8px;
    background: white;
    padding: 5px;
}

.service-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.3rem;
}

.service-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-green-neon);
}

/* ========================================
   QUANTITY SECTION
======================================== */
.quantity-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.quantity-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.qty-btn {
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border: 2px solid var(--accent-green-neon);
    border-radius: 10px;
    color: var(--accent-green-neon);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover:not(:disabled) {
    background: rgba(173, 255, 47, 0.2);
    transform: scale(1.05);
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 80px;
    height: 50px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    outline: none;
}

/* ========================================
   PURCHASE SUMMARY
======================================== */
.purchase-summary {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 70, 0, 0.6), rgba(0, 40, 0, 0.7));
    border: 1px solid #FFD700;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 215, 0, 0.15);
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.summary-content {
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.summary-row span:first-child {
    color: rgba(255, 255, 255, 0.8);
}

.summary-value {
    font-weight: 600;
    color: white;
}

.summary-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 1rem 0;
}

.summary-total {
    font-size: 1.2rem;
    font-weight: 700;
    padding-top: 0.5rem;
    border-top: 2px solid var(--accent-green-neon);
}

.buy-now-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to right, #00CC00, #009900);
    border: 1px solid #FFD700;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 215, 0, 0.2);
}

.buy-now-btn:hover:not(:disabled) {
    background: linear-gradient(to right, #00E600, #00B300);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 215, 0, 0.4);
}

.buy-now-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 215, 0, 0.3);
}

/* ========================================
   ORDERS TABS
======================================== */
.orders-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: white;
    border-bottom-color: var(--accent-green-neon);
}

.tab-badge {
    background: var(--accent-orange);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ========================================
   TAB CONTENT
======================================== */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.orders-header {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.update-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.update-info i {
    color: var(--accent-green-neon);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   ORDERS LIST
======================================== */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: rgba(255, 255, 255, 0.3);
}

.empty-state p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state span {
    font-size: 0.9rem;
}

/* ========================================
   ORDER CARD
======================================== */
.order-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.order-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    padding: 5px;
}

.order-info {
    flex: 1;
    margin-left: 1rem;
}

.order-service {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.order-phone {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.order-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 165, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--accent-orange);
}

.order-body {
    margin-bottom: 1rem;
}

.order-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.95rem;
}

.order-status i {
    color: var(--accent-orange);
}

.order-status.status-received {
    background: rgba(50, 205, 50, 0.2);
}

.order-status.status-received i {
    color: var(--accent-green-light);
}

.order-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.order-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.8rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.copy-btn:hover {
    background: rgba(0, 206, 209, 0.2);
    border-color: var(--accent-cyan);
}

.cancel-btn:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
}



/* ========================================
   ORDERS TABLE
======================================== */
.orders-table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table thead {
    background: rgba(255, 255, 255, 0.1);
}

.orders-table th {
    padding: 1rem;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.orders-table td {
    padding: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-status {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.history-status.completed {
    background: rgba(50, 205, 50, 0.2);
    color: var(--accent-green-light);
}

.history-status.cancelled {
    background: transparent;
    color: #dc3545;
}

.history-status.expired {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.history-action-btn {
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-action-btn:hover {
    background: rgba(0, 206, 209, 0.2);
    border-color: var(--accent-cyan);
}

/* ========================================
   PAGINATION
======================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(173, 255, 47, 0.2);
    border-color: var(--accent-green-neon);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

/* ========================================
   MODAIS - VERSÃO CORRIGIDA FINAL
======================================== */
.modal-overlay,
.sms-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Fundo preto semi-transparente */
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active,
.sms-modal-overlay.active {
    display: flex !important;
}

/* ========================================
   MODAL CARD - CONTEÚDO VISÍVEL
======================================== */
.modal {
    background: linear-gradient(135deg, #001a00 0%, #003300 100%);
    /* Verde escuro sólido */
    border: 3px solid #ADFF2F;
    /* Borda verde neon */
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 60px rgba(173, 255, 47, 0.6);
    /* Brilho verde */
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
    z-index: 100000;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================
   MODAL HEADER
======================================== */
.modal-header {
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(173, 255, 47, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.close-modal {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: rgba(220, 53, 69, 0.5);
    border-color: #dc3545;
    transform: rotate(90deg);
}

/* ========================================
   MODAL BODY
======================================== */
.modal-body {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.modal-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.modal-value {
    font-size: 1rem;
    color: #FFFFFF;
    font-weight: 600;
}

.modal-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(173, 255, 47, 0.1);
    border: 2px solid #ADFF2F;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.modal-total span {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFFFFF;
}

.gradient-text {
    background: linear-gradient(45deg, #FFA500, #ADFF2F, #00CED1);
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.modal-warning {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 165, 0, 0.15);
    border: 2px solid rgba(255, 165, 0, 0.5);
    border-radius: 8px;
}

.modal-warning i {
    font-size: 1.5rem;
    color: #FFA500;
    flex-shrink: 0;
}

.modal-warning p {
    font-size: 0.9rem;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   MODAL FOOTER
======================================== */
.modal-footer {
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 2px solid rgba(173, 255, 47, 0.3);
    display: flex;
    gap: 1rem;
}

.modal-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: rgba(220, 53, 69, 0.8);
    color: #FFFFFF;
    border: 2px solid #dc3545;
}

.cancel-btn:hover {
    background: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.5);
}

.confirm-btn {
    background: linear-gradient(135deg, #32CD32, #00CED1);
    color: #FFFFFF;
    border: 2px solid #32CD32;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 205, 50, 0.5);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .modal {
        width: 95%;
        max-width: none;
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-footer {
        flex-direction: column;
    }
}

/* ========================================
   NOTIFICAÇÕES
======================================== */
#notification-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.notification {
    min-width: 300px;
    max-width: 400px;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.3s ease-out;
    pointer-events: all;
    cursor: pointer;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification.closing {
    animation: slideOutRight 0.3s ease-out forwards;
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: rgba(50, 205, 50, 0.2);
    color: var(--accent-green-light);
}

.notification.error .notification-icon {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.notification.warning .notification-icon {
    background: rgba(255, 165, 0, 0.2);
    color: var(--accent-orange);
}

.notification.info .notification-icon {
    background: rgba(0, 206, 209, 0.2);
    color: var(--accent-cyan);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.3rem;
}

.notification-message {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.notification-close {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   CONFETTI
======================================== */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-gold);
    animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ========================================
   RESPONSIVE - MOBILE-FIRST APPROACH
   Breakpoints: 576px (SM), 768px (MD), 992px (LG), 1200px (XL)
======================================== */

/* SM: Landscape phones (≥576px) */
@media (min-width: 576px) {
    .main-container {
        padding: 1.5rem;
        padding-top: 80px;
    }

    .hero-features {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .countries-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }

    .country-card {
        padding: 1rem;
    }

    .country-flag {
        width: 60px;
        height: 40px;
    }

    .country-name {
        font-size: 0.9rem;
    }

    .services-grid,
    .top-services-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .glass-card,
    .buy-section,
    .orders-section {
        padding: 1.5rem;
    }
}

/* MD: Tablets (≥768px) */
@media (min-width: 768px) {
    .main-container {
        padding: 2rem;
        padding-top: 100px;
    }

    .hero-section {
        margin-bottom: 2.5rem;
    }

    .countries-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        max-height: 400px;
    }

    .services-grid {
        max-height: 500px;
    }

    .glass-card,
    .buy-section,
    .orders-section {
        padding: 2rem;
    }

    .section-header {
        flex-wrap: nowrap;
    }
}

/* LG: Desktops (≥992px) */
@media (min-width: 992px) {
    .main-container {
        padding-top: 120px;
    }

    .content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hero-section {
        margin-bottom: 3rem;
    }

    .countries-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

/* XL: Large Desktops (≥1200px) */
@media (min-width: 1200px) {
    .countries-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .services-grid,
    .top-services-list {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }
}

/* ========================================
   MOBILE SPECIFIC OVERRIDES (max-width)
======================================== */
@media (max-width: 575px) {
    .hero-icon {
        font-size: 3rem;
    }

    .feature-badge {
        padding: 0.75rem 0.5rem;
    }

    .feature-badge i {
        font-size: 1.5rem;
    }

    .feature-badge span {
        font-size: 0.75rem;
    }

    .section-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .section-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .section-info h2 {
        font-size: 1.2rem;
    }

    .section-info p {
        font-size: 0.85rem;
    }

    .orders-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        border-bottom: none;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
    }

    .tab-btn.active {
        background: rgba(173, 255, 47, 0.15);
        border-left: 3px solid var(--accent-green-neon);
    }

    /* Orders Table as Cards on Mobile */
    .orders-table-container {
        overflow-x: visible;
    }

    .orders-table {
        min-width: auto;
    }

    .orders-table thead {
        display: none;
    }

    .orders-table tbody tr {
        display: flex;
        flex-direction: column;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    .orders-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .orders-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .orders-table td:last-child {
        border-bottom: none;
        padding-top: 0.75rem;
    }

    .orders-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.8rem;
        text-transform: uppercase;
    }

    /* Modal Bottom Sheet Style */
    .modal {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .modal-header,
    .modal-footer {
        padding: 1rem 1.25rem;
    }

    .modal-body {
        padding: 1rem 1.25rem;
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-footer {
        flex-direction: column;
        gap: 0.75rem;
    }

    .modal-total {
        padding: 1rem;
    }

    .modal-warning {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    /* Notifications */
    #notification-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .notification {
        min-width: auto;
        width: 100%;
    }

    /* Quantity Controls */
    .quantity-section {
        padding: 1rem;
    }

    .qty-btn {
        width: 40px;
        height: 40px;
    }

    .quantity-input {
        width: 60px;
        height: 45px;
        font-size: 1.3rem;
    }

    /* Purchase Summary */
    .purchase-summary {
        padding: 1rem;
    }

    .buy-now-btn {
        padding: 0.875rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .code-value {
        font-size: 2rem;
        letter-spacing: 0.3rem;
    }

    .service-card,
    .top-service-card {
        padding: 0.75rem 0.5rem;
    }

    .service-logo {
        width: 40px;
        height: 40px;
    }

    .service-name {
        font-size: 0.8rem;
    }

    .service-price {
        font-size: 0.95rem;
    }
}

/* ========================================
   SCROLLBAR GERAL
======================================== */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-green-neon) rgba(255, 255, 255, 0.1);
}

/* ========================================
   FIM DO CSS - VERSÃO LIMPA SEM DUPLICAÇÕES
======================================== */

/* ========================================
   🔥 CORREÇÃO CRÍTICA - MODAL VISÍVEL
======================================== */

/* REMOVER BLUR E FORÇAR OPACIDADE */
.modal-overlay.active,
.sms-modal-overlay.active {
    display: flex !important;
    backdrop-filter: none !important;
    /* ❌ REMOVER BLUR */
    -webkit-backdrop-filter: none !important;
    /* ❌ REMOVER BLUR */
    background: rgba(0, 0, 0, 0.92) !important;
    /* Fundo preto opaco */
}

/* FORÇAR MODAL SÓLIDO */
.modal {
    background: #002200 !important;
    /* Verde escuro SÓLIDO (sem transparência) */
    backdrop-filter: none !important;
    /* ❌ REMOVER BLUR */
    -webkit-backdrop-filter: none !important;
    /* ❌ REMOVER BLUR */
    border: 4px solid #ADFF2F !important;
    box-shadow: 0 0 80px rgba(173, 255, 47, 0.8) !important;
}

/* FORÇAR TEXTOS BRANCOS */
.modal-header h3,
.modal-label,
.modal-value,
.modal-total span,
.modal-warning p,
.modal-warning strong {
    color: #FFFFFF !important;
    opacity: 1 !important;
}

/* FORÇAR BOTÕES VISÍVEIS */
.modal-btn {
    opacity: 1 !important;
}

.cancel-btn {
    background: #dc3545 !important;
    color: white !important;
}

.confirm-btn {
    background: #32CD32 !important;
    color: white !important;
}

/* ========================================
   NOTIFICAÇÕES TOAST - COMPLETO
======================================== */
#notification-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.notification,
.toast-notification {
    min-width: 320px;
    max-width: 420px;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 50, 0, 0.98), rgba(0, 80, 0, 0.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid #ADFF2F;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(173, 255, 47, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
    cursor: pointer;
    transition: all 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification:hover,
.toast-notification:hover {
    transform: translateX(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(173, 255, 47, 0.5);
}

.notification.closing,
.toast-notification.closing {
    animation: slideOutRight 0.3s ease-out forwards;
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* ========================================
   ÍCONES DAS NOTIFICAÇÕES
======================================== */
.notification-icon,
.toast-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* SUCCESS - Verde */
.notification.success .notification-icon,
.toast-notification.success .toast-icon {
    background: linear-gradient(135deg, #32CD32, #00FF00);
    color: white;
}

/* ERROR - Vermelho */
.notification.error .notification-icon,
.toast-notification.error .toast-icon {
    background: linear-gradient(135deg, #dc3545, #ff0000);
    color: white;
}

/* WARNING - Laranja */
.notification.warning .notification-icon,
.toast-notification.warning .toast-icon {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    color: white;
}

/* INFO - Azul/Ciano */
.notification.info .notification-icon,
.toast-notification.info .toast-icon {
    background: linear-gradient(135deg, #00CED1, #40E0D0);
    color: white;
}

/* ========================================
   CONTEÚDO DAS NOTIFICAÇÕES
======================================== */
.notification-content,
.toast-content {
    flex: 1;
}

.notification-title,
.toast-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.notification-message,
.toast-message {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
}

/* Código especial (se houver) */
.toast-code {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(173, 255, 47, 0.2);
    border: 1px solid #ADFF2F;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ADFF2F;
    text-align: center;
    letter-spacing: 2px;
}

/* ========================================
   BOTÃO FECHAR
======================================== */
.notification-close,
.toast-close {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.notification-close:hover,
.toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* ========================================
   RESPONSIVE - MOBILE
======================================== */
@media (max-width: 768px) {
    #notification-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .notification,
    .toast-notification {
        min-width: auto;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {

    .notification,
    .toast-notification {
        padding: 1rem;
    }

    .notification-icon,
    .toast-icon {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .notification-title,
    .toast-title {
        font-size: 1rem;
    }

    .notification-message,
    .toast-message {
        font-size: 0.85rem;
    }
}

/* ========================================
   BOTÃO COPIAR AO LADO DO NÚMERO
   ======================================== */

/* Container do telefone com botão de copiar */
.order-phone-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.order-phone {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #e8f5e9;
}

/* Botão de copiar ao lado do número (pedidos ativos) */
.copy-phone-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.copy-phone-icon i {
    font-size: 12px;
    color: #fff;
}

.copy-phone-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.copy-phone-icon:active {
    transform: scale(0.95);
}

/* Container no histórico */
.phone-with-copy {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Botão de copiar menor no histórico */
.copy-phone-icon-small {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.copy-phone-icon-small i {
    font-size: 11px;
    color: #4caf50;
}

.copy-phone-icon-small:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.5);
    transform: scale(1.05);
}

.copy-phone-icon-small:active {
    transform: scale(0.95);
}

/* Ajuste no order-info para acomodar melhor */
.order-info {
    flex: 1;
    min-width: 0;
}

.order-service {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

/* Responsivo */
@media (max-width: 768px) {
    .order-phone-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .copy-phone-icon {
        padding: 5px 8px;
    }

    .copy-phone-icon i {
        font-size: 11px;
    }
}


/* ========================================
   ESTADO AGUARDANDO NOVO CÓDIGO
======================================== */
.waiting-new-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: #ADFF2F;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.waiting-new-code i {
    font-size: 2.5rem;
    color: #FFA500;
    animation: pulse 1.5s ease-in-out infinite;
}

.waiting-new-code span {
    color: rgba(255, 255, 255, 0.9);
}

/* Botão de solicitar novo código desabilitado */
#request-new-code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1);
}

/* Estilo do botão quando solicitado com sucesso */
#request-new-code-btn.requested {
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.3), rgba(0, 206, 209, 0.3));
    border-color: #32CD32;
}

/* ========================================
   MODAL DE CÓDIGO RECEBIDO - REDESIGN PREMIUM
======================================== */

/* Container do Modal */
.code-modal-container {
    background: linear-gradient(145deg, #0a1f0a 0%, #0d2d0d 50%, #0a1f0a 100%);
    border: 2px solid rgba(173, 255, 47, 0.4);
    border-radius: 24px;
    width: 95%;
    max-width: 480px;
    overflow: hidden;
    box-shadow:
        0 0 60px rgba(173, 255, 47, 0.3),
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: modalPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 100000;
}

@keyframes modalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Header do Modal */
.code-modal-header {
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.2) 0%, rgba(0, 206, 209, 0.1) 100%);
    padding: 2rem;
    position: relative;
    text-align: center;
    border-bottom: 1px solid rgba(173, 255, 47, 0.2);
}

.code-modal-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.code-modal-icon-wrapper {
    margin-bottom: 0.5rem;
}

.code-modal-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #32CD32, #00CED1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    box-shadow:
        0 0 30px rgba(50, 205, 50, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3);
}

.code-modal-icon.pulse-animation {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(50, 205, 50, 0.5);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 50px rgba(50, 205, 50, 0.7);
    }
}

.code-modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.code-modal-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.code-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-modal-close:hover {
    background: rgba(220, 53, 69, 0.3);
    border-color: #dc3545;
    color: #dc3545;
    transform: rotate(90deg);
}

/* Corpo do Modal */
.code-modal-body {
    padding: 1.5rem 2rem 2rem;
}

/* Card de Display do Código */
.code-display-card {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    border: 2px solid rgba(173, 255, 47, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.code-display-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.code-display-label i {
    color: #FFD700;
}

.code-display-value {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1.2rem;
}

.code-digit {
    width: 45px;
    height: 55px;
    background: linear-gradient(180deg, rgba(173, 255, 47, 0.15) 0%, rgba(173, 255, 47, 0.05) 100%);
    border: 2px solid rgba(173, 255, 47, 0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ADFF2F;
    text-shadow: 0 0 10px rgba(173, 255, 47, 0.5);
    animation: digitGlow 2s ease-in-out infinite;
    animation-delay: calc(var(--digit-index, 0) * 0.1s);
}

.code-digit:nth-child(1) {
    --digit-index: 0;
}

.code-digit:nth-child(2) {
    --digit-index: 1;
}

.code-digit:nth-child(3) {
    --digit-index: 2;
}

.code-digit:nth-child(4) {
    --digit-index: 3;
}

.code-digit:nth-child(5) {
    --digit-index: 4;
}

.code-digit:nth-child(6) {
    --digit-index: 5;
}

@keyframes digitGlow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(173, 255, 47, 0.2);
    }

    50% {
        box-shadow: 0 0 15px rgba(173, 255, 47, 0.4);
    }
}

.code-copy-btn {
    background: linear-gradient(135deg, #32CD32, #228B22);
    border: none;
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(50, 205, 50, 0.3);
}

.code-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 205, 50, 0.4);
}

.code-copy-btn:active {
    transform: translateY(0);
}

/* Seção de Informações */
.code-info-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.code-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}

.code-info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(173, 255, 47, 0.3);
}

.code-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.code-info-icon.phone-icon {
    background: rgba(0, 206, 209, 0.2);
    color: #00CED1;
}

.code-info-icon.service-icon {
    background: rgba(255, 165, 0, 0.2);
    color: #FFA500;
}

.code-info-icon.attempt-icon {
    background: rgba(138, 43, 226, 0.2);
    color: #9370DB;
}

.code-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.code-info-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.code-info-value {
    font-size: 1rem;
    color: white;
    font-weight: 600;
}

.code-copy-small {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-copy-small:hover {
    background: rgba(0, 206, 209, 0.2);
    border-color: #00CED1;
    color: #00CED1;
}

/* Botões de Ação */
.code-actions {
    display: flex;
    gap: 1rem;
}

.code-action-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.code-action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.code-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.code-action-btn.primary {
    background: linear-gradient(135deg, #32CD32, #00CED1);
    color: white;
    box-shadow: 0 4px 15px rgba(50, 205, 50, 0.3);
}

.code-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 205, 50, 0.5);
}

/* Responsivo */
@media (max-width: 480px) {
    .code-modal-container {
        width: 98%;
        max-width: none;
        border-radius: 20px;
    }

    .code-modal-header {
        padding: 1.5rem;
    }

    .code-modal-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .code-modal-title {
        font-size: 1.4rem;
    }

    .code-modal-body {
        padding: 1.2rem 1.5rem 1.5rem;
    }

    .code-digit {
        width: 38px;
        height: 48px;
        font-size: 1.5rem;
    }

    .code-actions {
        flex-direction: column;
    }

    .code-action-btn {
        padding: 0.9rem;
    }

    /* Responsivo para estado aguardando novo código */
    .waiting-new-code {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .waiting-new-code i {
        font-size: 2rem;
    }
}

/* ========================================
   DROPDOWN MENU DE PERFIL
======================================== */
.profile-dropdown {
    position: relative;
}

.profile-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 220px;
    background: linear-gradient(145deg, #0a1f0a 0%, #0d2d0d 100%);
    border: 2px solid rgba(173, 255, 47, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow: hidden;
    animation: dropdownFadeIn 0.2s ease-out;
}

.profile-dropdown .dropdown-menu.show {
    display: block;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.profile-dropdown .dropdown-item:hover {
    background: rgba(173, 255, 47, 0.1);
    padding-left: 20px;
}

.profile-dropdown .dropdown-item.active {
    background: rgba(173, 255, 47, 0.15);
    border-left: 3px solid #ADFF2F;
}

.profile-dropdown .dropdown-item i {
    font-size: 1.1rem;
    color: #ADFF2F;
    width: 20px;
    text-align: center;
}

.profile-toggle {
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-toggle:hover {
    opacity: 0.9;
}