/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-gray: #475569;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-lg: 16px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn-primary,
.btn-outline,
.btn-whatsapp,
.btn-full {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-outline {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #f8fafc 100%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.icon-badge {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    color: var(--primary);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-title .highlight {
    display: block;
    color: var(--primary);
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon.blue {
    background: #dbeafe;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.9375rem;
}

/* How It Works */
.how-it-works {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.step-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.step-content p {
    color: var(--text-gray);
    font-size: 0.9375rem;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 5rem;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.admin-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Builder Page */
.builder-page {
    min-height: 100vh;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #dbeafe 50%, #f8fafc 100%);
}

.progress-section {
    margin-bottom: 2.5rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: #cbd5e1;
    color: #64748b;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.step-circle.completed {
    background: #10b981;
    color: white;
}

.step-circle.active {
    background: var(--primary);
    color: white;
}

.step-label {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-gray);
    text-align: center;
}

.progress-line {
    position: absolute;
    top: 24px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: #cbd5e1;
    z-index: 1;
}

.progress-line.completed {
    background: #10b981;
}

.selection-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    margin-bottom: 2rem;
}

.step-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.component-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.component-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.component-card.selected {
    border-color: var(--primary);
    background: #eff6ff;
}

.component-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.component-radio {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.component-price {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-dark);
}

.component-name {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.component-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.component-description {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.color-selector {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.color-selector p {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.color-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    border: 2px solid var(--border);
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Extras - Checkbox style */
.extras-grid .component-card {
    position: relative;
}

.component-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* Navigation Bar */
.navigation-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.price-display {
    text-align: center;
}

.price-display p:first-child {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.25rem;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Review Screen */
.review-screen {
    max-width: 800px;
    margin: 0 auto;
}

.review-list {
    margin-bottom: 2rem;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.review-item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    text-transform: capitalize;
}

.review-item-info p {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.review-item-info .color-tag {
    font-size: 0.75rem;
    color: var(--primary);
    margin-top: 0.25rem;
}

.review-item-price {
    font-weight: 700;
    font-size: 1.125rem;
}

.extras-section {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.extras-section h4 {
    margin-bottom: 1rem;
}

.extra-item {
    display: flex;
    justify-content: space-between;
    padding: 0.875rem;
    background: #eff6ff;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    margin-bottom: 2rem;
}

.total-section span:first-child {
    font-size: 1.25rem;
    font-weight: 700;
}

.price-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

/* Success Screen */
.success-screen {
    max-width: 700px;
    margin: 0 auto;
}

.success-card {
    text-align: center;
}

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

.success-card h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.code-display {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.code-display p:first-child {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.build-code {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.1em;
    font-family: 'Space Grotesk', monospace;
}

.price-display-large {
    background: #eff6ff;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.price-display-large p:first-child {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.action-buttons button {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.125rem;
}

.success-note {
    font-size: 0.875rem;
    color: var(--text-gray);
    padding-top: 1rem;
}

/* Admin Login */
.admin-body {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-container {
    width: 100%;
    max-width: 450px;
    padding: 1.5rem;
}

.login-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.login-icon {
    width: 64px;
    height: 64px;
    background: #dbeafe;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.login-card h1 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.back-link {
    text-align: center;
    margin-top: 1.5rem;
}

.back-link a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.875rem;
}

.back-link a:hover {
    color: var(--primary);
}

/* Admin Dashboard */
.admin-dashboard {
    min-height: 100vh;
    background: var(--bg-light);
}

.admin-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 1.75rem;
}

.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 73px);
}

.sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid var(--border);
    padding: 1.5rem 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius);
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

.dashboard-main {
    flex: 1;
    padding: 2.5rem;
    overflow-x: hidden;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
}

/* Components Manager */
.components-manager {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.category-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-section h3 .count {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-gray);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.admin-component-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.admin-component-card:hover {
    box-shadow: var(--shadow-lg);
}

.component-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.component-card-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.component-card-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.component-card-desc {
    font-size: 0.8125rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.colors-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.color-badge {
    font-size: 0.75rem;
    background: #eff6ff;
    color: var(--primary);
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

.btn-danger:hover {
    background: #dc2626;
}

/* Orders */
.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-bar input {
    flex: 1;
    padding: 0.875rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
}

.search-result {
    margin-bottom: 2.5rem;
}

.subsection-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.builds-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.build-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.build-card:hover {
    box-shadow: var(--shadow-lg);
}

.build-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.build-code-display {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Space Grotesk', monospace;
}

.build-total {
    font-size: 1.5rem;
    font-weight: 700;
}

.build-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.build-details {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.build-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.build-detail-item {
    font-size: 0.875rem;
}

.build-detail-item .label {
    color: var(--text-gray);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.build-detail-item .value {
    font-weight: 600;
}

.build-detail-item .price {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.build-extras {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 1rem;
}

.build-extras .label {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.extras-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.extra-item-small {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem;
    background: #eff6ff;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

/* Statistics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.stat-card-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

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

.stat-icon.blue {
    background: #dbeafe;
    color: var(--primary);
}

.stat-icon.purple {
    background: #ede9fe;
    color: #7c3aed;
}

.stat-icon.green {
    background: #d1fae5;
    color: var(--success);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.popular-components {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.popular-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 2rem;
}

.popular-icon {
    width: 40px;
    height: 40px;
    background: #fed7aa;
    color: #ea580c;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popular-header h3 {
    font-size: 1.5rem;
}

.popular-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.popular-category h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.popular-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.popular-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.popular-item-name {
    color: var(--text-dark);
}

.popular-item-count {
    font-weight: 600;
    color: var(--primary);
}

/* Settings */
.settings-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 700px;
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

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

.settings-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.settings-header p {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
}

.form-actions button {
    flex: 1;
}

.warning-box {
    padding: 1rem;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: #92400e;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-group input[type=\"checkbox\"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

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

.modal-header h2 {
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-gray);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--text-dark);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    display: none;
    align-items: center;
    gap: 0.75rem;
    z-index: 2000;
    animation: slideIn 0.3s ease;
}

.toast.active {
    display: flex;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
    }
    to {
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .components-grid,
    .category-grid,
    .builds-list {
        grid-template-columns: 1fr;
    }

    .navigation-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .navigation-bar button {
        width: 100%;
    }
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-gray);
}

/* Message Banner */
.message-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
}

.message-banner.info {
    background: #dbeafe;
    color: #1e3a8a;
    border-bottom: 3px solid var(--primary);
}

.message-banner.success {
    background: #d1fae5;
    color: #065f46;
    border-bottom: 3px solid var(--success);
}

.message-banner.warning {
    background: #fef3c7;
    color: #92400e;
    border-bottom: 3px solid var(--warning);
}

.message-banner.error {
    background: #fee2e2;
    color: #991b1b;
    border-bottom: 3px solid var(--danger);
}

.message-content {
    flex: 1;
    font-weight: 500;
    font-size: 1rem;
}

.message-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0 0.5rem;
    transition: opacity 0.2s;
}

.message-close:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Admin Messages */
.info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.current-message {
    margin-bottom: 2rem;
}

.message-preview-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.message-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.message-preview-text {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
}

.message-preview-text.info {
    background: #dbeafe;
    color: #1e3a8a;
}

.message-preview-text.success {
    background: #d1fae5;
    color: #065f46;
}

.message-preview-text.warning {
    background: #fef3c7;
    color: #92400e;
}

.message-preview-text.error {
    background: #fee2e2;
    color: #991b1b;
}

.message-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.message-form-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.message-form-card h3 {
    margin-bottom: 1.5rem;
}
