@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@400;600;700&family=Source+Sans+3:wght@400;600;700&display=swap');

/* USER PAGE LAYOUT */
body,
html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: radial-gradient(circle at top left, rgba(50, 90, 120, 0.25), transparent 55%),
        radial-gradient(circle at 20% 60%, rgba(35, 70, 90, 0.2), transparent 60%),
        linear-gradient(180deg, #0a0f14 0%, #101821 55%, #0b1016 100%);
    overflow-y: auto;
    overflow-x: hidden;
    color: var(--g-text);
    font-family: var(--font-body);
    min-height: 100%;
}

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

body {
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.02) 0px,
        rgba(255, 255, 255, 0.02) 1px,
        transparent 1px,
        transparent 6px
    );
    pointer-events: none;
    z-index: 0;
}

main,
.page_header {
    position: relative;
    z-index: 1;
}


/* HEADER BAR */


.page_header {
    height: 100px;
    display: flex;
    background: linear-gradient(120deg, rgba(18, 24, 32, 0.98) 0%, rgba(30, 42, 54, 0.96) 60%, rgba(16, 22, 30, 0.98) 100%);
    border-bottom: 1px solid rgba(64, 224, 208, 0.2);
    box-shadow: 0 12px 24px rgba(5, 10, 18, 0.55);
    position: relative;
    overflow: visible;
}



.toolbar-left,
.toolbar-center,
.toolbar-right {
    width: 33.3%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    /* Add some space between buttons */
}


button{
    background: linear-gradient(135deg, rgba(45, 62, 78, 0.95), rgba(26, 38, 52, 0.98));
    color: #eaf4ff;
    cursor: pointer;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    box-shadow: 0 6px 14px rgba(4, 8, 14, 0.4);
}
button:hover{
    color: var(--g-accent);
    box-shadow: 0 10px 18px rgba(64, 224, 208, 0.25);
    transform: translateY(-2px);
}

#logoutBtn{
    margin-right:10px;
}




.logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 200px;
    max-width: 32vw;
    z-index: 10;
    pointer-events: auto;
}
/* Add inside your existing <style> tag 
.toolbar-right button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: linear-gradient(0deg, hsla(0, 0%, 22%, 1) 0%, rgb(99, 99, 99) 50%, hsla(0, 0%, 22%, 1) 100%);
    color: aliceblue;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toolbar-right button:hover {
    background: linear-gradient(0deg, rgb(99, 99, 99) 0%, hsla(0, 0%, 22%, 1) 50%, rgb(99, 99, 99) 100%);
    color: turquoise;
    box-shadow: 0 0 15px rgba(64, 224, 208, 0.5);
    transform: translateY(-2px);
}
*/
.toolbar-center {
    display:block;
    text-align: center;
    width: 33.3%;
    
}
.nav-bar {
    color: aliceblue;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, rgba(8, 12, 18, 0.95) 0%, rgba(10, 14, 20, 1) 50%, rgba(8, 12, 18, 0.95) 100%);
}

.game-title {
    color: turquoise;
    font: italic bold small-caps 3em "Oxanium", sans-serif;
    text-shadow: 3px 3px #111;
    white-space: nowrap;
}

.game-description {
    color: whitesmoke;
    font: ultra-condensed 1.2em "Oxanium", sans-serif;
    text-shadow: 2px 2px #088;
    white-space: nowrap;
}



#modalModelControls {
    background-color: #080B0E;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }


  
  .toolbar-right {
    display: flex;
    align-items: center;
  }
  
  /*
  .toolbar-right button,
  .toolbar-right .btn {
    background: #007acc;
    color: #ededed;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
  }
  
  .toolbar-right button:hover,
  .toolbar-right .btn:hover {
    background: #005fa3;
  }
    */
  
  /* PROFILE OVERVIEW ON USER PAGE */
  .profile-overview {
    display: flex;
    align-items: center;
    margin-top: 2rem;
  }



  .profile-overview .profile-pic {
    margin-left:-50px;
    min-width: 142px;
    display: block;
    border-radius: 50%;
    margin-right: 1rem;
    box-shadow: 0 10px 24px rgba(5, 10, 18, 0.55);
    border : 3px solid rgba(64, 224, 208, 0.9);

  }
  


  .profile-info h1 {
    margin: 0;
    font-size: 1.75rem;
    color: var(--g-text);
  }

 
.user-page.container {
    max-width: 1080px;
    margin: 2.5rem auto 3rem;
    padding: 0 1.5rem;
}


  .user-page.container p {
    color: var(--g-text-muted);
  }
  .user-page.container section {
    background: var(--g-surface);
  }
  
  /* PROFILE OVERVIEW */
  .profile-overview {
    display: flex;
    background: linear-gradient(140deg, rgba(30, 42, 54, 0.95), rgba(23, 30, 40, 0.98));
    border: 1px solid var(--g-border);
    padding: 1.5rem;
    border-radius: var(--g-radius);
    margin-bottom: 2rem;
    box-shadow: var(--g-shadow);
    gap: 1.5rem;
  }



  .profile-info fieldset{
    display:flex;
    color: var(--g-text);
    flex-wrap: wrap;
    gap: 10px;
    flex-direction: row;
    justify-content: center;
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 12px;
    padding: 16px;
  }
  .profile-fieldset legend{
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--g-accent);
    padding: 0 8px;
  }


  .input_field {
    flex: 1 0 47%;
    background-color: rgba(12, 18, 24, 0.8);
    color: var(--g-text);
    margin: 0 0 .5rem;
    padding:3px;
    border-radius: 4px;
    border: 1px solid rgba(64, 224, 208, 0.35);
    max-width:47%;
  }
  .input_field span{
    margin: 0 0 .5rem;
    color: var(--g-text);
    font-size: 1rem;
    padding:5px;
    min-width:20px;
  }

  .edit-mode{
    background-color: #262626;
    border-top: 1px solid rgba(64, 224, 208, 0.6);
    border-bottom: 1px solid rgba(64, 224, 208, 0.6);
  }


  .profile-overview .btn {
    position: relative;
    display: inline-block;
    align-items: center;
    top: -180px;
    left: 90px;
  }

  .profile-security {
    background: linear-gradient(140deg, rgba(30, 42, 54, 0.95), rgba(23, 30, 40, 0.98));
    border: 1px solid var(--g-border);
    padding: 1.5rem;
    border-radius: var(--g-radius);
    box-shadow: var(--g-shadow);
    margin-bottom: 2rem;
  }

  .profile-security h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--g-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: .5rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    letter-spacing: 0.04em;
  }

  .password-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    align-items: end;
  }

  .password-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--g-text-muted);
    font-size: 0.9rem;
  }

  .password-form input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(64, 224, 208, 0.35);
    background: rgba(10, 16, 24, 0.85);
    color: var(--g-text);
    font-size: 0.95rem;
  }

  .password-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .password-status {
    font-size: 0.9rem;
    color: var(--g-text-muted);
    min-height: 1em;
  }

  .password-status.is-error {
    color: #ff6b6b;
  }

  .password-status.is-success {
    color: #45e0b6;
  }

  .password-status.is-pending {
    color: var(--g-text-muted);
  }




  /* PROFILE FRIEND LIST */
  .profile-friends {
    background: linear-gradient(140deg, rgba(30, 42, 54, 0.95), rgba(23, 30, 40, 0.98));
    border: 1px solid var(--g-border);
    padding: 1.5rem;
    border-radius: var(--g-radius);
    max-height:500px;
    box-shadow: var(--g-shadow);
  }
  .profile-friends h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--g-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: .5rem;
    margin-bottom: 1rem;
  }
  .friend-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .friend-list li {
    margin: .5rem 0;
  }
  .friend-list a {
    color: var(--g-accent);
    text-decoration: none;
    font-weight: 500;
  }
  .friend-list a:hover {
    text-decoration: underline;
  }




    .friend-panel{display:flex;gap:2rem;align-items:flex-start;flex-wrap:wrap}
    .friend-controls,.friend-current{flex:1 1 320px}
    .friend-toolbar{display:flex;gap:.5rem;margin-bottom:1rem;align-items:center}
    .friend-toolbar input{
        flex: 1;
        min-width: 0;
        padding: 8px 10px;
        border-radius: 8px;
        border: 1px solid rgba(64, 224, 208, 0.35);
        background: rgba(10, 16, 24, 0.85);
        color: var(--g-text);
    }
    .friend-results,.friend-requests{display:flex;flex-direction:column;gap:.75rem}
    .friend-results .friend-result,
    .friend-requests .friend-request{display:flex;align-items:center;justify-content:space-between;padding:.75rem;border-radius:10px;background:rgba(10, 16, 24, 0.6);border:1px solid rgba(64, 224, 208, 0.12);backdrop-filter:blur(4px); color:var(--g-text)}
    .friend-results button,
    .friend-requests button,
    .friend-list button{margin-left:.5rem}
    .friend-requests.hidden{display:none}
    .friend-list{list-style:none;padding:0;margin:1rem 0 0;display:flex;flex-direction:column;gap:.75rem}
    .friend-list li{display:flex;align-items:center;justify-content:space-between;padding:.75rem;border-radius:10px;background:rgba(10, 16, 24, 0.6);border:1px solid rgba(64, 224, 208, 0.12);backdrop-filter:blur(4px)}
    .friend-avatar-link{display:flex;text-decoration:none}
    .friend-avatar{width:42px;height:42px;border-radius:50%;object-fit:cover;margin-right:.75rem;flex-shrink:0}
    .friend-info{display:flex;align-items:center;gap:.75rem;flex:1}


  
  /* PROFILE GAMES LIST */

  .profile-games {
    background: linear-gradient(140deg, rgba(30, 42, 54, 0.95), rgba(23, 30, 40, 0.98));
    border: 1px solid var(--g-border);
    padding: 1.5rem;
    border-radius: var(--g-radius);
    box-shadow: var(--g-shadow);
  }
  .profile-games h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--g-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: .5rem;
    margin-bottom: 1rem;
  }
  .game-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .game-list li {
    margin: .5rem 0;
  }
  .game-list a {
    color: var(--g-accent);
    text-decoration: none;
    font-weight: 500;
  }
  .game-list a:hover {
    text-decoration: underline;
  }

  .profile-deving h3 {
    margin: 0 0 .75rem;
    font-size: 1.1rem;
    color: var(--g-text);
  }

  .deving-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
  }

  .deving-subtitle {
    margin: 0.35rem 0 0;
    color: var(--g-text-muted);
    font-size: 0.95rem;
  }

  .new-game-button {
    padding: 0.35rem 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.95rem;
  }

  .new-game-button .new-game-plus {
    font-size: 1rem;
    line-height: 1;
  }

  .new-game-button .new-game-pad {
    font-size: 1.35rem;
    line-height: 1;
  }

  .deving-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .dev-stat {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(10, 16, 24, 0.75);
    border: 1px solid rgba(64, 224, 208, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .dev-stat span {
    font-size: 0.75rem;
    color: var(--g-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .dev-stat strong {
    font-size: 1.1rem;
    color: var(--g-text);
  }

  .deving-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .deving-panel {
    padding: 1rem;
    border-radius: 14px;
    background: rgba(10, 16, 24, 0.65);
    border: 1px solid rgba(64, 224, 208, 0.18);
  }

  .deving-panel-wide {
    grid-column: 1 / -1;
  }

  .studio-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .studio-pill {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(18, 28, 38, 0.9);
    border: 1px solid rgba(64, 224, 208, 0.35);
    color: var(--g-text);
    font-size: 0.85rem;
  }

  .limit-grid {
    display: grid;
    gap: 0.65rem;
  }

  .limit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--g-text-muted);
  }

  .limit-item strong {
    color: var(--g-text);
    font-weight: 600;
  }

  .deving-games {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .dev-games-grid {
    --dev-game-card-height: 210px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.9rem;
    grid-auto-rows: var(--dev-game-card-height);
    max-height: calc(var(--dev-game-card-height) * 2 + 0.9rem);
    overflow-y: auto;
    padding-right: 0.35rem;
  }

  .dev-game-card {
    display: grid;
    grid-template-rows: 1fr auto;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: rgba(10, 16, 24, 0.7);
    border: 1px solid rgba(64, 224, 208, 0.16);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
  }

  .dev-game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(64, 224, 208, 0.25);
  }

  .dev-game-thumb {
    position: relative;
    height: 100%;
    aspect-ratio: 4 / 3;
    background: #0b111a center/cover no-repeat;
  }

  .dev-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .dev-game-info {
    padding: 0.7rem 0.8rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: linear-gradient(180deg, rgba(8, 12, 18, 0.15) 0%, rgba(8, 12, 18, 0.65) 100%);
  }

  .dev-game-title {
    font-size: 0.95rem;
    color: var(--g-text);
    font-weight: 600;
  }

  .dev-game-meta {
    font-size: 0.75rem;
    color: var(--g-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .empty-muted {
    color: var(--g-text-muted);
    font-size: 0.9rem;
  }

  /* SUBSCRIPTION CARDS */
  .subscription-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
  }
  .subscription-pending-notice {
    border: 1px solid rgba(255, 196, 64, 0.65);
    background: rgba(58, 44, 14, 0.45);
    color: #ffe5a3;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 0 12px 0;
    font-size: 0.9rem;
  }
  .subscription-pending-overages {
    margin-top: 6px;
    color: #ffd47d;
  }
  .subscription-card {
    background: linear-gradient(135deg, rgba(18, 28, 38, 0.98), rgba(26, 36, 48, 0.96));
    border: 1px solid rgba(64, 224, 208, 0.25);
    border-radius: 14px;
    padding: 14px;
    color: var(--g-text);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
  }
  .subscription-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(50, 160, 180, 0.18), transparent 55%);
    pointer-events: none;
  }
  .subscription-card.is-featured {
    border-color: rgba(64, 224, 208, 0.7);
    box-shadow: 0 10px 22px rgba(64, 224, 208, 0.2);
    transform: translateY(-2px);
  }
  .subscription-card.is-pending-downgrade {
    border-color: rgba(255, 208, 82, 0.95);
    box-shadow: 0 10px 22px rgba(255, 208, 82, 0.25);
  }
  .subscription-card.is-pending-downgrade .subscription-tier {
    color: #ffd46b;
  }
  .subscription-tier {
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--g-accent);
    font-family: var(--font-display);
    margin-bottom: 6px;
  }
  .subscription-price {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--g-text);
    margin-bottom: 10px;
  }
  .subscription-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--g-text-muted);
    margin-left: 6px;
  }
    .subscription-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--g-text-muted);
  }
  .subscription-features li {
    padding-left: 18px;
    position: relative;
  }
  .subscription-features li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--g-accent);
    font-size: 0.7rem;
    top: 2px;
  }

  .subscription-card .contact-button {
    width: 100%;
    margin-top: 12px;
    border: 1px solid rgba(64, 224, 208, 0.45);
    background: rgba(10, 16, 24, 0.85);
    color: var(--g-text);
    font-weight: 600;
  }

  .subscription-current-badge {
    width: 100%;
    margin-top: 12px;
    border: 1px solid rgba(64, 224, 208, 0.35);
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    text-align: center;
    color: var(--g-text-muted);
    background: rgba(10, 16, 24, 0.55);
    font-weight: 600;
    letter-spacing: 0.03em;
  }

    #shopping_cart{
        font-size: xx-large;
        cursor: pointer;
    }

    #bank_account{
        font-size: xx-large;
        cursor: pointer;
    }


  /* PROFILE FRIEND LIST */
  .profile-gaming {
    background: linear-gradient(140deg, rgba(30, 42, 54, 0.95), rgba(23, 30, 40, 0.98));
    border: 1px solid var(--g-border);
    padding: 1.5rem;
    border-radius: var(--g-radius);
    max-height: none;
    box-shadow: var(--g-shadow);
  }
  .profile-gaming h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--g-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: .5rem;
    margin-bottom: 1rem;
  }
  .profile-games h2,
  .profile-friends h2,
  .profile-gaming h2 {
    font-family: var(--font-display);
    letter-spacing: 0.04em;
  }
  .gaming-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .gaming-list li {
    margin: .5rem 0;
  }
  .gaming-list a {
    color: var(--g-accent);
    text-decoration: none;
    font-weight: 500;
  }
  .gaming-list a:hover {
    text-decoration: underline;
  }







  

    .gaming-header{display:flex;justify-content:space-between;align-items:flex-end;gap:1.5rem;flex-wrap:wrap;margin-bottom:1.25rem}
    .gaming-subtitle{margin:.4rem 0 0;color:var(--g-text-muted);font-size:.95rem}
    .gaming-toolbar{display:flex;gap:.5rem;align-items:center}
    .gaming-toolbar input{
        flex: 1;
        min-width: 0;
        padding: 8px 10px;
        border-radius: 8px;
        border: 1px solid rgba(64, 224, 208, 0.35);
        background: rgba(10, 16, 24, 0.85);
        color: var(--g-text);
    }
    .gaming-results{margin-bottom:1rem;color:var(--g-text-muted)}
    .gaming-saves{
        display:grid;
        grid-template-columns:repeat(4,minmax(0,1fr));
        grid-auto-rows:auto;
        gap:1rem;
        max-height:none;
        overflow-y:auto;
        padding-right:.5rem;
    }
    .gaming-card{display:flex;flex-direction:column;background:rgba(10,16,24,0.7);border:1px solid rgba(64,224,208,0.16);border-radius:14px;overflow:hidden;box-shadow:0 12px 24px rgba(0,0,0,0.25)}
    .gaming-card__poster{position:relative;display:block;aspect-ratio:4 / 3;background:#0b111a center/cover no-repeat;border-bottom:1px solid rgba(64,224,208,0.12)}
    .gaming-card__poster img{width:100%;height:100%;object-fit:cover;display:block}
    .gaming-empty{padding:1.5rem;border-radius:12px;background:rgba(9,14,22,0.7);border:1px dashed rgba(64,224,208,0.25);text-align:center}
    .gaming-empty-title{font-size:1rem;color:var(--g-text);margin-bottom:.35rem}
    .gaming-empty-text{color:var(--g-text-muted);font-size:.9rem}

    @media (max-width: 1200px){
        .gaming-saves{grid-template-columns:repeat(3,minmax(0,1fr));}
    }
    @media (max-width: 900px){
        .gaming-saves{grid-template-columns:repeat(2,minmax(0,1fr));}
    }
    @media (max-width: 600px){
        .gaming-saves{grid-template-columns:1fr;max-height:none;}
    }

















  /* PAGE FOOTER */
  .page-footer {
    text-align: center;
    padding: 1rem 0;
    margin-top: 3rem;
    color: var(--g-text-muted);
    font-size: .85rem;
  }


  
/* PAGE MODAL WINDOW */
  .modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #222;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 1rem;
    z-index: 1000;
    width: 80%;
    max-width: 500px;
}

.modal-header {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: turquoise;
}

.modal-body {
    margin-bottom: 1rem;
    color: whitesmoke;
}

.modal-image {
    width: 94%;
    margin:auto;
}

.poster-carousel {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    height: 32px;
    overflow: hidden;
}

.poster-carousel-track {
    display: flex;
    gap: 6px;
    overflow: hidden;
    flex: 1;
    height: 100%;
}

.poster-thumb {
    background: #1f1f1f;
    border: 1px solid #333;
    padding: 2px;
    border-radius: 4px;
    cursor: pointer;
    height: 100%;
}

.poster-thumb img {
    display: block;
    height: 100%;
    width: auto;
    border-radius: 3px;
}

.poster-carousel-btn {
    background: transparent;
    color: #d8d8d8;
    border: none;
    height: 100%;
    width: 32px;
    padding: 0;
    font-size: 24px;
    line-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.poster-carousel-btn:hover {
    background: #1a1a1a;
    color: #f0f0f0;
}

.modal-footer {
    text-align: right;
}

.modal button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.modal button:hover {
    background-color: #45a049;
}

.modal-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #222;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    width: 300px;
    margin: 20px auto;
}

.modal-form label {
    margin-bottom: 10px;
    color: turquoise;
    align-self: flex-start;
}

.modal-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid turquoise;
    border-radius: 4px;
    background-color: #333;
    color: white;
}

.modal-form button {
    padding: 10px 20px;
    border: 2px solid turquoise;
    border-radius: 5px;
    background-color: transparent;
    color: turquoise;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-form button:hover {
    background-color: turquoise;
    color: #111;
    box-shadow: 0 0 15px rgba(64, 224, 208, 0.5);
    transform: translateY(-2px);
}

.modal-link {
    color: turquoise;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 10px;
}

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

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}
.wallet-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 8, 18, 0.82);
    z-index: 1500;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.wallet-modal {
    width: min(980px, 96vw);
    max-height: min(86vh, 900px);
    background: linear-gradient(150deg, rgba(18, 24, 36, 0.98), rgba(11, 16, 26, 0.99));
    border: 1px solid rgba(64, 224, 208, 0.35);
    border-radius: 14px;
    box-shadow: 0 24px 46px rgba(2, 8, 18, 0.72);
  display: flex;
  flex-direction: column;
    gap: 12px;
    padding: 14px;
  overflow: hidden;
}
.wallet-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wallet-modal__header h3 {
    margin: 0;
    color: #e7f3ff;
    font-family: "Oxanium", "Source Sans 3", sans-serif;
}
.wallet-modal__close {
    min-width: 42px;
}
.wallet-modal__top {
    display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}
.wallet-stat {
    border: 1px solid rgba(64, 224, 208, 0.2);
    border-radius: 10px;
    background: rgba(18, 29, 42, 0.66);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wallet-stat span {
    color: #8aa0b5;
    font-size: 0.84rem;
}
.wallet-stat strong {
    color: #e5f2ff;
    font-size: 1.04rem;
}
.wallet-modal__purchase {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.wallet-purchase-label {
    color: #9db2c7;
    font-size: 0.9rem;
}
.wallet-increments {
    display: inline-flex;
    gap: 6px;
}
.wallet-increments button {
    min-width: 52px;
    border: 1px solid rgba(64, 224, 208, 0.22);
}
.wallet-increments button.is-active {
    border-color: rgba(64, 224, 208, 0.8);
    box-shadow: 0 0 0 1px rgba(64, 224, 208, 0.35) inset;
    color: #a8ffef;
}
.wallet-buy-btn {
    margin-left: auto;
}
.wallet-modal__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  flex: 0 0 auto;
}
.wallet-paypal-panel {
    border: 1px solid rgba(64, 224, 208, 0.24);
    border-radius: 10px;
    background: rgba(10, 16, 26, 0.74);
    padding: 10px;
  display: grid;
  gap: 10px;
}
.wallet-paypal-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.wallet-paypal-title {
    color: #9db2c7;
    font-size: 0.88rem;
}
.wallet-paypal-close-btn {
  border: 1px solid rgba(64, 224, 208, 0.22);
  border-radius: 8px;
  background: rgba(18, 29, 42, 0.66);
  color: #d9e8f7;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.82rem;
}
.wallet-paypal-close-btn:hover {
  border-color: rgba(64, 224, 208, 0.55);
}
.wallet-paypal-panel__body,
.wallet-paypal-panel #walletPayPalButtons {
  width: min(620px, 100%);
}
.wallet-status {
    color: #9db2c7;
    font-size: 0.88rem;
}
.wallet-table-wrap {
    border: 1px solid rgba(64, 224, 208, 0.2);
    border-radius: 10px;
    background: rgba(10, 14, 22, 0.72);
    overflow: auto;
    min-height: 240px;
    flex: 1 1 auto;
}
.wallet-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}
.wallet-table th,
.wallet-table td {
    border-bottom: 1px solid rgba(63, 91, 112, 0.35);
    padding: 9px 10px;
    text-align: left;
    color: #dbe7f3;
    font-size: 0.9rem;
}
.wallet-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(16, 24, 36, 0.96);
}
.wallet-table .numeric {
    text-align: right;
}
.wallet-amt-pos {
    color: #86efac;
}
.wallet-amt-neg {
    color: #fca5a5;
}
.wallet-empty {
    text-align: center;
    color: #9db2c7;
}

.enterprise-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 8, 18, 0.82);
    z-index: 1500;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.enterprise-modal {
    width: min(980px, 96vw);
    max-height: min(88vh, 980px);
    overflow: auto;
    background: linear-gradient(150deg, rgba(18, 24, 36, 0.99), rgba(11, 16, 26, 0.99));
    border: 1px solid rgba(64, 224, 208, 0.35);
    border-radius: 14px;
    box-shadow: 0 24px 46px rgba(2, 8, 18, 0.72);
    padding: 14px;
}
.enterprise-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.enterprise-modal__header h3 {
    margin: 0;
}
.enterprise-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.enterprise-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.enterprise-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #cddaea;
    font-size: 0.9rem;
}
.enterprise-form input,
.enterprise-form textarea {
    background: rgba(10, 16, 24, 0.85);
    border: 1px solid rgba(64, 224, 208, 0.24);
    color: #e6f4ff;
    border-radius: 8px;
    padding: 8px 10px;
}
.enterprise-form textarea {
    resize: vertical;
}
.enterprise-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.enterprise-form__status {
    color: #9db2c7;
    font-size: 0.9rem;
}




@keyframes panelRise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-page.container > section {
    animation: panelRise 0.6s ease both;
    backdrop-filter: blur(6px);
}
.user-page.container > section:nth-of-type(1) { animation-delay: 0.05s; }
.user-page.container > section:nth-of-type(2) { animation-delay: 0.1s; }
.user-page.container > section:nth-of-type(3) { animation-delay: 0.15s; }
.user-page.container > section:nth-of-type(4) { animation-delay: 0.2s; }
.user-page.container > section:nth-of-type(5) { animation-delay: 0.25s; }
.user-page.container > section:nth-of-type(6) { animation-delay: 0.3s; }

@media (max-width: 960px) {
    .page_header {
        flex-wrap: wrap;
        height: auto;
        gap: 10px;
        padding: 10px 12px 18px;
    }
    .toolbar-left,
    .toolbar-center,
    .toolbar-right {
        width: 100%;
        justify-content: center;
    }
    .logo {
        left: 0;
        top: 0;
        width: 220px;
    }
    .profile-overview {
        flex-direction: column;
        align-items: flex-start;
    }
    .profile-overview .profile-pic {
        width: min(142px, calc(100vw - 4rem));
        height: min(142px, calc(100vw - 4rem));
        min-width: 0;
        max-width: 100%;
        object-fit: cover;
        margin-left: 0;
        margin-right: 0;
        align-self: center;
    }
    .input_field {
        flex: 1 0 100%;
        max-width: 100%;
    }
    .friend-panel,
    .gaming-panel {
        flex-direction: column;
    }
    .subscription-grid {
        grid-template-columns: 1fr;
    }
    .nav-list {
        gap: 1rem;
        padding: 0 1rem;
    }
    .wallet-modal {
      max-height: min(90vh, 900px);
    }
    .wallet-modal__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .wallet-buy-btn {
        margin-left: 0;
    }
    .wallet-paypal-panel__header {
      flex-direction: column;
      align-items: stretch;
    }
    .enterprise-form__grid {
        grid-template-columns: 1fr;
    }
    .enterprise-form__footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* nav.css - styles for the main Gameatude navigation */
:root {
    /* brand palette (tweak if you've updated Gameatude's theme variables) */
    --font-body: "Source Sans 3", "Segoe UI", sans-serif;
    --font-display: "Oxanium", "Source Sans 3", sans-serif;
    --g-primary: #32e0c4;
    --g-accent: #32e0c4;
    --g-accent-2: #f6c453;
    --g-bg: #0a0f14;
    --g-surface: #1b242e;
    --g-border: rgba(118, 160, 190, 0.22);
    --g-text: #e7eef5;
    --g-text-muted: #9fb0bf;
    --g-fg: #e7eef5;
    --g-fg-muted: #9fb0bf;
    --g-shadow: 0 18px 30px rgba(5, 10, 18, 0.45);
    --g-radius: 16px;
  }
  
  .nav {
    width: 100%;
    background: linear-gradient(120deg, rgba(18, 26, 34, 0.95), rgba(12, 18, 24, 0.98));
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(50, 130, 160, 0.18);
    position: sticky;             /* sticks to top on scroll */
    top: 1em;
    z-index: 1000;
  }
  
  .nav-list {
    margin: 0;
    padding: 0 2rem;
    display: flex;
    list-style: none;
    gap: 2rem;
    height: 64px;                /* banner height for “TV‑style” feel */
    align-items: center;
    overflow-x: auto;            /* gracefully handle many links */
    scrollbar-width: none;  
    justify-content: center;      /* hide firefox scrollbar */
  }
  .nav-list::-webkit-scrollbar { display:none; }
  
  .nav-list a {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.02rem;
    letter-spacing: .03em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--g-fg-muted);
    text-decoration: none;
    padding: .5rem 0;
    position: relative;
    transition: color .25s ease;
  }
  
  .nav-list a::after {
    /* animated underline / focus bar */
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 3px;
    background: var(--g-primary);
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
  }
  
  .nav-list a:hover,
  .nav-list a:focus-visible {
    color: var(--g-fg);
  }
  
  .nav-list a:hover::after,
  .nav-list a:focus-visible::after,
  .nav-list li.active > a::after {   /* add .active on current page */
    transform: scaleX(1);
  }
  
  /* “toolbar mode” – shrink & flatten when user scrolls down a bit */
  @supports (backdrop-filter: blur(6px)) {
    .nav.scrolled {
      background: rgba(18,18,18,.80);
      backdrop-filter: blur(12px) saturate(160%);
    }
  }
