/* --- GLOBAL (styles.css) — EXAKT DEIN STAND --- */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/devanagari_400.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/latin-ext_400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/latin_400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/devanagari_600.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/latin-ext_600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/latin_600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


/* ================= Root Variables ================= */
:root { --bg: #0b0e14; --bg-soft: #111827; --card: #1a2332; --txt: #e8ecf3; --muted: #9ca3af; --brand: #5865f2; --border: #283246; --focus: #3146ff33; --shadow: 0 10px 25px rgba(0, 0, 0, .35); --radius: 18px; --radius-sm: 10px; --hdr: 64px; --gap: clamp(12px, 2vw, 20px); --ring: 0 0 0 .16rem var(--focus); --success: #059669; --warning: #f59e0b; --error: #dc2626; --info: #2563eb; --inner-shadow: inset 0 2px 6px rgba(0, 0, 0, .25); --outer-shadow: 0 6px 15px rgba(0, 0, 0, .25); }
:root.light { --bg: #f7f8fb; --bg-soft: #ffffff; --card: #ffffff; --txt: #0f1422; --muted: #4c566f; --brand: #5865f2; --border: #e6e8ee; --focus: #3146ff33; --shadow: 0 8px 20px rgba(0, 0, 0, .08); }

/* ================= Global ================= */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: rgb(1,1,14);
  overflow: hidden;
}
.body-wrapper {
  height: 100vh;
  display: flex;
  background-color: #111827;
  padding: 0 1rem;
  overflow: hidden;
}

/* ================= Sidebar ================= */
.nav-bar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 15rem;
  border-right: 1px solid #292F3A;
  transition: width .25s ease;
  overflow: hidden;
}

/* Collapsed mode (desktop forces open) */
body.sidebar-collapsed .nav-bar {
  width: 4.8rem;
}
body.sidebar-collapsed .nav-bar:hover {
  width: 15rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.2rem 0 0 .6rem;
  height: auto;
}
.logo img {
  width: 1.8rem;
  height: 1.8rem;
  object-fit: contain;
  transition: .2s;
}
body.sidebar-collapsed .logo img {
  width: 26px;
  height: 26px;
}

/* Logo Text */
.logo-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: #BFBFBF;
  white-space: nowrap;
  cursor: default;
}

/* Sidebar Links */
.link-wrapper {
  padding: .5rem 0;
}
.nav-link {
  display: flex;
  align-items: center;
  padding: .8rem;
  color: #BFBFBF;
  border-radius: 8px;
  cursor: pointer;
  transition: .2s;
}
.nav-link:hover,
.nav-link.active {
  background: #292F3A;
  color: #fff;
}
.nav-link span.material-icons {
  font-size: 22px;
  min-width: 32px;
}
.link-text {
  margin-left: 6px;
  white-space: nowrap;
}

/* Collapse hiding text */
body.sidebar-collapsed .link-text,
body.sidebar-collapsed .team-container p,
body.sidebar-collapsed .user-container p {
  display: none;
}
body.sidebar-collapsed .nav-link {
  justify-content: center;
}

/* Teams */
.team-container {
  margin-top: 1rem;
}
.team-header {
  color: #e5e7eb;
  margin-bottom: .5rem;
  cursor: default;
}
.team-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #BFBFBF;
  padding: 0rem .8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: .2s;
}
.team-link:hover {
  background: #292F3A;
}

/* User Box */
.user-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem;
  color: #BFBFBF;
  cursor: default;
}
.avatar {
  width: 2.1rem;
  height: 2.1rem;
}
.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.user-name {
  font-size: 15.5px;
  font-weight: 600;
}

.message-box {
  position: fixed;
  top: 40px;
  right: -350px;
  width: 200px;
  background: var(--card, #131a28);
  color: var(--txt, #fff);
  border-radius: 13px;
  box-shadow: 0 0 13px rgba(0,0,0,.4);
  padding: 10px;
  opacity: 0;
  display: block;
  z-index: 99999;
  transition: right .4s ease, opacity .4s ease;
  text-align: center;
  align-items: center;
}

.message-box.show {
  right: 20px;
  opacity: 1;
}

.message-box a {
  color: #7289da;
  font-weight: 500;
  text-decoration: underline;
}

.message-box button {
  background: var(--brand, #5865f2);
  color: #fff;
  border: none;
  padding: 3px 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* ================= Main Content ================= */
#main-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity .20s ease; 
}
#main-content.ready {
  opacity: 1;
}
.page-wrapper {
  opacity: 0;
  transition: opacity .2s ease;
}
.page-wrapper.loaded {
  opacity: 1;
}

/* ================= Responsive ================= */
@media (max-width: 768px) {
  body {
    overflow: auto;
  }
  .body-wrapper {
    flex-direction: column;
    height: auto;
    border-radius: 0;
  }
  .nav-bar { 
    width: 100% !important; 
    height: auto; 
    flex-direction: row; 
    overflow-x: auto; 
    border-right: none; 
    border-bottom: 1px solid #292F3A; 
    padding-right: 90px; 
    justify-content: center !important; 
  }
  .nav-link {
    padding: 0 !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .nav-link.active {
    background: #292F3A !important;
    border-radius: 8px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .nav-link span.material-icons {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .avatar {
    width: 1.5rem;
    height: 1.5rem;
  }
  .link-wrapper {
    display: flex;
    flex-direction: row;
    gap: 1rem;
  }
  .team-container {
    display: none;
  }
  .link-text {
    display: none;
  }
  .user-container {
    display: none;
  }
  #main-content {
    padding: 1rem;
    height: calc(100vh - 60px);
  }
}
@media (max-width: 768px) {
  body.sidebar-collapsed .nav-bar {
    width: 4.8rem !important;
  }
  body.sidebar-collapsed .nav-bar:hover {
    width: 4.8rem !important;
  }
}
@media (max-width: 768px) {
  .user-container {
    display: flex !important;
    position: absolute;
    top: 10px;
    right: 10px;
    gap: 8px;
    padding: 0;
  }
  .user-name {
    font-size: .9rem;
  }
}

/* --- TEAM (team.css) — always overrides global --- */
.team-page { padding: 2rem; color: #e5e7eb; }
.team-page .page-title { cursor: default; font-size: 2rem; font-weight: 600; margin-bottom: 1.5rem; color: #fff; }
.team-page .team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.4rem; }
.team-page .team-card { background: #1a2332; padding: 1.2rem; border-radius: 14px; border: 1px solid #283246; display: flex; flex-direction: column; align-items: center; transition: .2s; cursor: pointer; }
.team-page .team-card:hover { background: #222c40; border-color: #3a4b63; transform: translateY(-3px); }
.team-page .avatar-wrapper { position: relative; width: 65px; height: 65px; }
.team-page .avatar-wrapper img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.team-page .avatar-wrapper img:hover { opacity: 1; transform: translateY(-2px) scale(1.06)}
.team-page .status { width: 13px; height: 13px; border-radius: 50%; position: absolute; bottom: 2px; right: 2px; border: 2px solid #1a2332; }
.team-page .status.online { background: #26a25c; }
.team-page .status.offline { background: #d0ca1c; }
.team-page .info { text-align: center; margin-top: .6rem; }
.team-page .name { font-size: 1rem; font-weight: 600; margin-bottom: .2rem; }
.team-page .role { font-size: .85rem; color: #9ca3af; }
.team-page .tag { margin-top: .7rem; padding: .25rem .8rem; border-radius: 20px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.team-page .tag.admin { background: #2563eb; color: #fff; }
.team-page .tag.mod { background: #047857; color: #fff; }

/* --- PROJECT (project.css) — always overrides global --- */
.projects-page { cursor: default; padding: 2rem; color: #e5e7eb; }
.projects-page .project-list { display: flex; flex-direction: column; gap: 1rem; }
.projects-page .project-item { background: #1a2332; border: 1px solid #283246; border-radius: 14px; padding: 1.5rem; display: flex; justify-content: space-between; transition: .2s; cursor: pointer; }
.projects-page .project-item:hover { background: #222c40; border-color: #3a4b63; transform: translateY(-2px); }
.projects-page .project-info { max-width: 80%; display: grid; gap: .75rem; }
.projects-page .project-title { font-size: 1.2rem; font-weight: 600; margin: 0; }
.projects-page .project-desc { color: #9ca3af; font-size: .9rem; margin: 0; }
.projects-page .meta { display: flex; align-items: center; gap: .8rem; margin: 0; }
.projects-page .status { padding: .2rem .7rem; border-radius: 6px; font-size: .8rem; font-weight: 600; text-transform: uppercase; }
.projects-page .status.in-progress { background: #306df0; color: white; }
.projects-page .status.done        { background: #059669; color: white; }
.projects-page .status.backlog     { background: #6b7280; color: white; }
.projects-page .status.on-hold     { background: #dc2626; color: white; }
.projects-page .date { font-size: .8rem; color: #9ca3af; margin: 0; }
.projects-page .progress-bar { width: 100%; background: #101828; border-radius: 5px; height: 6px; overflow: hidden; }
.projects-page .progress { background: #5865f2; height: 100%; border-radius: 5px; }
.projects-page .project-members { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.projects-page .project-members img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #1a2332; }

/* --- CALENDAR (calendar.css) — always overrides global --- */
.calendar-page { cursor: default; padding: 2rem; color: #e5e7eb; }
.calendar-page .calendar-container { background: #1a2332; border: 1px solid #2d3748; border-radius: 14px; padding: 1.5rem; }
.calendar-page .calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.calendar-page .calendar-month { font-size: 1.4rem; font-weight: 600; color: #fff; }
.calendar-page .cal-btn { background: #292F3A; border: none; color: #fff; padding: .6rem; border-radius: 8px; cursor: pointer; display: flex; align-items: center; transition: .2s; }
.calendar-page .cal-btn:hover { background: #3a4556; }
.calendar-page .calendar-weekdays, 
.calendar-page .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: .5rem; }
.calendar-page .calendar-weekdays div { font-weight: 600; padding: .3rem 0; color: #9ca3af; }
.calendar-page .calendar-days div { padding: .7rem; background: #111827; border-radius: 10px; cursor: pointer; transition: .2s; border: 1px solid #1f2937; font-weight: 500; }
.calendar-page .calendar-days div:hover { background: #2d3748; }
.calendar-page .calendar-days div.today { background: #26a25c; color: #111; font-weight: 700; }
.calendar-page .calendar-days div.other-month { opacity: .35; }
@media (max-width: 768px) {
  .calendar-page { padding: 1rem; }
  .calendar-page .calendar-container { padding: 0.8rem; }
  .calendar-page .calendar-header { flex-direction: row; gap: .6rem; }
  .calendar-page .calendar-month { font-size: 1.15rem; }
  .calendar-page .cal-btn { padding: .4rem .5rem; }
  .calendar-page .calendar-weekdays { font-size: 0.8rem;}
  .calendar-page .calendar-weekdays,
  .calendar-page .calendar-days { grid-template-columns: repeat(7, minmax(32px, 1fr)); gap: .50rem; }
  .calendar-page .calendar-days div { padding: .45rem; font-size: .8rem; } 
}

/* --- DOCUMENTS (documents.css) — always overrides global --- */
.documents-page { cursor: default; padding: 2rem; color: #e5e7eb; }
.documents-page .file-list { display: flex; flex-direction: column; gap: 1rem; }
.documents-page .file-item { background: #1a2332; border: 1px solid #283246; border-radius: 14px; padding: 1.2rem 1.5rem; display: flex; justify-content: space-between; align-items: center; transition: .2s ease; cursor: pointer; }
.documents-page .file-item:hover { background: #222c40; border-color: #3a4b63; transform: translateY(-2px); }
.documents-page .file-info { display: grid; gap: .35rem; }
.documents-page .file-name { font-size: 1.05rem; font-weight: 600; color: #fff; margin: 0; }
.documents-page .file-meta { font-size: .85rem; color: #9ca3af; }
.documents-page .file-actions { display: flex; gap: 12px; }
.documents-page .file-actions .material-icon { width: 24px; height: 24px; opacity: 0.85; transition: .2s ease; cursor: pointer; }
.documents-page .file-actions .material-icon:hover { opacity: 1; transform: translateY(-2px) scale(1.06); }
@media (max-width: 768px) {
  .documents-page { padding: 1rem; }
  .documents-page .file-item { padding: 1rem; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .documents-page .file-actions { width: 100%; justify-content: flex-end; } 
}

/* --- REPORTS (reports.css) - always overrides global --- */
.reports-page { cursor: default; padding: 2rem; color: #e5e7eb; }
.reports-page .report-list { display: flex; flex-direction: column; gap: 1rem; }
.reports-page .report-item { background: #1a2332; border: 1px solid #283246; border-radius: 14px; padding: 1.4rem; display: flex; justify-content: space-between; align-items: center; transition: .2s ease; cursor: pointer; }
.reports-page .report-item:hover { background: #222c40; border-color: #3a4b63; transform: translateY(-2px); }
.reports-page .report-info { display: grid; gap: .55rem; }
.reports-page .report-title { font-size: 1.1rem; font-weight: 600; color: #fff; margin: 0; }
.reports-page .report-desc { color: #9ca3af; margin: 0; font-size: .88rem; }
.reports-page .report-meta { display: flex; align-items: center; gap: .7rem; }
.reports-page .report-status { padding: .22rem .65rem; border-radius: 6px; font-size: .75rem; font-weight: 600; text-transform: uppercase; color: #fff; }
.reports-page .report-status.resolved { background: #059669; }
.reports-page .report-status.action_required { background: #f59e0b; }
.reports-page .report-status.closed  { background: #dc2626; }
.reports-page .report-status.pending { background: #6b7280; }
.reports-page .report-date { font-size: .78rem; color: #9ca3af;}
.reports-page .report-actions { display: flex; gap: 12px;}
.reports-page .report-actions .material-icon { width: 22px; height: 22px; cursor: pointer; opacity: 0.85; transition: .2s ease;}
.reports-page .report-actions .material-icon:hover { opacity: 1; transform: translateY(-2px) scale(1.06); }

.reports-page .report-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 1rem; }
.reports-page .search-box { background: #1a2332; border: 1px solid #283246; padding: .6rem 0rem; border-radius: 8px; display: flex; align-items: center; gap: 8px; flex: 1; min-width: 260px; }
.reports-page .search-box input { background: transparent; border: none; outline: none; color: #fff; font-size: .9rem; flex: 1; }
.reports-page .filter-select { background: #1a2332; border: 1px solid #283246; color: #fff; padding: .6rem .9rem; border-radius: 8px; font-size: .9rem; cursor: pointer; }
.reports-page .report-pagination { margin-top: 1rem; display: flex; justify-content: center; align-items: center; gap: 14px; }
.reports-page .page-btn { background: #1a2332; border: 1px solid #283246; color: #fff; padding: .55rem 1.2rem; border-radius: 8px; cursor: pointer; transition: .2s; }
.reports-page .page-btn:hover { background: #222c40; border-color: #3a4b63; }
.reports-page .page-info { font-size: .85rem; color: #9ca3af; }

/* --- TERMS (terms.css) - always overrides global --- */
.legal-state { cursor: default; padding: 3rem; color: #e5e7eb; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: right; opacity: .9; }
.legal-state .material-icon { cursor: pointer; width: 48px; height: 48px; margin-bottom: .8rem; transition: all .25s ease; }
.legal-state .material-icon:hover { opacity: 1; transform: translateY(-2px) scale(1.1); }
.legal-state .legal-title { font-size: 1.6rem; font-weight: 600; margin-bottom: .4rem; text-align: center; }
.legal-state .legal-text { font-size: .95rem; color: #9ca3af; line-height: 1.5; max-width: 700px; text-align: left; }
.legal-state strong { color: #fff; font-weight: 600; }
.legal-state a, a:visited { color: inherit; text-decoration: none; transition: opacity .2s ease; }
.legal-state a:hover { opacity: .8; text-decoration: underline; }
@media (max-width: 640px) {
  .legal-state { padding: 2rem 1rem; }
  .legal-state .legal-title { font-size: 1.3rem; }
  .legal-state .legal-text { font-size: .9rem; text-align: left; }
}

/* --- LOGIN (login.css) — overrides global --- */
.login-state { cursor: default; padding: 1.5rem; color: #e5e7eb; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; opacity: .95; }
.login-state .material-icon { cursor: pointer; width: 52px; height: 52px; margin-bottom: .8rem; transition: all .25s ease; }
.login-state .material-icon:hover { opacity: 1; transform: translateY(-2px) scale(1.1); }
.login-state .login-title { font-size: 1.8rem; font-weight: 600; margin-bottom: .4rem; text-align: center; }
.login-state .login-text { font-size: .95rem; color: #9ca3af; line-height: 1.5; max-width: 420px; text-align: center; }
.login-state .form { display: flex; flex-direction: column; align-items: center; margin-top: 1.5rem; width: 100%; max-width: 380px; gap: .45rem; }
.login-state .form label { align-self: flex-start; color: #a5aec0; font-size: .9rem; margin-bottom: .2rem; }
.login-state .form input { width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: linear-gradient(145deg, var(--bg-soft), var(--card)); color: var(--txt); font-size: .95rem; transition: all .25s ease, box-shadow .25s ease; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .25); }
.login-state .form input::placeholder { color: #7b8496; }
.login-state .form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus), inset 0 2px 6px rgba(0, 0, 0, .25); background: var(--bg-soft); transform: translateY(-1px); }
.login-state .form button { width: 100%; margin-top: 1.4rem; padding: .75rem 1rem; border: none; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--brand), #4f5dfc); color: #fff; font-weight: 600; letter-spacing: .03em; cursor: pointer; box-shadow: 0 6px 15px rgba(0, 0, 0, .25); transition: all .25s ease; }
.login-state .form button:hover { opacity: .95; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .35); }
.login-state .form button:active { transform: translateY(0); opacity: .9; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); }
.login-state a { color: var(--brand); text-decoration: none; transition: opacity .25s ease; margin-top: 1rem; display: inline-block; }
.login-state a:hover { opacity: .8; }
@media (max-width: 640px) {
  .login-state { padding: 2rem 1rem; }
  .login-state .login-title { font-size: 1.4rem; }
  .login-state .login-text { font-size: .9rem; }
  .login-state .form { max-width: 300px; }
  .login-state .form button { font-size: .9rem; }
}

/* --- REGISTER (register.css) — polished version --- */ 
.register-state { cursor: default; padding: 1.5rem; color: #e5e7eb; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; opacity: .95; } 
.register-state .material-icon { cursor: pointer; width: 52px; height: 52px; margin-bottom: .8rem; transition: all .25s ease; } 
.register-state .material-icon:hover { opacity: 1; transform: translateY(-2px) scale(1.1); } 
.register-state .login-title { font-size: 1.8rem; font-weight: 600; margin-bottom: .4rem; text-align: center; } 
.register-state .login-text { font-size: .95rem; color: var(--txt); line-height: 1.5; max-width: 420px; text-align: center; } 
.register-state .form { display: flex; flex-direction: column; align-items: stretch; width: 100%; max-width: 380px; gap: 1rem; margin-top: 1.8rem; } 
.register-state .form label { color: #a5aec0; font-size: 0.9rem; font-weight: 600; text-align: left; margin-bottom: 0.25rem; } 
.register-state .form input { width: 100%; padding: .6rem .75rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: linear-gradient(145deg, var(--bg-soft), var(--card)); color: var(--txt); font-size: 0.95rem; transition: all 0.25s ease; box-shadow: inset 0 2px 6px rgba(0,0,0,0.25); } 
.register-state .form input::placeholder { color: #7b8496; } 
.register-state .form input:focus { outline: none; border-color: var(--brand); background: var(--bg-soft); box-shadow: 0 0 0 3px var(--focus), inset 0 2px 6px rgba(0,0,0,0.25); transform: translateY(-1px); } 
.register-state .pw-panel { display: none; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; font-size: 0.9rem; box-shadow: var(--shadow); opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .25s ease; width: 100%; margin-top: .3rem; text-align: left; } 
.register-state .pw-panel.show { display: block; opacity: 1; transform: translateY(0); } 
.register-state .pw-panel p { margin: 0 0 4px; font-weight: 600; color: var(--txt); text-align: left; } 
.register-state .pw-panel ul { list-style: none; margin: 0; padding: 0; } 
.register-state .pw-panel li { position: relative; padding-left: 24px; margin: 4px 0; font-weight: 500; opacity: 0.6; text-align: left; } 
.register-state .pw-panel li::before { content: "✖"; position: absolute; left: 0; top: 0; color: #e74c3c; font-weight: 700; } 
.register-state .pw-panel li.ok { opacity: 1; } 
.register-state .pw-panel li.ok::before { content: "✔"; color: #2ecc71; } 
.register-state .control { display: flex; align-items: center; gap: 10px; cursor: pointer; } 
.register-state .control input { position: absolute; opacity: 0; pointer-events: none; } 
.register-state .control__indicator { width: 20px; height: 20px; border-radius: 4px; background: var(--bg-soft); border: 1px solid var(--muted); position: relative; flex-shrink: 0; margin-top: 0; top: 0; } 
.register-state .control input:checked ~ .control__indicator { background: var(--brand); border-color: var(--brand); } 
.register-state .control__indicator::after { content: "✔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -55%); font-size: 14px; color: #fff; opacity: 0; line-height: 1; } 
.register-state .control input:checked ~ .control__indicator::after { opacity: 1; } 
.register-state .tos-text { font-size: 0.85rem; color: var(--txt); } 
.register-state .tos-text a { color: var(--brand); text-decoration: none; transition: opacity .2s ease; } 
.register-state .tos-text a:hover { opacity: .8; } 
.register-state .form button { width: 100%; margin-top: 1.4rem; padding: .75rem 1rem; border: none; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--brand), #4f5dfc); color: #fff; font-weight: 600; letter-spacing: .03em; cursor: pointer; box-shadow: 0 6px 15px rgba(0,0,0,.25); transition: all .25s ease; } 
.register-state .form button:hover { opacity: .95; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.35); } 
.register-state .form button:active { transform: translateY(0); opacity: .9; box-shadow: 0 3px 8px rgba(0,0,0,.25); } 
.switch-link { color: var(--brand); text-decoration: none; transition: opacity .25s ease; } 
.switch-link:hover { opacity: .8; }

/* ===========================================
   FLASH MESSAGES (key64 styled)
   =========================================== */
.flashes { list-style: none; width: 100%; max-width: 380px; padding: 0; margin: 1rem auto 1.5rem auto; }
.flashes li { padding: 0.60rem .75rem; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 500; text-align: left; animation: flashIn .25s ease-out; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.flashes li.success { background: linear-gradient(135deg, #0ea85f, #16c77a); color: #fff; }
.flashes li.danger { background: linear-gradient(135deg, #e63946, #fe4f5a); color: #fff; }
.flashes li.warning { background: linear-gradient(135deg, #f4b400, #ffcc33); color: #222; }
.flashes li.info { background: linear-gradient(135deg, #3b82f6, #5da8ff); color: #fff; }
@keyframes flashIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- COOKIES (cookies.css) — always overrides global --- */
.cookie-page { cursor: default; padding: 1.5rem; color: var(--txt); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cookie-page .material-icon { cursor: default; width: 56px; height: 56px; margin-bottom: .8rem; opacity: .9; }
.cookie-page .login-title { font-size: 1.8rem; font-weight: 600; margin-bottom: .4rem; text-align: center; }
.cookie-page .login-text { font-size: .95rem; color: var(--muted); line-height: 1.6; max-width: 420px; text-align: center; }
.cookie-page .form { display: flex; flex-direction: column; align-items: stretch; gap: 1.2rem; width: 100%; max-width: 480px; margin-top: 1.6rem; }
.cookie-page .cookie-option { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.2rem; text-align: left; box-shadow: var(--shadow); transition: border-color .25s ease; }
.cookie-page .cookie-option:hover { border-color: var(--brand); }
.cookie-page .cookie-label { font-size: 1rem; color: var(--txt); }
.cookie-page .cookie-desc { font-size: .88rem; color: var(--muted); margin: .4rem 0 0 2rem; line-height: 1.5; }
.cookie-page .form button { width: 100%; margin-top: .8rem; padding: .8rem 1rem; border: none; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--brand), #4f5dfc); color: #fff; font-weight: 600; cursor: pointer; box-shadow: 0 6px 15px rgba(0,0,0,.25); transition: all .25s ease; }
.cookie-page .form button:hover { opacity: .95; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.35); }
.cookie-page .switch-link { color: var(--txt); text-decoration: none; transition: opacity .25s ease; }
.cookie-page .switch-link:hover { opacity: .8; }
@media (max-width: 640px) { .cookie-page { padding: 2rem 1rem; } .cookie-page .login-title { font-size: 1.4rem; } .cookie-page .form { max-width: 340px; } }

/* --- FEEDBACK (feedback.css) — always overrides global --- */
.feedback-page { cursor: default; padding: 1.5rem; color: var(--txt); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; opacity: .95; }
.feedback-page .material-icon { width: 56px; height: 56px; margin-bottom: .8rem; opacity: .9; cursor: default; }
.feedback-page .login-title { font-size: 1.8rem; font-weight: 600; margin-bottom: .4rem; text-align: center; color: var(--txt); }
.feedback-page .login-text { font-size: .95rem; color: var(--muted); line-height: 1.6; max-width: 460px; text-align: center; }
.feedback-page .form { display: flex; flex-direction: column; align-items: stretch; width: 100%; max-width: 420px; gap: 1rem; margin-top: 1.8rem; }
.feedback-page .form label { color: #a5aec0; font-size: 0.9rem; font-weight: 600; text-align: left; margin-bottom: 0.25rem; }
.feedback-page .form input, .feedback-page .form select, .feedback-page .form textarea { width: 100%; padding: 0.8rem 0.9rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: linear-gradient(145deg, var(--bg-soft), var(--card)); color: var(--txt); font-size: 0.95rem; transition: all 0.25s ease; box-shadow: inset 0 2px 6px rgba(0,0,0,0.25); box-sizing: border-box; }
:root { --control-h: 44px; --brand: #5865f2; }
.feedback-page .form input, .feedback-page .form select { height: var(--control-h); padding: 0 0.9rem; line-height: normal; }
.feedback-page .form select { appearance: none; -webkit-appearance: none; -moz-appearance: none; background: linear-gradient(145deg, var(--bg-soft), var(--card)); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%235865f2' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 1rem; padding-right: 2.4rem; color: var(--txt); filter: brightness(0.95); }
.feedback-page .form select::-ms-expand { display: none; }
.feedback-page .form input:focus, .feedback-page .form select:focus, .feedback-page .form textarea:focus { outline: none; border-color: var(--brand); background: var(--bg-soft); box-shadow: 0 0 0 3px var(--focus), inset 0 2px 6px rgba(0,0,0,0.25); transform: translateY(-1px); filter: none; }
.feedback-page .form textarea { padding: 0.8rem 0.9rem; min-height: 120px; resize: vertical; }
.feedback-page .form input::placeholder, .feedback-page .form textarea::placeholder { color: #7b8496; }
.feedback-page .form button { width: 100%; margin-top: 1.2rem; padding: .8rem 1rem; border: none; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--brand), #4f5dfc); color: #fff; font-weight: 600; letter-spacing: .03em; cursor: pointer; box-shadow: 0 6px 15px rgba(0,0,0,.25); transition: all .25s ease; }
.feedback-page .form button:hover { opacity: .95; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.35); }
.feedback-page .form button:active { transform: translateY(0); opacity: .9; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.feedback-success { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem 1rem; color: var(--txt); }
.feedback-success .material-icon { width: 64px; height: 64px; color: var(--brand); margin-bottom: 1rem; }
.feedback-success h3 { font-size: 1.6rem; margin-bottom: .5rem; color: var(--brand); }
.feedback-success p { font-size: .95rem; color: var(--muted); line-height: 1.5; }
.feedback-success-box { text-align: center; padding: 2rem; animation: fadeIn 0.3s ease-in-out; }
.feedback-success h2 { color: var(--brand); margin-bottom: 0.5rem; }
.feedback-success p { color: #ccc; margin-bottom: 1.5rem; }
.btn-secondary { padding: 0.6rem 1.2rem; border: none; background: var(--brand); color: white; border-radius: 8px; cursor: pointer; }
.btn-secondary:hover { background: #4752c4; }
@media (max-width: 640px) { :root { --control-h: 40px; } .feedback-page { padding: 2rem 1rem; } .feedback-page .login-title { font-size: 1.4rem; } .feedback-page .form { max-width: 300px; gap: .8rem; } .feedback-page .form button { font-size: .9rem; } }

/* --- HELP (help.css) — always overrides global --- */
.help-page { cursor: default; padding: 1.5rem; color: var(--txt); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; opacity: .95; }
.help-page .material-icon { width: 56px; height: 56px; margin-bottom: .8rem; opacity: .9; }
.help-page .login-title { font-size: 1.8rem; font-weight: 600; margin-bottom: .6rem; text-align: center; }
.help-page .login-text { font-size: .95rem; color: var(--muted); line-height: 1.6; max-width: 520px; text-align: center; margin-bottom: 2rem; }
.faq-container { display: flex; flex-direction: column; gap: .8rem; width: 100%; max-width: 520px; text-align: left; }
.faq-item { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); transition: border-color .25s ease, background .25s ease; }
.faq-item:hover { border-color: var(--brand); background: var(--card); }
.faq-question { padding: 1rem 1.2rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; color: var(--txt); }
.faq-question .material-icon { transition: transform .25s ease; color: var(--muted); }
.faq-item.active .faq-question .material-icon { transform: rotate(180deg); color: var(--brand); }
.faq-answer { max-height: 0; overflow: hidden; padding: 0 1.2rem; color: var(--muted); font-size: .9rem; line-height: 1.5; transition: max-height .3s ease, padding .3s ease; }
.faq-item.active .faq-answer { max-height: 200px; padding: 0 1.2rem 1rem 1.2rem; }
.faq-answer a.link { color: var(--brand); text-decoration: none; transition: opacity .25s ease; }
.faq-answer a.link:hover { opacity: .8; }
.contact-box { margin-top: 2.5rem; padding: 1.5rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); width: 100%; max-width: 480px; transition: all .3s ease; }
.contact-box:hover { border-color: var(--brand); transform: translateY(-3px); }
.contact-box .material-icon { width: 40px; height: 40px; color: var(--brand); margin-bottom: .5rem; }
.contact-box h3 { font-size: 1.3rem; margin-bottom: .5rem; color: var(--txt); }
.contact-box p { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.contact-box .btn { display: inline-block; padding: .8rem 1.4rem; background: linear-gradient(135deg, var(--brand), #4f5dfc); color: #fff; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; transition: all .25s ease; }
.contact-box .btn:hover { opacity: .9; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.35); }
@media (max-width: 640px) { .help-page { padding: 2rem 1rem; } .faq-container { max-width: 340px; } .contact-box { max-width: 340px; } .help-page .login-title { font-size: 1.5rem; } }

/* --- TEMPLATE (template.css) — always overrides global --- */
.empty-state { cursor: default; padding: 3rem; text-align: center; color: #e5e7eb; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: .9; }
.empty-state .material-icon { cursor: pointer; width: 50px; height: 50px; margin-bottom: .8rem; }
.empty-state .material-icon:hover { opacity: 1; transform: translateY(-2px) scale(1.1); }
.empty-state .empty-title { font-size: 1.6rem; font-weight: 600; margin-bottom: .4rem; }
.empty-state .empty-text { font-size: .95rem; color: #9ca3af; line-height: 1.4; }

/* --- error_404 (error_404.css) — always overrides global --- */
.error_404-state { cursor: default; padding: 3rem; text-align: center; color: #e5e7eb; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: .9; }
.error_404-state .material-icon { cursor: pointer; width: 50px; height: 50px; margin-bottom: .8rem; }
.error_404-state .material-icon:hover { opacity: 1; transform: translateY(-2px) scale(1.1); }
.error_404-state .error_404-title { font-size: 1.6rem; font-weight: 600; margin-bottom: .4rem; }
.error_404-state .error_404-text { font-size: .95rem; color: #9ca3af; line-height: 1.4; }