/* --- HELVETICA NEUE FORCED STACK --- */

/* Ultralight (100) */
@font-face {
  font-family: 'HNeue';
  src: url('/fonts/HelveticaNeue/HelveticaNeueUltraLight.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: 'HNeue';
  src: url('/fonts/HelveticaNeue/HelveticaNeueUltraLightItalic.otf') format('opentype');
  font-weight: 100;
  font-style: italic;
}

/* Thin (200) */
@font-face {
  font-family: 'HNeue';
  src: url('/fonts/HelveticaNeue/HelveticaNeueThin.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: 'HNeue';
  src: url('/fonts/HelveticaNeue/HelveticaNeueThinItalic.otf') format('opentype');
  font-weight: 200;
  font-style: italic;
}

/* Light (300) */
@font-face {
  font-family: 'HNeue';
  src: url('/fonts/HelveticaNeue/HelveticaNeueLight.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'HNeue';
  src: url('/fonts/HelveticaNeue/HelveticaNeueLightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
}

/* Roman/Regular (400) */
@font-face {
  font-family: 'HNeue';
  src: url('/fonts/HelveticaNeue/HelveticaNeueRoman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'HNeue';
  src: url('/fonts/HelveticaNeue/HelveticaNeueItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}

/* Medium (500) */
@font-face {
  font-family: 'HNeue';
  src: url('/fonts/HelveticaNeue/HelveticaNeueMedium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'HNeue';
  src: url('/fonts/HelveticaNeue/HelveticaNeueMediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
}

/* Bold (700) */
@font-face {
  font-family: 'HNeue';
  src: url('/fonts/HelveticaNeue/HelveticaNeueBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'HNeue';
  src: url('/fonts/HelveticaNeue/HelveticaNeueBoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
}

/* Black/Heavy (900) */
@font-face {
  font-family: 'HNeue';
  src: url('/fonts/HelveticaNeue/HelveticaNeueBlack.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}
@font-face {
  font-family: 'HNeue';
  src: url('/fonts/HelveticaNeue/HelveticaNeueBlackItalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
}
/* --- 2. ROOT & RESET --- */
:root {
  --win-w: 600px;
  --title-h: 22px;
  --dot-sz: 12px;
  --dot-gap: 7.5px;
  --window-bg: #ECECEC;
  --apple-blue: #0071E3;
  --avatar-url: url('/icons/account/AccountLight.svg'); /* Path to your Light SVG */
  --bg-color-three: #E5E5E5;
  --bg-color-four: #ECECEC;
  --bg-color-border-top: #D5D5D5;
}

.window-container.dark {
  --avatar-url: url('/icons/account/AccountDark.svg'); /* Path to your Dark SVG */
  --text-main: #FFFFFF;
   --bg-color-three: #E5E5E5;
  --bg-color-four: #F0F0F0;
  --bg-color-border-top: #D5D5D5;
}

@media screen and (max-width: 767px) {
  :root {
    --win-w: 92vw;
    --title-h: 44px;
    --dot-sz: 14px;
    --dot-gap: 10px;
  }
}


*, *::before, *::after { box-sizing: border-box; font-family: inherit; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'HNeue', sans-serif;
  font-weight: 400;
  background-color: #f0f0f0;
  margin: 0;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
button, input, select, textarea, a {
  font-family: inherit;
  font-weight: inherit;
}

.space-adjustment{
  padding-left: 80px;
}

.dark-only { display: none; }
[data-theme="dark"] .light-only { display: none !important; }
[data-theme="dark"] .dark-only { display: block !important; }
[data-theme="light"] .light-only { display: block !important; }
[data-theme="light"] .dark-only { display: none !important; }

/* Update Image Switching */
@media (prefers-color-scheme: dark) {
    .light-only {
        display: none !important;
    }
    .dark-only {
        display: block !important;
    }
}
.window-wrapper {
    display: flex;
    justify-content: center; /* Horizontal center */
    align-items: center;     /* Vertical center */
    
    /* Fill the available space */
    width: 100%;
    min-height: 80vh;        /* Adjust this based on your topbar/navbar height */
    
    /* Optional: adds some padding so the window doesn't touch 
       the edges of the screen on small mobile devices */
    padding: 20px;
    box-sizing: border-box;
}

/* --- 3. THE WINDOW --- */
.window-container {
  width: var(--win-w);
  background: var(--window-bg);
  border-radius: 6px;
  box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.2), 0px 0px 1px rgba(0,0,0,0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: var(--win-w);
    max-width: 100%;         /* Prevents overflow on small screens */
    background: var(--window-bg);
    border-radius: 6px;
    box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.title-bar-small {
  height: var(--title-h);
  background: linear-gradient(180deg, #E7E6E7 0%, #D1D0D1 100%);
  display: flex;
  align-items: center;
  padding: 0 var(--dot-gap);
  border-bottom: 1px solid #B0B0B0;
}

.title-bar-large {
  height: 37px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #E7E6E7 0%, #CDCDCD 100%);
  border-bottom: 1px solid var(--border-main);
}

.header-left, .header-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.header-center {
  flex: 0 1 auto;
  white-space: nowrap;
}

.dots-container { display: flex; gap: var(--dot-gap); }
.dot { width: var(--dot-sz); height: var(--dot-sz); border-radius: 50%; border: 0.5px solid rgba(0,0,0,0.15); }
.red { background: #FF5F58; border: 0.8px solid #E1483F; }
.yellow { background: #FFBE2F; border: 0.8px solid #E0A028; }
.green { background: #2AC940; border: 0.8px solid #2BAC2D; }
.gray { background: #D9D9D9; border: 0.8px solid #BBBBBB;}

/* --- 4. CONTENT & LOGO --- */
.window-content { padding: 25px; display: flex; flex-direction: column; align-items: center; }

.window-content h2 {
  font-weight: 200; 
  font-size: 2rem;
  margin: 0 0 20px 0;
  letter-spacing: -0.7px;
  color: #333;
}

.logo-box {
  width: 5rem; height: 5rem; border-radius: 10px;
  background: linear-gradient(to bottom, #ffffff, #eeeeee);
  border: 1px solid #ddd; margin-bottom: 25px; 
  display: flex; align-items: center; justify-content: center; 
  overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.logo-box img { max-width: 80%; max-height: 80%; object-fit: contain; }

/* --- 5. FORM & INPUTS --- */
form { width: 100%;}

.form-wrapper {
  display: flex; flex-direction: column; align-items: center; width: 100%;
}

.input-row {
  display: flex; align-items: center; margin-bottom: 12px;
  width: 100%; max-width: 400px; 
}

.input-row label {
  font-size: 0.9rem; font-weight: 400; color: #333;
  flex: 1; text-align: right; margin-right: 12px; 
}

.input-row input {
  flex: 1.5;
  background-color: #ffffff;
  border: 2px solid #b6b6b6;
  padding: 2px 8px;
  height: 26px;
  font-size: 13px;
  color: #c0c0c0;
  outline: none;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  border-radius: 0 !important;
  background-clip: padding-box !important;
}

.input-row input::placeholder { color: #c0c0c0; }

.footer-row {
  margin-top: 30px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px; }

.links-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.button-row {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.link-blue {
  color: #0071E3;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 400;
}

.link-blue:hover {
  text-decoration: underline;
}

/* --- Input Design (Preserved) --- */
.input-row input {
  flex: 1.5;
  background-color: #ffffff;
  border: 2px solid #b6b6b6;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  color: #c0c0c0;
  outline: none;
}

/* --- Done Button Design (Preserved) --- */
.done-btn {
  padding: 2px 12px;
  border-radius: 4px; 
  border: 1px solid rgba(255, 255, 255, 0.01);
  background: linear-gradient(180deg, #FEFEFE 0%, #F1F1F1 100%); 
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.20), 0px 0px 0px 2px rgba(0, 0, 0, 0.10);
  font-weight: 500;
  font-size: 1rem;
  color: rgb(87 87 87 / 0.6);
  cursor: pointer;
  transition: all 0.5s ease;
}

.done-btn:hover {
  background: #dbdbdb;
}

.nav-controls {
  display: flex;
  gap: 8px;
}

.segmented-control {
  display: flex;
  background: white;
  border-radius: 4px;
  box-shadow: 0px 0.5px 1px rgba(0,0,0,0.2);
}

.nav-btn {
  border: none;
  background: transparent;
  padding: 2px 8px;
  font-size: 16px;
  cursor: pointer;
}

.nav-btn.disabled { opacity: 0.3; }

.window-title {
  font-size: 12.5px;
  font-weight: 500;
  color: #494949;
}

.search-field {
  width: 149px;
  height: 20px;
  background: white;
  border-radius: 3px;
  margin-left: auto;
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-size: 11px;
  color: #888;
  box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.1);
}

/* 2. PROFILE SECTION */
.profile-section {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-container {
  width: 61px;
  height: 61px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0; /* Prevents the avatar from squishing */
}

.user-text-stack {
  display: flex;
  flex-direction: column;
}

.user-name { font-size: 20px; margin: 0; font-weight: 400; color: #1B1C1D; }
.user-id { font-size: 11px; margin: 0; color: #1B1C1D; }

/* 3. SETTINGS GRID */
.settings-grid {
  display: flex;
  flex-direction: column;
}

.settings-group {
  padding: 10px 5px;
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border-light);
  min-height: 140px;
}

.gray-bg { background: var(--bg-gray-row); }

.icon-item {
  width: 79px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 19px;
}

.icon-square {
  width: 40px;
  height: 40px;
  background: linear-gradient(180deg, white 0%, #EEEEEE 100%);
  border: 0.6px solid #D3D3D3;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.05);
}

.icon-label {
  font-size: 11px;
  color: #6A6A6A;
  text-align: center;
  line-height: 1.2;
}

.account-logo-big {
    width: 61px;
    height: 61px;
}

.icon-undo { mask-image: url('undo.svg'); -webkit-mask-image: url('undo.svg'); }
.icon-redo { mask-image: url('redo.svg'); -webkit-mask-image: url('redo.svg'); }
.icon-search { mask-image: url('search.svg'); -webkit-mask-image: url('search.svg'); width: 12px; height: 12px; }
.icon-grid { mask-image: url('grid.svg'); -webkit-mask-image: url('grid.svg'); }
.icon-general { mask-image: url('general.svg'); -webkit-mask-image: url('general.svg'); width: 24px; height: 24px; }
.icon-accounts { mask-image: url('user.svg'); -webkit-mask-image: url('user.svg'); width: 24px; height: 24px; }
.icon-network { mask-image: url('network.svg'); -webkit-mask-image: url('network.svg'); width: 24px; height: 24px; }

.color-tier-three { background: var(--bg-color-three); 
  border-top-width: 1px; /* Optional, default is 'medium' */
  border-top-color: var(--bg-color-border-top);}
.color-tier-four { background: var(--bg-color-four); 
 border-top-style: solid;}




 .page-content {
  display: none; /* Hide all pages by default */
  height: 100%;
  flex-direction: column;
}

.view-stack {
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Visibility Logic */
.page-content {
    display: none; /* All pages hidden by default */
    flex-direction: column;
    height: 100%;
}

/* Default view when no hash is in URL */
#main-view {
    display: flex;
}

/* Hide Main View when any sub-page is targeted */
.view-stack:has(:target) #main-view {
    display: none;
}

/* Show the specific targeted sub-page */
.sub-page:target {
    display: flex;
    padding: 30px;
    background: #F5F5F7;
}
/* Subpage Styling */
.sub-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.sub-header h1 { font-size: 18px; font-weight: 500; }
.icon-square.small { width: 32px; height: 32px; }

/* --- DARK MODE (System Synced) --- */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
  }

  .window-container {
    background: #2d2d2d;
    box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.5), 0px 0px 1px rgba(0,0,0,0.8);
  }

  .title-bar-small {
    background: linear-gradient(180deg, rgba(59, 59, 59, 1) 0%, rgba(49, 49, 49, 1) 100%);
    border-bottom: 1px solid #1a1a1a;
  }

  .title-bar-large {
    background: linear-gradient(180deg, rgba(59, 59, 59, 1) 0%, rgba(49, 49, 49, 1) 100%);
    border-bottom: 1px solid #1a1a1a;
  }

  .window-content h2, 
  .input-row label {
    color: #ececec;
  }

  .logo-box {
    background: linear-gradient(to bottom, #3a3a3a, #2a2a2a);
    border-color: #444;
  }

  .input-row input {
    background-color: #1e1e1e;
    border-color: #4a4a4a;
    color: #ffffff;
  }

  .input-row input::placeholder {
    color: #666;
  }
}

[data-theme="light"]{
  body {
    background-color: #f0f0f0!important;
  }

  .window-container {
    background: #ECECEC;
    box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.2), 0px 0px 1px rgba(0,0,0,0.5);
  }

  .title-bar-small {
    background: linear-gradient(180deg, #E7E6E7 0%, #D1D0D1 100%);
    border-bottom: 1px solid #B0B0B0;
  }

  .title-bar-large {
    background: linear-gradient(180deg, #E7E6E7 0%, #CDCDCD 100%);
    border-bottom: 1px solid var(--border-main);
  }

  .window-content h2, 
  .input-row label {
    color: #333;
  }

  .logo-box {
    background: linear-gradient(to bottom, #ffffff, #eeeeee);
    border-color: #ddd;
  }

/* --- FIX: Ensure no border-radius on inputs --- */
.input-row input {
  flex: 1.5;
  background-color: #ffffff;
  border: 2px solid #b6b6b6;
  padding: 2px 8px;
  height: 26px;
  font-size: 13px;
  color: #333; /* Darker text for readability */
  outline: none;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  border-radius: 0 !important; /* Forced zero */
  background-clip: padding-box !important;
}
  .input-row input {
    background-color: #1e1e1e !important; /* Deep dark background */
    border-color: #444 !important;
    color: #f5f5f5 !important; /* Light text for typing */
  }

  .input-row input::placeholder {
    color: #666;
  }

  .done-btn {
    /* Keeping the gradient logic but updating text color and subtle shadow */
    background: linear-gradient(180deg, #595959 0%, #494949 100%) !important;
    color: #E9E9E9 !important; /* Your requested text color */
    border: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.4), 0px 0px 0px 2px rgba(255, 255, 255, 0.05);
  }

  .done-btn:hover {
    background: #666 !important;
  }
}


/* Modal Hidden State */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none; /* Changed to flex via .active */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-window {
    background: white;
    padding: 40px;
    border-radius: 18px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-window {
    transform: translateY(0);
}

/* Success Icon Animation */
.modal-icon-box {
    width: 60px;
    height: 60px;
    background: #E8F5E9;
    color: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.check-svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Loading Dots */
.loader-dots span {
    display: inline-block;
    width: 8px; height: 8px;
    margin: 20px 4px 0;
    background: #007AFF;
    border-radius: 50%;
    animation: dotPulse 0.6s infinite alternate;
}
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    from { opacity: 0.3; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1.1); }
}




/* Hero Section */
.hero-curated {
    height: 191px;
    background: #D9D9D9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    border-radius: 8px;
    margin-bottom: 40px;
}

/* Collections Grid - Responsive */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.collection-box {
    aspect-ratio: 323 / 170;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    padding: 15px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.15);
}

.collage-preview {
    width: 28%; /* Keeps 90px look proportional */
    aspect-ratio: 1/1;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    margin-bottom: 10px;
}

.collage-preview img { width: 100%; height: 100%; object-fit: cover; }

.collection-info .col-name { font-size: 16px; font-weight: 700; color: white; margin: 0; }
.collection-info .col-desc { font-size: 14px; font-weight: 500; color: white; opacity: 0.9; }

/* Art Grid - Responsive Columns */
.art-grid-trending {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.trending-art-card .art-visual {
    height: 177px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.trending-art-card img { width: 100%; height: 100%; object-fit: cover; }

.meta-row { display: flex; justify-content: space-between; margin-top: 10px; }
.artist-name { color: #808080; font-size: 13px; }

/* Mobile Adjustments */
@media (max-width: 768px) {
    .trending-container { margin-left: 0; }
    .hero-curated { height: 150px; }
    .collections-grid { grid-template-columns: 1fr; }
}

.stretched-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
}

.category-hero {
    height: 300px;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    color: white;
    border-radius: 0 0 20px 20px;
}

.hero-content h1 { font-size: 48px; margin: 10px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; opacity: 0.8; }

.content-body { padding: 40px; }

/* The Responsive Grid */
.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;


}

/* Reset link styling for the art card */
.art-card-link {
    text-decoration: none;
    color: inherit;
    display: block; /* Makes the whole area clickable */
    transition: transform 0.2s ease;
}

.art-card {
    cursor: pointer;
    height: 100%; /* Ensure card fills the link container */
}

.art-card {
    transition: transform 0.2s;
}

.card-visual {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f5f5f5;
}

.card-visual img { width: 100%; height: 100%; object-fit: cover; }

/* Mobile View */
@media (max-width: 768px) {
    .category-page { margin-left: 0; }
    .category-hero { height: 200px; padding: 20px; }
    .category-hero h1 { font-size: 32px; }
}

#fav-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

#fav-btn.active {
    background: #fff0f0;
    border-color: #ff4d4d;
    color: #ff4d4d;
}

.comment-item {
    margin-top: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid #eee;
}

.replies-branch {
    margin-left: 1.5rem;
    border-left: 1px dashed #ddd;
}

.comment-meta {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.comment-meta .date {
    color: #888;
    margin-left: 10px;
}

.reply-btn {
    background: none;
    border: none;
    color: #007aff;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
}

.reply-form {
    margin-top: 10px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
}

/* Container for the scroll */
.artwork-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* Makes it "snap" to each image */
    scroll-behavior: smooth;
    gap: 0; /* No gap for seamless Instagram look, or 10px if you want space */
    border-radius: 12px;
    background: #1a1a1a;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for mobile */
}

/* Individual Images */
.scroll-img {
    flex: 0 0 100%; /* Each image takes full width of container */
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    scroll-snap-align: center; /* Snap point */
}

/* Hide scrollbar for a cleaner look (optional) */
.artwork-scroll-container::-webkit-scrollbar {
    display: none;
}
.artwork-scroll-container {
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

/* ...existing code... */

@media (max-width: 1024px) {
  .window-container {
    width: min(100%, 65vw);
  }

  .window-content {
    padding: 18px;
  }

  .hero-text {
    font-size: 24px;
    margin: 40px 0;
    padding: 0 12px;
  }

  .mac-toolbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
  }

  .mac-search-field {
    width: 100%;
  }

  .art-grid, .art-grid-trending {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding: 0 20px;
  }

  .collections-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 0 20px;
  }

  .category-hero {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --win-w: 94vw;
    --title-h: 42px;
    --dot-sz: 14px;
    --dot-gap: 9px;
  }

  body {
    min-height: auto;
  }

  .window-wrapper {
    padding: 12px;
    min-height: auto;
  }

  .window-container {
    width: 100%;
    box-shadow: none;
  }

  .title-bar-large,
  .title-bar-small {
    padding: 0 10px;
  }

  .logo-box {
    width: 4.2rem;
    height: 4.2rem;
  }

  .input-row {
    flex-direction: column;
    align-items: stretch;
  }

  .input-row label {
    text-align: left;
    margin-bottom: 6px;
  }

  .input-row input {
    width: 100%;
  }

  .art-grid,
  .art-grid-trending {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 12px;
  }

  .collections-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 12px;
  }

  .category-hero {
    height: 180px;
    padding: 16px;
  }

  .hero-content h1 { font-size: 26px; }
  .hero-text { font-size: 20px; margin: 30px 0; }

  .mac-toolbar { padding: 8px 8px; gap: 6px; }
  .mac-search-field { width: 100%; }

  
}

.window-login {
    position: fixed;
    z-index: 2000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  
    box-sizing: border-box;
    border: 1px solid transparent; 
}


@media screen and (max-width: 767px) {
    .window-login {
        top: 45%;
    }
}