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

:root {
    --primary: #feb618;
    --primary-hover: #e0a012;
    --bg-color: #050505; /* Deep dark background */
    --surface-1: #121212; /* Cards and sidebar */
    --surface-2: #1e1e1e; /* Hover states, inputs */
    --text-main: #ffffff;
    --text-muted: #8b8b8b;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--surface-1);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: fixed;
    height: 100vh;
    z-index: 100;
    border-right: 1px solid var(--border);
    padding: 20px 0;
}

.sidebar-header {
    padding: 0 20px 20px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.sidebar-header img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.sidebar-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.nav-section {
    padding: 5px 20px 2px;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.nav-links {
    list-style: none;
    padding: 0 15px;
    flex: 1;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    gap: 12px;
}

.nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-link:hover {
    color: var(--text-main);
    background-color: var(--surface-2);
}

.nav-link.active {
    color: var(--text-main);
    background: linear-gradient(90deg, rgba(254,182,24,0.1) 0%, transparent 100%);
    border-left: 3px solid var(--primary);
    font-weight: 500;
}

.nav-link.active i {
    color: var(--primary);
}

.pro-upgrade {
    margin: 20px 15px;
    padding: 20px;
    background: linear-gradient(145deg, rgba(254,182,24,0.15) 0%, rgba(254,182,24,0.05) 100%);
    border: 1px solid rgba(254,182,24,0.2);
    border-radius: var(--radius);
    text-align: center;
}

/* Main Content Area */
.main-wrapper {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: calc(100% - 260px);
    transition: var(--transition);
}

/* Sidebar Collapsed Styles */
.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .sidebar-header h2 {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    padding: 0 10px 20px 10px;
    justify-content: center;
}

.sidebar.collapsed .nav-section {
    font-size: 0;
    padding: 10px 0;
    text-align: center;
}

.sidebar.collapsed .nav-section::before {
    content: '...';
    font-size: 0.8rem;
    letter-spacing: 0;
}

.sidebar.collapsed .nav-links {
    padding: 0 10px;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 12px 0;
    gap: 0;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar.collapsed .nav-link i {
    font-size: 1.25rem;
    margin: 0;
}

body.sidebar-collapsed .main-wrapper {
    margin-left: 80px;
    width: calc(100% - 80px);
}

.topbar {
    height: 80px;
    background-color: var(--bg-color);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
}

.page-title h1 {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-main);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    background-color: var(--surface-1);
    padding: 6px 15px 6px 6px;
    border-radius: 30px;
    border: 1px solid var(--border);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.user-name {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-main);
}

/* Main Container */
.content-container {
    padding: 20px 40px 40px 40px;
    flex: 1;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--surface-1);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: rgba(254, 182, 24, 0.3);
    background: linear-gradient(180deg, var(--surface-1) 0%, rgba(254, 182, 24, 0.05) 100%);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.stat-badge {
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.stat-card .number {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Buttons */
.btn {
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(90deg, #feb618 0%, #ff8c00 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(254, 182, 24, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(254, 182, 24, 0.5);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--surface-2);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-dark:hover {
    background-color: #2a2a2a;
}

/* Tables / Lists Container */
.table-container {
    background: var(--surface-1);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 30px;
}

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

.search-input {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    outline: none;
    width: 300px;
}
.search-input::placeholder { color: var(--text-muted); }

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

thead th {
    background-color: transparent;
    padding: 15px 20px;
    text-align: left;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
}

tbody td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-size: 0.9rem;
}

tbody tr {
    transition: var(--transition);
}

tbody tr:hover {
    background-color: var(--surface-2);
}

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

/* Status Badges */
.status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
}

.status-success { background-color: rgba(46, 204, 113, 0.1); color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.2); }
.status-warning { background-color: rgba(254, 182, 24, 0.1); color: var(--primary); border: 1px solid rgba(254, 182, 24, 0.2); }
.status-danger { background-color: rgba(231, 76, 60, 0.1); color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.2); }

/* Project Grid & Cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.project-card:hover {
    border-color: rgba(254, 182, 24, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.project-id {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.project-title {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-main);
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 15px;
    flex: 1;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

/* Custom Inputs for Dark Theme */
input, select, textarea {
    background: var(--surface-2) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border) !important;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }

/* Modals */
.modal {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
    align-items: center; justify-content: center;
}
.modal.show { display: flex; animation: fadeIn 0.2s ease-out; }
.modal-content {
    background-color: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius);
    width: 100%; max-width: 500px; padding: 30px; position: relative;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.modal-title { font-size: 1.2rem; font-weight: 500; }
.close-modal { cursor: pointer; color: var(--text-muted); font-size: 1.5rem; transition: var(--transition); line-height: 1; }
.close-modal:hover { color: var(--text-main); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.85rem; color: var(--text-muted); }
.form-control { width: 100%; padding: 12px 15px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); color: var(--text-main); outline: none; transition: var(--transition); }
.form-control:focus { border-color: var(--primary); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Detalle de Proyecto (proyecto-detalle.php) Styles --- */
.project-detail-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 30px;
    margin-top: 20px;
}
@media (max-width: 1024px) {
    .project-detail-layout {
        grid-template-columns: 1fr;
    }
}
.detail-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}
.detail-card-title {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}
.progress-container {
    margin: 20px 0;
}
.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.progress-track {
    height: 10px;
    background: var(--surface-2);
    border-radius: 5px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #ff8c00 100%);
    border-radius: 5px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Timeline / Historial de Avances */
.timeline {
    position: relative;
    padding-left: 20px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    padding-bottom: 25px;
    animation: slideUp 0.3s ease-out;
}
.timeline-item:last-child {
    padding-bottom: 0;
}
.timeline-marker {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-color);
    box-shadow: 0 0 0 3px rgba(254, 182, 24, 0.15);
}
.timeline-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.85rem;
}
.timeline-user {
    font-weight: 500;
    color: var(--text-main);
}
.timeline-time {
    color: var(--text-muted);
}
.timeline-body {
    font-size: 0.9rem;
    color: #dfdfdf;
    background: var(--surface-2);
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    margin-top: 5px;
    border-left: 3px solid var(--primary);
}

/* Galería de Fotos */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.photo-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border);
    cursor: pointer;
    background: #000;
}
.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.photo-item:hover img {
    transform: scale(1.08);
}
.photo-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}
.photo-item:hover::after {
    opacity: 1;
}
.photo-caption {
    position: absolute;
    bottom: 5px;
    left: 8px;
    right: 8px;
    font-size: 0.7rem;
    color: #fff;
    z-index: 2;
    opacity: 0;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.photo-item:hover .photo-caption {
    opacity: 1;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255,255,255,0.01);
}
.upload-zone:hover {
    border-color: var(--primary);
    background: rgba(254, 182, 24, 0.02);
}
.upload-zone i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 8px;
}
.upload-zone p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Equipo Asignado */
.team-member-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.team-member-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface-2);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    animation: slideRight 0.3s ease-out;
}
.team-member-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-remove-member {
    background: transparent;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 5px;
    border-radius: 4px;
    transition: var(--transition);
}
.btn-remove-member:hover {
    background: rgba(255, 107, 107, 0.1);
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideRight {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Floating Checkbox Overlay in Photo Gallery */
.photo-checkbox-container {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.photo-checkbox-container:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.photo-checkbox-container input[type="checkbox"] {
    accent-color: var(--primary);
    margin: 0;
    cursor: pointer;
}

/* Report Modal Custom Scrollbar */
.report-preview-scroll {
    scroll-behavior: smooth;
}
.report-preview-scroll::-webkit-scrollbar {
    width: 8px;
}
.report-preview-scroll::-webkit-scrollbar-track {
    background: #1a1a1a;
}
.report-preview-scroll::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
.report-preview-scroll::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* --- Print Media Styles --- */
@media print {
    /* Hide EVERYTHING in the page by default */
    body * {
        visibility: hidden !important;
    }
    
    /* Reveal only the report preview modal and its printable children */
    #modal-report-preview,
    #modal-report-preview *,
    #printable-report-area,
    #printable-report-area * {
        visibility: visible !important;
    }
    
    /* Explicitly hide non-printable UI controls inside the modal */
    .no-print,
    .no-print * {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Reset layout for physical paper printing */
    body {
        background: #ffffff !important;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: auto !important;
        display: block !important;
    }
    
    #modal-report-preview {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        background: #ffffff !important;
        display: block !important;
        overflow: visible !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    #modal-report-preview .modal-content {
        background: #ffffff !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 !important;
    }
    
    .report-preview-scroll {
        overflow: visible !important;
        padding: 0 !important;
        background: #ffffff !important;
        height: auto !important;
    }
    
    #printable-report-area {
        box-shadow: none !important;
        border: none !important;
        padding: 20px 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    /* Force high-contrast colors and backgrounds for ink printing */
    #printable-report-area strong, 
    #printable-report-area h2, 
    #printable-report-area span, 
    #printable-report-area p, 
    #printable-report-area div, 
    #printable-report-area td, 
    #printable-report-area th {
        color: #000000 !important;
    }
    
    #printable-report-area select,
    #printable-report-area input,
    #printable-report-area textarea {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #cccccc !important;
    }

    #printable-report-area .report-watermark {
        opacity: 0.04 !important;
    }

    /* Force nice column lists and grid print-outs */
    #rep-val-gallery-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        page-break-inside: avoid !important;
    }

    .print-photo-item {
        page-break-inside: avoid !important;
        background: #ffffff !important;
        border: 1px solid #dddddd !important;
    }

    /* Standardized page breakdown prevention */
    #rep-section-general,
    #rep-section-team,
    #rep-section-timeline,
    #rep-section-materials,
    #rep-section-photos,
    #rep-section-conclusion {
        page-break-inside: avoid !important;
    }
}

/* ==========================================================================
   COMPRAS MODULE STYLE OVERRIDES & EXTENSIONS
   ========================================================================== */

/* Wizard Layout */
.wizard-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto 30px auto;
    position: relative;
    overflow: hidden;
}

.wizard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #ff8c00 100%);
}

.wizard-steps-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    position: relative;
}

.wizard-steps-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 1;
    transform: translateY(-50%);
}

.wizard-step-indicator-fill {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background: var(--primary);
    z-index: 1;
    transform: translateY(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.wizard-step-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 2px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    transition: all 0.3s ease;
    position: relative;
}

.wizard-step-node.active {
    background: var(--bg-color);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(254, 182, 24, 0.3);
}

.wizard-step-node.completed {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

.wizard-step-node span.step-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.wizard-step-node.active span.step-label {
    color: var(--primary);
    font-weight: 600;
}

.wizard-step-node.completed span.step-label {
    color: var(--text-main);
}

.wizard-step-panel {
    display: none;
    animation: slideStepIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.wizard-step-panel.active {
    display: block;
}

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

.code-reveal-box {
    background: rgba(254, 182, 24, 0.03);
    border: 2px dashed rgba(254, 182, 24, 0.2);
    border-radius: var(--radius-sm);
    padding: 30px;
    text-align: center;
    margin: 25px 0;
    position: relative;
    transition: var(--transition);
}

.code-reveal-box.revealed {
    background: rgba(254, 182, 24, 0.08);
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(254, 182, 24, 0.15);
}

.code-number {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
    transition: var(--transition);
}

.code-reveal-box.revealed .code-number {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(254,182,24,0.4);
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    from { text-shadow: 0 0 10px rgba(254,182,24,0.3); }
    to { text-shadow: 0 0 20px rgba(254,182,24,0.6); }
}

/* Autocomplete Suggestion styling */
.autocomplete-container {
    position: relative;
    width: 100%;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    max-height: 180px;
    overflow-y: auto;
    display: none;
}

.autocomplete-suggestions::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-suggestions::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.autocomplete-suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

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

.autocomplete-suggestion-item:hover,
.autocomplete-suggestion-item.highlighted {
    background: rgba(254, 182, 24, 0.12);
    color: var(--primary);
    padding-left: 18px;
}

/* Shop Card Comparison styling */
.store-comparative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.store-comparative-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: var(--transition);
}

.store-comparative-card:hover {
    border-color: rgba(254, 182, 24, 0.3);
    background: linear-gradient(180deg, var(--surface-1) 0%, rgba(254, 182, 24, 0.03) 100%);
    transform: translateY(-2px);
}

.store-comparative-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.store-comparative-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.store-comparative-metric {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.store-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.store-price-row strong {
    color: var(--text-main);
}

/* Success Wizard screen styles */
.success-screen {
    text-align: center;
    padding: 20px 0;
}

.success-icon-container {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.1);
    border: 2px solid #2ecc71;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: #2ecc71;
    font-size: 2.2rem;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.25);
    animation: scalePopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scalePopIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Purchase Tabs */
.purchase-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    position: relative;
    border-bottom: 2px solid transparent;
}

.tab-btn i {
    font-size: 1rem;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 2px solid var(--primary);
    text-shadow: 0 0 10px rgba(254, 182, 24, 0.2);
}

.tab-btn.active i {
    color: var(--primary);
}

/* ==========================================================================
   PROJECT ACTIONS DROPDOWN & DIALOGS
   ========================================================================== */

.project-actions-dropdown {
    position: relative;
}

.btn-actions {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    font-size: 1.1rem;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-actions:hover {
    background: var(--surface-2);
    color: var(--text-main);
}

.actions-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 35px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    z-index: 100;
    min-width: 140px;
    padding: 5px 0;
}

.actions-dropdown-menu.show {
    display: block;
    animation: fadeIn 0.15s ease-out;
}

.actions-dropdown-menu button {
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    background: transparent !important;
    border: none !important;
    color: var(--text-main) !important;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.actions-dropdown-menu button:hover {
    background: var(--surface-2) !important;
}

.actions-dropdown-menu button.delete-option {
    color: #e74c3c !important;
}

.actions-dropdown-menu button.delete-option:hover {
    background: rgba(231, 76, 60, 0.1) !important;
}

.actions-dropdown-menu button.finish-option {
    color: #2ecc71 !important;
}

.actions-dropdown-menu button.finish-option:hover {
    background: rgba(46, 204, 113, 0.1) !important;
}



