/* ==========================================================================
   FLORIDA BIZMAP - PROFESSIONAL STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & GLOBAL RESET
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --header-bg: #0f172a;
    --sidebar-bg: #ffffff;
    --main-bg: #f8fafc;
    --card-bg: #ffffff;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --success-color: #10b981;
    --danger-color: #ef4444;
    
    --border-color: #e2e8f0;
    
    /* Z-Indices */
    --z-map: 1;
    --z-sidebar: 900;
    --z-header: 1000;
    --z-modal: 2000;
    --z-toast: 9999;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-y: auto; 
    overflow-x: hidden;
    background-color: var(--main-bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   2. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
header {
    background-color: var(--header-bg);
    color: white;
    height: 60px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: var(--z-header);
    position: relative;
    flex-shrink: 0;
}

h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.brand-icon { color: #38bdf8; }

.nav-links {
    display: flex;
    gap: 25px;
    font-size: 0.9rem;
    margin-left: 40px;
}

.nav-item {
    color: #94a3b8;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* User Controls */
.user-controls {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px 5px 5px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: #38bdf8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-weight: bold;
    font-size: 0.8rem;
}

.user-name { font-weight: 500; color: #f1f5f9; font-size: 0.85rem; }

.manage-link {
    color: #38bdf8;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 2px;
    display: block;
    transition: opacity 0.2s;
}
.manage-link:hover { opacity: 0.8; text-decoration: underline; }

.logout-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px;
    transition: color 0.2s;
}
.logout-btn:hover { color: var(--danger-color); }

.auth-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}
.auth-btn:hover { background: rgba(255, 255, 255, 0.2); }

/* --------------------------------------------------------------------------
   3. LAYOUT & SIDEBAR
   -------------------------------------------------------------------------- */
.view-container {
    display: none;
    width: 100%;
    height: 100%;
}
.view-container.active { display: flex; }

#main-container {
    flex: 1;
    height: calc(100vh - 60px);
    position: relative;
    display: flex;
}

#sidebar {
    width: 400px;
    min-width: 400px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: var(--z-sidebar);
    flex-shrink: 0;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.03);
}

#search-panel {
    padding: 24px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

/* Sidebar Text Fixes */
#search-panel h3, 
#search-panel h4,
#search-panel label {
    font-size: 0.75rem;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    margin-top: 20px;
    display: block;
}

#search-panel select, 
#search-panel input {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    transition: all 0.2s;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: 8px;
}
#search-panel select:focus, 
#search-panel input:focus {
    background-color: #ffffff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#results-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f1f5f9;
    scroll-behavior: smooth;
}

#map {
    flex: 1;
    height: 100%;
    background-color: #e2e8f0;
    z-index: var(--z-map);
}

/* Map View Lock */
#map-view.active {
    position: fixed; 
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    overflow: hidden; 
}

/* --------------------------------------------------------------------------
   4. FORM ELEMENTS
   -------------------------------------------------------------------------- */
select, .filter-input, .classic-input, .classic-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    background: white;
    color: var(--text-primary);
    outline: none;
    box-sizing: border-box;
    margin-top: 5px;
}
select:focus, .filter-input:focus, .classic-input:focus, .classic-textarea:focus {
    border-color: var(--accent-color);
}

.date-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.btn-search-big {
    width: 100%;
    height: 40px;
    margin-top: 5px;
    background-color: var(--header-bg);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn-search-big:hover { background-color: #334155; transform: translateY(-1px); }

/* --------------------------------------------------------------------------
   5. BUSINESS CARDS (SIDEBAR LIST)
   -------------------------------------------------------------------------- */
.biz-card {
    background: white;
    padding: 0;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* Full Name Display Fix */
.biz-card button,
.biz-card h3,
.biz-card h4,
.biz-card .business-name,
.biz-card-header,
.popup-title {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: block !important;
    width: 100% !important;
    line-height: 1.35 !important;
    text-align: left !important;
    height: auto !important;
    max-width: none !important;
}

.biz-card .popup-title {
    font-weight: 700;
    font-size: 1rem !important;
    color: #ffffff !important;
    margin-right: 35px; 
}

.biz-card p, 
.biz-card .detail-row {
    padding-left: 15px;
    padding-right: 15px;
}

.biz-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08);
    border-color: #94a3b8;
}

.biz-card.seen {
    opacity: 0.8;
    background: #f8fafc;
}

/* Toggle Switch */
.seen-toggle {
    position: absolute;
    right: 15px;
    top: 15px;
    display: inline-block;
    width: 32px;
    height: 18px;
    z-index: 5;
}
.seen-toggle input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #475569;
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider { background-color: var(--success-color); } 
input:checked + .slider:before { transform: translateX(14px); }

/* Details */
.detail-row {
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #334155;
}
.detail-row i {
    color: #94a3b8;
    margin-top: 3px;
    width: 16px;
    text-align: center;
}
.detail-row.agent {
    margin-top: 10px;
    background: #f8fafc;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    color: #0f172a;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    color: #475569;
    background: white;
    transition: all 0.2s;
}
.action-btn:hover {
    background: #f8fafc;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-magic-popup {
    width: 100%;
    border: none;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-magic-popup:hover { opacity: 0.9; }

/* --------------------------------------------------------------------------
   6. MAP POPUPS
   -------------------------------------------------------------------------- */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    overflow: hidden; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
.leaflet-popup-content {
    margin: 0 !important;
    width: 300px !important; 
}
.leaflet-container a.leaflet-popup-close-button {
    color: white; 
    padding: 8px;
    font-size: 18px;
}

.map-popup-card { font-family: 'Inter', sans-serif; display: flex; flex-direction: column; }

.popup-header {
    background: #0f172a; 
    color: white;
    padding: 15px;
    padding-right: 30px; 
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 3px solid #f59e0b; 
    position: relative;
}

.popup-details {
    padding: 15px;
    background: white;
    color: #334155;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   7. MODALS & AUTH
   -------------------------------------------------------------------------- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal);
    justify-content: center;
    align-items: center;
}

.modal-card {
    background: white;
    width: 90%;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease-out;
    position: relative; 
}
#pricingModal .modal-card {
    max-width: 1100px !important;
    width: 95% !important;
}

.modal-card.wide {
    max-width: 1100px !important; 
    width: 95%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h2 { font-size: 1.25rem; color: #0f172a; margin: 0; font-weight: 700; }
.close-modal { 
    background: none; 
    border: none; 
    color: #94a3b8; 
    font-size: 1.8rem; 
    cursor: pointer; 
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 10;
    transition: color 0.2s;
}
.close-modal:hover { color: var(--danger-color); }
.modal-content { padding: 25px; overflow-y: auto; max-height: 85vh; }

/* Auth Forms */
.auth-container { text-align: center; }
.auth-icon-top { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 15px; display: block; }
.auth-title { font-size: 1.5rem; font-weight: 700; color: #0f172a; margin-bottom: 5px; }
.auth-subtitle { color: #64748b; font-size: 0.9rem; margin-bottom: 25px; }

.auth-form { text-align: left; display: flex; flex-direction: column; gap: 15px; }
.password-container { position: relative; width: 100%; }
.auth-input {
    width: 100%;
    padding: 12px 15px;
    padding-right: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    transition: all 0.2s;
    box-sizing: border-box;
}
.auth-input:focus { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); outline: none; }

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
}
.password-toggle:hover { color: var(--accent-color); }

.error-msg {
    display: none;
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 15px;
    text-align: left;
}

.btn-primary {
    width: 100%;
    background-color: #0f172a;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    margin-top: 10px;
}
.btn-primary:hover { background-color: #1e293b; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15); }
.btn-primary:disabled { background-color: #94a3b8; cursor: not-allowed; }

.auth-footer { margin-top: 20px; font-size: 0.9rem; color: #64748b; border-top: 1px solid #f1f5f9; padding-top: 20px; }
.auth-link { color: var(--accent-color); text-decoration: none; font-weight: 600; cursor: pointer; }

/* --------------------------------------------------------------------------
   8. PRICING CARDS
   -------------------------------------------------------------------------- */
.pricing-grid {
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    margin-top: 0;
    padding-top: 50px; 
    padding-bottom: 20px;
    align-items: flex-start; 
    flex-wrap: wrap;
    flex-wrap: nowrap; 
    overflow-x: auto; 
    width: 100%;
}
.pricing-card {
    background: white; border: 1px solid #e2e8f0; border-radius: 16px; padding: 25px; width: 280px;
    display: flex; flex-direction: column; position: relative; transition: all 0.3s;
}
.pricing-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }

.pricing-card.featured {
    border: 2px solid #3b82f6; background: #f8fafc; transform: scale(1.05); z-index: 10;
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15);
}
.pricing-card.featured:hover { transform: scale(1.05) translateY(-5px); }

.popular-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: #3b82f6; color: white; padding: 5px 15px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
}

.plan-name { font-size: 0.9rem; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 15px; }
.pricing-card.featured .plan-name { margin-top: 25px; }
.plan-price { font-size: 3rem; font-weight: 900; color: #0f172a; margin-bottom: 5px; line-height: 1; }
.plan-period { font-size: 0.9rem; color: #94a3b8; font-weight: 500; margin-bottom: 25px; }

.features-list { list-style: none; padding: 0; margin: 0 0 30px 0; flex: 1; text-align: left; }
.features-list li { margin-bottom: 15px; font-size: 0.95rem; color: #334155; display: flex; align-items: flex-start; gap: 10px; }
.features-list li i { color: var(--success-color); margin-top: 4px; flex-shrink: 0; }
.features-list li.disabled { color: #cbd5e1; text-decoration: line-through; }
.features-list li.disabled i { color: #e2e8f0; }

.btn-plan { width: 100%; padding: 14px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 1rem; border: none; transition: all 0.2s; }
.btn-plan.outline { background: transparent; border: 2px solid #e2e8f0; color: #64748b; }
.btn-plan.outline:hover { border-color: #0f172a; color: #0f172a; }
.btn-plan.primary { background: #3b82f6; color: white; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); }
.btn-plan.primary:hover { background: #2563eb; transform: translateY(-2px); }
.btn-plan.dark { background: #0f172a; color: white; }
.btn-plan.dark:hover { background: #1e293b; }

/* --------------------------------------------------------------------------
   9. AI PROFILE UI
   -------------------------------------------------------------------------- */
.profile-header-strip {
    background: #0f172a; color: white; padding: 20px; display: flex; align-items: center; gap: 15px;
    border-bottom: 4px solid var(--accent-color);
}
.ph-icon { font-size: 2rem; color: var(--accent-color); }
.ph-info h2 { margin: 0; font-size: 1.2rem; }
.ph-meta { display: flex; gap: 15px; font-size: 0.85rem; color: #94a3b8; margin-top: 5px; }

.badge-success {
    background: #dcfce7; color: #166534; padding: 6px 12px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700; border: 1px solid #bbf7d0;
}

.profile-body { padding: 20px; background: #f8fafc; max-height: 70vh; overflow-y: auto; }

.panel-section { background: white; padding: 15px; border-radius: 8px; border: 1px solid #e2e8f0; margin-bottom: 15px; }
.panel-title { font-weight: 700; color: #334155; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.serper-box { background: #f1f5f9; padding: 10px; border-radius: 6px; }
.serper-list { list-style: none; padding: 0; margin-top: 10px; }
.serper-item-row {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    background: white; padding: 8px; margin-bottom: 5px; border-radius: 4px;
    border: 1px solid transparent; transition: all 0.2s;
}
.serper-item-row:hover { border-color: var(--accent-color); }
.serper-info { flex: 1; cursor: pointer; }
.s-title { font-weight: 600; font-size: 0.9rem; color: #1e293b; }
.s-link { font-size: 0.75rem; color: #22c55e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.serper-actions { display: flex; gap: 5px; }
.btn-mini {
    background: white; border: 1px solid #cbd5e1; color: #64748b; width: 28px; height: 28px;
    border-radius: 4px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s;
}
.btn-mini:hover { border-color: var(--accent-color); color: var(--accent-color); }

.opportunity-alert { background: #dcfce7; color: #166534; padding: 10px; border-radius: 6px; font-size: 0.9rem; margin-top: 10px; border: 1px solid #86efac; }
.tags-container { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.tag-service { background: #e0e7ff; color: #4338ca; padding: 4px 10px; border-radius: 15px; font-size: 0.75rem; font-weight: 600; }

.modal-footer-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.btn-save-lead { background: var(--accent-color); color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.btn-secondary { background: #334155; color: white; border: none; padding: 0 15px; border-radius: 6px; cursor: pointer; }

/* --------------------------------------------------------------------------
   10. MY LEADS TABLE (CRM)
   -------------------------------------------------------------------------- */
#leads-view {
    justify-content: center !important; 
    align-items: flex-start !important;
    padding-top: 40px;
    background-color: var(--main-bg);
    width: 100%;
}

.leads-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    border: 1px solid #e2e8f0;
    width: 90%; 
    max-width: 1300px;
    margin: 0 auto;
}

.leads-header-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid #f1f5f9;
}
.leads-header-row h2 { font-size: 1.5rem; color: #0f172a; margin: 0; font-weight: 700; }

.btn-refresh {
    background-color: white; border: 1px solid #cbd5e1; color: #64748b;
    padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 600;
    font-size: 0.9rem; transition: all 0.2s; display: flex; align-items: center; gap: 8px;
}
.btn-refresh:hover { border-color: #3b82f6; color: #3b82f6; background-color: #eff6ff; }

.leads-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; margin-top: 15px; }

/* Fixed Alignment */
.leads-table th {
    padding: 12px 20px; color: #64748b; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px; border: none;
    text-align: left !important; /* Key Fix */
}
.leads-table th:last-child { text-align: right !important; padding-right: 25px !important; }

.leads-table td {
    background: white; padding: 15px 20px; vertical-align: middle;
    border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0;
    color: #334155; font-size: 0.9rem;
}
.leads-table td:last-child { text-align: right !important; }

/* Rounded Row Edges */
.leads-table tr td:first-child { border-left: 1px solid #e2e8f0; border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.leads-table tr td:last-child { border-right: 1px solid #e2e8f0; border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.leads-table tr:hover td { background-color: #f8fafc; border-color: #cbd5e1; }

.table-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.btn-icon { background: none; border: none; cursor: pointer; font-size: 1.1rem; padding: 6px; border-radius: 4px; transition: all 0.2s; }
.btn-icon.edit { color: #3b82f6; background: #eff6ff; border: 1px solid #dbeafe; }
.btn-icon.edit:hover { background: #2563eb; color: white; }
.btn-icon.delete { color: #ef4444; background: #fef2f2; border: 1px solid #fee2e2; }
.btn-icon.delete:hover { background: #ef4444; color: white; }

.badge { padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }

/* --------------------------------------------------------------------------
   11. LANDING PAGE
   -------------------------------------------------------------------------- */
.hero {
    display: flex; align-items: center; justify-content: space-between;
    padding: 80px 8%; background: radial-gradient(circle at top right, #1e293b, #0f172a);
    min-height: 60vh; color: white; gap: 40px;
}
.hero-content { flex: 1; animation: fadeInUp 0.8s ease-out; }
.hero-content h2 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; font-weight: 800; }
.text-gradient { background: linear-gradient(to right, #38bdf8, #818cf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-content p { font-size: 1.2rem; color: #94a3b8; margin-bottom: 35px; max-width: 600px; line-height: 1.6; }

.btn-primary-large {
    background: #2563eb; color: white; padding: 16px 32px; border-radius: 8px;
    font-weight: 700; border: none; cursor: pointer; transition: 0.3s; font-size: 1.1rem;
}
.btn-primary-large:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3); background: #1d4ed8; }

.hero-image { animation: fadeInRight 1s ease-out; }
.floating-img {
    width: 100%; max-width: 500px; border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; padding: 80px 8%; background: white; }
.feature-card { padding: 40px; border-radius: 16px; border: 1px solid #f1f5f9; background: #f8fafc; transition: 0.3s; text-align: center; }
.feature-card i { font-size: 2.5rem; color: #2563eb; margin-bottom: 20px; display: block; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }

/* --------------------------------------------------------------------------
   12. TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */
.toast-notification {
    position: fixed;
    bottom: 20px; right: 20px;
    background: #0f172a; color: white;
    padding: 12px 24px; border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex; align-items: center; gap: 10px;
    z-index: var(--z-toast);
    animation: slideIn 0.3s ease-out;
    font-size: 0.9rem; font-weight: 500;
}
.toast-notification.success { border-left: 4px solid var(--success-color); }
.toast-notification.error { border-left: 4px solid var(--danger-color); }
.toast-notification.info { border-left: 4px solid var(--accent-color); }

@keyframes slideIn { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }



@media (max-width: 768px) {
    .pricing-grid {
        flex-wrap: wrap !important;
        padding-top: 30px;
        justify-content: center;
    }
}

/* =========================================
   DASHBOARD HOME STYLES
   ========================================= */
.dashboard-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease-out;
}

.dash-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    position: relative;
    overflow: hidden;
}

.dash-hero h2 { margin: 0 0 10px 0; font-size: 2rem; }
.dash-hero p { color: #94a3b8; margin: 0; font-size: 1.1rem; }

.credit-banner {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.1);
    padding: 15px 25px;
    border-radius: 12px;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.1);
}
.cb-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: #cbd5e1; display: block; }
.cb-amount { font-size: 1.5rem; font-weight: 700; color: #38bdf8; }

.btn-top-up {
    background: #2563eb; color: white; border: none; padding: 8px 16px; 
    border-radius: 6px; cursor: pointer; font-weight: 600; transition: 0.2s;
}
.btn-top-up:hover { background: #3b82f6; }

/* Grid de Tarjetas */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.dash-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.dash-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: #3b82f6;
}

.dc-icon {
    width: 50px; height: 50px;
    background: #eff6ff; color: #2563eb;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 20px;
}
.dash-card h3 { margin: 0 0 10px 0; color: #0f172a; }
.dash-card p { color: #64748b; font-size: 0.95rem; line-height: 1.5; flex: 1; margin-bottom: 20px; }
.dc-link { color: #2563eb; font-weight: 600; font-size: 0.9rem; }

/* Footer Interno */
.app-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
    color: #94a3b8;
}
.af-content {
    display: flex; justify-content: space-between; align-items: center;
}
.af-links { display: flex; gap: 20px; }
.af-links a { color: #64748b; text-decoration: none; font-size: 0.9rem; transition: 0.2s; }
.af-links a:hover { color: #2563eb; }