/* CSS Reset & Variables */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: linear-gradient(145deg, rgba(26, 26, 37, 0.9), rgba(18, 18, 26, 0.95));
    --bg-card-hover: linear-gradient(145deg, rgba(30, 30, 42, 0.95), rgba(22, 22, 30, 0.98));

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);

    --accent-blue: #4f8cff;
    --accent-purple: #a855f7;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --accent-cyan: #06b6d4;

    --gradient-blue: linear-gradient(135deg, #4f8cff, #06b6d4);
    --gradient-purple: linear-gradient(135deg, #a855f7, #6366f1);
    --gradient-green: linear-gradient(135deg, #10b981, #06b6d4);
    --gradient-orange: linear-gradient(135deg, #f59e0b, #ef4444);

    --border-color: rgba(255, 255, 255, 0.08);
    --border-active: rgba(255, 255, 255, 0.15);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow-blue: 0 0 30px rgba(79, 140, 255, 0.3);
    --shadow-glow-purple: 0 0 30px rgba(168, 85, 247, 0.3);
    --shadow-glow-green: 0 0 30px rgba(16, 185, 129, 0.3);
    --shadow-glow-orange: 0 0 30px rgba(245, 158, 11, 0.3);

    /* Spacing */
    --sidebar-width: 260px;
    --header-height: 80px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Base Styles */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-blue);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow-blue);
}

.logo-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    padding: 20px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-blue);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(79, 140, 255, 0.1);
    color: var(--accent-blue);
}

.nav-item.active::before {
    opacity: 1;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    background: var(--gradient-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

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

.user-role {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-primary);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-top: 4px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.date-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.date-filter-group label {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    font-weight: 500;
}

.date-filter-group input[type="date"] {
    padding: 6px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: all var(--transition-fast);
}

.date-filter-group input[type="date"]:hover,
.date-filter-group input[type="date"]:focus {
    border-color: var(--accent-blue);
}

.date-filter-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.clear-btn {
    padding: 6px 12px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--accent-red);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.clear-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: var(--accent-red);
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-blue);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-glow-blue);
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(79, 140, 255, 0.4);
}

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

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - var(--header-height));
    gap: 20px;
}

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

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

.loading-state p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Dashboard Content */
.dashboard-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0.8;
}

.stat-card.gradient-blue::before {
    background: var(--gradient-blue);
}

.stat-card.gradient-purple::before {
    background: var(--gradient-purple);
}

.stat-card.gradient-green::before {
    background: var(--gradient-green);
}

.stat-card.gradient-orange::before {
    background: var(--gradient-orange);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-active);
    box-shadow: var(--shadow-lg);
}

.stat-card.gradient-blue:hover {
    box-shadow: var(--shadow-glow-blue);
}

.stat-card.gradient-purple:hover {
    box-shadow: var(--shadow-glow-purple);
}

.stat-card.gradient-green:hover {
    box-shadow: var(--shadow-glow-green);
}

.stat-card.gradient-orange:hover {
    box-shadow: var(--shadow-glow-orange);
}

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

.stat-card.gradient-blue .stat-icon {
    background: rgba(79, 140, 255, 0.15);
    color: var(--accent-blue);
}

.stat-card.gradient-purple .stat-icon {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-purple);
}

.stat-card.gradient-green .stat-icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.stat-card.gradient-orange .stat-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-orange);
}

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

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-change {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive {
    color: var(--accent-green);
}

.stat-change.negative {
    color: var(--accent-red);
}

/* Charts Row */
.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.chart-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.chart-card:hover {
    border-color: var(--border-active);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.chart-container {
    position: relative;
    height: 280px;
}

.chart-container.doughnut {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tables Row */
.tables-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.table-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.table-card:hover {
    border-color: var(--border-active);
}

.table-card.full-width {
    grid-column: 1 / -1;
}

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

.table-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.badge {
    padding: 6px 12px;
    background: rgba(79, 140, 255, 0.15);
    color: var(--accent-blue);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.table-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.table-filters select {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    outline: none;
    transition: all var(--transition-fast);
}

.table-filters select:hover,
.table-filters select:focus {
    border-color: var(--accent-blue);
}

.search-input {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
    outline: none;
    transition: all var(--transition-fast);
    min-width: 200px;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.search-input:hover,
.search-input:focus {
    border-color: var(--accent-blue);
}

.page-section {
    padding: 32px;
}

.page-content {
    flex-direction: column;
}

.table-container {
    overflow-x: auto;
}

.table-container.scrollable {
    max-height: 400px;
    overflow-y: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 14px 24px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background var(--transition-fast);
}

.data-table th.sortable:hover {
    background: var(--bg-secondary);
    color: var(--accent-blue);
}

.sort-icon {
    display: inline-block;
    margin-left: 4px;
    opacity: 0.5;
}

.sort-icon.asc::after {
    content: '▲';
    font-size: 0.6rem;
}

.sort-icon.desc::after {
    content: '▼';
    font-size: 0.6rem;
}

.sort-icon.asc,
.sort-icon.desc {
    opacity: 1;
    color: var(--accent-blue);
}

.data-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.data-table tbody tr {
    transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges in Tables */
.status-badge {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-orange);
}

.status-badge.cancel,
.status-badge.cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.status-badge.paid {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

/* Customer Cell */
.customer-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.customer-name {
    font-weight: 500;
}

.customer-phone {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* Amount */
.amount {
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.amount.highlight {
    color: var(--accent-green);
}

/* Team Member Cell */
.team-member {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Pagination */
.table-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

.table-pagination button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.table-pagination button:hover:not(:disabled) {
    background: var(--bg-secondary);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

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

.table-pagination button svg {
    width: 16px;
    height: 16px;
}

#pageInfo {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* Recent Orders Section */
.recent-orders {
    margin-top: 0;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts-row {
        grid-template-columns: 1fr;
    }

    .chart-card.large {
        order: 0;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
    }

    .logo-text,
    .nav-item span,
    .user-details {
        display: none;
    }

    .logo {
        justify-content: center;
        padding: 20px 12px;
    }

    .nav-item {
        justify-content: center;
        padding: 14px;
    }

    .user-info {
        justify-content: center;
    }

    .main-content {
        margin-left: 80px;
    }

    .tables-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

    .header {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-content {
        padding: 16px;
    }

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

    .stat-card {
        padding: 20px;
    }

    .table-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .table-filters {
        width: 100%;
    }

    .table-filters select {
        flex: 1;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card,
.chart-card,
.table-card {
    animation: fadeIn 0.5s ease forwards;
}

.stats-grid .stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stats-grid .stat-card:nth-child(2) {
    animation-delay: 0.15s;
}

.stats-grid .stat-card:nth-child(3) {
    animation-delay: 0.2s;
}

.stats-grid .stat-card:nth-child(4) {
    animation-delay: 0.25s;
}

.charts-row .chart-card:nth-child(1) {
    animation-delay: 0.3s;
}

.charts-row .chart-card:nth-child(2) {
    animation-delay: 0.35s;
}

/* Open Shop Button */
.open-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(79, 140, 255, 0.15);
    border: 1px solid rgba(79, 140, 255, 0.3);
    border-radius: var(--radius-sm);
    color: var(--accent-blue);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.open-shop-btn:hover {
    background: rgba(79, 140, 255, 0.25);
    border-color: var(--accent-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 140, 255, 0.3);
}

.open-shop-btn svg {
    width: 14px;
    height: 14px;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(79, 140, 255, 0.15);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-content {
    padding: 32px;
}

/* Shop Detail Header */
.shop-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.shop-avatar {
    width: 72px;
    height: 72px;
    background: var(--gradient-blue);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-glow-blue);
}

.shop-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.shop-title p {
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

/* Shop Detail Grid */
.shop-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.detail-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.detail-card:hover {
    border-color: var(--border-active);
    transform: translateY(-2px);
}

.detail-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon svg {
    width: 20px;
    height: 20px;
}

.detail-icon.blue {
    background: rgba(79, 140, 255, 0.15);
    color: var(--accent-blue);
}

.detail-icon.purple {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-purple);
}

.detail-icon.green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.detail-icon.orange {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-orange);
}

.detail-icon.cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
}

/* Address Card */
.address-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    transition: all var(--transition-fast);
}

.address-card:hover {
    border-color: var(--border-active);
}

.address-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.address-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
    white-space: pre-wrap;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Shop Stats Row */
.shop-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.shop-stat {
    text-align: center;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.shop-stat.highlight {
    background: rgba(79, 140, 255, 0.1);
    border-color: rgba(79, 140, 255, 0.3);
}

.shop-stat .stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.shop-stat.highlight .stat-number {
    color: var(--accent-blue);
}

.shop-stat .stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 600px) {
    .shop-detail-grid {
        grid-template-columns: 1fr;
    }

    .shop-stats-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 24px;
    }
}