/**
 * ArchiMatch Frontend Styles
 * 
 * @package ArchiMatch
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    --am-primary: #2563eb;
    --am-primary-dark: #1d4ed8;
    --am-primary-light: #3b82f6;
    --am-secondary: #64748b;
    --am-success: #10b981;
    --am-warning: #f59e0b;
    --am-danger: #ef4444;
    --am-dark: #1e293b;
    --am-text: #334155;
    --am-text-light: #64748b;
    --am-border: #e2e8f0;
    --am-bg: #f8fafc;
    --am-white: #ffffff;
    --am-radius: 8px;
    --am-radius-lg: 12px;
    --am-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --am-shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --am-transition: 0.2s ease;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

.am-wizard-container,
.am-dashboard,
.am-registration,
.am-results {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--am-text);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.am-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--am-radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--am-transition);
}

.am-btn svg {
    width: 18px;
    height: 18px;
}

.am-btn-primary {
    background: var(--am-primary);
    color: var(--am-white);
}

.am-btn-primary:hover {
    background: var(--am-primary-dark);
    color: var(--am-white);
}

.am-btn-secondary {
    background: var(--am-bg);
    color: var(--am-text);
    border: 1px solid var(--am-border);
}

.am-btn-secondary:hover {
    background: var(--am-border);
}

.am-btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.am-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.am-btn-icon svg {
    width: 18px;
    height: 18px;
}

.am-btn-icon:hover {
    background: var(--am-white);
}

/* ==========================================================================
   Wizard
   ========================================================================== */

.am-wizard-container {
    background: var(--am-white);
    border-radius: var(--am-radius-lg);
    box-shadow: var(--am-shadow-lg);
    padding: 40px;
}

/* Progress Bar */
.am-wizard-progress {
    margin-bottom: 40px;
}

.am-progress-bar {
    height: 4px;
    background: var(--am-border);
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}

.am-progress-fill {
    height: 100%;
    background: var(--am-primary);
    transition: width 0.3s ease;
}

.am-progress-steps {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-wrap: nowrap;
}

.am-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    max-width: 120px;
}

.am-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--am-border);
    color: var(--am-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.am-step-indicator.completed .am-step-number,
.am-step-indicator.active .am-step-number {
    background: var(--am-primary);
    color: var(--am-white);
}

.am-step-label {
    font-size: 12px;
    color: var(--am-text-light);
}

.am-step-indicator.active .am-step-label {
    color: var(--am-primary);
    font-weight: 600;
}

/* Wizard Steps */
.am-wizard-step h2 {
    font-size: 28px;
    color: var(--am-dark);
    margin: 0 0 10px;
}

.am-step-description {
    color: var(--am-text-light);
    margin-bottom: 30px;
}

/* Option Cards */
.am-option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.am-option-card {
    cursor: pointer;
}

.am-option-card input {
    position: absolute;
    opacity: 0;
}

.am-card-content {
    background: var(--am-white);
    border: 2px solid var(--am-border);
    border-radius: var(--am-radius-lg);
    padding: 30px;
    text-align: center;
    transition: all var(--am-transition);
}

.am-option-card input:checked + .am-card-content {
    border-color: var(--am-primary);
    background: #eff6ff;
}

.am-option-card:hover .am-card-content {
    border-color: var(--am-primary-light);
}

.am-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    color: var(--am-primary);
}

.am-card-icon svg {
    width: 100%;
    height: 100%;
}

.am-card-content h3 {
    font-size: 20px;
    margin: 0 0 8px;
    color: var(--am-dark);
}

.am-card-content p {
    margin: 0;
    color: var(--am-text-light);
    font-size: 14px;
}

/* Option List */
.am-option-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.am-option-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--am-white);
    border: 2px solid var(--am-border);
    border-radius: var(--am-radius);
    cursor: pointer;
    transition: all var(--am-transition);
}

.am-option-item input {
    position: absolute;
    opacity: 0;
}

.am-option-item:hover {
    border-color: var(--am-primary-light);
}

.am-option-item:has(input:checked) {
    border-color: var(--am-primary);
    background: #eff6ff;
}

.am-option-content {
    flex: 1;
}

.am-option-content strong {
    display: block;
    color: var(--am-dark);
    margin-bottom: 4px;
}

.am-option-content span {
    font-size: 14px;
    color: var(--am-text-light);
}

.am-option-check {
    width: 24px;
    height: 24px;
    border: 2px solid var(--am-border);
    border-radius: 50%;
    position: relative;
}

.am-option-item:has(input:checked) .am-option-check {
    background: var(--am-primary);
    border-color: var(--am-primary);
}

.am-option-item:has(input:checked) .am-option-check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--am-white);
    border-radius: 50%;
}

/* Style Grid */
.am-style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.am-style-card {
    cursor: pointer;
    position: relative;
}

.am-style-card input {
    position: absolute;
    opacity: 0;
}

.am-style-image {
    aspect-ratio: 1;
    border-radius: var(--am-radius);
    overflow: hidden;
    border: 3px solid transparent;
    transition: all var(--am-transition);
    background: #f8fafc;
}

.am-style-card:has(input:checked) .am-style-image,
.am-style-card.selected .am-style-image {
    border-color: var(--am-primary);
}

.am-style-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.am-style-image img[src$=".svg"] {
    object-fit: contain;
    padding: 8px;
}

.am-style-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--am-primary-light), var(--am-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--am-white);
}

.am-style-info {
    padding: 12px 4px;
}

.am-style-info h4 {
    margin: 0;
    font-size: 14px;
    color: var(--am-dark);
}

.am-style-info p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--am-text-light);
}

.am-style-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: var(--am-primary);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--am-white);
}

.am-style-check svg {
    width: 16px;
    height: 16px;
}

.am-style-card:has(input:checked) .am-style-check,
.am-style-card.selected .am-style-check {
    display: flex;
}

.am-style-counter {
    text-align: center;
    color: var(--am-text-light);
    font-size: 14px;
}

/* Form Fields */
.am-form-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.am-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.am-field-full {
    grid-column: 1 / -1;
}

.am-field-group label {
    font-weight: 500;
    color: var(--am-dark);
    font-size: 14px;
}

.am-field-group input,
.am-field-group select,
.am-field-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    font-size: 16px;
    transition: all var(--am-transition);
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Dropdown specifieke styling */
.am-field-group select {
    background-color: var(--am-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: var(--am-text) !important;
    opacity: 1 !important;
}

/* Placeholder styling voor dropdown */
.am-field-group select option[value=""] {
    color: var(--am-text-light) !important;
}

.am-field-group select::-ms-expand {
    display: none;
}

.am-field-group input:focus,
.am-field-group select:focus,
.am-field-group textarea:focus {
    outline: none;
    border-color: var(--am-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.am-field-hint {
    font-size: 13px;
    color: var(--am-text-light);
}

/* Navigation */
.am-wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--am-border);
}

/* Loading */
.am-wizard-loading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-radius: var(--am-radius-lg);
}

.am-loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--am-border);
    border-top-color: var(--am-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Dashboard
   ========================================================================== */

.am-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.am-dashboard-header h1 {
    margin: 0;
    font-size: 28px;
    color: var(--am-dark);
}

.am-welcome {
    margin: 5px 0 0;
    color: var(--am-text-light);
}

/* Empty State */
.am-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--am-bg);
    border-radius: var(--am-radius-lg);
}

.am-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: var(--am-text-light);
}

.am-empty-icon svg {
    width: 100%;
    height: 100%;
}

.am-empty-state h2 {
    margin: 0 0 10px;
    color: var(--am-dark);
}

.am-empty-state p {
    color: var(--am-text-light);
    margin-bottom: 24px;
}

/* Project Overview */
.am-project-card {
    background: var(--am-white);
    border-radius: var(--am-radius-lg);
    padding: 24px;
    box-shadow: var(--am-shadow);
    margin-bottom: 30px;
}

.am-project-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.am-status-draft { background: #fef3c7; color: #92400e; }
.am-status-pending { background: #dbeafe; color: #1e40af; }
.am-status-matched { background: #d1fae5; color: #065f46; }
.am-status-completed { background: #e2e8f0; color: #475569; }

.am-project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.am-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.am-detail-label {
    font-size: 13px;
    color: var(--am-text-light);
}

.am-detail-value {
    font-weight: 500;
    color: var(--am-dark);
}

/* Matches Section */
.am-matches-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.am-match-count {
    background: var(--am-primary);
    color: var(--am-white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.am-matches-grid {
    display: grid;
    gap: 20px;
}

/* Match Card */
.am-match-card {
    background: var(--am-white);
    border-radius: var(--am-radius-lg);
    padding: 24px;
    box-shadow: var(--am-shadow);
    position: relative;
}

.am-match-rank {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 32px;
    height: 32px;
    background: var(--am-dark);
    color: var(--am-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.am-match-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.am-office-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--am-radius);
    object-fit: cover;
}

.am-logo-placeholder {
    background: linear-gradient(135deg, var(--am-primary-light), var(--am-primary));
    color: var(--am-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.am-office-info {
    flex: 1;
}

.am-office-info h3 {
    margin: 0 0 4px;
    font-size: 18px;
    color: var(--am-dark);
}

.am-office-location {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--am-text-light);
    font-size: 14px;
    margin: 0;
}

.am-office-location svg {
    width: 14px;
    height: 14px;
}

/* Score Circle */
.am-match-score {
    text-align: center;
}

.am-score-circle {
    width: 60px;
    height: 60px;
    position: relative;
}

.am-score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.am-score-bg {
    fill: none;
    stroke: var(--am-border);
    stroke-width: 3;
}

.am-score-fill {
    fill: none;
    stroke: var(--am-success);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}

.am-score-circle span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 14px;
    color: var(--am-dark);
}

.am-score-label {
    font-size: 12px;
    color: var(--am-text-light);
}

/* Score Breakdown */
.am-score-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 16px 0;
}

.am-score-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.am-score-name {
    font-size: 12px;
    color: var(--am-text-light);
}

.am-score-bar {
    height: 6px;
    background: var(--am-border);
    border-radius: 3px;
    overflow: hidden;
}

.am-score-bar-fill {
    height: 100%;
    background: var(--am-success);
    border-radius: 3px;
}

.am-match-reason {
    background: var(--am-bg);
    padding: 12px 16px;
    border-radius: var(--am-radius);
    margin-bottom: 16px;
}

.am-match-reason strong {
    display: block;
    margin-bottom: 8px;
    color: var(--am-dark);
}

.am-match-reasoning {
    font-size: 14px;
    color: var(--am-text);
    line-height: 1.6;
}

/* Visual explanation styling */
.am-match-reasoning br + br {
    display: block;
    content: "";
    margin-top: 12px;
}

.am-match-actions {
    display: flex;
    gap: 12px;
}

.am-premium-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--am-warning);
}

.am-premium-badge svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   Office Dashboard
   ========================================================================== */

/* Stats Grid */
.am-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.am-stat-card {
    background: var(--am-white);
    border-radius: var(--am-radius);
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: var(--am-shadow);
}

.am-stat-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border-radius: var(--am-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--am-primary);
}

.am-stat-icon svg {
    width: 24px;
    height: 24px;
}

.am-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--am-dark);
    display: block;
}

.am-stat-label {
    font-size: 14px;
    color: var(--am-text-light);
}

/* Tabs */
.am-dashboard-tabs {
    background: var(--am-white);
    border-radius: var(--am-radius-lg);
    box-shadow: var(--am-shadow);
    overflow: hidden;
}

.am-tab-nav {
    display: flex;
    border-bottom: 1px solid var(--am-border);
}

.am-tab-btn {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--am-text-light);
    cursor: pointer;
    position: relative;
    transition: all var(--am-transition);
}

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

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

.am-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--am-primary);
}

.am-tab-content {
    display: none;
    padding: 30px;
}

.am-tab-content.active {
    display: block;
}

/* Upload Area */
.am-upload-area {
    border: 2px dashed var(--am-border);
    border-radius: var(--am-radius-lg);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all var(--am-transition);
    margin-bottom: 30px;
}

.am-upload-area:hover {
    border-color: var(--am-primary);
    background: #fafbff;
}

.am-upload-content svg {
    width: 48px;
    height: 48px;
    color: var(--am-text-light);
    margin-bottom: 16px;
}

.am-upload-content p {
    margin: 0;
    font-weight: 500;
    color: var(--am-text);
}

.am-upload-content span {
    font-size: 13px;
    color: var(--am-text-light);
}

/* References Grid */
.am-references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.am-reference-card {
    position: relative;
    border-radius: var(--am-radius);
    overflow: hidden;
    background: var(--am-bg);
}

.am-reference-image {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

.am-reference-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.am-reference-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity var(--am-transition);
}

.am-reference-card:hover .am-reference-overlay {
    opacity: 1;
}

.am-reference-info {
    padding: 12px;
}

.am-ai-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.am-tag {
    background: var(--am-primary);
    color: var(--am-white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.am-analyzing {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--am-text-light);
}

.am-spinner {
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

/* ==========================================================================
   Registration
   ========================================================================== */

.am-registration-header {
    text-align: center;
    margin-bottom: 40px;
}

.am-registration-header h1 {
    font-size: 32px;
    color: var(--am-dark);
    margin: 0 0 10px;
}

.am-registration-header p {
    color: var(--am-text-light);
    font-size: 18px;
    margin: 0;
}

.am-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.am-benefit {
    text-align: center;
    padding: 24px;
}

.am-benefit-icon {
    width: 56px;
    height: 56px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--am-primary);
}

.am-benefit-icon svg {
    width: 28px;
    height: 28px;
}

.am-benefit h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--am-dark);
}

.am-benefit p {
    margin: 0;
    font-size: 14px;
    color: var(--am-text-light);
}

/* Form */
.am-form {
    background: var(--am-white);
    border-radius: var(--am-radius-lg);
    box-shadow: var(--am-shadow-lg);
    padding: 40px;
}

.am-form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--am-border);
}

.am-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.am-form-section h2,
.am-form-section h3 {
    font-size: 18px;
    color: var(--am-dark);
    margin: 0 0 20px;
}

.am-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.am-field-small {
    max-width: 120px;
}

/* Checkbox & Radio */
.am-checkbox-group,
.am-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.am-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.am-checkbox,
.am-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.am-checkbox input,
.am-radio input {
    width: 18px;
    height: 18px;
    accent-color: var(--am-primary);
}

.am-form-actions {
    text-align: center;
    margin-top: 30px;
}

.am-login-link {
    text-align: center;
    margin-top: 20px;
    color: var(--am-text-light);
}

.am-login-link a {
    color: var(--am-primary);
}

/* Alert */
.am-alert {
    padding: 16px 20px;
    border-radius: var(--am-radius);
    margin-bottom: 20px;
}

.am-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.am-alert ul {
    margin: 0;
    padding-left: 20px;
}

/* ==========================================================================
   Results
   ========================================================================== */

.am-results-header {
    text-align: center;
    margin-bottom: 40px;
}

.am-success-icon {
    width: 80px;
    height: 80px;
    background: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--am-success);
}

.am-success-icon svg {
    width: 40px;
    height: 40px;
}

.am-results-header h1 {
    margin: 0 0 10px;
    color: var(--am-dark);
}

.am-results-header p {
    color: var(--am-text-light);
    margin: 0;
}

.am-project-summary {
    background: var(--am-bg);
    border-radius: var(--am-radius);
    padding: 20px;
    margin-bottom: 30px;
}

.am-project-summary h3 {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--am-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.am-summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.am-summary-tags .am-tag {
    background: var(--am-white);
    color: var(--am-text);
    border: 1px solid var(--am-border);
}

/* Result Card */
.am-results-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.am-result-card {
    background: var(--am-white);
    border-radius: var(--am-radius-lg);
    box-shadow: var(--am-shadow);
    overflow: hidden;
    position: relative;
}

.am-result-card.am-top-match {
    border: 2px solid var(--am-success);
}

.am-top-badge {
    position: absolute;
    top: 0;
    right: 24px;
    background: var(--am-success);
    color: var(--am-white);
    padding: 8px 16px;
    border-radius: 0 0 var(--am-radius) var(--am-radius);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.am-top-badge svg {
    width: 14px;
    height: 14px;
}

.am-result-main {
    padding: 24px;
    display: flex;
    gap: 24px;
    position: relative;
}

.am-result-content {
    flex: 1;
    min-width: 0;
}

.am-result-sidebar {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.am-result-rank {
    width: 36px;
    height: 36px;
    background: var(--am-dark);
    color: var(--am-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    position: absolute;
    top: -12px;
    left: -12px;
}

.am-result-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.am-office-details {
    flex: 1;
}

.am-office-details h2 {
    margin: 0 0 8px;
    font-size: 22px;
    color: var(--am-dark);
}

.am-office-meta {
    display: flex;
    gap: 16px;
    margin: 0;
}

.am-office-meta a,
.am-office-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--am-text-light);
    text-decoration: none;
}

.am-office-meta a:hover {
    color: var(--am-primary);
}

.am-office-meta svg {
    width: 16px;
    height: 16px;
}

.am-match-percentage {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.am-percentage-circle {
    width: 70px;
    height: 70px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.am-percentage-circle svg {
    width: 100%;
    height: 100%;
}

.am-circle-bg {
    fill: none;
    stroke: var(--am-border);
    stroke-width: 3;
}

.am-circle-fill {
    fill: none;
    stroke: var(--am-success);
    stroke-width: 3;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
}

.am-percentage-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 700;
    color: var(--am-dark);
}

.am-percentage-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--am-success);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.am-office-description {
    margin-bottom: 16px;
}

.am-office-description p {
    margin: 0;
    color: var(--am-text);
}

.am-score-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
}

.am-score-bar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.am-score-bar-item.am-total-match {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--am-border);
    margin-bottom: 4px;
}

.am-score-bar-item.am-total-match .am-score-bar-header span:first-child {
    font-weight: 600;
    color: var(--am-dark);
}

.am-score-bar-item.am-total-match .am-score-bar-header span:last-child {
    font-weight: 700;
    font-size: 16px;
    color: var(--am-dark);
}

.am-score-bar-total {
    height: 10px;
}

.am-score-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--am-text-light);
}

.am-premium-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--am-warning);
    font-size: 13px;
    font-weight: 500;
    margin-top: 16px;
}

.am-premium-indicator svg {
    width: 16px;
    height: 16px;
}

.am-result-actions {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    background: var(--am-bg);
    border-top: 1px solid var(--am-border);
}

.am-result-actions .am-btn {
    flex: 1;
}

/* Next Steps */
.am-next-steps {
    background: var(--am-white);
    border-radius: var(--am-radius-lg);
    padding: 30px;
    margin-bottom: 30px;
}

.am-next-steps h3 {
    margin: 0 0 20px;
    color: var(--am-dark);
}

.am-steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.am-step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.am-step-num {
    width: 32px;
    height: 32px;
    background: var(--am-primary);
    color: var(--am-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.am-step-content strong {
    display: block;
    color: var(--am-dark);
    margin-bottom: 4px;
}

.am-step-content p {
    margin: 0;
    font-size: 14px;
    color: var(--am-text-light);
}

.am-results-cta {
    text-align: center;
}

/* ==========================================================================
   Modal
   ========================================================================== */

.am-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.am-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.am-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.am-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--am-radius);
}

.am-modal-dialog {
    position: relative;
    background: var(--am-white);
    border-radius: var(--am-radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: auto;
}

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

.am-modal-header h3 {
    margin: 0;
    color: var(--am-dark);
}

.am-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--am-text-light);
}

.am-modal-body {
    padding: 24px;
}

.am-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    background: var(--am-bg);
    border-top: 1px solid var(--am-border);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .am-wizard-container,
    .am-form {
        padding: 24px;
    }

    .am-progress-steps {
        display: none;
    }

    .am-form-fields,
    .am-form-row {
        grid-template-columns: 1fr;
    }

    .am-option-cards {
        grid-template-columns: 1fr;
    }

    .am-style-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .am-match-header,
    .am-result-header {
        flex-direction: column;
        text-align: center;
    }

    .am-result-main {
        flex-direction: column;
    }

    .am-result-sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        gap: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--am-border);
    }

    .am-match-percentage {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .am-match-score,
    .am-match-percentage {
        margin-top: 0;
    }

    .am-score-details {
        flex: 1;
        margin-top: 0;
    }

    .am-score-breakdown,
    .am-score-details {
        grid-template-columns: 1fr;
    }

    .am-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .am-result-actions {
        flex-direction: column;
    }

    .am-benefits {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Inspiration Upload (Visual Matching)
   ========================================================================== */

.am-inspiration-upload {
    text-align: center;
}

.am-upload-dropzone {
    border: 2px dashed var(--am-border);
    border-radius: var(--am-radius-lg);
    padding: 40px 20px;
    margin-bottom: 24px;
    transition: all var(--am-transition);
    cursor: pointer;
    background: var(--am-bg);
}

.am-upload-dropzone:hover,
.am-upload-dropzone.dragover {
    border-color: var(--am-primary);
    background: rgba(37, 99, 235, 0.05);
}

.am-upload-dropzone.dragover {
    transform: scale(1.02);
}

.am-dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.am-upload-icon {
    width: 48px;
    height: 48px;
    color: var(--am-text-light);
}

.am-dropzone-text {
    font-size: 16px;
    color: var(--am-text);
    margin: 0;
}

.am-dropzone-hint {
    font-size: 13px;
    color: var(--am-text-light);
    margin: 0;
}

.am-btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* Inspiration Preview Grid */
.am-inspiration-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.am-inspiration-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--am-radius);
    overflow: hidden;
    background: var(--am-bg);
    border: 1px solid var(--am-border);
}

.am-inspiration-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.am-inspiration-item .am-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--am-transition);
}

.am-inspiration-item:hover .am-remove-btn {
    opacity: 1;
}

.am-inspiration-item .am-remove-btn:hover {
    background: var(--am-danger);
}

.am-inspiration-item .am-remove-btn svg {
    width: 16px;
    height: 16px;
}

.am-inspiration-item.uploading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.am-inspiration-item.uploading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 3px solid var(--am-border);
    border-top-color: var(--am-primary);
    border-radius: 50%;
    animation: am-spin 1s linear infinite;
    z-index: 1;
}

@keyframes am-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Empty Placeholder */
.am-inspiration-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: var(--am-text-light);
    font-size: 13px;
}

.am-inspiration-placeholder svg {
    width: 24px;
    height: 24px;
    opacity: 0.5;
}

.am-inspiration-counter {
    font-size: 14px;
    color: var(--am-text-light);
    margin-bottom: 16px;
}

.am-uploaded-count {
    font-weight: 600;
    color: var(--am-primary);
}

.am-inspiration-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(37, 99, 235, 0.05);
    border-radius: var(--am-radius);
    text-align: left;
    margin-bottom: 16px;
}

.am-inspiration-info svg {
    width: 20px;
    height: 20px;
    color: var(--am-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.am-inspiration-info p {
    margin: 0;
    font-size: 14px;
    color: var(--am-text);
    line-height: 1.5;
}

.am-skip-note {
    font-size: 13px;
    color: var(--am-text-light);
    font-style: italic;
}

/* Visual Match Results */
.am-visual-match {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--am-bg);
    border-radius: var(--am-radius);
    margin-bottom: 12px;
}

.am-visual-match-images {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.am-visual-match-image {
    width: 80px;
    height: 80px;
    border-radius: var(--am-radius);
    object-fit: cover;
    border: 2px solid var(--am-border);
}

.am-visual-match-image.inspiration {
    border-color: var(--am-primary);
}

.am-visual-match-arrow {
    display: flex;
    align-items: center;
    color: var(--am-text-light);
}

.am-visual-match-arrow svg {
    width: 20px;
    height: 20px;
}

.am-visual-match-info {
    flex: 1;
}

.am-visual-match-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--am-success);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.am-visual-match-analysis {
    font-size: 14px;
    color: var(--am-text);
    line-height: 1.5;
    margin: 0;
}

/* Visual Score Badge in Results */
.am-visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.am-visual-badge svg {
    width: 16px;
    height: 16px;
}

/* Responsive Inspiration Grid */
@media (max-width: 600px) {
    .am-inspiration-preview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .am-visual-match {
        flex-direction: column;
    }
    
    .am-visual-match-images {
        justify-content: center;
    }
}

/* ==========================================================================
   Office Profile Styles
   ========================================================================== */

.am-office-profile {
    max-width: 900px;
    margin: 0 auto;
}

.am-profile-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: white;
    padding: 2rem;
    border-radius: var(--am-radius-lg);
    box-shadow: var(--am-shadow);
    margin-bottom: 2rem;
    position: relative;
}

.am-profile-logo { flex-shrink: 0; }
.am-logo-large { width: 100px; height: 100px; font-size: 2rem; }
.am-profile-info { flex: 1; }
.am-profile-info h1 { margin: 0 0 0.5rem 0; font-size: 1.75rem; color: var(--am-primary); }

.am-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.am-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--am-text-light);
    font-size: 0.9rem;
}

.am-meta-item svg { width: 16px; height: 16px; }
.am-meta-type { background: var(--am-bg); padding: 0.25rem 0.75rem; border-radius: var(--am-radius); font-weight: 500; }

.am-profile-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.am-premium-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: var(--am-radius);
    font-weight: 600;
    font-size: 0.85rem;
}

.am-profile-section {
    background: white;
    padding: 2rem;
    border-radius: var(--am-radius-lg);
    box-shadow: var(--am-shadow);
    margin-bottom: 1.5rem;
}

.am-profile-section h2 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    color: var(--am-primary);
    border-bottom: 2px solid var(--am-bg);
    padding-bottom: 0.5rem;
}

.am-services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.am-service-item { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; background: var(--am-bg); border-radius: var(--am-radius); border: 2px solid transparent; }
.am-service-active { background: rgba(16, 185, 129, 0.1); border-color: var(--am-success); }
.am-service-inactive { opacity: 0.5; }
.am-service-icon { font-size: 1.5rem; }
.am-service-check { width: 20px; height: 20px; color: var(--am-success); }

.am-styles-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.am-style-tag { padding: 0.5rem 1rem; background: linear-gradient(135deg, var(--am-primary), var(--am-secondary)); color: white; border-radius: 2rem; font-size: 0.9rem; }

.am-portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.am-portfolio-item { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--am-radius); cursor: pointer; }
.am-portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.am-portfolio-item:hover img { transform: scale(1.05); }
.am-portfolio-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.am-portfolio-item:hover .am-portfolio-overlay { opacity: 1; }
.am-portfolio-delete { background: var(--am-error); color: white; border: none; padding: 0.5rem; border-radius: 50%; cursor: pointer; }
.am-portfolio-delete svg { width: 20px; height: 20px; }
.am-embedding-badge { position: absolute; bottom: 0.5rem; right: 0.5rem; background: rgba(0,0,0,0.7); padding: 0.25rem 0.5rem; border-radius: var(--am-radius); font-size: 0.75rem; }

.am-contact-details { display: flex; flex-direction: column; gap: 1rem; }
.am-contact-item { display: flex; align-items: center; gap: 1rem; }
.am-contact-item svg { width: 24px; height: 24px; color: var(--am-primary); flex-shrink: 0; }
.am-contact-item a { color: var(--am-primary); text-decoration: none; }
.am-contact-item a:hover { text-decoration: underline; }

.am-profile-back { margin-top: 2rem; text-align: center; }

.am-lightbox-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.am-lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; }
.am-lightbox-content img { max-width: 100%; max-height: 90vh; border-radius: var(--am-radius); }
.am-lightbox-close { position: absolute; top: -2rem; right: 0; background: none; border: none; color: white; font-size: 2rem; cursor: pointer; }

/* ==========================================================================
   Office Frontend Dashboard
   ========================================================================== */

.am-office-dashboard { max-width: 900px; margin: 0 auto; }

.am-dashboard-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--am-radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.am-dashboard-status svg { width: 24px; height: 24px; }
.am-status-verified { background: rgba(16, 185, 129, 0.1); color: var(--am-success); border: 1px solid var(--am-success); }
.am-status-pending { background: rgba(251, 191, 36, 0.1); color: #B45309; border: 1px solid #F59E0B; }
.am-status-rejected { background: rgba(239, 68, 68, 0.1); color: var(--am-error); border: 1px solid var(--am-error); }
.am-premium-indicator { margin-left: auto; }

.am-dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--am-border);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.am-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--am-text-light);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all 0.2s;
}

.am-tab-btn svg { width: 20px; height: 20px; }
.am-tab-btn:hover { color: var(--am-primary); }
.am-tab-btn.active { color: var(--am-primary); border-bottom-color: var(--am-primary); }
.am-tab-count { background: var(--am-bg); padding: 0.15rem 0.5rem; border-radius: 1rem; font-size: 0.8rem; }

.am-tab-content { display: none; }
.am-tab-content.active { display: block; }

.am-form-section {
    background: white;
    padding: 1.5rem;
    border-radius: var(--am-radius-lg);
    box-shadow: var(--am-shadow);
    margin-bottom: 1.5rem;
}

.am-form-section h2 { margin: 0 0 0.5rem 0; font-size: 1.25rem; color: var(--am-primary); }
.am-section-description { color: var(--am-text-light); margin-bottom: 1.5rem; }

.am-form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.am-form-group { margin-bottom: 1rem; }
.am-form-group-2 { grid-column: span 2; }
.am-form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--am-text); }
.am-form-group input, .am-form-group select, .am-form-group textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--am-border); border-radius: var(--am-radius); font-size: 1rem; }
.am-form-group textarea { resize: vertical; min-height: 100px; }
.am-form-hint { display: block; margin-top: 0.25rem; font-size: 0.85rem; color: var(--am-text-light); }

.am-radio-group, .am-checkbox-group { display: flex; flex-wrap: wrap; gap: 1rem; }
.am-radio-card, .am-checkbox-card { display: flex; align-items: center; cursor: pointer; }
.am-radio-card input, .am-checkbox-card input { display: none; }
.am-radio-content, .am-checkbox-content { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; background: var(--am-bg); border: 2px solid transparent; border-radius: var(--am-radius); transition: all 0.2s; }
.am-radio-card input:checked + .am-radio-content, .am-checkbox-card input:checked + .am-checkbox-content { background: rgba(59, 130, 246, 0.1); border-color: var(--am-primary); }
.am-radio-icon, .am-checkbox-icon { font-size: 1.5rem; }

.am-styles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
.am-style-checkbox { display: flex; align-items: center; justify-content: center; padding: 0.75rem; background: var(--am-bg); border: 2px solid transparent; border-radius: var(--am-radius); cursor: pointer; transition: all 0.2s; }
.am-style-checkbox input { display: none; }
.am-style-checkbox.selected, .am-style-checkbox:has(input:checked) { background: rgba(59, 130, 246, 0.1); border-color: var(--am-primary); }

.am-form-actions { display: flex; gap: 1rem; margin-top: 1rem; }
.am-btn-large { padding: 1rem 2rem; font-size: 1.1rem; }

.am-upload-area { border: 2px dashed var(--am-border); border-radius: var(--am-radius-lg); padding: 2rem; text-align: center; cursor: pointer; transition: all 0.2s; }
.am-upload-area:hover, .am-upload-area.dragover { border-color: var(--am-primary); background: rgba(59, 130, 246, 0.05); }
.am-upload-content svg { width: 48px; height: 48px; color: var(--am-text-light); margin-bottom: 1rem; }
.am-upload-hint { display: block; color: var(--am-text-light); font-size: 0.9rem; margin-top: 0.5rem; }

.am-empty-state { text-align: center; padding: 3rem; color: var(--am-text-light); }
.am-empty-state svg { width: 64px; height: 64px; margin-bottom: 1rem; opacity: 0.5; }

.am-matches-list { display: flex; flex-direction: column; gap: 1rem; }
.am-match-card { background: var(--am-bg); border-radius: var(--am-radius); padding: 1.25rem; }
.am-match-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.am-match-type { font-weight: 500; }
.am-match-score { text-align: center; }
.am-score-value { display: block; font-size: 1.5rem; font-weight: bold; color: var(--am-success); }
.am-score-label { font-size: 0.75rem; color: var(--am-text-light); }
.am-match-details { display: flex; gap: 1.5rem; margin-bottom: 0.75rem; }
.am-match-detail { display: flex; align-items: center; gap: 0.5rem; color: var(--am-text-light); font-size: 0.9rem; }
.am-match-detail svg { width: 16px; height: 16px; }
.am-match-description { color: var(--am-text); margin-bottom: 1rem; line-height: 1.5; }
.am-match-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.am-mini-score { font-size: 0.8rem; }
.am-mini-label { display: block; color: var(--am-text-light); margin-bottom: 0.25rem; }
.am-mini-bar { height: 4px; background: var(--am-border); border-radius: 2px; overflow: hidden; }
.am-mini-bar div { height: 100%; background: var(--am-primary); border-radius: 2px; }

.am-toggle-setting { display: flex; align-items: flex-start; gap: 1rem; cursor: pointer; padding: 1rem; background: var(--am-bg); border-radius: var(--am-radius); }
.am-toggle-setting input { display: none; }
.am-toggle-slider { width: 50px; height: 26px; background: var(--am-border); border-radius: 13px; position: relative; flex-shrink: 0; transition: background 0.2s; }
.am-toggle-slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: white; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.am-toggle-setting input:checked + .am-toggle-slider { background: var(--am-primary); }
.am-toggle-setting input:checked + .am-toggle-slider::after { transform: translateX(24px); }
.am-toggle-text strong { display: block; margin-bottom: 0.25rem; }
.am-toggle-text small { color: var(--am-text-light); }

.am-account-info { background: var(--am-bg); padding: 1rem; border-radius: var(--am-radius); margin-bottom: 1rem; }
.am-info-row { display: flex; gap: 1rem; padding: 0.5rem 0; }
.am-info-label { color: var(--am-text-light); min-width: 120px; }
.am-account-actions { display: flex; gap: 1rem; }
.am-btn-outline { background: transparent; border: 2px solid var(--am-border); color: var(--am-text); }
.am-btn-outline:hover { border-color: var(--am-primary); color: var(--am-primary); }

.am-alert { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.5rem; border-radius: var(--am-radius); margin-bottom: 1.5rem; }
.am-alert svg { width: 24px; height: 24px; flex-shrink: 0; }
.am-alert-success { background: rgba(16, 185, 129, 0.1); color: var(--am-success); border: 1px solid var(--am-success); }

@media (max-width: 768px) {
    .am-profile-header { flex-direction: column; text-align: center; }
    .am-profile-meta { justify-content: center; }
    .am-profile-actions { justify-content: center; }
    .am-premium-badge { position: static; margin-top: 1rem; }
    .am-form-row { grid-template-columns: 1fr; }
    .am-form-group-2 { grid-column: span 1; }
    .am-dashboard-tabs { justify-content: flex-start; }
}
