
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Outfit:wght@100..900&family=Prata&display=swap');
/* ── BASE ── */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh; 
  background: #000;
  color: white;
}
body.logged-out { overflow: hidden; }
body.logged-in { overflow-y: auto; }

/* ── HIDE SCROLLBAR ── */
/* Chrome, Safari, and Opera */
::-webkit-scrollbar {
  display: none;
}

/* Firefox, IE, and Edge */
html, body {
  scrollbar-width: none; 
  -ms-overflow-style: none; 
}

/* ── MATRIX ── */
.matrix-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  overflow: hidden;
  z-index: 0;
}

.matrix-pattern {
  position: relative;
  width: 1000px;
  height: 100%;
  flex-shrink: 0;
}

.matrix-column {
  position: absolute;
  top: -100%;
  width: 20px;
  height: 100%;
  font-size: 16px;
  line-height: 18px;
  font-weight: bold;
  animation: fall linear infinite;
  white-space: nowrap;
}

.matrix-column::before {
  content: "アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲンABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
  position: absolute;
  top: 0; left: 0;
  background: linear-gradient(
    to bottom,
    #ffffff 0%, #ffffff 5%,
    #00ff41 10%, #00ff41 20%,
    #00dd33 30%, #00bb22 40%,
    #009911 50%, #007700 60%,
    #005500 70%, #003300 80%,
    rgba(0,255,65,0.5) 90%,
    transparent 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  writing-mode: vertical-lr;
  letter-spacing: 1px;
}

.matrix-column:nth-child(1)  { left: 0px;   animation-delay: -2.5s; animation-duration: 3s; }
.matrix-column:nth-child(2)  { left: 25px;  animation-delay: -3.2s; animation-duration: 4s; }
.matrix-column:nth-child(3)  { left: 50px;  animation-delay: -1.8s; animation-duration: 2.5s; }
.matrix-column:nth-child(4)  { left: 75px;  animation-delay: -2.9s; animation-duration: 3.5s; }
.matrix-column:nth-child(5)  { left: 100px; animation-delay: -1.5s; animation-duration: 3s; }
.matrix-column:nth-child(6)  { left: 125px; animation-delay: -3.8s; animation-duration: 4.5s; }
.matrix-column:nth-child(7)  { left: 150px; animation-delay: -2.1s; animation-duration: 2.8s; }
.matrix-column:nth-child(8)  { left: 175px; animation-delay: -2.7s; animation-duration: 3.2s; }
.matrix-column:nth-child(9)  { left: 200px; animation-delay: -3.4s; animation-duration: 3.8s; }
.matrix-column:nth-child(10) { left: 225px; animation-delay: -1.9s; animation-duration: 2.7s; }
.matrix-column:nth-child(11) { left: 250px; animation-delay: -3.6s; animation-duration: 4.2s; }
.matrix-column:nth-child(12) { left: 275px; animation-delay: -2.3s; animation-duration: 3.1s; }
.matrix-column:nth-child(13) { left: 300px; animation-delay: -3.1s; animation-duration: 3.6s; }
.matrix-column:nth-child(14) { left: 325px; animation-delay: -2.6s; animation-duration: 2.9s; }
.matrix-column:nth-child(15) { left: 350px; animation-delay: -3.7s; animation-duration: 4.1s; }
.matrix-column:nth-child(16) { left: 375px; animation-delay: -2.8s; animation-duration: 3.3s; }
.matrix-column:nth-child(17) { left: 400px; animation-delay: -3.3s; animation-duration: 3.7s; }
.matrix-column:nth-child(18) { left: 425px; animation-delay: -2.2s; animation-duration: 2.6s; }
.matrix-column:nth-child(19) { left: 450px; animation-delay: -3.9s; animation-duration: 4.3s; }
.matrix-column:nth-child(20) { left: 475px; animation-delay: -2.4s; animation-duration: 3.4s; }
.matrix-column:nth-child(21) { left: 500px; animation-delay: -1.7s; animation-duration: 2.4s; }
.matrix-column:nth-child(22) { left: 525px; animation-delay: -3.5s; animation-duration: 3.9s; }
.matrix-column:nth-child(23) { left: 550px; animation-delay: -2s;   animation-duration: 3s; }
.matrix-column:nth-child(24) { left: 575px; animation-delay: -4s;   animation-duration: 4.4s; }
.matrix-column:nth-child(25) { left: 600px; animation-delay: -1.6s; animation-duration: 2.3s; }
.matrix-column:nth-child(26) { left: 625px; animation-delay: -3s;   animation-duration: 3.5s; }
.matrix-column:nth-child(27) { left: 650px; animation-delay: -3.8s; animation-duration: 4s; }
.matrix-column:nth-child(28) { left: 675px; animation-delay: -2.5s; animation-duration: 2.8s; }
.matrix-column:nth-child(29) { left: 700px; animation-delay: -3.2s; animation-duration: 3.6s; }
.matrix-column:nth-child(30) { left: 725px; animation-delay: -2.7s; animation-duration: 3.2s; }
.matrix-column:nth-child(31) { left: 750px; animation-delay: -1.8s; animation-duration: 2.7s; }
.matrix-column:nth-child(32) { left: 775px; animation-delay: -3.6s; animation-duration: 4.1s; }
.matrix-column:nth-child(33) { left: 800px; animation-delay: -2.1s; animation-duration: 3.1s; }
.matrix-column:nth-child(34) { left: 825px; animation-delay: -3.4s; animation-duration: 3.7s; }
.matrix-column:nth-child(35) { left: 850px; animation-delay: -2.8s; animation-duration: 2.9s; }
.matrix-column:nth-child(36) { left: 875px; animation-delay: -3.7s; animation-duration: 4.2s; }
.matrix-column:nth-child(37) { left: 900px; animation-delay: -2.3s; animation-duration: 3.3s; }
.matrix-column:nth-child(38) { left: 925px; animation-delay: -1.9s; animation-duration: 2.5s; }
.matrix-column:nth-child(39) { left: 950px; animation-delay: -3.5s; animation-duration: 3.8s; }
.matrix-column:nth-child(40) { left: 975px; animation-delay: -2.6s; animation-duration: 3.4s; }

.matrix-column:nth-child(odd)::before   { content: "アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン123456789"; }
.matrix-column:nth-child(even)::before  { content: "ガギグゲゴザジズゼゾダヂヅデドバビブベボパピプペポヴァィゥェォャュョッABCDEFGHIJKLMNOPQRSTUVWXYZ"; }
.matrix-column:nth-child(3n)::before    { content: "アカサタナハマヤラワイキシチニヒミリウクスツヌフムユルエケセテネヘメレオコソトノホモヨロヲン0987654321"; }
.matrix-column:nth-child(4n)::before    { content: "ンヲロヨモホノトソコオレメヘネテセケエルSIDDHANTユムフヌツスクウリミヒニチシキイワラヤマハナタサカア"; }
.matrix-column:nth-child(5n)::before    { content: "ガザダバパギジヂビピグズヅブプゲゼデベペゴゾドボポヴァィゥェォャュョッ!@#$%^&*()_+-=[]{}|;:,.<>?"; }

@keyframes fall {
  0%   { transform: translateY(-10%); opacity: 1; }
  100% { transform: translateY(200%); opacity: 0; }
}

/* ── HERO OVERLAY ── */
.hero-overlay {
  position: relative; 
  width: 100%;
  /* We remove 'justify-content: center' so we can control placement with padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  box-sizing: border-box;

  /* This is the gap between the Navbar and the Search Bar */
  padding-top: 35vh; 
  
  /* This is the gap between the Search Bar and the Dashboard below */
  padding-bottom: 25vh; 
}
.bangers-regular {
  /* Reset margins so they don't fight the padding */
  margin: 0 0 32px 0; 
  font-family: "Bangers", system-ui;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.05em;
  text-shadow: 0 0 40px rgba(0, 255, 65, 0.3);
}
.bangers-regular span {
  color: #00ff41;
}

/* ── SEARCH BOX ── */
#poda {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 700px; /* Master width controller - change this to scale everything */
}

.white, .border, .darkBorderBg, .glow {
  max-height: 70px;
  height: 100%;
  width: 100%;
  position: absolute;
  overflow: hidden;
  z-index: -1;
  border-radius: 12px;
  filter: blur(3px);
}

.input {
  background-color: #010201;
  border: none;
  width: 100%; /* Takes 100% of #poda */
  box-sizing: border-box; /* CRITICAL FIX: Keeps padding from expanding the width */
  height: 56px;
  border-radius: 10px;
  color: white;
  padding-inline: 59px;
  font-size: 18px;
}

.input::placeholder { color: #c0b9c0; }
.input:focus { outline: none; }

#main:focus-within > #input-mask { display: none; }
 
#pink-mask {
  pointer-events: none;
  width: 30px;
  height: 20px;
  position: absolute;
  background: #cf30aa;
  top: 10px;
  left: 5px;
  filter: blur(20px);
  opacity: 0.8;
  transition: all 2s;
}

#main:hover > #pink-mask { opacity: 0; }

.white {
  max-height: 63px;
  max-width: 707px; /* Scaled up to wrap the 700px input */
  border-radius: 10px;
  filter: blur(2px);
}

.white::before {
  content: "";
  z-index: -2;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(83deg);
  position: absolute;
  width: 1500px; height: 1500px; /* Scaled up to prevent corner clipping during rotation */
  background-repeat: no-repeat;
  filter: brightness(1.4);
  background-image: conic-gradient(
    rgba(0,0,0,0) 0%, #a099d8,
    rgba(0,0,0,0) 8%, rgba(0,0,0,0) 50%,
    #dfa2da, rgba(0,0,0,0) 58%
  );
  transition: all 2s;
}

.border {
  max-height: 59px;
  max-width: 703px; /* Scaled up */
  border-radius: 11px;
  filter: blur(0.5px);
}

.border::before {
  content: "";
  z-index: -2;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(70deg);
  position: absolute;
  width: 1500px; height: 1500px; 
  filter: brightness(1.3);
  background-repeat: no-repeat;
  background-image: conic-gradient(
    #1c191c, #402fb5 5%, #1c191c 14%,
    #1c191c 50%, #cf30aa 60%, #1c191c 64%
  );
  transition: all 2s;
}

.darkBorderBg {
  max-height: 65px;
  max-width: 711px; /* Scaled up */
}

.darkBorderBg::before {
  content: "";
  z-index: -2;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(82deg);
  position: absolute;
  width: 1500px; height: 1500px; 
  background-repeat: no-repeat;
  background-image: conic-gradient(
    rgba(0,0,0,0), #18116a,
    rgba(0,0,0,0) 10%, rgba(0,0,0,0) 50%,
    #6e1b60, rgba(0,0,0,0) 60%
  );
  transition: all 2s;
}

#poda:hover > .darkBorderBg::before { transform: translate(-50%, -50%) rotate(-98deg); }
#poda:hover > .glow::before         { transform: translate(-50%, -50%) rotate(-120deg); }
#poda:hover > .white::before        { transform: translate(-50%, -50%) rotate(-97deg); }
#poda:hover > .border::before       { transform: translate(-50%, -50%) rotate(-110deg); }

#poda:focus-within > .darkBorderBg::before { transform: translate(-50%, -50%) rotate(442deg); transition: all 4s; }
#poda:focus-within > .glow::before         { transform: translate(-50%, -50%) rotate(420deg); transition: all 4s; }
#poda:focus-within > .white::before        { transform: translate(-50%, -50%) rotate(443deg); transition: all 4s; }
#poda:focus-within > .border::before       { transform: translate(-50%, -50%) rotate(430deg); transition: all 4s; }

.glow {
  overflow: hidden;
  filter: blur(40px); /* Increased from 30px to spread the light more */
  opacity: 0.8;       /* Increased from 0.4 to make the colors much brighter */
  max-height: 130px;
  max-width: 760px; 
}
.glow::before {
  content: "";
  z-index: -2;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(60deg);
  position: absolute;
  width: 1500px; height: 1500px; 
  background-repeat: no-repeat;
  background-image: conic-gradient(
    #000, #402fb5 5%, #000 38%,
    #000 50%, #cf30aa 60%, #000 87%
  );
  transition: all 2s;
}

#filter-icon {
  position: absolute;
  top: 8px; right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  max-height: 40px;
  max-width: 38px;
  height: 100%; width: 100%;
  isolation: isolate;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(180deg, #161329, black, #1d1b4b);
  border: 1px solid transparent;
}

.filterBorder {
  height: 42px; width: 40px;
  position: absolute;
  overflow: hidden;
  top: 7px; right: 7px;
  border-radius: 10px;
}

.filterBorder::before {
  content: "";
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  position: absolute;
  width: 100px; height: 100px; 
  background-repeat: no-repeat;
  filter: brightness(1.35);
  background-image: conic-gradient(
    rgba(0,0,0,0), #3d3a4f,
    rgba(0,0,0,0) 50%, rgba(0,0,0,0) 50%,
    #3d3a4f, rgba(0,0,0,0) 100%
  );
  animation: rotate 4s linear infinite;
}

#main { position: relative; width: 100%; }

#search-icon {
  position: absolute;
  left: 20px;
  top: 15px;
}

@keyframes rotate {
  100% { transform: translate(-50%, -50%) rotate(450deg); }
}

.landing-nav {
  position: fixed;
  top: 20px;
  right: 30px;
  display: flex;
  gap: 12px;
  z-index: 100;
}

.landing-btn {
  outline: none;
  cursor: pointer;
  border: none;
  padding: 0.9rem 2rem;
  margin: 0;
  font-family: inherit;
  font-size: 17px;
  position: relative;
  display: inline-block;
  letter-spacing: 0.05rem;
  font-weight: 700;
  border-radius: 500px;
  overflow: hidden;
  /* FIX: Set base background to black so green can't bleed through the edges */
  background: #000; 
  color: ghostwhite;
}

.landing-btn span {
  position: relative;
  z-index: 10;
  transition: color 0.4s;
}

.landing-btn:hover span { color: black; }

.landing-btn::before {
  content: "";
  position: absolute;
  top: 0; left: -10%;
  width: 120%;
  height: 100%;
  z-index: 0;
  /* FIX: The sliding element is now green */
  background: #66ff66; 
  /* FIX: Starts hidden off-screen to the left */
  transform: translate3d(-100%, 0, 0) skew(30deg); 
  transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}

.landing-btn:hover::before {
  /* FIX: Slides in to perfectly cover the button, keeping the skew */
  transform: translate3d(0, 0, 0) skew(30deg); 
}

/* ── NEW LINK RESULT BOX ── */
.new-link-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: center;
  /* Negative top margin pulls it up into the empty padding space of the hero section */
  margin-top: -15vh; 
  margin-bottom: 10vh;
}

.new-link-result {
  width: 100%;
  max-width: 600px;
  background: rgba(0, 255, 65, 0.05);
  border: 1px solid #00ff41;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.15);
  backdrop-filter: blur(5px);
  /* Cool animation so it pops onto the screen */
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.new-link-result h3 {
  font-family: 'Outfit', sans-serif;
  color: white;
  margin-top: 0;
  margin-bottom: 16px;
  font-weight: 500;
  letter-spacing: 1px;
}

.result-box-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-box-inner a {
  color: #00ff41;
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.copy-btn {
  background: #00ff41;
  color: #000;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: white;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.9) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── DASHBOARD URL CARDS ── */
.url-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.url-card:hover {
  border-color: rgba(0, 255, 65, 0.5);
  background: rgba(0, 255, 65, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 65, 0.1);
}

.url-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.short-url {
  color: #00ff41;
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.short-url:hover {
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.original-url {
  color: #888;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  margin: 0;
  max-width: 400px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.url-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.click-count {
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
}

.click-count span {
  color: #00ff41;
  font-weight: bold;
  font-size: 1.3rem;
}

.analytics-btn {
  background: transparent;
  color: #00ff41;
  border: 1px solid #00ff41;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  transition: all 0.3s;
}

.analytics-btn:hover {
  background: #00ff41;
  color: #000;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
}

.copy-btn-small {
    background: transparent;
    border: 1px solid #00ff41;
    color: #00ff41;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    margin-right: 10px;
}

.copy-btn-small:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.delete-link-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: 8px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-link-btn:hover {
    background: rgba(255, 0, 60, 0.1);
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.3);
}

/* ── HIDDEN ADMIN BUTTON (YELLOW GLOW) ── */
.admin-hack-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #050505;
    border: 1px solid #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333; /* Dark gray so it stays hidden normally */
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0,0,0,0.8);
    text-decoration: none;
}

.hacker-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

/* Custom Yellow Warning Animations & Buttons */
@keyframes pulseWarning {
    0% { filter: drop-shadow(0 0 5px rgba(255, 235, 59, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(255, 235, 59, 1)); }
    100% { filter: drop-shadow(0 0 5px rgba(255, 235, 59, 0.5)); }
}

.warning-glow {
    box-shadow: 0 0 25px rgba(255, 235, 59, 0.2), inset 0 0 10px rgba(255, 235, 59, 0.1);
}

.btn-confirm-delete {
    background: #ffeb3b;
    color: #000;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.4);
    transition: all 0.2s;
}

.btn-confirm-delete:hover {
    background: #fff;
    box-shadow: 0 0 20px rgba(255, 235, 59, 0.8);
}
.admin-hack-btn:hover {
    border-color: #ffeb3b;
    box-shadow: 0 0 20px rgba(255, 235, 59, 0.6);
    color: #ffeb3b;
    transform: translateY(-3px) scale(1.05); /* Gives it a little pop */
}

.admin-hack-btn:hover .hacker-icon {
    filter: drop-shadow(0 0 8px #ffeb3b);
}