:root {
    --primary: #000000;
    --primary-dark: #000000;
    --primary-light: #d1d5db;
    --secondary: #111827;
    --success: #10b981;
    --success-dark: #059669;
    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-muted: #f1f5f9;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
    --shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.preloader {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 16px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
}

.toast {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideIn .3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    word-break: break-word;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }
.toast.info { background: var(--primary); }

.toast.hide {
    animation: slideOut .3s ease forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 24px 0;
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
    color: white !important;
}
a.logo, a.logo:visited, a.logo:hover, a.logo:active, a.logo:focus {
    text-decoration: none !important;
    color: white !important;
    background: none !important;
    box-shadow: none !important;
    outline: none;
}
.logo svg {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.logo h1 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: white !important;
    margin: 0;
    text-decoration: none !important;
}
.logo span {
    font-size: 13px;
    opacity: .9;
    color: white !important;
    display: block;
    margin-top: 2px;
    text-decoration: none !important;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-light);
    animation: pulse 2s infinite;
}

.status-dot.available { background: var(--success); box-shadow: 0 0 0 0 rgba(16,185,129,.7); }
.status-dot.unavailable { background: var(--danger); }
.status-dot.checking { background: var(--warning); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16,185,129,.7); }
    70% { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.main {
    flex: 1;
    padding: 30px 0;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--bg-card);
    padding: 6px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}

.tab-btn svg {
    width: 18px;
    height: 18px;
}

.tab-btn:hover {
    background: var(--bg-muted);
    color: var(--text);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
    animation: fadeIn .3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}

.card-header {
    padding: 24px 24px 0;
    border-bottom: 1px solid transparent;
}

.card-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.card-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.card-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon svg {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.input-icon input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text);
    background: var(--bg-card);
    transition: all .2s ease;
    font-family: inherit;
}

.input-icon input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,0,0,.1);
}

.input-icon input:invalid:not(:placeholder-shown) {
    border-color: var(--danger);
}

.saved-urls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 140px;
    overflow-y: auto;
    padding: 4px;
}

.saved-url-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: all .2s ease;
    max-width: 100%;
}

.saved-url-item:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.saved-url-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 250px;
}

.saved-url-item .delete-saved {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: all .2s;
}

.saved-url-item .delete-saved:hover {
    background: rgba(239,68,68,.1);
    color: var(--danger);
}

.saved-url-item .delete-saved svg {
    width: 14px;
    height: 14px;
}

.scan-area {
    background: linear-gradient(135deg, rgba(0,0,0,.05), rgba(0,0,0,.05));
    border: 2px dashed var(--primary-light);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
    margin-bottom: 22px;
    display: none;
}

.scan-area.active {
    display: block;
}

.nfc-wave {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nfc-wave .wave {
    position: absolute;
    inset: 0;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: wave 2s ease-out infinite;
}

.nfc-wave .wave:nth-child(2) { animation-delay: .5s; }
.nfc-wave .wave:nth-child(3) { animation-delay: 1s; }

@keyframes wave {
    0% { transform: scale(.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.nfc-icon {
    width: 70px;
    height: 70px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.3));
}

.scan-area h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.scan-area p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
    font-family: inherit;
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    flex: 1;
}

.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,.4);
}

.btn-secondary {
    background: var(--bg-muted);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 12px rgba(16,185,129,.3);
}

.btn-success:hover {
    background: var(--success-dark);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0,0,0,.05);
}

.btn-danger {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 12px rgba(239,68,68,.3);
}

.btn-danger:hover {
    background: var(--danger-dark);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

.read-result {
    background: linear-gradient(135deg, rgba(16,185,129,.05), rgba(5,150,105,.05));
    border: 1px solid rgba(16,185,129,.2);
    border-radius: var(--radius);
    margin-top: 22px;
    animation: fadeIn .3s ease;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(16,185,129,.1);
    border-bottom: 1px solid rgba(16,185,129,.15);
    font-weight: 700;
    color: var(--success-dark);
}

.result-header svg {
    width: 18px;
    height: 18px;
}

.result-body {
    padding: 20px;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.result-item span,
.result-item a,
.result-item code {
    font-size: 14px;
    color: var(--text);
    word-break: break-all;
}

.result-item a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
}

.result-item a:hover {
    text-decoration: underline;
}

.result-item code {
    background: var(--bg-muted);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    width: fit-content;
}

.result-actions {
    padding: 0 20px 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.history-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.history-filters select,
.history-filters input {
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    background: var(--bg-card);
    font-family: inherit;
    transition: all .2s;
}

.history-filters select:focus,
.history-filters input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,0,0,.1);
}

.history-filters input {
    flex: 1;
    min-width: 200px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all .2s ease;
}

.history-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.history-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.history-icon.write {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.history-icon.read {
    background: linear-gradient(135deg, var(--success), #059669);
}

.history-icon svg {
    width: 20px;
    height: 20px;
}

.history-content {
    flex: 1;
    min-width: 0;
}

.history-type {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.history-type.write {
    background: rgba(0,0,0,.1);
    color: var(--primary-dark);
}

.history-type.read {
    background: rgba(16,185,129,.1);
    color: var(--success-dark);
}

.history-url {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    text-decoration: none;
}

.history-url:hover {
    color: var(--primary-dark);
}

.history-meta {
    display: flex;
    gap: 16px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.history-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: block;
    opacity: .5;
}

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.no-saved {
    padding: 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    background: var(--bg-muted);
    border-radius: var(--radius-sm);
    width: 100%;
}

@media (max-width: 640px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .status-indicator {
        align-self: flex-start;
    }
    
    .tab-btn {
        min-width: 0;
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .card-header,
    .card-body {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .toast-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

.payment-lock {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-bottom: 2px solid #000;
    flex-wrap: wrap;
}

.lock-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lock-icon svg {
    width: 24px;
    height: 24px;
}

.lock-content {
    flex: 1;
    min-width: 200px;
}

.lock-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.lock-content p {
    font-size: 13px;
    color: #64748b;
}

.payment-lock.unlocked {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-bottom-color: #10b981;
}

.payment-lock.unlocked .lock-icon {
    background: #10b981;
}

.payment-lock.unlocked h3 {
    color: #065f46;
}

.payment-lock.unlocked p {
    color: #047857;
}

#write-body {
    position: relative;
}

.service-disabled-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(6px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 24px;
}

.disabled-inner {
    text-align: center;
    max-width: 360px;
}

.disabled-inner svg {
    width: 52px;
    height: 52px;
    color: #000;
    margin-bottom: 14px;
}

.disabled-inner p {
    font-size: 14px;
    color: #475569;
    margin-bottom: 16px;
    font-weight: 500;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn .25s ease;
}

.modal {
    background: white;
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    border-radius: 18px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.4);
    position: relative;
    display: flex;
    flex-direction: column;
    animation: modalIn .3s cubic-bezier(.16,1,.3,1);
    overflow: hidden;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    z-index: 5;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-header {
    padding: 28px 28px 20px;
    background: linear-gradient(135deg, #000, #111827);
    color: white;
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-title-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.modal-title-icon svg {
    width: 26px;
    height: 26px;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 2px;
}

.modal-price {
    font-size: 15px;
    font-weight: 600;
    opacity: .95;
    color: #d1d5db;
}

.modal-body {
    padding: 24px 28px 28px;
    overflow-y: auto;
    flex: 1;
}

.pay-steps {
    list-style: none;
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.pay-steps li {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
}

.pay-steps li span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.pay-steps li.active {
    color: #0f172a;
}

.pay-steps li.active span {
    background: #000;
    color: white;
}

.pay-steps li.done {
    color: #10b981;
}

.pay-steps li.done span {
    background: #10b981;
    color: white;
}

.qr-code-box {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.qr-code-box img {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    background: white;
    padding: 10px;
    box-shadow: var(--shadow-sm);
}

.qr-fallback {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px;
}

.qr-fallback svg {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.qr-fallback strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 2px;
}

.qr-fallback small {
    font-size: 12px;
    color: #64748b;
}

.pix-key-box {
    margin-bottom: 16px;
}

.pix-key-box label,
.beneficiary label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.pix-key-row {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 4px 4px 4px 16px;
}

.pix-key-row code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: #0f172a;
    font-weight: 600;
    letter-spacing: .5px;
}

.beneficiary {
    margin-bottom: 16px;
}

.beneficiary p {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    border-radius: 10px;
}

.warning-box {
    display: flex;
    gap: 12px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.6;
}

.warning-box svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #d97706;
}

.warning-box a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #10b981;
    font-weight: 700;
    text-decoration: none;
    background: white;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #d1fae5;
    margin: 0 2px;
}

.warning-box a:hover {
    background: #d1fae5;
}

.warning-box a svg {
    width: 14px;
    height: 14px;
    margin: 0;
    color: #10b981;
}

.modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-actions .btn {
    flex: 1;
}

.success-teaser {
    text-align: center;
    padding: 10px 0 20px;
}

.teaser-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(16,185,129,.1);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.teaser-icon svg {
    width: 30px;
    height: 30px;
}

.success-teaser h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.success-teaser p {
    font-size: 13px;
    color: #64748b;
}

.code-error {
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.25);
    color: #b91c1c;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-error::before {
    content: '⚠';
}

.success-box {
    text-align: center;
    padding: 18px 4px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 10px 25px rgba(16,185,129,.35);
    animation: pop .5s cubic-bezier(.16,1,.3,1);
}

@keyframes pop {
    0% { transform: scale(0); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

.success-box h3 {
    font-size: 22px;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 8px;
}

.success-box p {
    font-size: 14px;
    color: #047857;
    max-width: 320px;
    margin: 0 auto 22px;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .payment-lock {
        padding: 18px 20px;
        gap: 12px;
    }
    .payment-lock .btn {
        width: 100%;
    }
    .modal-header {
        padding: 22px 22px 18px;
    }
    .modal-body {
        padding: 20px 22px 24px;
    }
    .qr-code-box img {
        width: 160px;
        height: 160px;
    }
    .pix-key-row {
        flex-direction: column;
        padding: 12px;
    }
    .pix-key-row .btn {
        width: 100%;
    }
}

.main-nav { display: flex; gap: 8px; align-items: center; }
.main-nav a.nav-link {
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .2s;
}
.main-nav a.nav-link svg { width: 16px; height: 16px; }
.main-nav a.nav-link:hover {
    color: #0f172a;
    background: #f1f5f9;
}
.main-nav a.nav-link.active {
    color: white;
    background: #000;
    box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 0 0 4px rgba(0,0,0,.1);
}
.main-nav a.nav-link.active svg { filter: invert(1); }

.footer {
    margin-top: 60px;
    padding: 40px 0 0;
    background: #0f172a;
    color: #cbd5e1;
}
.footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    padding-bottom: 30px;
}
.footer h4 {
    font-size: 15px;
    color: white;
    margin-bottom: 12px;
    font-weight: 700;
}
.footer p { font-size: 13px; color: #94a3b8; line-height: 1.6; margin: 0; }
.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer li { margin-bottom: 8px; }
.footer a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    transition: all .2s;
}
.footer a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 18px 0;
    text-align: center;
}
.footer-bottom p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.store-hero {
    background: linear-gradient(135deg, #0f172a 0%, #111827 100%);
    color: white;
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #1e293b;
}
.store-hero::before {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%);
    pointer-events: none;
}
.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 18px;
    backdrop-filter: blur(4px);
}
.store-hero h1 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}
.store-hero p {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 540px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn-outline {
    border-color: rgba(255,255,255,.25);
    color: white;
}
.hero-actions .btn-outline:hover {
    background: rgba(255,255,255,.1);
    border-color: white;
}

.hero-cards {
    position: relative;
    height: 260px;
}
.float-card {
    position: absolute;
    width: 140px;
    min-height: 160px;
    padding: 0;
    border: 2px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    animation: floatY 6s ease-in-out infinite;
    isolation: isolate;
}
.float-card .fc-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.02);
}
.float-card .fc-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(160deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.85) 100%);
}
.float-card strong {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px 12px 16px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .2px;
    text-shadow: 0 1px 2px rgba(0,0,0,.55);
    background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
}
.float-card.fc-fallback {
    background: linear-gradient(135deg, #0f172a, #020617);
}
.float-card.f1 { top: 0; left: 20%; animation-delay: 0s; }
.float-card.f2 { top: 80px; right: 10%; animation-delay: 1.5s; }
.float-card.f3 { bottom: 0; left: 40%; animation-delay: 3s; }
@keyframes floatY {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.store-filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding: 18px 22px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.filters-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    flex: 1;
}
.filters-left > label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}
.filter-chip {
    padding: 7px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all .2s;
}
.filter-chip:hover {
    color: #0f172a;
    border-color: #cbd5e1;
}
.filter-chip.active {
    color: white;
    background: #000;
    border-color: #000;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.search-field {
    position: relative;
    min-width: 260px;
}
.search-field svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-light);
}
.search-field input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    font-family: inherit;
    font-size: 14px;
    transition: all .2s;
}
.search-field input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 4px rgba(0,0,0,.08);
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.produto-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all .3s cubic-bezier(.16,1,.3,1);
    position: relative;
}
.produto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.05);
    border-color: #cbd5e1;
}
.produto-img {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.produto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease, opacity .3s ease;
    background: #f8fafc;
}
.produto-img img[data-placeholder="1"] {
    object-fit: cover;
    filter: saturate(1.05) contrast(1.02);
}
.produto-card:hover .produto-img img { transform: scale(1.06); }
.produto-img-fallback {
    text-align: center;
    padding: 20px;
}
.produto-img-fallback svg { width: 88px; height: 88px; color: #0f172a; opacity: .85; }
.produto-img-fallback span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #64748b;
    margin-top: 8px;
}
.produto-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #10b981;
    color: white;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(16,185,129,.3);
}
.produto-badge.destaque {
    background: #f59e0b;
    color: #7c2d12;
    box-shadow: 0 4px 10px rgba(245,158,11,.3);
}
.produto-badge.promo {
    background: #ef4444;
    box-shadow: 0 4px 10px rgba(239,68,68,.3);
}
.produto-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}
.produto-categoria {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.produto-nome {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}
.produto-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
}
.produto-especs {
    list-style: none;
    padding: 10px 12px;
    margin: 2px 0;
    background: var(--bg-muted);
    border-radius: 8px;
    font-size: 12px;
    color: #475569;
}
.produto-especs li {
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.produto-especs li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #000;
    flex-shrink: 0;
}
.produto-precos {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}
.preco-atual {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.preco-antigo {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
}
.promo-badge {
    background: rgba(239,68,68,.1);
    color: #b91c1c;
    padding: 3px 9px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
}
.produto-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}
.produto-meta .estoque {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.estoque-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
}
.estoque-dot.pouco { background: #f59e0b; }
.estoque-dot.faltando { background: #ef4444; }

.produto-acoes { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.produto-acoes .btn { margin: 0; }
.produto-acoes .btn-primary,
.produto-acoes .btn-afil {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    padding: 11px 14px;
    font-size: 13px;
    min-width: 120px;
}
.produto-acoes:has(.btn-afil) .btn-primary {
    flex: 1 1 calc(50% - 4px);
}
.produto-acoes .btn-secondary {
    padding: 11px 14px;
}
.produto-acoes .btn-secondary svg { width: 16px; height: 16px; }

.btn-afil {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    color: white !important;
    border: none;
    box-shadow: 0 4px 12px rgba(8,145,178,.32);
    text-decoration: none !important;
}
.btn-afil:hover {
    background: linear-gradient(135deg, #0e7490, #155e75);
    box-shadow: 0 6px 16px rgba(8,145,178,.42);
    transform: translateY(-1px);
}
@media (max-width: 480px) {
    .produto-acoes .btn-primary,
    .produto-acoes .btn-afil {
        flex: 1 1 100%;
    }
}

.why-nfc {
    margin: 30px 0 50px;
}
.why-nfc h2 {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text);
    letter-spacing: -0.01em;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.feature-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: all .25s;
}
.feature-item:hover {
    border-color: #000;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f172a, #111827);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.feature-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.produto-card.detalhe-expandido .produto-detalhes { display: block; }
.produto-detalhes {
    display: none;
    padding: 14px 18px 18px;
    background: #f8fafc;
    border-top: 1px solid var(--border);
}
.produto-detalhes h5 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #475569;
    font-weight: 700;
    margin-bottom: 8px;
}
.produto-detalhes p {
    font-size: 13px;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 10px;
}
.empty-state {
    grid-column: 1 / -1;
    padding: 70px 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 2px dashed var(--border);
}
.empty-state svg {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    display: block;
    color: #cbd5e1;
}

@media (max-width: 900px) {
    .store-hero {
        grid-template-columns: 1fr;
        padding: 36px 24px;
    }
    .store-hero h1 { font-size: 28px; }
    .hero-cards { display: none; }
    .produtos-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 14px;
    }
}
@media (max-width: 560px) {
    .produtos-grid { grid-template-columns: 1fr 1fr; }
    .produto-body { padding: 14px; }
    .produto-nome { font-size: 15px; }
    .preco-atual { font-size: 18px; }
    .produto-especs { display: none; }
    .store-filters { padding: 14px; }
    .search-field { min-width: 100%; width: 100%; }
}
@media (max-width: 420px) {
    .produtos-grid { grid-template-columns: 1fr; }
}

/* ========== LIGHTBOX PRODUTOS (AMPLIAÇÃO DE IMAGEM) ========== */
.produto-img img { cursor: zoom-in; }
.prod-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 28px;
    animation: lbFadeIn .2s ease;
}
.prod-lightbox.active { display: flex; }
@keyframes lbFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.prod-lightbox-inner {
    position: relative;
    max-width: 960px;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: lbZoom .22s cubic-bezier(.16,1,.3,1);
}
@keyframes lbZoom {
    from { transform: scale(.88); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.prod-lightbox-img-wrap {
    width: 100%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b1220;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.6);
}
.prod-lightbox-img-wrap img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}
.prod-lightbox-caption {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .2px;
    text-align: center;
    background: rgba(255,255,255,.05);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.08);
    max-width: 620px;
}
.prod-lightbox-caption span {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 3px;
}
.prod-lightbox-close {
    position: absolute;
    top: -18px; right: -18px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #ef4444;
    color: white !important;
    border: none;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(239,68,68,.35);
    transition: transform .15s ease, background .15s ease;
}
.prod-lightbox-close:hover { transform: scale(1.08); background: #dc2626; }
.prod-lightbox-tip {
    color: #64748b;
    font-size: 12.5px;
    text-align: center;
}
@media (max-width: 640px) {
    .prod-lightbox { padding: 14px; }
    .prod-lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; font-size: 18px; }
    .prod-lightbox-caption { font-size: 13px; padding: 8px 14px; }
}

/* ========== PÁGINA DE SUPORTE ========== */
.support-hero {
    position: relative;
    padding: 54px 48px;
    border-radius: 18px;
    margin-bottom: 28px;
    color: white;
    background: linear-gradient(135deg, #000 0%, #111827 60%, #1f2937 100%);
    overflow: hidden;
}
.support-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(255,255,255,.12) 0%, transparent 40%),
        radial-gradient(circle at 15% 90%, rgba(245,158,11,.15) 0%, transparent 45%);
    pointer-events: none;
}
.support-hero-content { position: relative; max-width: 740px; z-index: 2; }
.support-hero .hero-badge {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 100px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}
.support-hero h1 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.12;
    margin-bottom: 14px;
}
.support-hero p {
    font-size: 16px;
    color: #cbd5e1;
    line-height: 1.7;
    max-width: 620px;
    margin-bottom: 26px;
}
.support-hero .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.support-hero .btn-outline {
    border-color: rgba(255,255,255,.3);
    color: white;
}
.support-hero .btn-outline:hover { background: rgba(255,255,255,.1); border-color: white; }

.help-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}
.help-card-link { text-decoration: none; color: inherit; display: block; }
.help-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 20px;
    height: 100%;
    transition: all .28s cubic-bezier(.16,1,.3,1);
    position: relative;
    overflow: hidden;
}
.help-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #000, #475569);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}
.help-card-link:hover .help-card {
    transform: translateY(-5px);
    border-color: #000;
    box-shadow: 0 20px 30px -10px rgba(0,0,0,.15);
}
.help-card-link:hover .help-card::before { transform: scaleX(1); }
.help-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 14px;
}
.help-icon svg { width: 28px; height: 28px; }
.step-1-icon { background: linear-gradient(135deg, #000, #111827); }
.step-2-icon { background: linear-gradient(135deg, #2563eb, #1e40af); }
.step-3-icon { background: linear-gradient(135deg, #059669, #047857); }
.step-4-icon { background: linear-gradient(135deg, #dc2626, #991b1b); }
.help-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.help-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

.tutorial-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 34px 32px 30px;
    margin-bottom: 28px;
    position: relative;
}
.section-badge {
    position: absolute;
    top: -22px;
    left: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 10px 20px rgba(0,0,0,.2);
}
.tutorial-section h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin: 10px 0 24px;
    padding-left: 28px;
}
.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.tutorial-step {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    padding: 20px 20px;
    background: var(--bg-muted);
    border-radius: 14px;
    border: 1px solid var(--border);
    position: relative;
}
.step-number {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: white;
    color: #000;
    border: 3px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    flex-shrink: 0;
    user-select: none;
}
.step-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.step-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 8px;
}
.ordered-list, .bullet-list {
    margin: 10px 0 12px 4px;
    padding-left: 22px;
}
.ordered-list { list-style: decimal; }
.bullet-list { list-style: disc; }
.ordered-list li, .bullet-list li {
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
}
.ordered-list code, .bullet-list code, .step-body code, .faq-body code {
    background: white;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 12.5px;
    color: #0f172a;
    font-weight: 600;
}
.step-tip {
    margin-top: 12px;
    padding: 12px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left-width: 4px;
    border-radius: 8px;
    color: #92400e;
    font-size: 13px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.55;
}
.step-tip svg {
    width: 18px; height: 18px; color: #d97706; flex-shrink: 0; margin-top: 1px;
}
.step-tip.success {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #065f46;
    border-left-color: #10b981;
}
.step-tip.success svg { color: #10b981; }
.step-tip strong { color: inherit; font-weight: 700; }

.help-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    font-size: 13.5px;
}
.help-table th {
    background: var(--bg-muted);
    color: #475569;
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid var(--border);
}
.help-table td {
    padding: 12px 16px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.help-table tr:last-child td { border-bottom: none; }
.help-table a { color: #000; font-weight: 700; text-decoration: none; }

.faq-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 34px 32px 28px;
    margin-bottom: 28px;
    position: relative;
}
.faq-section h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin: 10px 0 24px;
    padding-left: 28px;
}
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all .2s;
}
.faq-item[open] {
    background: white;
    border-color: #cbd5e1;
    box-shadow: var(--shadow-sm);
}
.faq-item summary {
    list-style: none;
    padding: 17px 22px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 24px;
    font-weight: 800;
    color: #000;
    transition: transform .3s;
    flex-shrink: 0;
    line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body {
    padding: 0 22px 18px 22px;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 14.2px;
}
.faq-body p { margin-bottom: 8px; }
.faq-body a {
    color: #000;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid #000;
}
.faq-item.open summary::after { transform: rotate(45deg); }
.faq-item[open].open { border-left: 4px solid #10b981; }

.final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #000, #111827);
    padding: 32px 36px;
    border-radius: 16px;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,.2);
}
.final-cta h3 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.final-cta p { font-size: 14px; color: #cbd5e1; }
.final-cta .btn-primary {
    background: white;
    color: #000;
    border: none;
}
.final-cta .btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

@media (max-width: 780px) {
    .support-hero { padding: 38px 24px; }
    .support-hero h1 { font-size: 28px; }
    .tutorial-section { padding: 30px 20px 22px; }
    .tutorial-section h2 { padding-left: 32px; }
    .tutorial-step { grid-template-columns: 1fr; gap: 12px; }
    .faq-section { padding: 28px 18px 22px; }
    .final-cta { padding: 26px 22px; }
}

/* ========== TOUR GUIADO CORTINA ========== */
.tab-btn-tour {
    background: linear-gradient(135deg, #000, #111827);
    color: white !important;
    border: none !important;
    font-weight: 700 !important;
    position: relative;
    overflow: hidden;
}
.tab-btn-tour::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.2), transparent);
    transform: translateX(-100%);
    animation: shimmer 2.8s infinite;
}
@keyframes shimmer { 0%{transform:translateX(-100%);} 60%,100%{transform:translateX(100%);} }
.tab-btn-tour:hover { filter: brightness(1.1); }
.tab-btn-tour svg { color: white; }

.tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .78);
    backdrop-filter: blur(5px);
    z-index: 999998;
    animation: overlayFade .3s ease-out;
}
@keyframes overlayFade { from { opacity: 0;} to { opacity: 1; } }

.tour-highlight {
    position: relative;
    z-index: 999999 !important;
    box-shadow: 0 0 0 4px #10b981, 0 0 0 99999px rgba(15,23,42,.0);
    border-radius: 12px;
    transition: all .35s cubic-bezier(.16,1,.3,1);
}
.tour-highlight-card {
    position: fixed;
    z-index: 1000000;
    background: white;
    border-radius: 16px;
    padding: 22px 22px 18px;
    max-width: 360px;
    min-width: 280px;
    box-shadow: 0 25px 60px -15px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.05);
    animation: tourPop .35s cubic-bezier(.16,1,.3,1);
    border: 1px solid #e2e8f0;
}
@keyframes tourPop {
    from { opacity: 0; transform: scale(.92) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.tour-highlight-card::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    background: white;
    border-left: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    transform: rotate(45deg);
}
.tour-highlight-card.pos-bottom::before { top: -10px; left: 30px; }
.tour-highlight-card.pos-top::before { bottom: -10px; left: 30px; transform: rotate(225deg); }
.tour-highlight-card.pos-left::before { right: -10px; top: 30px; transform: rotate(135deg); border-left:none; border-top:none; border-right:1px solid #e2e8f0; border-bottom:1px solid #e2e8f0; }
.tour-highlight-card.pos-right::before { left: -10px; top: 30px; transform: rotate(315deg); border-left:none; border-top:none; border-right:1px solid #e2e8f0; border-bottom:1px solid #e2e8f0; }

.tour-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}
.tour-step-badge {
    padding: 4px 12px;
    background: linear-gradient(135deg, #000, #111827);
    color: white;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
}
.tour-progress {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}
.tour-progress .dots { display: flex; gap: 4px; }
.tour-progress .dot {
    width: 7px; height: 7px; border-radius: 50%; background: #e2e8f0;
}
.tour-progress .dot.active { background: #000; width: 20px; border-radius: 4px; }
.tour-step-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -.01em;
}
.tour-step-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
}
.tour-step-text strong { color: #000; }
.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}
.tour-btn-skip {
    background: transparent;
    border: none;
    color: #64748b;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 13px;
    border-radius: 8px;
    transition: all .2s;
}
.tour-btn-skip:hover { background: #f1f5f9; color: #0f172a; }
.tour-nav {
    display: flex;
    gap: 8px;
}
.tour-btn {
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
    border: none;
}
.tour-btn.prev {
    background: #f1f5f9;
    color: #334155;
}
.tour-btn.prev:hover { background: #e2e8f0; }
.tour-btn.next {
    background: linear-gradient(135deg, #000, #111827);
    color: white;
}
.tour-btn.next:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.2); }
.tour-btn.finish {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}
.tour-btn.finish:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(16,185,129,.35); }

@media (max-width: 640px) {
    .tour-highlight-card {
        max-width: calc(100vw - 24px);
        min-width: 0;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
    }
}

