* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --shopify-blue: #0066FF;
    --shopify-blue-dark: #0052CC;
    --shopify-blue-light: #3b82f6;
    --shopify-text: #202223;
    --shopify-text-secondary: #6d7175;
    --shopify-border: #e1e3e5;
    --shopify-bg: #f6f6f7;
    --shopify-white: #ffffff;
    --shopify-error: #d72c0d;
    --shopify-warning: #ffc453;
    --shopify-success: #0066FF;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--shopify-text);
    line-height: 1.5;
    background-color: var(--shopify-bg);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header - Shopify Style */
.main-header {
    background: var(--shopify-white);
    border-bottom: 1px solid var(--shopify-border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--shopify-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.logo i {
    color: #7C3AED;
    font-size: 24px;
}

.header-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 100%;
}

.header-menu li {
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.header-menu a {
    text-decoration: none;
    color: var(--shopify-text);
    font-weight: 400;
    font-size: 14px;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: color 0.15s ease;
}

.header-menu a:hover {
    color: var(--shopify-blue);
}

.header-menu .btn {
    margin-left: 8px;
    height: auto;
    padding: 8px 16px;
}

.header-menu .btn-primary {
    background: #7C3AED;
    border-color: #7C3AED;
    color: white;
}

.header-menu .btn-primary:hover {
    background: #6D28D9;
    border-color: #6D28D9;
    color: white;
}

/* Buttons - Shopify Style */
.btn {
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    transition: all 0.15s ease;
    font-family: inherit;
}

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

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

/* Dashboard-specific button styles - more subtle */
.store-dashboard .btn-primary,
.dashboard .btn-primary {
    background: #5c6ac4;
    border-color: #5c6ac4;
}

.store-dashboard .btn-primary:hover,
.dashboard .btn-primary:hover {
    background: #4c5aa8;
    border-color: #4c5aa8;
}

.btn-secondary {
    background: var(--shopify-white);
    color: var(--shopify-text);
    border-color: var(--shopify-border);
}

.btn-secondary:hover {
    background: var(--shopify-bg);
    border-color: var(--shopify-border);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-large {
    padding: 12px 24px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

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

.btn-danger:hover {
    background: #b8250b;
    border-color: #b8250b;
}

/* Professional icon buttons for dashboard */
.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #e1e3e5;
    background: #ffffff;
    color: #6d7175;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    font-size: 13px;
    padding: 0;
}

.btn-icon:hover {
    background: #f6f6f7;
    border-color: #c9cccf;
    color: #202223;
}

.btn-icon-danger:hover {
    background: #f6f6f7;
    border-color: #c9cccf;
    color: #d72c0d;
}

/* Hero Section - Shopify Style */
.hero {
    background: linear-gradient(180deg, #fafbfc 0%, var(--shopify-white) 100%);
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid var(--shopify-border);
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--shopify-text);
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 32px;
    color: var(--shopify-text-secondary);
    font-weight: 400;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features - Shopify Style */
.features {
    padding: 80px 20px;
    background: var(--shopify-white);
}

.features-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 48px;
    color: var(--shopify-text);
    letter-spacing: -0.5px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 32px;
    background: var(--shopify-white);
    border: 1px solid var(--shopify-border);
    border-radius: 8px;
    text-align: left;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    background: var(--shopify-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 24px;
    color: var(--shopify-blue);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--shopify-text);
}

.feature-card p {
    color: var(--shopify-text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    background: var(--shopify-white);
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid var(--shopify-border);
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--shopify-text);
    letter-spacing: -0.5px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 32px;
    color: var(--shopify-text-secondary);
}

/* Dashboard - Shopify Style */
.dashboard {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
    background: #f6f6f7;
    min-height: calc(100vh - 60px);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 8px;
    border: 1px solid #e1e3e5;
}

.dashboard-header h1 {
    font-size: 20px;
    font-weight: 600;
    color: #202223;
    letter-spacing: -0.2px;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e1e3e5;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #c9cccf;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: #f6f6f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 24px;
    color: #5c6ac4;
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #202223;
    letter-spacing: -0.5px;
}

.stat-info p {
    font-size: 13px;
    color: #6d7175;
    margin: 0;
}

.stores-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #202223;
    letter-spacing: -0.2px;
}

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

.store-card {
    background: #ffffff;
    border: 1px solid #e1e3e5;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.store-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #c9cccf;
    transform: translateY(-1px);
}

.store-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.store-logo {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--shopify-border);
}

.store-logo-placeholder {
    width: 48px;
    height: 48px;
    background: #f6f6f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6d7175;
    font-size: 20px;
    border: 1px solid #e1e3e5;
}

.store-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #202223;
    letter-spacing: -0.2px;
}

.store-description {
    color: #6d7175;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.store-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.store-actions .btn-icon {
    margin-left: auto;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--shopify-white);
    border: 1px solid var(--shopify-border);
    border-radius: 8px;
}

.empty-state i {
    font-size: 48px;
    color: var(--shopify-border);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--shopify-text);
}

.empty-state p {
    color: var(--shopify-text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
}

/* Auth Pages - Shopify Style */
.auth-container {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f5f0ff 100%);
    position: relative;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(124, 58, 237, 0.1);
    position: relative;
    z-index: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.auth-card h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
    color: #2d3748;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 15px;
    color: #6d7175;
    text-align: center;
    margin: 0;
}

.auth-form {
    margin-top: 32px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #2d3748;
    letter-spacing: -0.2px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #6d7175;
    font-size: 16px;
    z-index: 1;
    pointer-events: none;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid #e1e3e5;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #ffffff;
    color: #2d3748;
    transition: all 0.2s ease;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: #7C3AED;
}

/* Dashboard form focus - more subtle */
.store-dashboard .form-group input:focus,
.store-dashboard .form-group textarea:focus,
.store-dashboard .form-group select:focus,
.dashboard .form-group input:focus,
.dashboard .form-group textarea:focus,
.dashboard .form-group select:focus {
    border-color: #5c6ac4;
    box-shadow: 0 0 0 1px #5c6ac4;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 100%);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #6D28D9 0%, #7C3AED 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-submit-btn i {
    font-size: 14px;
}

.auth-footer {
    margin-top: 32px;
    text-align: center;
}

    .auth-link {
        margin: 8px 0;
        color: #6d7175;
        font-size: 14px;
    }

/* Responsive Auth Styles */
@media (max-width: 768px) {
    .auth-card {
        padding: 36px 28px;
        max-width: 100%;
    }

    .auth-logo {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .auth-card h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 20px 16px;
    }

    .auth-card {
        padding: 32px 24px;
        border-radius: 12px;
    }

    .auth-logo {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-bottom: 16px;
    }

    .auth-card h2 {
        font-size: 22px;
    }

    .auth-subtitle {
        font-size: 14px;
    }

    .form-group input {
        padding: 12px 14px 12px 40px;
        font-size: 14px;
    }

    .input-icon {
        left: 14px;
        font-size: 14px;
    }
}

.auth-link a {
    color: #7C3AED;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-link a:hover {
    color: #6D28D9;
    text-decoration: underline;
}

.auth-link-secondary {
    color: #6d7175 !important;
    font-weight: 400 !important;
}

.auth-link-secondary:hover {
    color: #7C3AED !important;
    text-decoration: underline !important;
}

.auth-link a {
    color: var(--shopify-blue);
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Page Container - Shopify Style */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    background: #f6f6f7;
    min-height: calc(100vh - 60px);
}

.page-header {
    margin-bottom: 24px;
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 8px;
    border: 1px solid #e1e3e5;
}

.page-header h1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #202223;
    letter-spacing: -0.2px;
}

.page-header p {
    color: #6d7175;
    font-size: 14px;
    margin: 0;
}

.store-form {
    background: var(--shopify-white);
    border: 1px solid var(--shopify-border);
    border-radius: 8px;
    padding: 24px;
}

.form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e1e3e5;
}

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

.form-section h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #202223;
    letter-spacing: -0.2px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #6d7175;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 1px solid #e1e3e5;
    margin-top: 24px;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.template-card {
    cursor: pointer;
}

.template-card input[type="radio"] {
    display: none;
}

.template-preview {
    border: 2px solid var(--shopify-border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.15s ease;
    background: var(--shopify-white);
}

.template-card input[type="radio"]:checked + .template-preview {
    border-color: var(--shopify-blue);
    background: rgba(0, 102, 255, 0.05);
}

.template-preview:hover {
    border-color: var(--shopify-blue);
}

.template-placeholder {
    width: 100%;
    height: 120px;
    background: var(--shopify-bg);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--shopify-blue);
    font-size: 32px;
    border: 1px solid var(--shopify-border);
}

.template-preview h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--shopify-text);
}

.template-preview p {
    font-size: 13px;
    color: var(--shopify-text-secondary);
    line-height: 1.4;
}

.current-image {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
    display: block;
    border: 1px solid var(--shopify-border);
}

/* Editor - Shopify Style */
.editor-container {
    display: flex;
    min-height: calc(100vh - 60px);
    background: var(--shopify-bg);
}

.editor-sidebar {
    width: 240px;
    background: var(--shopify-white);
    border-right: 1px solid var(--shopify-border);
    padding: 0;
}

.editor-sidebar h3 {
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    border-bottom: 1px solid var(--shopify-border);
    color: var(--shopify-text);
}

.editor-menu {
    list-style: none;
    padding: 8px;
}

.editor-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--shopify-text);
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 14px;
    transition: background 0.15s ease;
}

.editor-menu a:hover,
.editor-menu a.active {
    background: var(--shopify-bg);
    color: var(--shopify-blue);
}

.editor-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.editor-section {
    display: none;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--shopify-border);
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--shopify-text);
}

.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--shopify-white);
    border: 1px solid var(--shopify-border);
    border-radius: 8px;
    padding: 16px;
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid var(--shopify-border);
}

.image-placeholder {
    width: 100%;
    height: 200px;
    background: var(--shopify-bg);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--shopify-text-secondary);
    font-size: 48px;
    margin-bottom: 12px;
    border: 1px solid var(--shopify-border);
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--shopify-text);
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    margin: 8px 0;
    color: var(--shopify-text);
}

.compare-price {
    text-decoration: line-through;
    color: var(--shopify-text-secondary);
    font-size: 14px;
    margin-left: 8px;
    font-weight: 400;
}

.product-status {
    font-size: 12px;
    color: var(--shopify-text-secondary);
    margin-bottom: 12px;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.theme-editor {
    background: var(--shopify-white);
    border: 1px solid var(--shopify-border);
    border-radius: 8px;
    padding: 24px;
}

/* Modal - Shopify Style */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    overflow: auto;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--shopify-white);
    margin: 60px auto;
    padding: 24px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    border: 1px solid var(--shopify-border);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    color: var(--shopify-text-secondary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.close:hover {
    background: var(--shopify-bg);
    color: var(--shopify-text);
}

.modal-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--shopify-text);
    padding-right: 40px;
}

/* Alerts - Shopify Style */
.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    border: 2px solid;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

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

.alert i {
    font-size: 16px;
}

/* Footer - Shopify Style */
.main-footer {
    background: var(--shopify-white);
    border-top: 1px solid var(--shopify-border);
    padding: 24px 20px;
    text-align: center;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.main-footer p {
    margin: 0;
    color: var(--shopify-text-secondary);
    font-size: 13px;
}

/* Navbar (for logged in users) */
.navbar {
    background: var(--shopify-white);
    border-bottom: 1px solid var(--shopify-border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--shopify-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.nav-logo i {
    color: var(--shopify-blue);
    font-size: 24px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-menu li {
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--shopify-text);
    font-weight: 400;
    font-size: 14px;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.15s ease;
}

.nav-menu a:hover {
    color: var(--shopify-blue);
}

.nav-user {
    position: relative;
}

.nav-user .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--shopify-white);
    border: 1px solid var(--shopify-border);
    border-radius: 8px;
    list-style: none;
    padding: 8px;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 8px;
}

.nav-user:hover .dropdown {
    display: block;
}

.nav-user .dropdown a {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--shopify-text);
    border-radius: 6px;
    font-size: 14px;
}

.nav-user .dropdown a:hover {
    background: var(--shopify-bg);
    color: var(--shopify-blue);
}

/* Error Page */
.error-container {
    text-align: center;
    padding: 120px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.error-container h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--shopify-text);
}

.error-container p {
    font-size: 16px;
    margin-bottom: 32px;
    color: var(--shopify-text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .features-title {
        font-size: 28px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    .cta-section p {
        font-size: 16px;
    }

    .dashboard {
        padding: 16px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
    }

    .dashboard-header h1 {
        font-size: 18px;
    }

    .dashboard-header .btn {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-icon i {
        font-size: 20px;
    }

    .stat-info h3 {
        font-size: 20px;
    }

    .stores-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .store-card {
        padding: 16px;
    }

    .store-header {
        gap: 10px;
    }

    .store-logo,
    .store-logo-placeholder {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .store-card h3 {
        font-size: 15px;
    }

    .store-description {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .store-actions {
        flex-direction: column;
        gap: 8px;
    }

    .store-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .store-actions .btn-icon {
        width: 100%;
        height: auto;
        padding: 10px;
        justify-content: center;
        margin-left: 0;
    }

    .editor-container {
        flex-direction: column;
    }

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

    .editor-menu {
        display: flex;
        overflow-x: auto;
        padding: 8px;
    }

    .editor-menu li {
        flex-shrink: 0;
    }

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

    .header-menu {
        gap: 0;
    }

    .header-menu a {
        padding: 0 12px;
        font-size: 13px;
    }

    .header-container {
        padding: 0 16px;
        height: 50px;
    }

    .logo {
        font-size: 18px;
    }

    .logo i {
        font-size: 20px;
    }

    .header-menu a {
        padding: 0 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 12px;
        height: 48px;
    }

    .logo {
        font-size: 16px;
    }

    .logo i {
        font-size: 18px;
    }

    .header-menu {
        gap: 0;
    }

    .header-menu a {
        padding: 0 8px;
        font-size: 11px;
    }
}
