
*{box-sizing:border-box}
:root{
 --navy:#181a30;
 --navy2:#22243e;
 --gold:#d6ad69;
 --paper:#fff8eb;
 --ink:#6a4529;
 --line:#dfc49c;
}
body{
 margin:0;
 min-height:100vh;
 padding:32px 18px;
 font:14px Arial,Helvetica,sans-serif;
 color:var(--ink);
 background:
 linear-gradient(90deg,rgba(8,10,26,.78),rgba(8,10,26,.65)),
 url('/ragnarok/assets/photos/backgroundhome.png')
 center/cover fixed;
}
a{text-decoration:none}
.layout{
 width:min(1200px,100%);
 min-height:680px;
 margin:auto;
 display:grid;
 grid-template-columns:245px minmax(0,1fr);
 background:var(--paper);
 border:1px solid #aa8758;
 border-radius:10px;
 overflow:hidden;
 box-shadow:0 24px 75px #0009;
}
.sidebar{
 background:linear-gradient(160deg,var(--navy),#121426);
 padding:30px 19px;
 color:#eae5da;
}
.brand{
 color:#e8bf78;
 font: bold 23px Georgia,serif;
 letter-spacing:.6px;
}
.brand-sub{
 color:#a9a8bc;
 font-size:10px;
 letter-spacing:1.8px;
 margin-top:8px;
}
.sidebar hr{
 border:0;
 border-top:1px solid #414157;
 margin:26px 0;
}
.nav{
 display:flex;
 flex-direction:column;
 gap:6px;
}
.nav a{
 display:flex;
 align-items:center;
 gap:12px;
 padding:13px 12px;
 border-radius:6px;
 color:#d4d2e0;
 font-size:13px;
}
.nav a:hover,.nav a.active{
 background:#35334a;
 color:#f4cb83;
}
.nav .symbol{
 width:22px;
 text-align:center;
 font-size:17px;
}
.side-bottom{
 margin-top:35px;
 border-top:1px solid #414157;
 padding-top:22px;
}
.side-bottom a{color:#e8bf78}
.content{
 padding:32px;
 min-width:0;
}
.top{
 display:flex;
 justify-content:space-between;
 align-items:center;
 gap:20px;
 margin-bottom:28px;
 padding-bottom:20px;
 border-bottom:1px solid var(--line);
}
h1{
 font:normal 31px Georgia,serif;
 margin:0 0 8px;
 color:#76451e;
}
.subtitle{color:#9a8062;font-size:13px}
.pill{
 background:#efe0c4;
 border:1px solid #d5b783;
 color:#76512e;
 border-radius:30px;
 padding:9px 14px;
 font-weight:bold;
 white-space:nowrap;
}
.cards{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:18px;
}
.card{
 background:#fff9ed;
 border:1px solid var(--line);
 border-radius:8px;
 padding:23px;
 min-width:0;
}
.card.wide{grid-column:1/-1}
.card.feature{
 background:linear-gradient(130deg,#f8e9cb,#f0d8ad);
}
.card h2{
 margin:0 0 13px;
 font:normal 23px Georgia,serif;
 color:#704621;
}
.card h3{
 margin:0 0 10px;
 font:normal 19px Georgia,serif;
}
.muted{color:#987d5f;font-size:13px}
.big{
 font: bold 25px Georgia,serif;
 margin-top:12px;
 overflow-wrap:anywhere;
}
.status{
 display:inline-block;
 margin:8px 0;
 padding:7px 12px;
 background:#dcebdc;
 color:#326a3b;
 border-radius:25px;
 font-size:12px;
 font-weight:bold;
}
.status.off{background:#e9dfd8;color:#80534b}
.stats{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:20px;
 margin-top:20px;
}
.countdown{
 margin-top:12px;
 font-size:23px;
 font-weight:bold;
}
.note{
 color:#91785c;
 font-size:13px;
 line-height:1.7;
}
.error{
 background:#ffe9e7;
 border:1px solid #c77870;
 padding:13px;
 border-radius:5px;
 margin-bottom:20px;
}
.field{margin:0 0 16px}
.field label{display:block;font-weight:bold;margin-bottom:7px}
.field input{
 width:100%;
 padding:12px;
 border:1px solid #c9b391;
 border-radius:5px;
}
.btn{
 background:linear-gradient(#efd39c,#cda05c);
 border:1px solid #a77c43;
 color:#493016;
 padding:11px 22px;
 border-radius:5px;
 font-weight:bold;
 cursor:pointer;
}
.logout{margin:0}
.logout button{
 width:100%;
 padding:12px;
 color:#e8bf78;
 background:#292a43;
 border:1px solid #51516b;
 border-radius:5px;
 cursor:pointer;
}
@media(max-width:760px){
 body{padding:8px}
 .layout{grid-template-columns:1fr}
 .sidebar{padding:18px}
 .sidebar hr{margin:15px 0}
 .nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .nav a{font-size:12px;padding:10px 7px}
 .side-bottom{margin-top:15px}
 .content{padding:20px 15px}
 .top{align-items:flex-start;flex-direction:column}
 .cards,.stats{grid-template-columns:1fr}
 .card.wide{grid-column:auto}
}


/* =====================================================
   YGG PORTAL - FULL SCREEN ACCOUNT CONTROL PANEL
   ===================================================== */

html, body {
    width: 100%;
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #121426;
}

.layout {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
    min-height: 100vh;
    padding: 32px 22px;
}

.content {
    min-width: 0;
    padding: 38px 48px;
}

@media (max-width: 760px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        min-height: auto;
        padding: 18px;
    }

    .content {
        padding: 22px 16px;
    }
}




/* =====================================================
   YGG RIGEL - LEFT SIDEBAR ONLY
   ===================================================== */

/* Normal parchment dashboard */
.content {
    background: #fff8eb !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Normal dashboard cards */
.card {
    background: #fff9ed !important;
}

.card.feature {
    background: linear-gradient(130deg,#f8e9cb,#f0d8ad) !important;
}

/* Rigel wallpaper ONLY inside the left sidebar */
.sidebar {
    position: relative;
    background:
        linear-gradient(
            rgba(18, 20, 38, 0.40),
            rgba(18, 20, 38, 0.58)
        ),
        url('/ragnarok/assets/photos/controlpanelrigel.png')
        70% center / cover no-repeat !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Keep sidebar text and buttons visible */
.sidebar > * {
    position: relative;
    z-index: 1;
}

/* Mobile */
@media (max-width:760px) {
    .sidebar {
        background-position: 70% 30% !important;
    }
}



/* YGG RIGEL SIDEBAR FINISHING */

/* Add dark outlines for readability over Rigel */
.brand-sub,
.nav a,
.nav .symbol,
.side-bottom a,
.logout button {
    -webkit-text-stroke: 0.35px #090b17;
    text-shadow:
        -1px -1px 1px #090b17,
         1px -1px 1px #090b17,
        -1px  1px 1px #090b17,
         1px  1px 1px #090b17,
         0px  2px 3px #090b17;
}

/* More transparent selected Dashboard button */
.nav a.active {
    background: rgba(53, 51, 74, 0.38) !important;
}

/* Transparent hover effects */
.nav a:hover {
    background: rgba(53, 51, 74, 0.48) !important;
}

/* More transparent Logout button */
.logout button {
    background: rgba(41, 42, 67, 0.35) !important;
    border: 1px solid rgba(180, 166, 207, 0.45) !important;
}

/* Logout hover */
.logout button:hover {
    background: rgba(41, 42, 67, 0.55) !important;
}



/* YGG SIDEBAR BRIGHT TEXT */

/* Bright, readable navigation labels and icons */
.sidebar .nav a,
.sidebar .nav .symbol {
    color: #FFFFFF !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.85) !important;
}

/* Active Dashboard button */
.sidebar .nav a.active,
.sidebar .nav a.active .symbol {
    color: #FFD98A !important;
}

/* Navigation hover */
.sidebar .nav a:hover,
.sidebar .nav a:hover .symbol {
    color: #FFE6AD !important;
}

/* Account Control Panel subtitle */
.sidebar .brand-sub {
    color: #FFFFFF !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.85) !important;
}

/* Back to Ragnarok */
.sidebar .side-bottom a {
    color: #FFD98A !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.85) !important;
}

/* Logout button */
.sidebar .logout button {
    color: #FFFFFF !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.85) !important;
}

/* Keep transparent buttons */
.sidebar .nav a.active {
    background: rgba(53,51,74,0.38) !important;
}

.sidebar .logout button {
    background: rgba(41,42,67,0.35) !important;
}



/* YGG RIGEL OPACITY CONTROL */

/* Darken Rigel without affecting text or buttons */
.sidebar {
    background:
        linear-gradient(
            rgba(18, 20, 38, 0.50),
            rgba(18, 20, 38, 0.50)
        ),
        url('/ragnarok/assets/photos/controlpanelrigel.png')
        70% center / cover no-repeat !important;
}

/* =====================================================
   YGG ACCOUNT PANEL - AUTO-HIDE RIGEL SIDEBAR
   ===================================================== */

@media (min-width: 761px) {

    /* Let the dashboard occupy the entire available width */
    .layout {
        display: block !important;
        width: 100% !important;
        min-height: 100vh;
        overflow: visible !important;
    }

    .content {
        width: 100%;
        min-height: 100vh;
        box-sizing: border-box;
    }

    /* Collapsed sidebar */
    .sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 260px;
        height: 100vh;
        min-height: 100vh;
        padding: 32px 22px;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
        z-index: 9999;

        transform: translateX(calc(-100% + 54px));
        transition: transform 280ms ease;
        will-change: transform;
    }

    /* Reveal the sidebar when hovered or keyboard-focused */
    .sidebar:hover,
    .sidebar:focus-within {
        transform: translateX(0);
    }

    /* Hide sidebar contents while collapsed */
    .sidebar > * {
        opacity: 0;
        transition: opacity 140ms ease;
    }

    .sidebar:hover > *,
    .sidebar:focus-within > * {
        opacity: 1;
    }

    /* Visible arrow tab */
    .sidebar::after {
        content: ">";
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        width: 34px;
        height: 50px;

        display: flex;
        align-items: center;
        justify-content: center;

        color: #ffdf9a;
        background: rgba(18, 20, 38, 0.94);
        border: 1px solid rgba(232, 191, 120, 0.75);
        border-right: 0;
        border-radius: 9px 0 0 9px;

        font: bold 25px Arial, sans-serif;
        text-shadow: 0 1px 4px #000;
        pointer-events: none;
        z-index: 10;
    }

    .sidebar:hover::after,
    .sidebar:focus-within::after {
        content: "<";
    }
}

/* Keep the complete navigation available on mobile */
@media (max-width: 760px) {
    .layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        overflow: hidden !important;
    }

    .sidebar {
        position: relative !important;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        min-height: auto;
        transform: none !important;
        overflow: visible;
    }

    .sidebar > * {
        opacity: 1 !important;
    }

    .sidebar::after {
        display: none !important;
    }
}


/* =====================================================
   YGG FIX: DASHBOARD FOLLOWS THE SLIDING SIDEBAR
   ===================================================== */

@media (min-width: 761px) {

    .content {
        margin-left: 54px !important;
        width: calc(100% - 54px) !important;
        min-width: 0;
        box-sizing: border-box;
        transition:
            margin-left 280ms ease,
            width 280ms ease !important;
    }

    .sidebar:hover ~ .content,
    .sidebar:focus-within ~ .content {
        margin-left: 260px !important;
        width: calc(100% - 260px) !important;
    }
}

@media (max-width: 760px) {
    .content {
        margin-left: 0 !important;
        width: 100% !important;
    }
}


/* YGG SIDEBAR JS-CONTROLLED LAYOUT V1 */
@media (min-width: 761px) {
    .layout > .content {
        margin-left: 54px !important;
        width: calc(100% - 54px) !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        transition: margin-left 280ms ease, width 280ms ease !important;
    }

    .layout.ygg-sidebar-expanded > .content {
        margin-left: 260px !important;
        width: calc(100% - 260px) !important;
    }

    .layout > .sidebar {
        transition: transform 280ms ease !important;
    }

    .layout > .sidebar:hover,
    .layout > .sidebar:focus-within,
    .layout.ygg-sidebar-expanded > .sidebar {
        transform: translateX(0) !important;
    }
}


/* =========================================================
   YGG MY CHARACTERS PANEL V1
   ========================================================= */
.ygg-characters-panel {
    min-width: 0;
}

.ygg-character-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.ygg-character-heading h2 {
    margin: 0 0 6px;
}

.ygg-character-heading .note {
    margin: 0;
}

.ygg-character-count {
    flex-shrink: 0;
    border: 1px solid #d9b477;
    border-radius: 7px;
    padding: 8px 12px;
    color: #76532d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .7px;
}

.ygg-character-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.ygg-character-summary-item {
    min-width: 0;
    padding: 15px;
    border: 1px solid rgba(177, 139, 91, .3);
    border-radius: 9px;
    background: rgba(255, 255, 255, .22);
}

.ygg-character-summary-item span,
.ygg-character-levels span,
.ygg-character-details span {
    display: block;
    color: #987d5f;
    font-size: 12px;
    margin-bottom: 7px;
}

.ygg-character-summary-item strong {
    display: block;
    color: #4d3825;
    font-size: 22px;
    overflow-wrap: anywhere;
}

.ygg-character-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ygg-character-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(177, 139, 91, .34);
    border-radius: 11px;
    background: rgba(255, 255, 255, .18);
    transition: border-color .18s ease, transform .18s ease;
}

.ygg-character-card:hover {
    border-color: #c59b61;
    transform: translateY(-2px);
}

.ygg-character-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin-bottom: 18px;
}

.ygg-character-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid #d9b477;
    background: linear-gradient(145deg, #f4e6cb, #d8bc8c);
    color: #5e4026;
    font-size: 21px;
    font-weight: 800;
}

.ygg-character-identity {
    flex: 1;
    min-width: 0;
}

.ygg-character-identity h3 {
    margin: 0 0 5px;
    color: #4d3825;
    overflow-wrap: anywhere;
}

.ygg-character-identity p {
    margin: 0;
    color: #987d5f;
    font-size: 13px;
}

.ygg-character-status {
    flex-shrink: 0;
    border-radius: 5px;
    padding: 6px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .4px;
}

.ygg-character-status.is-online {
    background: #d9f0df;
    color: #21683a;
}

.ygg-character-status.is-offline {
    background: #eee7df;
    color: #76685b;
}

.ygg-character-levels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.ygg-character-levels > div {
    padding: 12px;
    border-radius: 8px;
    background: rgba(201, 165, 106, .13);
}

.ygg-character-levels strong {
    color: #684723;
    font-size: 24px;
}

.ygg-character-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(177, 139, 91, .25);
}

.ygg-character-details strong {
    display: block;
    color: #55412e;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.ygg-character-map {
    grid-column: 1 / -1;
}

.ygg-character-id {
    margin-top: 16px;
    color: #a18c76;
    font-size: 11px;
}

.ygg-character-notice {
    margin-top: 12px;
    padding: 9px 11px;
    border-radius: 6px;
    background: #fff0d5;
    color: #865c1f;
    font-size: 12px;
}

.ygg-character-empty {
    padding: 36px 20px;
    border: 1px dashed rgba(177, 139, 91, .5);
    border-radius: 10px;
    text-align: center;
}

.ygg-character-empty h3 {
    margin-top: 0;
    color: #684723;
}

.ygg-character-empty p {
    margin-bottom: 0;
    color: #987d5f;
}

@media (max-width: 900px) {
    .ygg-character-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .ygg-character-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ygg-character-summary {
        grid-template-columns: 1fr;
    }

    .ygg-character-card {
        padding: 14px;
    }

    .ygg-character-card-top {
        flex-wrap: wrap;
    }
}

/* YGG Dashboard - Clickable Character Card */
.ygg-dashboard-character-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease,
                box-shadow .2s ease, transform .2s ease;
}

.ygg-dashboard-character-link:hover {
    background: #fff0d2;
    border-color: #c7954d;
    box-shadow: 0 5px 18px rgba(112,70,33,.12);
    transform: translateY(-2px);
}

.ygg-dashboard-character-link:focus-visible {
    outline: 3px solid #b78137;
    outline-offset: 3px;
}

.ygg-dashboard-character-action {
    margin-top: 12px;
    color: #966328;
    font-size: 13px;
    font-weight: 700;
}

.ygg-dashboard-character-link:hover .ygg-dashboard-character-action {
    color: #704621;
}

/* Secure reset checkout */
.ygg-reset-actions { display: grid; gap: 10px; margin-top: 18px; }
.ygg-reset-button { width: 100%; justify-content: center; }
.ygg-reset-button span { opacity: .9; }
.ygg-reset-modal { width: min(520px, calc(100vw - 32px)); padding: 0; border: 1px solid #d9b477; border-radius: 16px; background: #fffaf0; color: #4d3825; box-shadow: 0 24px 80px rgba(0,0,0,.55); }
.ygg-reset-modal::backdrop { background: rgba(7, 10, 23, .78); backdrop-filter: blur(5px); }
.ygg-reset-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px 26px 18px; border-bottom: 1px solid #ead8b8; }
.ygg-reset-modal__eyebrow { color: #a26b23; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
.ygg-reset-modal h3 { margin: 6px 0 0; color: #55351c; font: 700 23px Georgia, serif; }
.ygg-reset-modal__close { border: 0; background: transparent; color: #8d7456; font-size: 28px; line-height: 1; cursor: pointer; }
.ygg-reset-modal__character { display: flex; align-items: center; gap: 12px; margin: 22px 26px 16px; padding: 13px; border: 1px solid #e4c998; border-radius: 10px; background: #fff3d9; }
.ygg-reset-modal__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: #20243c; color: #ffce72; font-size: 20px; }
.ygg-reset-modal__character strong, .ygg-reset-modal__character span { display: block; }
.ygg-reset-modal__character span { margin-top: 3px; color: #987d5f; font-size: 12px; }
.ygg-reset-modal__summary { display: grid; grid-template-columns: 1fr auto; gap: 16px; margin: 0 26px 18px; padding: 16px; border-radius: 10px; background: #f3e3c5; }
.ygg-reset-modal__summary span { display: block; color: #987d5f; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; }
.ygg-reset-modal__summary strong { display: block; margin-top: 5px; color: #55351c; font-size: 16px; }
.ygg-reset-modal__summary div:last-child { text-align: right; }
.ygg-reset-modal__notice { margin: 0 26px 16px; padding: 13px 15px; border-left: 3px solid #d6a24d; border-radius: 6px; background: #fff5df; }
.ygg-reset-modal__notice strong { color: #875819; font-size: 13px; }
.ygg-reset-modal__notice p { margin: 6px 0 0; color: #826b50; font-size: 12px; line-height: 1.55; }
.ygg-reset-modal__check { display: flex; align-items: flex-start; gap: 10px; margin: 0 26px; color: #684723; font-size: 13px; line-height: 1.45; cursor: pointer; }
.ygg-reset-modal__check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: #bd842d; }
.ygg-reset-modal__secure { margin: 17px 26px 0; color: #927b60; font-size: 11px; }
.ygg-reset-modal__footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding: 17px 26px 22px; border-top: 1px solid #ead8b8; }
.ygg-reset-modal__submit:disabled { cursor: not-allowed; opacity: .45; }
@media (max-width: 520px) { .ygg-reset-modal__head, .ygg-reset-modal__footer { padding-left: 18px; padding-right: 18px; } .ygg-reset-modal__character, .ygg-reset-modal__summary, .ygg-reset-modal__notice, .ygg-reset-modal__check, .ygg-reset-modal__secure { margin-left: 18px; margin-right: 18px; } .ygg-reset-modal__footer { flex-direction: column-reverse; } .ygg-reset-modal__footer button { width: 100%; } }
