:root{
  --bg-1:#fff1fb;
  --bg-2:#f7e8ff;
  --bg-3:#f3e5ff;
  --card:#ffffff33;
  --text:#2b2b35;
  --sub:#6b6b7a;
  --pink:#ff4db1;
  --pink-2:#ffb7e6;
  --vio:#9b8cff;
  --mint:#ff8af5;
  --glow:rgba(255, 77, 177, 0.45);
  --ring:rgba(155,140,255,.35);
  --dark-bg-1: #1a1a2e;
  --dark-bg-2: #16213e;
  --dark-bg-3: #0f3460;
  --dark-card: #2a2a4233;
  --dark-text: #eaeaea;
  --dark-sub: #b0b0c5;
  --dark-pink: #ff66b8;
  --dark-pink-2: #cc5293;
  --dark-vio: #b0a0ff;
  --dark-glow: rgba(255, 102, 184, 0.3);
  --dark-ring: rgba(176, 160, 255, 0.3);
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{
  font-family: "Nunito","Noto Sans SC",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, var(--bg-2), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, var(--bg-1), transparent 60%),
    radial-gradient(1000px 700px at 50% 110%, var(--bg-3), transparent 60%),
    linear-gradient(180deg, #fff, #f9f2ff 60%, #f0e8ff 100%);
  overflow-x:hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
body.dark-mode {
  background: 
    radial-gradient(1200px 600px at 20% -10%, var(--dark-bg-2), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, var(--dark-bg-1), transparent 60%),
    radial-gradient(1000px 700px at 50% 110%, var(--dark-bg-3), transparent 60%),
    linear-gradient(180deg, #121212, #1a1a2e 60%, #16213e 100%);
  color: var(--dark-text);
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}
body.dark-mode .navbar {
  background: rgba(26, 26, 46, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
body.dark-mode .nav-link {
  background: transparent !important;
}
body.dark-mode .nav-link:hover {
  background: rgba(176, 160, 255, 0.15);
}
@media (max-width: 768px) {
  body.dark-mode .nav-menu {
    background: rgba(26, 26, 46, 0.98);
  }
  body.dark-mode .nav-link {
    background: transparent;
    margin: 0.5rem 1rem;
  }
  body.dark-mode .nav-link:hover {
    background: rgba(176, 160, 255, 0.15);
  }
}
body.dark-mode .nav-toggle span {
  background: var(--dark-text);
}
body.dark-mode .maintenance-box {
  background: linear-gradient(180deg, #2a2a42 0%, #1e1e38 100%);
  border-color: rgba(176, 160, 255, 0.55);
  box-shadow: 0 12px 36px rgba(176, 160, 255, 0.18);
}
body.dark-mode .btn.primary {
  background: linear-gradient(180deg, var(--dark-pink), var(--dark-vio));
}
body.dark-mode .btn.secondary {
  color: var(--dark-vio);
  background: #2a2a42aa;
  border-color: rgba(176, 160, 255, 0.55);
}
body.dark-mode .note {
  color: #ffd27a;
  background: linear-gradient(180deg, #3d2c00, #5c4400);
  border-color: #8b6b00;
}
body.dark-mode .custom-footer {
  background: linear-gradient(180deg, rgba(42, 42, 66, 0.7) 0%, rgba(30, 30, 56, 0.7) 100%);
  border-color: rgba(176, 160, 255, 0.3);
  box-shadow: 0 10px 28px rgba(176, 160, 255, 0.08);
  color: var(--dark-sub);
}
body.dark-mode .custom-footer a {
  color: var(--dark-vio);
}
body.dark-mode .custom-footer a:hover {
  color: var(--dark-pink);
}
body.dark-mode .search-box input {
  background: #2a2a42aa;
  border-color: rgba(176, 160, 255, 0.55);
  color: var(--dark-text);
}
body.dark-mode .pagination a {
  background: #2a2a42aa;
  border-color: rgba(176, 160, 255, 0.55);
  color: var(--dark-vio);
}
body.dark-mode .pagination a.active,
body.dark-mode .pagination a:hover {
  background: linear-gradient(180deg, var(--dark-pink), var(--dark-vio));
}
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}
body.dark-mode .theme-toggle {
  color: var(--dark-text);
}
.theme-toggle:hover {
  transform: rotate(30deg);
}
body.dark-mode .card {
  background: linear-gradient(180deg, rgba(42, 42, 66, 0.3), rgba(42, 42, 66, 0.12)) , var(--dark-card);
  border-color: rgba(176, 160, 255, 0.35);
}
body.dark-mode .article-card {
  background: linear-gradient(180deg, #2a2a42 0%, #1e1e38 100%);
  border-color: rgba(176, 160, 255, 0.55);
}
body.dark-mode .article-title {
  color: var(--dark-text);
}
body.dark-mode .article-excerpt,
body.dark-mode .article-meta {
  color: var(--dark-sub);
}
body.dark-mode .tag {
  background: linear-gradient(180deg, #4a3a60, #3a2a50);
  color: #e0c8ff;
  border-color: rgba(176, 160, 255, 0.35);
}
body.dark-mode .article-content div[style*="background: #f1eaff"],
body.dark-mode div[style*="background: #f1eaff"] {
  background: #4a3a60 !important;
  border-bottom-color: #5a4a70 !important;
  color: #e0c8ff !important;
}
body.dark-mode .article-content pre[style*="background: #f9f9ff"],
body.dark-mode pre[style*="background: #f9f9ff"] {
  background: #2a2a42 !important;
  border-color: #4a3a60 !important;
}
body.dark-mode .article-content code,
body.dark-mode code {
  color: var(--dark-text) !important;
}
body.dark-mode #announcement-modal {
  background: linear-gradient(180deg, rgba(42, 42, 66, 0.95), rgba(30, 30, 56, 0.85)) !important;
  border-color: rgba(176, 160, 255, 0.55) !important;
}
body.dark-mode #announcement-modal h3 {
  color: var(--dark-text) !important;
  border-bottom-color: rgba(176, 160, 255, 0.2) !important;
  background: linear-gradient(90deg, var(--dark-pink), var(--dark-vio)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}
body.dark-mode #announcement-modal p {
  color: var(--dark-sub) !important;
}
body.dark-mode #announcement-modal .btn-secondary {
  background: #2a2a42aa !important;
  color: var(--dark-vio) !important;
  border-color: rgba(176, 160, 255, 0.55) !important;
}
body.dark-mode #announcement-modal .btn-secondary:hover {
  background: #3a3a52 !important;
}
body.dark-mode #announcement-modal .btn-primary {
  background: linear-gradient(180deg, var(--dark-pink), var(--dark-vio)) !important;
  color: white !important;
}
body.dark-mode #announcement-modal .btn-primary:hover {
  background: linear-gradient(180deg, var(--dark-pink-2), var(--dark-vio)) !important;
}
.sparkles{
  position:fixed; inset:0; pointer-events:none; z-index:0;
}
.sparkles i{
  position:absolute; width:10px; height:10px; 
  background: radial-gradient(#fff, rgba(255,255,255,0));
  border-radius:50%; opacity:.65; filter:blur(.5px);
  animation: floatUp linear infinite;
}
@keyframes floatUp{
  from{ transform: translateY(10vh) scale(.6); opacity:.0;}
  10%{opacity:.8}
  to{ transform: translateY(-110vh) scale(1); opacity:0;}
}
.wrap{
  min-height:100%;
  display:grid;
  place-items:center;
  padding: clamp(20px, 4vw, 48px);
  position:relative;
  z-index:1;
}
.card{
  width:min(920px, 94vw);
  background:linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.12)) , var(--card);
  border:1.5px solid rgba(255, 158, 236, .35);
  border-radius:28px;
  padding:clamp(18px, 4vw, 40px);
  box-shadow:
    0 30px 80px rgba(155,140,255,.25),
    inset 0 0 0 1px rgba(255,255,255,.4);
  backdrop-filter: blur(1px);
  position:relative;
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute; inset:-2px;
  background: conic-gradient(from 180deg at 50% 50%, #ffd6f1, #d4c9ff, #ffc9f2, #ffd6f1);
  filter: blur(20px); opacity:.35; z-index:-1;
}
.header{
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 14px; font-size:14px; font-weight:800;
  color:#6b0060; background:linear-gradient(180deg, #ffe3f7, #ffd3f1);
  border:1px solid rgba(255,122,217,0.35);
  border-radius:999px; box-shadow:0 8px 30px var(--glow), inset 0 0 0 1px #fff6;
}
.title{
  font-size: clamp(24px, 4vw, 40px);
  letter-spacing:.4px; margin:6px 0 2px; font-weight:900;
  background: linear-gradient(90deg, #ff4db1, #9b8cff 55%, #ff8af5 100%);
  -webkit-background-clip: text; background-clip:text; color:transparent;
  text-shadow: 0 2px 0 #ffffff80;
}
.lead{
  color:var(--sub); margin:10px 0 18px; font-size: clamp(14px, 2.3vw, 18px);
}
.content{
  display:grid; gap:16px;
  grid-template-columns: 1.05fr .95fr;
}
@media (max-width:840px){
  .content{ grid-template-columns: 1fr; }
}
.maintenance-box{
  padding:16px; border-radius:18px;
  background: linear-gradient(180deg, #fff7fd 0%, #f1eaff 100%);
  border:1px dashed rgba(155,140,255,.55);
  box-shadow: 0 12px 36px rgba(255, 122, 217, .18);
}
.domain{
  font-size: clamp(18px, 2.8vw, 22px);
  font-weight:900; letter-spacing:.3px;
}
.actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:14px; }
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 18px; border-radius:14px;
  font-weight:900; text-decoration:none; cursor:pointer; user-select:none;
  box-shadow: 0 10px 28px var(--ring), inset 0 -2px 0 rgba(0,0,0,.08);
  border:1.5px solid transparent; transition: transform .08s ease, filter .2s ease;
}
.btn:active{ transform: translateY(1px) }
.btn.primary{
  color:#fff;
  background: linear-gradient(180deg, var(--pink), var(--vio));
  border-color: rgba(255,255,255,.5);
}
.btn.secondary{
  color:#6c5dfb; background: #ffffffaa; 
  border-color: rgba(155,140,255,.55);
  backdrop-filter: blur(6px);
}
.note{
  margin-top:14px; padding:12px 14px; font-size:14px;
  color:#6b3f00; background: linear-gradient(180deg, #fff4d6, #ffe7ae);
  border:1px solid #ffd27a; border-radius:12px;
}
.footer{
  margin-top:20px; color:#7b7b8a; font-size:13px; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;
  border-top:1px dashed rgba(155,140,255,.4); padding-top:14px;
}
.features-list {
  margin: 16px 0;
  padding-left: 20px;
}
.features-list li {
  margin-bottom: 8px;
  position: relative;
}
.features-list li:before {
  content: "✨";
  position: absolute;
  left: -20px;
}
.sticker{
  position:relative; display:grid; place-items:center;
  min-height:240px; padding:12px;
}
.star{
  width:min(360px, 80%); filter: drop-shadow(0 18px 30px rgba(155,140,255,.35));
  animation: rotate 8s linear infinite;
}
@keyframes rotate{
  0%{ transform: rotate(0deg) }
  100%{ transform: rotate(360deg) }
}
.ribbon{
  position:absolute; top:12px; right:10px;
  background: linear-gradient(90deg, #ffb7e6, #c7b8ff);
  color:#5a0070; font-weight:900; padding:8px 12px; border-radius:10px;
  border:1px solid rgba(255,255,255,.7);
  box-shadow: 0 10px 24px rgba(255, 122, 217, .25);
  transform: rotate(6deg);
}
.kira{
  position:absolute; right:14%; top:24%;
  width:56px; height:56px; pointer-events:none;
  background: radial-gradient(circle at 50% 50%, #fff 0 35%, #ffc9f2 35% 60%, transparent 60%);
  clip-path: polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%);
  filter: blur(.5px) drop-shadow(0 0 18px #ffd9f7);
  animation: twinkle 2.4s ease-in-out infinite;
}
@keyframes twinkle{
  0%,100%{ transform: scale(.9) rotate(0deg); opacity:.75 }
  50%{ transform: scale(1.15) rotate(12deg); opacity:1 }
}
.num{
  display:inline-flex; align-items:center; gap:6px;
  padding:5px 10px; border-radius:999px; font-size:12px; 
  background: #f6e9ff; color:#6c5dfb; border:1px solid #e6d8ff;
  margin-left:6px;
}
code{padding:2px 6px;border-radius:8px;background:#fff6;border:1px solid #eee}
.maintenance-tools {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}
.tool {
  width: 24px;
  height: 24px;
  background: #ffd6f1;
  border-radius: 6px;
  position: relative;
}
.tool:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #ff7ad9;
  border-radius: 2px;
}
.tool:nth-child(2):after {
  border-radius: 50%;
}
.tool:nth-child(3):after {
  width: 8px;
  height: 8px;
  background: #9b8cff;
}
@media (max-width:420px){
  .badge{font-size:13px}
  .ribbon{font-size:12px}
}
.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.search-box {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.search-box input {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(155,140,255,.55);
  background: #ffffffaa;
  backdrop-filter: blur(6px);
  font-family: inherit;
  font-size: 14px;
  min-width: 240px;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.article-card {
  background: linear-gradient(180deg, #fff7fd 0%, #f1eaff 100%);
  border: 1px dashed rgba(155,140,255,.55);
  border-radius: 18px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(255, 122, 217, .25);
  text-decoration: none;
}
.article-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #2b2b35;
  line-height: 1.4;
  text-decoration: none;
}
.article-excerpt {
  color: #6b6b7a;
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.5;
  text-decoration: none;
}
.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #7b7b8a;
  margin-bottom: 12px;
  text-decoration: none;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  text-decoration: none;
}
.tag {
  background: linear-gradient(180deg, #ffe3f7, #ffd3f1);
  color: #6b0060;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255,122,217,.35);
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ffffffaa;
  border: 1px solid rgba(155,140,255,.55);
  color: #6c5dfb;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}
.pagination a.active,
.pagination a:hover {
  background: linear-gradient(180deg, var(--pink), var(--vio));
  color: white;
  border-color: transparent;
}
.article-content {
  line-height: 1.7;
  margin-bottom: 30px;
}
.article-content h2 {
  color: #6c5dfb;
  margin-top: 24px;
  margin-bottom: 12px;
}
.article-content p {
  margin-bottom: 16px;
}
.article-content blockquote {
  border-left: 4px solid #ffb7e6;
  padding-left: 16px;
  margin: 20px 0;
  color: #6b6b7a;
  font-style: italic;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #6c5dfb;
  text-decoration: none;
  font-weight: 700;
}
.shortcode-toolbar {
    margin: 15px 0;
}
.shortcode-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.shortcode-btn {
    padding: 6px 12px;
    background: #f1eaff;
    border: 1px solid #e6d8ff;
    border-radius: 6px;
    color: #6c5dfb;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}
.shortcode-btn:hover {
    background: #e6d8ff;
    color: #5a48e8;
}
pre {
    position: relative;
    overflow-x: auto;
}
code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.5;
}
.btn.primary:hover, .btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(155, 140, 255, 0.2);
}
.btn.primary:active, .btn.secondary:active {
    transform: translateY(0);
}
.custom-footer {
    margin: 40px auto 20px;
    padding: 30px 20px;
    max-width: 1200px;
    width: 90%;
    background: linear-gradient(180deg, rgba(255, 247, 253, 0.7) 0%, rgba(241, 234, 255, 0.7) 100%);
    border: 1px dashed rgba(155, 140, 255, 0.3);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(155, 140, 255, 0.08);
    color: #6b6b7a;
    font-size: 14px;
}
.custom-footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.custom-footer .footer-section {
    flex: 1;
    min-width: 200px;
}
.custom-footer h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 800;
    background: linear-gradient(90deg, #ff4db1, #9b8cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.custom-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.custom-footer li {
    margin-bottom: 8px;
}
.custom-footer a {
    color: #6c5dfb;
    text-decoration: none;
    transition: all 0.2s ease;
}
.custom-footer a:hover {
    color: #ff4db1;
    text-decoration: underline;
    transform: translateX(3px);
    display: inline-block;
}
.custom-footer .copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px dashed rgba(155, 140, 255, 0.2);
    font-size: 13px;
    color: #7b7b8a;
}
@media (max-width: 768px) {
    .custom-footer {
        padding: 20px 15px;
        margin-top: 30px;
    }
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
}
#announcement-overlay {
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#announcement-overlay.active {
    opacity: 1;
    visibility: visible;
}
#announcement-modal {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    border: 1.5px solid rgba(255, 158, 236, 0.35);
    border-radius: 28px;
    padding: clamp(20px, 4vw, 30px);
    box-shadow: 0 30px 80px rgba(155,140,255,0.25);
    transform: translateY(20px) scale(0.98);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                opacity 0.4s ease;
    max-height: 85vh;
}
#announcement-overlay.active #announcement-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}
#announcement-modal h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid rgba(155,140,255,0.2);
    padding-bottom: 15px;
    font-size: clamp(18px, 3vw, 24px);
    background: linear-gradient(90deg, #ff4db1, #9b8cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
#announcement-modal p {
    line-height: 1.8;
    margin-bottom: 20px;
}
#announcement-modal .btn {
    cursor: pointer;
    border: none;
    border-radius: 14px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
#announcement-modal .btn-secondary {
    background: #ffffffaa;
    color: #6c5dfb;
    border: 1px solid rgba(155,140,255,0.55);
}
#announcement-modal .btn-secondary:hover {
    background: #f1eaff;
    transform: translateY(-2px);
}
#announcement-modal .btn-primary {
    background: linear-gradient(180deg, #ff4db1, #9b8cff);
    color: white;
}
#announcement-modal .btn-primary:hover {
    background: linear-gradient(180deg, #ff3a9e, #8a78e6);
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    #announcement-modal {
        max-width: 90%;
        padding: 15px;
        border-radius: 20px;
    }
}
.site-footer {
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.12)) , var(--card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1.5px solid rgba(255, 158, 236, 0.35);
    box-shadow: 0 -4px 20px rgba(155, 140, 255, 0.1);
    min-height: auto;
    padding: 20px clamp(16px, 4vw, 30px);
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    color: var(--sub);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    position: relative;
    z-index: 10;
}
body.dark-mode .site-footer {
    background: linear-gradient(180deg, rgba(42, 42, 66, 0.3), rgba(42, 42, 66, 0.12)) , var(--dark-card);
    border-top-color: rgba(176, 160, 255, 0.35);
    box-shadow: 0 -4px 20px rgba(176, 160, 255, 0.1);
    color: var(--dark-sub);
}
.site-footer-content {
    max-width: 1200px;
    width: 100%;
}
@media (max-width: 768px) {
    .site-footer {
        padding: 16px 12px;
        margin-top: 30px;
    }
}
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.auth-container h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #333;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
}
.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}
.form-group small {
    color: #999;
    font-size: 12px;
}
.required {
    color: #ff4d4f;
}
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #6c5dfb;
    color: white;
    font-size: 16px;
    cursor: pointer;
}
.btn-small {
    padding: 6px 12px;
    font-size: 14px;
    margin-left: 10px;
}
.form-hint {
    text-align: center;
    margin-top: 16px;
    color: #666;
}
.form-hint a {
    color: #6c5dfb;
    text-decoration: none;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto; 
    flex-direction: row; 
    flex-wrap: nowrap; 
}
.user-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.user-welcome {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
}
body.dark-mode .user-welcome {
    color: var(--dark-text);
}
.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(155, 140, 255, 0.3);
}
.btn-login {
    background: rgba(155, 140, 255, 0.1);
    color: #6c5dfb;
}
.btn-register {
    background: linear-gradient(180deg, var(--pink), var(--vio));
    color: white;
    border-color: transparent;
}
.btn-logout {
    background: rgba(255, 77, 177, 0.1);
    color: var(--pink);
}
body.dark-mode .btn-login {
    background: rgba(176, 160, 255, 0.15);
    color: var(--dark-vio);
}
body.dark-mode .btn-register {
    background: linear-gradient(180deg, var(--dark-pink), var(--dark-vio));
    color: white;
}
body.dark-mode .btn-logout {
    background: rgba(255, 102, 184, 0.15);
    color: var(--dark-pink);
}
.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(155, 140, 255, 0.2);
}
.btn-login:hover {
    background: rgba(155, 140, 255, 0.2);
}
.btn-register:hover {
    background: linear-gradient(180deg, #ff3a9e, #8a78e6);
}
.btn-logout:hover {
    background: rgba(255, 77, 177, 0.2);
}
.theme-toggle {
    background: rgba(155, 140, 255, 0.1);
    border: 1px solid rgba(155, 140, 255, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle:hover {
    background: rgba(155, 140, 255, 0.2);
    transform: rotate(30deg);
}
body.dark-mode .theme-toggle {
    background: rgba(176, 160, 255, 0.15);
    border-color: rgba(176, 160, 255, 0.4);
}
@media (max-width: 768px) {
    .nav-right {
        gap: 0.5rem;
    }
    .user-welcome {
        display: none; 
    }
    .btn-small {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}
@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    .user-auth {
        gap: 0.3rem;
    }
    .btn-small {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}
.auth-container {
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px;
  background: linear-gradient(135deg, #fff7fd 0%, #f1eaff 100%); 
}
body.dark-mode .auth-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 36px;
  border-radius: 24px; 
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(12px); 
  border: 1px solid rgba(155, 140, 255, 0.3); 
  box-shadow: 0 15px 35px rgba(155, 140, 255, 0.15); 
  transition: all 0.3s ease;
}
body.dark-mode .auth-card {
    background: linear-gradient(180deg, rgba(42, 42, 66, 0.8) 0%, rgba(42, 42, 66, 0.95) 100%);
    border-color: rgba(176, 160, 255, 0.35);
    box-shadow: 0 15px 35px rgba(176, 160, 255, 0.1);
}
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}
.auth-header h2 {
    font-size: 26px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #ff4db1, #9b8cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
body.dark-mode .auth-header h2 {
    background: linear-gradient(90deg, var(--dark-pink), var(--dark-vio));
}
.auth-subtitle {
    color: #6b6b7a;
    font-size: 14px;
}
body.dark-mode .auth-subtitle {
    color: var(--dark-sub);
}
.auth-form .form-group {
    margin-bottom: 24px;
}
.auth-form .form-group label {
  color: #666; 
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.auth-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px; 
  border: 1px solid rgba(155, 140, 255, 0.3);
  background: #ffffffaa;
  font-size: 16px;
  transition: all 0.2s ease;
}
body.dark-mode .auth-form input {
    background: rgba(42, 42, 66, 0.6);
    border-color: rgba(176, 160, 255, 0.35);
    color: var(--dark-text);
}
.auth-form input:focus {
  outline: none;
  border-color: #9b8cff; 
  box-shadow: 0 0 0 3px rgba(155, 140, 255, 0.1); 
}
.form-hint, .auth-terms {
  color: #7b7b8a;
  font-size: 0.85rem;
  margin-top: 12px;
  text-align: center;
}
.form-hint-right {
    text-align: right;
    margin-top: 6px;
}
.full-width {
    width: 100%;
}
.auth-terms {
    margin-top: 20px;
    font-size: 12px;
    color: #7b7b8a;
    text-align: center;
}
body.dark-mode .auth-container {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); 
}
body.dark-mode .auth-card {
  background: linear-gradient(180deg, rgba(42, 42, 66, 0.8) 0%, rgba(42, 42, 66, 0.95) 100%);
  border-color: rgba(176, 160, 255, 0.35);
  box-shadow: 0 15px 35px rgba(176, 160, 255, 0.1);
}
body.dark-mode .auth-form .form-group label {
  color: var(--dark-sub); 
}
body.dark-mode .auth-form input {
  background: rgba(42, 42, 66, 0.6);
  border-color: rgba(176, 160, 255, 0.35);
  color: var(--dark-text); 
}
.link {
    color: #6c5dfb;
    text-decoration: none;
    transition: all 0.2s ease;
}
.link:hover {
    color: #ff4db1;
    text-decoration: underline;
}
.link-primary {
    color: #6c5dfb;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.link-primary:hover {
    color: #ff4db1;
    text-decoration: underline;
}
.auth-theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
}
.user-center {
    padding: 2rem 0;
}
.profile-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.avatar-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}
.tab-container {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
}
.tab-button {
    padding: 0.5rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.tab-button:hover, .tab-button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
@media (max-width: 768px) {
    .avatar-container {
        flex-direction: column;
        text-align: center;
    }
}