:root{
            --bg: #0e1116;
            --bg-1: #11151c;
            --bg-2: #161b22;
            --surface: #1a202a;
            --surface-2: #202733;
            --border: rgba(255,255,255,0.06);
            --border-2: rgba(255,255,255,0.09);
            --shadow: 0 10px 40px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.3);
            --text: #e8ecf3;
            --text-2: #b5becc;
            --text-3: #7f8aa3;
            --brand: #1dd4ce;
            --brand-2: #7ae5e1;
            --ok: #67e3a1;
            --radius-lg: 18px;
            --radius-md: 12px;
            --radius-sm: 10px;
            --chip: #151922;
            --chip-hover: #1c2330;
            --chip-active: #2a3342;
        }

        html.light-theme {
            --bg: #f5f7fa;
            --bg-1: #ffffff;
            --bg-2: #f9fafb;
            --surface: #ffffff;
            --surface-2: #f3f4f6;
            --border: rgba(0,0,0,0.08);
            --border-2: rgba(0,0,0,0.06);
            --shadow: 0 10px 40px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.03);
            --text: #1a1a1a;
            --text-2: #4a4a4a;
            --text-3: #8a8a8a;
            --chip: #f3f4f6;
            --chip-hover: #e5e7eb;
            --chip-active: #dbeafe;
        }
        
        *{box-sizing:border-box}
        html,body{height:100%}
        body{
            margin:0;
            background: radial-gradient(1000px 600px at 60% -200px, rgba(29,212,206,.1), transparent 50%), var(--bg);
            color:var(--text);
            font:14px/1.45 "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
            letter-spacing:.2px;
            transition: background-color 0.3s ease, color 0.3s ease;
        }
        button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
        
        .app{display:flex;height:100%;width:100%}
        
        .sidebar{
        width:80px;background:linear-gradient(180deg,var(--bg-1),var(--bg-2));
        border-right:1px solid var(--border);
        display:flex;flex-direction:column;align-items:center;
        padding:16px 8px;gap:10px;
        transition: background-color 0.3s ease, border-color 0.3s ease;
    }
        .logo-badge{width:40px;height:40px;border-radius:8px;}
        .nav{margin-top:8px;width:100%;display:flex;flex-direction:column;gap:6px}
        .nav-btn{width:100%;display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 0;border-radius:10px;color:var(--text-2);transition:all 0.2s ease; text-decoration: none;}
        .nav-btn:hover{background:rgba(255,255,255,0.03);color:var(--text)}
        .nav-btn.is-active{background:rgba(29,212,206,.08);color:var(--text)}
        .nav-btn .icon{width:22px;height:22px;border-radius:6px;background:linear-gradient(180deg,#262e3b,#1d2430);box-shadow:inset 0 0 0 1px var(--border)}
        .nav-btn .label{font-size:11px;opacity:.9}
        .sidebar .spacer{flex:1}
        .token-pill{width:52px;height:28px;border-radius:10px;color:var(--brand);background:#0f1622;border:1px solid var(--border);display:flex;align-items:center;justify-content:center;box-shadow:inset 0 0 0 1px rgba(29,212,206,.1);transition:all 0.2s ease}
        .sidebar .circle{width:34px;height:34px;border-radius:50%;background:#0f1622;border:1px solid var(--border);transition:all 0.2s ease}
        
        .main{flex:1;position:relative;overflow-y:auto}
        .filters{position:absolute;top:18px;right:22px;display:flex;align-items:center;gap:12px;z-index:1}
        .theme-toggle,.help-btn{
            background:var(--surface);
            border:1px solid var(--border);
            color:var(--text-2);
            padding:10px 12px;
            border-radius:12px;
            display:flex;
            gap:8px;
            align-items:center;
            transition:all 0.2s ease;
        }
        html.light-theme .theme-toggle,
        html.light-theme .help-btn{
            background:rgba(255,255,255,0.7);
            backdrop-filter:blur(10px);
            border:1px solid rgba(0,0,0,0.08);
            box-shadow:0 0 20px rgba(0,0,0,0.04);
        }
        .theme-toggle:hover,.help-btn:hover{background:var(--chip-hover);color:var(--text)}
        html.light-theme .theme-toggle:hover,
        html.light-theme .help-btn:hover{
            background:rgba(255,255,255,0.85);
            border-color:rgba(0,0,0,0.12);
        }
        .theme-icon{width:16px;height:16px;display:flex;align-items:center;justify-content:center}
        
        /* Gallery Styles */
.gallery-grid {
  padding: 80px 20px 20px;
  column-count: 4;
  column-gap: 20px;
}
.gallery-item {
  margin-bottom: 20px;
  break-inside: avoid;
}
.gallery-item img {
  width: 100%;
  border-radius: 12px;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.gallery-item img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Improved Image Modal Styles - Modern design with no title */
.image-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(4px);
}
.image-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.image-modal-content {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 85%;
  max-width: 1100px;
  height: auto;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.image-modal-overlay.show .image-modal-content {
  transform: scale(1);
}
html.light-theme .image-modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Enhanced image preview section */
.image-modal-preview {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-2);
  padding: 32px;
  position: relative;
  border-radius: 20px 0 0 20px;
  overflow: hidden;
}
html.light-theme .image-modal-preview {
  background: #f0f2f5;
}
.image-modal-preview img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Redesigned details panel */
.image-modal-details {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-radius: 0 20px 20px 0;
  gap: 20px;
}
html.light-theme .image-modal-details {
  background: rgba(255, 255, 255, 0.95);
}

/* Hide title - no longer needed in new design */
.image-modal-title {
  display: none;
}

/* Enhanced prompt section with better styling */
.image-modal-prompt {
  background: var(--surface-2);
  padding: 16px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  border-left: 3px solid var(--brand);
}
html.light-theme .image-modal-prompt {
  background: var(--surface-2);
  border-left-color: var(--brand);
}

/* Improved action buttons */
.image-modal-actions {
  display: flex;
  gap: 12px;
}
.modal-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--chip);
  border: 1px solid var(--border);
  color: var(--text-2);
  text-align: center;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 14px;
}
.modal-btn:hover {
  background: var(--chip-hover);
  color: var(--text);
  border-color: var(--brand);
}
html.light-theme .modal-btn {
  background: var(--chip);
}
html.light-theme .modal-btn:hover {
  background: var(--chip-hover);
}

/* Enhanced info grid layout */
.image-modal-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.info-item {
  font-size: 13px;
  padding: 12px;
  background: var(--chip);
  border-radius: 10px;
  border: 1px solid var(--border);
}
html.light-theme .info-item {
  background: #f3f4f6;
  border-color: rgba(0, 0, 0, 0.06);
}
.info-label {
  color: var(--text-3);
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.info-value {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.color-palette {
  margin-top: auto;
}
.palette-label {
  color: var(--text-3);
  margin-bottom: 10px;
  font-size: 13px;
}
.palette-colors {
  display: flex;
  gap: 10px;
}
.color-chip {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 2px solid var(--border);
  transition: transform 0.2s ease;
  cursor: pointer;
}
.color-chip:hover {
  transform: scale(1.1);
}

/* Enhanced remix button with gradient and better styling */
.remix-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #000;
  padding: 14px 20px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(29, 212, 206, 0.3);
}
.remix-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(29, 212, 206, 0.4);
}

/* Improved close button positioning and styling */
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 24px;
  line-height: 40px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: rotate(90deg);
}

/* Scrollbar styling for modal */
.image-modal-details::-webkit-scrollbar {
  width: 6px;
}
.image-modal-details::-webkit-scrollbar-track {
  background: transparent;
}
.image-modal-details::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
.image-modal-details::-webkit-scrollbar-thumb:hover {
  background: var(--border-2);
}
/* === Pagination Styles === */

.zaiStock-pagination {
    padding: 0;
    margin: 0;
    list-style: none; /* Default list bullets ko hatane ke liye */
    display: flex;
    gap: 8px; /* Buttons ke beech mein space */
}

.zaiStock-pagination li a.item {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none; /* Underline hatane ke liye */
    font-weight: 500;
    font-size: 14px;
    height: 38px;
    min-width: 38px;
    padding: 0 10px;
    border-radius: var(--radius-md); /* Aapke theme se matching border radius */
    
    /* Colors from your theme */
    background-color: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-2);
    
    /* Smooth transition effect */
    transition: all 0.2s ease-in-out;
}

/* Hover effect: Jab mouse button par aayega */
.zaiStock-pagination li a.item:hover {
    background-color: var(--chip-hover);
    color: var(--text);
    border-color: var(--border-2);
}

/* Active state: Current page number ke liye */
.zaiStock-pagination li a.item.active {
    background-color: var(--brand); /* Aapka primary brand color */
    color: #0e1116; /* Dark text on a light button */
    border-color: var(--brand);
    font-weight: 600;
}

/* Disabled state: Jab "previous" ya "next" button available na ho */
.zaiStock-pagination li a.item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.zaiStock-pagination li a.item.disabled:hover {
    background-color: var(--surface); /* Hover par koi effect na ho */
    color: var(--text-2);
    border-color: var(--border);
}
/* Share dropdown styles */
.share-dropdown-container {
  position: relative;
  display: inline-block;
}

/* Share dropdown styles */
.share-dropdown-container {
  position: relative;
  display: inline-block;
}

.share-dropdown {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  min-width: 180px;
  margin-bottom: 8px;
  overflow: hidden;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.share-option:last-child {
  border-bottom: none;
}

.share-option:hover {
  background-color: var(--chip-hover);
}

.share-option span {
  font-size: 16px;
}

/* Masonry grid */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px;
}

.explore-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 1;
    background: var(--bg-2, #1a1a1a);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.explore-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.explore-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.explore-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    color: white;
    transform: translateY(10px);
}

.explore-item:hover .explore-item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.overlay-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.overlay-user {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.overlay-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.2s ease;
}

.explore-item:hover .overlay-user-avatar {
    width: 32px;
    height: 32px;
    border: 2px solid white;
}

/* Controls */
.explore-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border, #2a2a2a);
    gap: 12px;
    flex-wrap: wrap;
}

.sort-buttons {
    display: flex;
    gap: 8px;
}

.sort-btn {
    padding: 8px 16px;
    border: 1px solid var(--border, #2a2a2a);
    background: transparent;
    color: var(--text, #fff);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sort-btn:hover,
.sort-btn.active {
    background: var(--accent, #667eea);
    border-color: var(--accent, #667eea);
    color: white;
}

/* Loading spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--accent, #667eea);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.end-of-content {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-2, #999);
}

/* Modal */
.image-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.image-modal-content {
    background: var(--bg-1, #0a0a0a);
    border-radius: 16px;
    overflow: hidden;
    max-width: 85vw;
    max-height: 85vh;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-modal-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
}

.image-modal-preview img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    object-position: center;
}

.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.image-modal-details {
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.image-modal-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.user-info p {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: var(--text-2);
}

.image-modal-prompt {
    background: var(--bg-2, #1a1a1a);
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    max-height: 120px;
    overflow-y: auto;
}

.image-modal-info {
    display: grid;
    gap: 8px;
}

.info-item {
    font-size: 12px;
    color: var(--text-2);
}

.info-item strong {
    display: block;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 2px;
}

.image-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.modal-btn {
    padding: 10px 12px;
    background: var(--accent, #667eea);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.modal-btn:hover {
    background: var(--accent-hover, #5568d3);
}

.modal-btn.secondary {
    background: var(--bg-2, #1a1a1a);
    color: var(--text);
    border: 1px solid var(--border, #2a2a2a);
}

.modal-btn.secondary:hover {
    background: var(--bg-3, #222);
}

/* Responsive */
@media (max-width: 768px) {
    .explore-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
        padding: 12px;
    }

    .image-modal-content {
        grid-template-columns: 1fr;
        max-width: 95vw;
        max-height: 95vh;
    }

    .image-modal-details {
        max-height: 40vh;
    }
}

@media (max-width: 480px) {
    .explore-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
}

