:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --accent-primary: #38bdf8;
    --accent-secondary: #818cf8;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(129, 140, 248, 0.05) 0%, transparent 40%);
    color: var(--text-main);
    min-height: 100vh;
    padding-bottom: 50px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    margin-bottom: 60px;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
}

.result-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.category-header {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.category-path {
    color: var(--accent-primary);
    font-size: 0.9rem;
    margin-bottom: 25px;
    font-weight: 500;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.result-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
}

.result-item.full-width {
    grid-column: 1 / -1;
}

.result-item .label {
    display: block;
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.result-item .value {
    font-weight: 500;
}

.text-block {
    line-height: 1.6;
    color: var(--text-main);
    opacity: 0.9;
}
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
    margin-bottom: 30px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.tab-btn {
    background: transparent;
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-dim);
    transition: all 0.3s;
}

.tab-btn.active {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-primary);
}

/* Form Styles */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.search-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 15px;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    cursor: pointer;
    min-width: 160px;
}

.search-select option {
    background: #1a1a2e;
    color: white;
}

.search-box input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

button {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Steps Progress */
.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    background: var(--bg-color);
    padding: 0 10px;
    text-align: center;
    width: 100px;
}

.step-count {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    color: var(--text-dim);
    transition: all 0.3s;
}

.step.active .step-count {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.step.done .step-count {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.step-label {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Comparison Table */
.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.col-header {
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 10px;
}

.attr-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.attr-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.attr-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    display: block;
    margin-bottom: 0.5rem;
}

.attr-value {
    font-weight: 500;
}

.ai-reasoning {
    margin-top: 10px;
    font-size: 0.8rem;
    font-style: italic;
    color: var(--accent-primary);
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animated {
    animation: fadeIn 0.5s ease-out forwards;
}

.hidden {
    display: none !important;
}

/* Catalog View */
.catalog-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.catalog-search {
    flex: 1;
}

.catalog-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 15px;
    color: white;
    outline: none;
}

.catalog-buttons {
    display: flex;
    gap: 10px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.catalog-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.catalog-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-primary);
}

.catalog-item.selected {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--accent-primary);
}

.catalog-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #1e293b;
    object-fit: contain;
}

.catalog-info {
    flex: 1;
}

.catalog-name {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.3;
}

.catalog-id {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.batch-controls {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.catalog-footer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 8px;
}

/* Multi-Account Bar */
.account-selection-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.selector-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.selector-group label {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 500;
}

.selector-group select {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
}

/* Settings View */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 10px 0;
}

.settings-column h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.account-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.account-item-info {
    display: flex;
    flex-direction: column;
}

.account-item-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.account-item-id {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    cursor: pointer;
}

.btn-delete:hover {
    background: #ef4444;
    color: white;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 100%;
    max-width: 450px;
    margin: 20px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 15px;
    color: white;
}
