/* =============================================
   CLOAKER ADMIN - CSS CENTRALIZADO
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* =============================================
   ICONS (Lucide style)
   ============================================= */
.icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
}

.icon-sm {
    width: 14px;
    height: 14px;
}

.icon-lg {
    width: 24px;
    height: 24px;
}

.icon-xl {
    width: 32px;
    height: 32px;
}

/* =============================================
   VARIÁVEIS
   ============================================= */
:root {
    /* Sidebar */
    --sidebar-bg: #191919;
    --sidebar-hover: #2f2f2f;
    --sidebar-active: #2f2f2f;
    --sidebar-text: #9a9a9a;
    --sidebar-text-active: #ffffff;
    --sidebar-width: 240px;
    
    /* Cores principais */
    --bg-primary: #ffffff;
    --bg-secondary: #f7f7f5;
    --bg-hover: #efefef;
    --text-primary: #37352f;
    --text-secondary: #787774;
    --text-muted: #9b9a97;
    
    /* Accent */
    --accent: #eb5757;
    --accent-hover: #e04444;
    --success: #4daa57;
    --warning: #cb912f;
    --info: #529cca;
    
    /* Outros */
    --border: #e9e9e7;
    --shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* =============================================
   RESET & BASE
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    line-height: 1.5;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    padding: 12px 12px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-logo {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent), #ff8a8a);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.sidebar-title {
    color: var(--sidebar-text-active);
    font-weight: 600;
    font-size: 14px;
}

.sidebar-section {
    padding: 8px 8px 4px;
}

.sidebar-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--sidebar-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
}

.sidebar-nav {
    flex: 1;
    padding: 4px 8px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
    margin-bottom: 2px;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
}

.nav-item.active {
    background: var(--sidebar-active);
    color: var(--sidebar-text-active);
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: var(--sidebar-text);
    transition: all 0.2s;
    text-decoration: none;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    font-weight: 600;
}

.user-name {
    color: var(--sidebar-text-active);
    font-size: 13px;
    font-weight: 500;
}

.user-plan {
    color: var(--sidebar-text);
    font-size: 11px;
}

/* =============================================
   MAIN WRAPPER
   ============================================= */
.main-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
}

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-title {
    font-size: 14px;
    font-weight: 600;
}

.topbar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
    padding: 24px;
    max-width: 1400px;
}

.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-desc {
    color: var(--text-muted);
    font-size: 14px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-danger {
    background: #fef2f2;
    color: var(--accent);
}

.btn-danger:hover {
    background: #fee2e2;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
}

/* =============================================
   CARDS
   ============================================= */
.card {
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 20px;
}

/* =============================================
   STATS GRID
   ============================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
}

.stat-card.highlight {
    background: linear-gradient(135deg, var(--success), #3d9147);
    border: none;
    color: white;
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-card.highlight .stat-label {
    color: rgba(255,255,255,0.8);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.stat-sub {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.7;
}

/* =============================================
   TABLES
   ============================================= */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

th {
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    background: var(--bg-secondary);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--bg-secondary);
}

/* =============================================
   BADGES
   ============================================= */
.badge {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-black {
    background: #1a1a1a;
    color: white;
}

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

.badge-success {
    background: rgba(77, 170, 87, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(203, 145, 47, 0.1);
    color: var(--warning);
}

.badge-danger {
    background: rgba(235, 87, 87, 0.1);
    color: var(--accent);
}

.badge-info {
    background: rgba(82, 156, 202, 0.1);
    color: var(--info);
}

.badge-count {
    background: var(--accent);
    color: white;
}

.badge-soon {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.badge-new {
    background: rgba(77, 170, 87, 0.1);
    color: var(--success);
}

/* =============================================
   FORMS
   ============================================= */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s;
    background: var(--bg-primary);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.link-input-row {
    display: flex;
    gap: 8px;
}

.link-input-row .form-input {
    flex: 1;
    font-family: monospace;
    font-size: 12px;
}

.link-group {
    margin-bottom: 12px;
}

.links-section code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-primary);
    border-radius: 12px;
    width: 90%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 10;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: var(--bg-secondary);
    cursor: pointer;
    font-size: 18px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-hover);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* =============================================
   TABS
   ============================================= */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-secondary);
    font-family: inherit;
    transition: all 0.15s;
}

.tab.active {
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tab-content {
    display: none;
}

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

/* =============================================
   TOGGLE
   ============================================= */
.toggle {
    position: relative;
    width: 36px;
    height: 20px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border);
    border-radius: 20px;
    transition: 0.2s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.2s;
}

.toggle input:checked + .toggle-slider {
    background: var(--success);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(16px);
}

/* =============================================
   TAGS INPUT
   ============================================= */
.tags-input {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    min-height: 44px;
}

.tags-input input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 100px;
    font-size: 13px;
    font-family: inherit;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.tag-remove {
    cursor: pointer;
    opacity: 0.5;
}

.tag-remove:hover {
    opacity: 1;
}

/* =============================================
   FILTER SECTIONS
   ============================================= */
.filter-section {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.filter-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
}

.filter-title {
    font-weight: 500;
    font-size: 13px;
}

.filter-content {
    padding: 16px;
    display: none;
}

.filter-section.expanded .filter-content {
    display: block;
}

/* =============================================
   PARAMS LIST
   ============================================= */
.params-list {
    margin-bottom: 12px;
}

.param-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 13px;
}

.param-name {
    font-weight: 600;
    font-family: 'SF Mono', Monaco, monospace;
}

.param-value {
    color: var(--success);
    font-family: 'SF Mono', Monaco, monospace;
}

.param-any {
    color: var(--text-muted);
    font-style: italic;
}

.remove-param {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
}

.remove-param:hover {
    color: var(--accent);
}

.param-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.param-input-row .form-input {
    margin-bottom: 0;
}

/* =============================================
   POSTBACK URL
   ============================================= */
.postback-url-container {
    display: flex;
    gap: 8px;
}

.postback-url-container .form-input {
    flex: 1;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 12px;
    background: var(--bg-secondary);
}

/* =============================================
   LIVE INDICATOR
   ============================================= */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(77, 170, 87, 0.1);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--success);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.empty-text {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* =============================================
   UTILITIES
   ============================================= */
.mono {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 12px;
}

.text-muted {
    color: var(--text-muted);
}

.text-truncate {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.payout {
    font-family: 'SF Mono', Monaco, monospace;
    font-weight: 600;
    color: var(--success);
}

/* =============================================
   GRIDS
   ============================================= */
.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

/* =============================================
   CAMPAIGN CARD
   ============================================= */
.campaign-card {
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.2s;
}

.campaign-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.campaign-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.campaign-name {
    font-weight: 600;
    font-size: 15px;
}

.campaign-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    text-transform: uppercase;
}

.status-active {
    background: rgba(77, 170, 87, 0.1);
    color: var(--success);
}

.status-inactive {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.campaign-body {
    padding: 16px;
}

.campaign-slug {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
}

.campaign-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.stat-mini-value {
    font-size: 20px;
    font-weight: 700;
}

.stat-mini-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.campaign-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.filter-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.filter-badge.active {
    background: rgba(82, 156, 202, 0.1);
    color: var(--info);
}

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

/* =============================================
   SETTINGS CARD
   ============================================= */
.settings-card {
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 20px;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.settings-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.settings-card-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.settings-card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =============================================
   SECTION
   ============================================= */
.section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =============================================
   DOMAIN LIST
   ============================================= */
.domain-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

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

.domain-item:hover {
    background: var(--bg-secondary);
}

.domain-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.domain-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.domain-name {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
    font-weight: 500;
}

.domain-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

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

/* =============================================
   PAGE CARD
   ============================================= */
.page-card {
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.2s;
}

.page-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.page-preview {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    position: relative;
}

.page-preview.black {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

.page-preview.white {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.page-type-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.page-type-badge.black {
    background: #1a1a1a;
    color: #fff;
}

.page-type-badge.white {
    background: #fff;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.page-info {
    padding: 12px;
}

.page-name {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}

.page-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.page-actions {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    border-top: 1px solid var(--border);
}

/* =============================================
   UPLOAD ZONE
   ============================================= */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    background: var(--bg-primary);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 32px;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent);
    background: rgba(235, 87, 87, 0.02);
}

.upload-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.upload-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.upload-text {
    font-size: 13px;
    color: var(--text-muted);
}

/* =============================================
   FILE INPUT
   ============================================= */
.file-input-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-input-display {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-name {
    color: var(--text-muted);
    font-size: 13px;
}

/* =============================================
   CONVERSION ITEMS
   ============================================= */
.conversion-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
}

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

.conversion-icon {
    width: 36px;
    height: 36px;
    background: rgba(77, 170, 87, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.conversion-details {
    flex: 1;
}

.conversion-click-id {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 13px;
}

.conversion-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.conversion-amount {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 16px;
    font-weight: 600;
    color: var(--success);
}

.fb-badge {
    font-size: 10px;
    padding: 2px 6px;
    background: #1877f2;
    color: white;
    border-radius: 4px;
    margin-left: 8px;
}

/* =============================================
   RATE BAR
   ============================================= */
.rate-bar {
    width: 60px;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    display: inline-block;
    margin-right: 8px;
    overflow: hidden;
}

.rate-fill {
    height: 100%;
    background: var(--success);
}

/* =============================================
   VERIFICATION BOX
   ============================================= */
.verification-box {
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
}

.verification-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

.verification-code {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 12px;
    background: var(--bg-primary);
    padding: 8px;
    border-radius: 4px;
    word-break: break-all;
}

/* =============================================
   PREVIEW FRAME
   ============================================= */
.preview-frame {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* =============================================
   SELECT
   ============================================= */
select {
    cursor: pointer;
}

