@import url('/css/styles.css');

:root {
    --bg-primary: #f3f4f6;
    
    --bg-secondary: #ffffff;
    
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    

    --text-primary: #111827;
    
    --text-secondary: #6b7280;
    
    --text-accent: #059669;
    
    --text-success: #10b981;
    

    --gradient-brand: linear-gradient(135deg, #22d3ee 0%, #10b981 100%);
    
    --gradient-hover: linear-gradient(135deg, #06b6d4 0%, #059669 100%);

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html.dark {
    --bg-primary: #09090b; 
    --bg-secondary: rgba(24, 24, 27, 0.6); 
    --bg-card: rgba(24, 24, 27, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);

    --text-primary: #f4f4f5; 
    --text-secondary: #a1a1aa; 
    --text-accent: #2dd4bf; 
    --text-success: #10b981; 
}



.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 2rem !important;
}


.header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.gradient-text {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}


.glass-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    
}

.search-container {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

#searchInput {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 1rem 1rem 1rem 3.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition);
}

#searchInput:focus {
    outline: none;
    background: var(--bg-secondary);
    border-color: var(--text-success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    
}

.filters-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    width: 100%;
}

.filter-container {
    position: relative;
    width: 100%;
}

.dropdown-icon {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    pointer-events: none;
}

.filter-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    pointer-events: none;
    z-index: 2;
}

.filter-container select {
    width: 100%;
    appearance: none;
    background: var(--bg-primary);
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 1rem 3rem 1rem 1.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-main);
    cursor: pointer;
    transition: var(--transition);
}

.filter-container select.has-icon {
    padding-left: 3rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.filter-container select:focus {
    outline: none;
    background: var(--bg-secondary);
    border-color: var(--text-success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.filter-container:hover select {
    background-color: #f9fafb;
}

.filter-container select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.stats-bar {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}


.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.report-card {
    background: var(--bg-card);
    border-radius: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    
    overflow: hidden;
    cursor: pointer;
}

.report-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    
    border-color: rgba(16, 185, 129, 0.3);
    
}


.card-glow {
    display: none;
}

.card-content {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-chip {
    display: inline-block;
    width: fit-content;
    background: var(--gradient-brand);
    color: #fff;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.date-chip {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
}

.model-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
}

.model-code {
    display: block;
    font-size: 0.85rem;
    color: var(--text-accent);
    font-weight: 600;
    margin-top: 4px;
}

.operation-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    
    border: 1px solid #d1fae5;
    
    color: var(--text-accent);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    width: fit-content;
}

.op-icon {
    width: 16px;
    height: 16px;
}

.op-mode {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(16, 185, 129, 0.12);
    
    color: var(--text-accent);
    padding: 2px 7px;
    border-radius: 5px;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
}




.loading-state {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    border-top-color: var(--text-success);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

.pagination-container {
    text-align: center;
    margin-top: 2rem;
    padding-bottom: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.scroll-to-top-btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-main);
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.scroll-to-top-btn-inline:hover {
    transform: translateY(-2px);
    border-color: var(--text-accent);
    color: var(--text-accent);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.2);
}

.scroll-to-top-btn-inline:active {
    transform: scale(0.95);
}

.scroll-to-top-btn-inline.hidden {
    display: none !important;
}

.primary-btn {
    background: var(--gradient-brand);
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: 30px;
    
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-main);
    transition: var(--transition);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.4);
    background: var(--gradient-hover);
}

.primary-btn:active {
    transform: scale(0.95);
}


.extra-section {
    margin-bottom: 1.2rem;
    animation: fadeIn 0.4s ease backwards;
}

.extra-section:last-child {
    margin-bottom: 0;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.6rem;
}

.section-heading svg {
    width: 14px;
    height: 14px;
    color: var(--text-accent);
    opacity: 0.8;
}

.notes-box {
    white-space: pre-wrap;
    line-height: 1.65;
    color: var(--text-primary);
    background: var(--bg-primary);
    padding: 0.85rem 1rem;
    border-radius: 0 10px 10px 0;
    border-left: 3px solid var(--text-accent);
    font-size: 0.9rem;
}

.log-terminal {
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.terminal-header {
    background: #1e293b;
    padding: 0.5rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.terminal-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #10b981;
}

.terminal-title {
    margin-left: auto;
    margin-right: auto;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transform: translateX(-12px);
}

.log-content {
    color: #4ade80;
    padding: 0.85rem;
    font-family: 'Consolas', 'Courier New', Courier, monospace;
    font-size: 0.78rem;
    line-height: 1.55;
    overflow-x: auto;
    margin: 0;
    white-space: pre;
}

.log-content::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.log-content::-webkit-scrollbar-track {
    background: #0f172a;
}

.log-content::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.images-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.report-image {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.report-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}


@media (max-width: 768px) {
    .glass-panel {
        flex-direction: column;
    }

    .gradient-text {
        font-size: 2.2rem;
    }

    .container {
        padding: 1rem !important;
    }
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(17, 24, 39, 0.5);
    
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-card);
    width: 90%;
    max-width: 620px;
    border-radius: 20px;
    padding: 1.75rem;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    max-height: 92vh;
    overflow-y: auto;
}

.modal-overlay:not(.hidden) .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-primary);
    border: none;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    flex-shrink: 0;
    box-sizing: border-box;
}

.modal-close-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    pointer-events: none;
}

.modal-close-btn:hover {
    background: #fecaca;
    color: #ef4444;
}

.modal-header {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}


.info-group--details {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.info-group--details .info-label {
    padding-top: 0;
    min-width: unset;
}


.modal-extra-data {
    margin-top: 0.25rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}


.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.spec-chip {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.spec-chip:hover {
    border-color: var(--text-accent);
    background: #ecfdf5;
}

.spec-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    font-size: 1.1rem;
    transition: var(--transition);
}

.spec-chip:hover .spec-icon-wrapper {
    transform: scale(1.05);
}

.spec-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.spec-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-secondary);
    line-height: 1;
    margin-bottom: 2px;
}

.spec-value {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.loading-extra {
    margin-bottom: 0.75rem;
}

.info-group {
    background: var(--bg-primary);
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.info-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 90px;
    padding-top: 2px;
}

.info-value {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    flex: 1;
}

.info-value.highlight {
    color: var(--text-accent);
}

.info-value.code-like {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    word-break: break-all;
}


.details-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    font-family: var(--font-main);
    margin-top: 4px;
}

.details-step {
    background: #f1f5f9;
    
    border: 1px solid #cbd5e1;
    
    color: #334155;
    
    padding: 3px 9px;
    border-radius: 7px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    transition: var(--transition);
}

.details-step:hover {
    background: #e2e8f0;
    
    border-color: #94a3b8;
    
    color: #0f172a;
    
}

.details-arrow {
    color: #94a3b8;
    
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.details-arrow svg {
    width: 11px;
    height: 11px;
}

.details-text {
    display: inline-block;
    font-family: 'Consolas', 'Courier New', Courier, monospace;
    font-size: 0.78rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    padding: 5px 10px;
    border-radius: 7px;
    border: 1px solid var(--border-color);
    width: fit-content;
    margin-right: 6px;
    margin-bottom: 6px;
}

.modal-footer {
    margin-top: 2.5rem;
    display: flex;
    justify-content: flex-end;
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.secondary-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}


html.dark .glass-panel,
html.dark .report-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html.dark .report-card:hover {
    background: rgba(39, 39, 42, 0.8);
    border-color: rgba(45, 212, 191, 0.4);
    box-shadow: 0 12px 40px rgba(45, 212, 191, 0.15);
}

html.dark #searchInput,
html.dark .filter-container select {
    background: rgba(9, 9, 11, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

html.dark #searchInput:focus,
html.dark .filter-container select:focus {
    background: rgba(24, 24, 27, 0.9);
    border-color: var(--text-accent);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

html.dark .operation-badge {
    background: rgba(45, 212, 191, 0.1);
    border-color: rgba(45, 212, 191, 0.2);
    color: var(--text-accent);
}

html.dark .details-step {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #d4d4d8;
}

html.dark .details-step:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

html.dark .details-arrow {
    color: #52525b;
}

html.dark .spec-chip:hover {
    background: rgba(45, 212, 191, 0.1);
    border-color: rgba(45, 212, 191, 0.4);
}

.model-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}


.model-card-tags {
    cursor: pointer;
    position: relative;
    border-radius: 10px;
    padding: 6px 10px;
    margin: -6px -10px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-primary);
    font-weight: 600;
}

.model-card-tags:hover {
    background: rgba(16, 185, 129, 0.06);
}

html.dark .model-card-tags:hover {
    background: rgba(45, 212, 191, 0.08);
}


.tags-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: tagsFadeIn 0.2s ease;
}

.tags-popup {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.8rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    animation: tagsPopIn 0.25s ease;
    position: relative;
}

html.dark .tags-popup {
    background: rgba(39, 39, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tags-popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.tags-popup-close:hover {
    color: #ef4444;
}

.tags-popup-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-right: 24px;
}

.tags-popup-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tags-popup-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tags-popup-item .tp-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.tags-popup-item .tp-icon.tool {
    color: var(--text-accent);
    background: rgba(16, 185, 129, 0.1);
}

.tags-popup-item .tp-icon.brand {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.tags-popup-item .tp-icon.op {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.tags-popup-item .tp-icon.model {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.tags-popup-item .tp-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.tags-popup-item .tp-value {
    margin-left: auto;
    font-weight: 700;
}

@keyframes tagsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes tagsPopIn {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}


.samsung-frp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    background: var(--gradient-brand);
    color: #ffffff !important;
    border: none;
    border-radius: 14px;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-main);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
    box-sizing: border-box;
    height: 100%;
    min-height: 54px;
}

.samsung-frp-btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.samsung-frp-btn:active {
    transform: translateY(0);
}

.samsung-frp-btn .btn-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    flex-shrink: 0;
}

.samsung-frp-btn .arrow-icon {
    width: 16px;
    height: 16px;
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.samsung-frp-btn:hover .arrow-icon {
    transform: translateX(4px);
}


.samsung-frp-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: linear-gradient(135deg, #1428a0 0%, #0a1a6e 60%, #071252 100%);
    border-radius: 20px;
    padding: 1.8rem 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px rgba(20,40,160,0.25);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.samsung-frp-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.samsung-frp-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(20,40,160,0.4);
}

.samsung-frp-banner-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: 1;
    min-width: 0;
}

.samsung-frp-banner-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 16px;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
}

.samsung-frp-banner-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
    letter-spacing: -0.3px;
}

.samsung-frp-banner-desc {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

.samsung-frp-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 30px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-main);
    transition: var(--transition);
    white-space: nowrap;
    backdrop-filter: blur(8px);
    flex-shrink: 0;
}

.samsung-frp-banner-btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.45);
    transform: translateX(4px);
}

.samsung-frp-banner-btn svg {
    transition: transform 0.3s ease;
}

.samsung-frp-banner-btn:hover svg {
    transform: translateX(4px);
}


.samsung-frp-page {
    animation: fadeIn 0.3s ease;
}

.samsung-frp-page.hidden {
    display: none !important;
}

.samsung-frp-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.samsung-frp-page-title-area {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1428a0;
}

html.dark .samsung-frp-page-title-area {
    color: #6d8cff;
}

.samsung-frp-page-title-area h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.3px;
}

.samsung-frp-page-search {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.samsung-frp-page-search svg {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.samsung-frp-page-search input {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 1rem 1rem 1rem 3.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition);
    box-sizing: border-box;
}

.samsung-frp-page-search input:focus {
    outline: none;
    background: var(--bg-secondary);
    border-color: #1428a0;
    box-shadow: 0 0 0 3px rgba(20,40,160,0.15);
}

html.dark .samsung-frp-page-search input:focus {
    border-color: #6d8cff;
    box-shadow: 0 0 0 3px rgba(109,140,255,0.2);
}

@media (max-width: 640px) {
    .samsung-frp-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.4rem 1.2rem;
        gap: 1rem;
    }
    .samsung-frp-banner-btn {
        width: 100%;
        justify-content: center;
    }
    .samsung-frp-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}


.back-reports-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    background: var(--gradient-brand);
    color: #ffffff !important;
    border: none;
    border-radius: 14px;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-main);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
    box-sizing: border-box;
    height: 100%;
    min-height: 54px;
}

.back-reports-btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.back-reports-btn:active {
    transform: translateY(0);
}

.back-reports-btn .btn-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    flex-shrink: 0;
}

.back-reports-btn .arrow-icon {
    width: 16px;
    height: 16px;
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.back-reports-btn:hover .arrow-icon {
    transform: translateX(-4px);
}




:root {
  --font-mono: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  --orange: #f59e0b;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --red: #ef4444;
}


.source-toggle-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.src-btn {
  font-size: 0.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: 14px;
  background: var(--bg-primary);
  border: 1px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 600;
}

.src-btn:hover,
.src-btn.active {
  border-color: var(--text-success);
  color: var(--text-accent);
  background: rgba(16, 185, 129, 0.08);
}

.src-btn .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.src-btn .dot.eft {
  background: var(--text-success);
}

.src-btn .dot.qc {
  background: var(--orange);
}

.src-btn .dot.both {
  background: var(--gradient-brand);
}


.model-card {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.model-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

html.dark .model-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html.dark .model-card:hover {
  background: rgba(39, 39, 42, 0.8);
  border-color: rgba(45, 212, 191, 0.4);
  box-shadow: 0 12px 40px rgba(45, 212, 191, 0.15);
}

.model-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.model-card-name {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1.3;
}

.model-card-chipset {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 4px;
}

.model-card-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.model-card-count {
  font-size: 0.75rem;
  background: var(--bg-primary);
  padding: 4px 12px;
  border-radius: 30px;
  color: var(--text-secondary);
  font-weight: 700;
  border: 1px solid var(--border-color);
}

.src-dots {
  display: flex;
  gap: 4px;
}

.src-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.src-dot.eft {
  background: var(--text-success);
}

.src-dot.qc {
  background: var(--orange);
}

.model-tag {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.model-tag.green {
  color: var(--text-accent);
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.model-tag.orange {
  color: var(--orange);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}


#detailPanel {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

#detailPanel.hidden {
  display: none !important;
}


body.samsung-frp-active #detailPanel {
  padding: 0;
  align-items: stretch;
}

body.samsung-frp-active .detail-modal-wrapper {
  max-width: 100%;
  width: 100%;
  max-height: 100vh;
  height: 100%;
  border-radius: 0;
  border: none;
}

.detail-modal-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.2rem;
  width: 100%;
  max-width: 1000px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

html.dark .detail-modal-wrapper {
  background: rgba(24, 24, 27, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}


.detail-modal-wrapper:has(.bit-grid > .bit-card:only-child),
.detail-modal-wrapper:has(.fw-grid > .fw-card:only-child),
.detail-modal-wrapper:has(#detailContent > .bit-card:only-child),
.detail-modal-wrapper:has(.single-entry) {
  max-width: 480px;
  padding: 1.5rem;
  gap: 1rem;
}

.detail-modal-wrapper::-webkit-scrollbar {
  width: 8px;
}

.detail-modal-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.detail-modal-wrapper::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.detail-modal-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

.detail-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-panel-title {
  font-size: 1.5rem;
  font-weight: 800;
}

.detail-panel-title .model-name {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.detail-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  flex-shrink: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.detail-close-btn:hover {
  border-color: var(--red);
  color: var(--red);
  transform: rotate(90deg);
}

.detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.detail-tag {
  font-size: 0.78rem;
  padding: 5px 14px;
  border-radius: 30px;
  font-weight: 700;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.detail-tag.green {
  color: var(--text-accent);
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.detail-tag.orange {
  color: var(--orange);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

@media (max-width: 640px) {
  .detail-modal-wrapper {
    padding: 1.2rem;
    gap: 1rem;
    border-radius: 16px;
    max-height: 90vh;
  }

  .detail-panel-title {
    font-size: 1.25rem;
  }
}


.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 16px;
}

.section-header:first-child {
  margin-top: 0;
}

.section-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 30px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-badge.eft {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.section-badge.qc {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 6px rgba(245, 158, 11, 0.2);
}

.section-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.section-count {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}


.fw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

.fw-card {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 450px;
  width: 100%;
  margin: 0 auto;
}

.fw-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

html.dark .fw-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html.dark .fw-card:hover {
  background: rgba(39, 39, 42, 0.8);
  border-color: rgba(45, 212, 191, 0.4);
  box-shadow: 0 12px 40px rgba(45, 212, 191, 0.15);
}

.fw-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fw-firmware {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-accent);
  font-family: var(--font-mono);
  word-break: break-all;
}

.fw-bit-badge {
  font-size: 0.85rem;
  font-weight: 800;
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.fw-spec-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cmd-display {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--orange);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 12px;
  word-break: break-all;
  line-height: 1.5;
}


.bit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

.bit-card {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 450px;
  width: 100%;
  margin: 0 auto;
}

.bit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

html.dark .bit-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html.dark .bit-card:hover {
  background: rgba(39, 39, 42, 0.8);
  border-color: rgba(45, 212, 191, 0.4);
  box-shadow: 0 12px 40px rgba(45, 212, 191, 0.15);
}

.bit-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bit-badge {
  font-size: 0.9rem;
  font-weight: 800;
  min-width: 40px;
  height: 40px;
  border-radius: 12px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.bit-card-model {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}


.card-ops {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.card-op {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition);
}

.card-op:hover {
  border-color: var(--text-accent);
}

.card-op .op-ico {
  font-size: 0.8rem;
}

.card-op.flash .op-ico {
  color: var(--blue);
}

.card-op.reset .op-ico {
  color: var(--text-success);
}

.card-op.frp .op-ico {
  color: var(--orange);
}

.card-op.kg .op-ico {
  color: var(--purple);
}

.card-op.kg-completed .op-ico {
  color: var(--pink);
}


.filter-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  font-size: 0.78rem;
  padding: 7px 16px;
  border-radius: 30px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
  font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--text-success);
  color: var(--text-accent);
  background: rgba(16, 185, 129, 0.08);
}


.spinner-frp {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(16, 185, 129, 0.2);
  border-top-color: var(--text-success);
  border-radius: 50%;
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto 12px;
}

.loading-frp {
  text-align: center;
  padding: 40px 0;
  color: var(--text-secondary);
  font-weight: 600;
}


.empty-frp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  gap: 12px;
}

.empty-frp svg {
  opacity: 0.3;
}

.empty-frp p {
  font-size: 0.95rem;
  font-weight: 500;
}


.scroll-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 98;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-brand);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-to-top-btn:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
}

.scroll-to-top-btn:active {
  transform: scale(0.95);
}

.scroll-to-top-icon {
  width: 22px;
  height: 22px;
}


.info-value-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.info-value-row .info-value {
  flex-shrink: 0;
}

.rent-btns-inline {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  flex-shrink: 0;
}

.rent-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.rent-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.rent-btn i {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
}

.rent-btn span,
.rent-btn {
  position: relative;
  z-index: 1;
}

.rent-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.55);
  color: #fff;
}

.rent-btn:hover::before {
  opacity: 1;
}

.rent-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}


.info-group--with-rent {
  flex-wrap: wrap;
}

.info-group--with-rent .info-label {
  align-self: flex-start;
  padding-top: 0.55rem;
}


html.dark .rent-btn {
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

html.dark .rent-btn:hover {
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
}


@media (max-width: 480px) {
  .info-value-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    width: 100%;
  }

  .rent-btns-inline {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    gap: 0.5rem;
  }

  .info-group--with-rent .info-label {
    padding-top: 0;
    margin-bottom: 0.25rem;
  }
  
  .info-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}


.tools-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tools-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tools-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}


.tool-chip {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  transition: all 0.22s ease;
  min-width: 140px;
  flex: 1 1 auto;
  max-width: 260px;
}

.tool-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}


.tool-chip--amber {
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.06);
}

.tool-chip--amber:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}

.tool-chip--amber .tool-chip-name {
  color: #f59e0b;
}


.tool-chip--purple {
  border-color: rgba(168, 85, 247, 0.25);
  background: rgba(168, 85, 247, 0.06);
}

.tool-chip--purple:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.15);
}

.tool-chip--purple .tool-chip-name {
  color: #a855f7;
}

.tool-chip-name {
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
  word-break: break-word;
}

.tool-chip-rent {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}


html.dark .tool-chip {
  background: rgba(255,255,255,0.03);
}

html.dark .tool-chip--amber {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
}

html.dark .tool-chip--purple {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.2);
}

@media (max-width: 480px) {
  .tool-chip {
    min-width: 0;
    max-width: 100%;
    flex: 1 1 100%;
  }
}


