/* ===================================================
   [DRIPBOX] ADMIN CSS - FINAL VERSION
   ===================================================
   1. Global & Metaboxes (Product Edit Screen)
   2. Grid System & Layouts
   3. Affiliate Cards & Copy Buttons
   4. Image Uploader
   5. License Page (Activation)
   6. Upgrade Page (Pricing Tables)
   7. Notifications & Banners (Free/Pro Logic)
   =================================================== */

/* ===================================================
   1. GLOBAL & METABOXES (PRODUCT EDIT SCREEN)
   =================================================== */
.dripbox-admin-wrap {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fafbfc;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e2e2;
    box-sizing: border-box;
      width: 100%; /* ADICIONE ISSO */

}

.dripbox-field {
    margin-bottom: 16px;
}

.dripbox-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1d2327;
}

.dripbox-field textarea,
.dripbox-field input[type=text] {
    width: 100%;
    padding: 10px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    box-sizing: border-box;
}

.dripbox-field textarea {
    height: 80px;
    resize: vertical;
}

/* Espaçamentos e Ícones */
.dripbox-icon { margin-right: 6px; font-size: 16px; }
.hint-proscons { display: block; margin-top: 4px; font-size: 12px; color: #646970; }
.metadata-fields { margin-top: 30px; padding-top: 20px; border-top: 1px solid #f0f0f1; }
.big-top-margin { margin-top: 180px !important; }

/* ===================================================
   2. GRID SYSTEM & LAYOUTS
   =================================================== */
.dripbox-admin-wrap .dripbox-admin-grid {
    display: grid;
    grid-template-columns: 1fr 400px; /* Esquerda flexível, direita fixa em 350px */
    gap: 20px;
    align-items: start;
      width: 100%; /* ADICIONE ISSO */
    max-width: 100%; /* ADICIONE ISSO */
}

.dripbox-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%; /* ADICIONE */
}

.dripbox-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

/* ===================================================
   2. RIGHT COLUMN & OPTION BOXES (CARDS)
   =================================================== */
.right-column {
    width: 100%;
    max-width: 400px; /* Limita a largura máxima da coluna direita */
    min-width: 0;
}

/* O Estilo de "Cartão" para Opção A e Opção B */
.dripbox-option-box {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.dripbox-option-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #50575e;
    margin-bottom: 8px;
    display: block;
}

/* ===================================================
   3. INPUTS & BUTTONS (Padronização)
   =================================================== */
/* Inputs dentro dos cards da direita */
.dripbox-option-box input[type="text"] {
    width: 100%;
    height: 36px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    padding: 0 8px;
    font-size: 13px;
}

/* Container do Upload (Opção B) */
.dripbox-image-uploader-row {
    display: flex;
    gap: 5px;
    align-items: center;
}

/* Botão de Upload (Estilo WP Secondary) */
#dripbox_upload_btn {
    height: 36px;
    line-height: 1;
    background: #f6f7f7;
    color: #2271b1;
    border: 1px solid #2271b1;
    border-radius: 4px;
    padding: 0 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#dripbox_upload_btn:hover {
    background: #f0f0f1;
    border-color: #135e96;
    color: #135e96;
}

/* ===================================================
   3. AFFILIATE CARDS & COPY BUTTONS
   =================================================== */
.affiliate-card {
    border-radius: 8px;
    padding: 14px 16px;
    background: #fff;
    border: 2px solid transparent;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
 
}
.affiliate-card h4 { margin-top: 0; margin-bottom: 10px; font-size: 15px; font-weight: 600; }

.affiliate-card.amz { border-color: #ffe3b0; background: #fffaf2; }
.affiliate-card.b   { border-color: #b8d8ff; background: #f6faff; }
.affiliate-card.c   { border-color: #b5e4b2; background: #f4fff3; }
.affiliate-card.d   { border-color: #d9c7ff; background: #f9f7ff; }

button.dripbox-copy-admin {
    font-size: 13px !important;
    padding: 0 12px !important;
    height: 36px !important;
    line-height: 36px !important;
    border-radius: 4px !important;
    border: 1px solid #2271b1 !important;
    background: #2271b1 !important;
    color: #fff !important;
    cursor: pointer;
    transition: background 0.2s;
}
button.dripbox-copy-admin:hover { background: #135e96 !important; border-color: #135e96 !important; }

/* ===================================================
   4. IMAGE UPLOADER (RIGHT COLUMN) - PREVIEW PEQUENO
   =================================================== */
#dripbox_img_preview_container {
    margin-top: 10px;
    max-width: 100%; /* Garante que não ultrapasse o container */
    overflow: hidden; /* Esconde qualquer overflow */
}

.image-preview {
    display: block;
    width: 100%;
    max-width: 380px; /* Limita a largura máxima da imagem */
    height: auto;
    max-height: 240px; /* Limita a altura máxima */
    object-fit: cover; /* Mantém proporção e cobre o espaço */
    border-radius: 4px;
    border: 1px solid #c3c4c7;
    background: #f0f0f1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.no-image-placeholder {
    width: 100%;
    max-width: 320px;
    height: 150px;
    background: #f6f7f7;
    border: 2px dashed #c3c4c7;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a7aaad;
    font-size: 13px;
    font-weight: 500;
}

/* ===================================================
   5. LAYOUT SELECTOR (RADIO CARDS)
   =================================================== */
.dripbox-layout-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.dripbox-layout-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Estilo do Card de Seleção */
.dripbox-layout-options label {
    position: relative;
    cursor: pointer;
}

/* Esconde o radio button nativo */
.dripbox-layout-options input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* O visual do botão (div interna) */
.dripbox-layout-options input[type="radio"] + div {
    width: 90px;
    height: 70px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: #50575e;
    transition: all 0.2s ease;
}

/* Hover */
.dripbox-layout-options label:hover input[type="radio"] + div {
    border-color: #2271b1;
    color: #2271b1;
}

/* Selected (Checked) */
.dripbox-layout-options input[type="radio"]:checked + div {
    border-color: #2271b1;
    background: #f0f6fc;
    color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    font-weight: 600;
}

.dripbox-toggle {
    flex: 1;
    min-width: 200px;
}

/* ===================================================
   6. RESPONSIVIDADE
   =================================================== */
@media (max-width: 1200px) {
    .dripbox-admin-grid {
        grid-template-columns: 1fr 300px; /* Reduz a coluna direita em telas menores */
    }
    
    .right-column {
        max-width: 300px;
    }
    
    .image-preview {
        max-width: 270px;
        max-height: 200px;
    }
}

@media (max-width: 900px) {
    .dripbox-admin-grid {
        grid-template-columns: 1fr; /* Stack em telas pequenas */
    }
    
    .right-column {
        max-width: 100%;
    }
    
    .image-preview {
        max-width: 400px;
        max-height: 300px;
    }
}


/* ===================================================
   5. LICENSE PAGE (Página de Ativação (Onde o cliente coloca a chave))
   =================================================== */

/* --- GLOBAL WRAPPER --- */
.dripbox-license-wrapper {
    max-width: 900px;
    margin: 40px auto;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1f2937;
}

/* --- HEADER (TÍTULO) --- */
.license-header-hero {
    text-align: center; /* Centraliza em telas pequenas */
    margin-bottom: 25px;
}
.license-header-hero h1 {
    display: flex;
    align-items: center;
    justify-content: center; /* Centraliza o ícone e texto */
    font-size: 2.2rem;
    color: #111827;
    margin: 0 0 8px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.header-icon {
    color: #f97316;
    margin-right: 12px;
    height: 36px;
    width: 36px;
}
.license-header-hero p {
    font-size: 1.05rem;
    color: #6b7280;
    margin: 0;
}

/* --- CARD PRINCIPAL --- */
.license-modern-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-top: 25px;
    position: relative;
}

/* ===================================================
   ESTADO INATIVO (LOGIN FORM)
   (Mantido do original, pois funciona bem)
   =================================================== */
.license-inactive-state {
    padding: 60px 30px;
    text-align: center;
}
.inactive-icon { margin-bottom: 20px; }

.license-inactive-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px;
}
.license-inactive-state p {
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.activation-form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #374151;
}
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #fff;
    box-sizing: border-box;
}
.form-group input:focus {
    border-color: #f97316;
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.btn-activate {
    width: 100%;
    background: #f97316;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-activate:hover { background: #ea580c; }

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #6b7280;
}
.form-footer a { color: #f97316; text-decoration: none; font-weight: 600; }


/* ===================================================
   ESTADO ATIVO (DASHBOARD PREMIUM)
   =================================================== */

/* --- BANNER VERDE DO TOPO --- */
.active-header-banner {
    background: #ecfdf5;
    color: #065f46;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #a7f3d0;
}
.banner-status {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

/* --- INFO DO PLANO (PÍLULA) --- */
.plan-info-banner { text-align: right; }
.plan-info-banner h2 { margin: 0; font-size: 1.6rem; color: #064e3b; font-weight: 800; line-height: 1; }
.plan-tag-premium {
    background: #f97316;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    display: inline-block;
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.4);
}

.license-content-body { padding: 30px; }

/* --- GRID DE DETALHES (KEY, EMAIL, ETC) --- */
.license-details-highlight-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 40px;
    margin-bottom: 35px;
}
.detail-item .label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.detail-item .value {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}
.code-box code {
    background: #e5e7eb;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: #374151;
    font-weight: 600;
}

/* ===================================================
   LISTA DE DOMÍNIOS (GRID & BOTÕES)
   =================================================== */
.domain-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 700;
    color: #4b5563;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 20px; /* Alinhamento visual */
}

/* PADRONIZAÇÃO DE LARGURA DOS BOTÕES (140px) */
.sync-btn,
.badge-premium,
.btn-premium-deactivate,
.status-text-active {
    width: 140px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    height: 32px;
}

/* Botão Sync (Azul) */
.sync-btn {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.sync-btn:hover { background: #1d4ed8; text-decoration: none; }
.sync-btn svg { color: white; }

/* Grid Container */
.active-domains-grid {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

/* Linhas do Grid */
.domain-grid-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.95rem;
}
.domain-grid-row:last-child { border-bottom: none; }
.domain-grid-row:nth-child(even) { background-color: #f9fafb; }
.domain-grid-row:nth-child(odd) { background-color: #ffffff; }

/* Colunas Internas */
.col-domain { display: flex; align-items: center; font-weight: 500; color: #111827; }
.slot-number { color: #9ca3af; font-weight: 600; margin-right: 12px; font-size: 0.9rem; min-width: 20px; }

.col-badges { text-align: center; display: flex; justify-content: center; gap: 8px; }

/* Badges */
.badge-premium { border-radius: 4px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.badge-current { background: #dcfce7; color: #15803d; }
.badge-hub { background: #fee2e2; color: #b91c1c; }

.col-actions { text-align: right; display: flex; justify-content: flex-end; }

/* Status Ativo (com bolinha) */
.status-text-active {
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 600;
    gap: 8px;
}
.status-text-active::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
}

/* Botão Deactivate (Vermelho outline) */
.btn-premium-deactivate {
    background: white;
    border: 1px solid #f87171;
    color: #dc2626;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-premium-deactivate:hover { background: #fee2e2; }

/* Slot Vazio */
.empty-slot-row {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: #f9fafb;
    color: #9ca3af;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9rem;
}
.empty-slot-text { font-style: italic; color: #d1d5db; }

/* ===================================================
   ALERTS (TOASTS) & ANIMAÇÕES
   =================================================== */
.dripbox-toast {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    animation: slideUp 0.3s ease-out;
}
.dripbox-toast.success { background: #ecfdf5; color: #047857; border: 1px solid #d1fae5; }
.dripbox-toast.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fee2e2; }

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ===================================================
   6. UPGRADE PAGE (PRICING TABLES)
   =================================================== */
.dripbox-upgrade-premium {
    max-width: 1100px;
    margin: 40px auto;
    text-align: center;
    color: #1d2327;
}

.header-upgrade h1 { font-size: 3em; font-weight: 800; margin-bottom: 10px; letter-spacing: -1px; }
.text-orange { color: #f55e00; }
.header-upgrade .subtitle { font-size: 1.2em; color: #646970; max-width: 600px; margin: 0 auto 40px; }

/* Toggle Switch */
.pricing-toggle-wrapper { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 40px; }
.toggle-label { font-weight: 600; font-size: 16px; color: #646970; }
.toggle-label.active-label { color: #1d2327; }
.save-badge {
    background: #e7f7ed; color: #1e8c3a; font-size: 11px; padding: 4px 8px; 
    border-radius: 12px; text-transform: uppercase; margin-left: 5px; letter-spacing: 0.5px; font-weight: 700;
}

.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc; transition: .4s; border-radius: 34px;
}
.slider:before {
    position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px;
    background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: #f55e00; }
input:checked + .slider:before { transform: translateX(24px); }

/* Grid de Planos */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.plan-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    padding: 40px 30px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    text-align: center;
}
.plan-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* Card Destaque */
.plan-card.featured-card {
    border: 2px solid #f55e00;
    padding: 50px 30px;
    box-shadow: 0 10px 40px rgba(245, 94, 0, 0.15);
    z-index: 2;
}
.best-value-badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: #f55e00; color: #fff; padding: 5px 15px; border-radius: 20px;
    font-weight: 700; font-size: 12px; letter-spacing: 1px;
}

/* Tipografia */
.card-header h3 { font-size: 24px; margin: 0; color: #1d2327; }
.card-header .desc { color: #646970; margin: 5px 0 20px; font-size: 14px; }

.pricing-display { margin: 25px 0; min-height: 60px; }
.price-box { font-size: 42px; font-weight: 800; color: #1d2327; letter-spacing: -1px; }
.price-box .currency { font-size: 24px; vertical-align: top; margin-top: 8px; display: inline-block; }
.price-box .period { font-size: 15px; font-weight: 500; color: #8c8f94; letter-spacing: normal; display: block; margin-top: 5px; }

/* Features List */
.features { list-style: none; padding: 0; margin: 0 0 30px; text-align: left; }
.features li { padding: 10px 0; border-bottom: 1px solid #f0f0f1; color: #50575e; font-size: 14px; }
.features li:last-child { border-bottom: none; }
.features li::before { content: "✓"; color: #f55e00; font-weight: bold; margin-right: 8px; }
.features li strong { color: #1d2327; }

/* Botões */
.btn-upgrade {
    display: block; width: 100%; padding: 14px 0; border-radius: 6px;
    text-decoration: none; font-weight: 700; font-size: 16px; transition: 0.2s;
}
.btn-orange { background: #f55e00; color: #fff; border: 2px solid #f55e00; }
.btn-orange:hover { background: #d95300; border-color: #d95300; color: #fff; }

.btn-outline { background: #fff; color: #1d2327; border: 2px solid #dcdcde; }
.btn-outline:hover { border-color: #1d2327; color: #1d2327; }

/* Logica de Toggle */
.view-lifetime .annual-content { display: none !important; }
.view-annual .lifetime-content { display: none !important; }
.garantee-text { margin-top: 40px; color: #8c8f94; font-size: 13px; }

/* Responsivo Mobile */
@media (max-width: 900px) {
    .plan-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .featured-card { transform: scale(1); order: -1; }
}


/* ===================================================
   7. NOTIFICATIONS & BANNERS (FREE / PRO LOGIC)
   =================================================== */

/* Avisos Gerais */
.dripbox-notice {
    padding: 15px 20px;
    margin-top: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Sucesso (Verde) */
.dripbox-notice.success, .dripbox-alert-success {
    background: #e7f7ed;
    border-left: 4px solid #1e8c3a;
    color: #145c27;
}
.dripbox-notice.success .icon { font-size: 24px; }

/* Erro / Alerta (Vermelho) */
.dripbox-notice.warning, .dripbox-alert-error, .dripbox-expired-notice {
    background: #fff5f5;
    border-left: 4px solid #cc0000;
    color: #660000;
}
.dripbox-notice.warning .icon { font-size: 24px; }
.dripbox-notice.warning a { color: #cc0000; font-weight: 700; text-decoration: underline; }
.dripbox-notice.warning a:hover { text-decoration: none; }

/* Banner de Produto Bloqueado (Edit Screen) */
.dripbox-locked-banner {
    background: #fff5f5;
    border-left: 4px solid #cc0000;
    padding: 15px 20px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.dripbox-locked-banner strong { display: block; font-size: 1.1em; color: #cc0000; margin-bottom: 5px; }
.dripbox-locked-banner a { font-weight: 700; color: #cc0000; text-decoration: underline; }

/* Esconde botão Add New quando limite atingido */
body.dripbox-limit-reached .page-title-action { display: none !important; }

/* Tabela Analytics (Opcional, mantido do original) */
.dripbox-analytics-table {
    width: 100%; border-collapse: collapse; background: #fff;
    border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.dripbox-analytics-table th { background: #f0f6fc; text-align: left; padding: 12px; font-weight: 600; font-size: 13px; text-transform: uppercase; color: #1d2327; }
.dripbox-analytics-table td { padding: 12px; border-bottom: 1px solid #f0f0f1; font-size: 14px; }
.dripbox-analytics-table tr:hover { background: #fafbfc; }



/* ===================================================
   8. DRIPBOX ADMIN GENERATOR - PREMIUM UI
   =================================================== */
.dripbox-admin-wrapper {
    max-width: 1100px;
    margin: 30px auto 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    color: #1f2937;
}

/* Header e Títulos */
.dripbox-admin-header { margin-bottom: 40px; }
.dripbox-admin-header h1 { font-size: 32px; font-weight: 800; color: #111; margin-bottom: 10px; display: flex; align-items: center; }
.dripbox-admin-header p { font-size: 16px; color: #6b7280; margin: 0; }
.section-title { font-size: 22px; font-weight: 700; color: #111; margin-bottom: 25px; padding-bottom: 10px; border-bottom: 2px solid #f3f4f6; }

/* Grid System */
.dripbox-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Cards Modernos */
.dripbox-admin-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.dripbox-admin-card:hover { transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); }

/* Destaque para o plano PRO */
.dripbox-admin-card.highlight-card { border: 2px solid #ff7b00; position: relative; }

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.card-header h3 { font-size: 24px; font-weight: 800; margin: 0; color: #111; }
.plan-type { font-size: 12px; font-weight: 600; text-transform: uppercase; background: #f3f4f6; padding: 4px 10px; border-radius: 20px; color: #4b5563; }
.plan-type.lifetime { background: #ecfdf5; color: #059669; }
.card-desc { color: #6b7280; margin-bottom: 25px; font-size: 14px; }

/* Formulários */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #374151; }
.modern-input {
    width: 100%; padding: 12px 16px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; transition: all 0.2s; background: #f9fafb; box-sizing: border-box;
}
.modern-input:focus { border-color: #ff7b00; background: #fff; box-shadow: 0 0 0 3px rgba(255, 123, 0, 0.15); outline: none; }

/* Botões Premium */
.dripbox-admin-btn {
    width: 100%; padding: 14px; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.2s; text-align: center;
}
.btn-dark { background: #1f2937; color: #fff; }
.btn-dark:hover { background: #111827; }
.btn-orange { background: #ff7b00; color: #fff; box-shadow: 0 4px 12px rgba(255, 123, 0, 0.2); }
.btn-orange:hover { background: #e66f00; transform: translateY(-1px); }

/* Alertas de Sucesso/Erro */
.dripbox-admin-alert { padding: 25px; border-radius: 12px; margin-bottom: 40px; animation: slideDown 0.4s ease; }
.dripbox-admin-alert.success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.dripbox-admin-alert.success h2 { margin-top: 0; color: #065f46; font-size: 20px; }
.alert-details { background: rgba(255,255,255,0.6); padding: 20px; border-radius: 8px; margin-top: 15px; }
.alert-details p { margin: 10px 0; font-size: 15px; }
.plan-badge { background: #059669; color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 12px; text-transform: uppercase; margin-left: 8px; }
.dripbox-admin-alert.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-weight: 600; }

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