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

body {
    font-family: 'Inter', sans-serif;
    background: #0a0e17;
    color: #e2e8f0;
}

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --gold: #f59e0b;
    --silver: #94a3b8;
    --bronze: #b45309;
    --white: #ffffff;
    --gray-100: #1e2430;
    --gray-200: #2a3140;
    --gray-500: #6b7280;
    --gray-700: #9ca3af;
    --gray-900: #f1f5f9;
    --card-bg: #111827;
}

/* Header Styles */
.header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--gray-200);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gray-200);
    padding: 6px 16px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-menu:hover {
    background: var(--gray-100);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 32px auto;
    padding: 0 24px;
}

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

.stat-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.stat-card h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

/* Button Styles */
.btn-sm {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

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

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

.btn-outline {
    background: var(--gray-200);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.btn-outline:hover {
    background: var(--gray-100);
}

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

.btn-warning:hover {
    background: #e67e22;
}

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

.btn-success:hover {
    background: #059669;
}

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

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

/* Level Badge */
.level-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.level-gold {
    background: #fef3c7;
    color: #b45309;
}

.level-silver {
    background: #f1f5f9;
    color: #334155;
}

.level-bronze {
    background: #ffedd5;
    color: #9a3412;
}

/* Shop Card */
.shop-card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.2s;
}

.shop-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.shop-header {
    padding: 20px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.shop-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.shop-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.shop-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.shop-rating {
    font-size: 12px;
    color: var(--gray-500);
}

.shop-rating i {
    color: #f59e0b;
}

.shop-body {
    padding: 20px;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.metric-card {
    background: var(--gray-200);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.metric-label {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Product Row */
.product-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
}

.product-name {
    font-weight: 500;
    color: var(--gray-700);
}

.product-price {
    font-weight: 600;
    color: var(--primary);
}

.product-stock {
    font-size: 12px;
    color: var(--gray-500);
}

/* Assets Section */
.assets-section {
    background: var(--gray-200);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
}

.assets-section h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.asset-item,
.liability-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 12px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

/* Share Section */
.share-section {
    margin: 16px 0;
}

.share-section strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

.share-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: white;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.9;
}

.share-facebook {
    background: #1877f2;
}

.share-twitter {
    background: #1da1f2;
}

.share-whatsapp {
    background: #25d366;
}

.share-linkedin {
    background: #0077b5;
}

.share-copy {
    background: var(--gray-500);
}

/* Chart Container */
.chart-container {
    height: 180px;
    margin: 16px 0;
}

/* Shop Actions */
.shop-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

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

.modal.active {
    display: flex;
}

.modal-card {
    background: var(--card-bg);
    border-radius: 24px;
    width: 100%;
    max-width: 550px;
    padding: 28px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 20px;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--gray-700);
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-500);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--gray-200);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    color: white;
}

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

.btn-submit {
    background: var(--primary);
    color: white;
    padding: 12px;
    border-radius: 40px;
    border: none;
    width: 100%;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

/* Info Box */
.info-box {
    background: var(--gray-200);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px;
    color: var(--gray-500);
    font-size: 12px;
    border-top: 1px solid var(--gray-200);
    margin-top: 40px;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 700px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}