:root{
    --bg:#080808;
    --panel:#111111;
    --panel-light:#171717;
    --border:#252525;

    --red:#d6111e;
    --red-dark:#8b0f16;

    --gold:#ddc76d;
    --gold-dark:#c8b15d;

    --text:#ffffff;
    --muted:#9d9d9d;
}

/* =========================================
   RESET
========================================= */

*{
    box-sizing:border-box;
}

html,
body{
    margin:0;
    padding:0;
}

/* =========================================
   LAYOUT
========================================= */

.lg-wrapper{
    display:grid;
    grid-template-columns:280px 1fr 420px;
    min-height:100vh;

    background:
        radial-gradient(circle at top right, rgba(214,17,30,.08), transparent 30%),
        radial-gradient(circle at bottom left, rgba(221,199,109,.08), transparent 35%),
        linear-gradient(135deg,#050505,#0b0b0b 60%,#131313);

    color:var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

/* =========================================
   SIDEBAR
========================================= */

.lg-sidebar{
    background:#0d0d0d;
    border-right:1px solid var(--border);

    padding:24px;

    display:flex;
    flex-direction:column;
    gap:12px;
}

.lg-sidebar-header{
    margin-bottom:10px;
}

.lg-sidebar-header h3{
    margin:0;
    font-size:22px;
    font-weight:800;
}

.lg-sidebar-header span{
    display:block;
    margin-top:4px;
    color:#888;
    font-size:13px;
}

/* =========================================
   CATEGORY BUTTONS
========================================= */

.lg-stat{
    position:relative;

    display:flex;
    align-items:center;
    justify-content:space-between;

    min-height:58px;

    padding:25px !important;

    border-radius:8px;

    text-decoration:none;
    color:#fff !important;

    background:
        linear-gradient(
            135deg,
            #181818,
            #101010
        );

    border:1px solid #252525;

    overflow:hidden;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.lg-stat::before{
    content:"";

    position:absolute;
    top:0;
    left:-120%;

    width:80%;
    height:100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.08),
            transparent
        );

    transition:.7s;
}

.lg-stat:hover::before{
    left:150%;
}

.lg-stat:hover{
    transform:translateY(-3px);

    border-color:var(--red);

    box-shadow:
        0 10px 25px rgba(214,17,30,.18);
}

.lg-stat.active{
    background:
        linear-gradient(
            135deg,
            var(--gold),
            var(--gold-dark)
        );

    color:#000 !important;

    border-color:var(--gold);

    box-shadow:
        0 12px 30px rgba(221,199,109,.20);
}

.lg-stat-label{
    font-size:14px;
    font-weight:700;
}

.lg-count{
    min-width:36px;
    height:36px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:999px;

    background:rgba(255,255,255,.08);

    color:var(--gold);

    font-size:13px;
    font-weight:800;
}

.lg-stat.active .lg-count{
    color:#000;
    background:rgba(0,0,0,.12);
}

/* =========================================
   MAIN
========================================= */

.lg-main{
      padding:25px !important;
}

/* =========================================
   SEARCH
========================================= */

.lg-search-wrap{
    margin-bottom:30px;
}

#lg-search{
    width:100%;

    padding:18px 22px;

    border-radius:16px;

    border:1px solid var(--border);

    background:#111;
    color:#fff;

    font-size:15px;

    transition:.25s;
}

#lg-search::placeholder{
    color:#777;
}

#lg-search:focus{
    outline:none;

    border-color:var(--gold);

    box-shadow:
        0 0 0 4px rgba(221,199,109,.15);
}

/* =========================================
   GRID
========================================= */

.lg-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:24px;
}

/* =========================================
   CARD
========================================= */

.lg-card{
    background:
        linear-gradient(
            180deg,
            #181818,
            #101010
        );

    border:1px solid var(--border);

    border-radius:18px;

    overflow:hidden;

    transition:.3s ease;
}

.lg-card:hover{
    transform:translateY(-6px);

    border-color:rgba(221,199,109,.35);

    box-shadow:
        0 15px 35px rgba(0,0,0,.35);
}

.lg-card img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
}

.lg-card-content{
    padding:18px;
}

.lg-card h3{
    margin:0 0 10px;
    font-size:18px;
    font-weight:700;
}

.lg-card p{
    margin:0;
    color:var(--muted);
    line-height:1.6;
}

/* =========================================
   LOAD MORE BUTTON
========================================= */

.lg-load-wrap{
    text-align:center;
    margin-top:40px;
}

.lg-load-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:16px 34px;

    border-radius:999px;

    background:
        linear-gradient(
            135deg,
            var(--red),
            var(--red-dark)
        );

    color:#fff !important;

    text-decoration:none;
    font-weight:800;

    border:1px solid rgba(214,17,30,.4);

    transition:.25s ease;

    box-shadow:
        0 10px 25px rgba(214,17,30,.25);
}

.lg-load-btn::after{
    content:"→";
    margin-left:8px;
    transition:.25s;
}

.lg-load-btn:hover{
    transform:translateY(-3px);

    background:
        linear-gradient(
            135deg,
            var(--gold),
            var(--gold-dark)
        );

    color:#000 !important;

    border-color:var(--gold);

    box-shadow:
        0 15px 35px rgba(221,199,109,.25);
}

.lg-load-btn:hover::after{
    transform:translateX(4px);
}

/* =========================================
   MODAL
========================================= */

.lg-modal{
    background:#0a0a0a;

    border-left:1px solid rgba(221,199,109,.15);

    padding:35px;

    overflow-y:auto;
}

.lg-modal-header{
    margin-bottom:20px;
    padding-bottom:15px;

    border-bottom:1px solid rgba(221,199,109,.12);
}

.lg-modal h2{
    margin:0;
    font-size:26px;
    font-weight:800;
}

#lg-modal-content{
    line-height:1.7;
}

/* =========================================
   EMPTY STATE
========================================= */

.lg-empty-state{
    text-align:center;
    padding:60px 20px;
}

.lg-empty-icon{
    font-size:50px;
    margin-bottom:15px;
}

.lg-empty-state p{
    color:#999;
}

/* =========================================
   SHARE BUTTONS
========================================= */

.lg-share{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:20px;
}

.lg-share-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-height:44px;

    padding:10px 18px;

    border-radius:999px;

    text-decoration:none;

    background:
        linear-gradient(
            135deg,
            var(--red),
            var(--red-dark)
        );

    color:#fff !important;

    font-weight:700;

    transition:.25s;
}

.lg-share-btn:hover{
    transform:translateY(-2px);

    background:
        linear-gradient(
            135deg,
            var(--gold),
            var(--gold-dark)
        );

    color:#000 !important;
}

/* =========================================
   SCROLLBAR
========================================= */

.lg-modal::-webkit-scrollbar{
    width:8px;
}

.lg-modal::-webkit-scrollbar-thumb{
    background:var(--gold);
    border-radius:20px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width:1100px){

    .lg-wrapper{
        grid-template-columns:240px 1fr;
    }

    .lg-modal{
        grid-column:1/-1;

        border-left:none;
        border-top:1px solid rgba(221,199,109,.15);
    }
}

@media (max-width:768px){

    .lg-wrapper{
        display:flex;
        flex-direction:column;
    }

    .lg-sidebar{
        border-right:none;
        border-bottom:1px solid var(--border);
    }

    .lg-sidebar,
    .lg-main,
    .lg-modal{
        padding:20px;
    }

    .lg-grid{
        grid-template-columns:1fr;
    }

    .lg-share-btn{
        width:100%;
    }

    .lg-stat{
        min-height:54px;
    }
}
/* 2026 desktop/mobile fixes */
.lg-main{padding:25px!important;min-width:0}
.lg-count{min-width:60px;min-height:36px;padding:0 14px;white-space:nowrap}
.lg-sidebar{position:sticky;top:0;height:100vh}
.lg-grid{grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:28px}
.lg-card-content,.lg-card h3,.lg-card p{padding-left:18px;padding-right:18px}
.lg-card img{transition:transform .35s ease}
.lg-card:hover img{transform:scale(1.04)}
@media(max-width:1100px){
 .lg-sidebar{position:relative;height:auto}
}


/* Premium 2026 theme */
:root{
 --red:#d6111e;--gold:#ddc76d;
}
.lg-wrapper{
background:
radial-gradient(circle at top right, rgba(214,17,30,.10), transparent 35%),
radial-gradient(circle at bottom left, rgba(221,199,109,.10), transparent 40%),
linear-gradient(135deg,#050505,#0b0b0b 60%,#131313);
}
.lg-sidebar{
backdrop-filter:blur(10px);
}
.lg-stat{
border-radius:14px;
transition:all .25s ease;
}
.lg-stat:hover{
transform:translateY(-4px);
box-shadow:0 14px 34px rgba(214,17,30,.18);
}
.lg-card{
border-radius:22px;
overflow:hidden;
box-shadow:0 10px 30px rgba(0,0,0,.18);
}
.lg-card:hover{
transform:translateY(-8px);
}
.lg-load-btn{
border-radius:999px;
background:linear-gradient(135deg,#d6111e,#ddc76d);
}


/* Next fixes */
.lg-main{
  padding:25px !important;
  min-width:0;
  overflow:hidden;
}

.lg-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:28px;
  width:100%;
}

.lg-card,
.lg-card-content,
.lg-card p,
.lg-card h3{
  max-width:100%;
  overflow-wrap:anywhere;
}

.lg-sidebar{
  position:sticky;
  top:0;
  height:100vh;
}

.lg-modal{
  position:sticky;
  top:0;
}

.lg-count{
  min-width:64px;
  padding:0 14px;
  white-space:nowrap;
}

.lg-card img{
  transition:transform .4s ease;
}

.lg-card:hover img{
  transform:scale(1.05);
}

.lg-card{
  backdrop-filter:blur(8px);
}

@media (max-width:1100px){
  .lg-wrapper{
    grid-template-columns:1fr;
  }

  .lg-sidebar,
  .lg-modal{
    position:relative;
    height:auto;
  }

  .lg-main{
    width:100%;
    max-width:100%;
  }

  .lg-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:768px){
  .lg-wrapper,
  .lg-main,
  .lg-grid,
  .lg-card{
    max-width:100%;
    overflow:hidden;
  }
}


/* Share buttons padding */
.lg-share{
    padding-left:0 ! important;
}


/* Mobile width fix */
@media (max-width:1024px){
    .lg-main{
        padding:20px !important;
        min-width:0;
    }
}

@media (max-width:768px){
    .lg-main{
        padding:15px !important;
        min-width:0;
        overflow:hidden;
    }

    .lg-grid{
        grid-template-columns:1fr !important;
        gap:18px;
        width:100%;
    }

    .lg-card,
    .lg-card-content{
        max-width:100%;
    }
}


/* 2026 user requested fixes */
.lg-card img{
    margin-bottom:25px;
}

@media (max-width:768px){
    .lg-sidebar,
    .lg-main,
    .lg-modal{
        padding:5px !important;
    }

    .lg-card-content{
        padding:5px;
        text-align:center;
    }

    .lg-card h3,
    .lg-card p{
        text-align:center;
    }
}
