body {
    background: #0a0a0a;
    color: white;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px;
}

#link-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1000px;
}

.link-card {

    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #00d4ff;
    font-weight: bold;
    transition: 0.3s;
}

.link-card:hover {
    transform: translateY(-5px);
    border-color: #00d4ff;
    background: #222;
}

.ad-popup {
    position: fixed;

    bottom: 20px; 
    left: 20px;
    width: 300px; 
    z-index: 900; 
    display: block; 

}

.slide-in-top { 
    animation: slideInTop 0.8s ease-out forwards; 
}

.slide-in-bottom { 
    animation: slideInBottom 0.8s ease-out forwards; 
}

.slide-in-left { 
    animation: slideInLeft 0.8s ease-out forwards; 
}

.slide-in-right { 
    animation: slideInRight 0.8s ease-out forwards; 
}

.ad-popup {
    position: fixed;
    width: 300px; 
    z-index: 900; 
    display: none; 
    overflow: visible; 
}

.ad-popup img {
    width: 100%;
    max-height: 200px; 
    object-fit: cover;  
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 2px solid transparent; 
    display: block;
    transition: border-color 0.3s ease;
}

.ad-popup:hover img {
    border-color: #3b82f6;
}

.ad-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    text-align: center;
    line-height: 24px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border: 2px solid white;
    z-index: 901; 
}

.ad-close-btn:hover {
    background-color: #d90e0e;
}

@keyframes slideInTop {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes slideInBottom {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

#credits-button, #logs-button, #info-button {
    background-color: #1a1a1a;  
    color: #00d4ff;             
    border: 1px solid #333;     
    border-radius: 8px;         
    padding: 12px 25px;         
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;            
    transition: all 0.3s ease;  
    margin: 10px;               
    font-family: sans-serif;    
}

#credits-button:hover, #logs-button:hover, #info-button:hover {
    background-color: #222;
    border-color: #00d4ff;     
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2); 
}

#credits-button:active, #logs-button:active, #info-button:active {
    transform: translateY(1px); 
}

#credits-menu, #logs-menu, #info-menu {
    background: #1a1a1a;
    border: 1px solid #00d4ff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.button-container {
    display: flex;          
    gap: 20px;              
    margin-top: 60px;    
    margin-bottom: 40px;     
}

.credits-box {

  display: flex;
  flex-direction: column; 
  align-items: flex-start;
  padding: 15px 20px;
  margin: 15px 0;

  background: #1a1a1a; 
  border-left: 4px solid #00d4ff; 
  border-radius: 8px;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-align: left; 
}

.credits-box strong {
  color: #00d4ff; 
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  margin-bottom: 5px;
}

.credits-box p {
  margin: 0;
  color: #ccc; 
  font-size: 0.95rem;
}

.credits-box:hover {
  transform: translateX(5px); 
  background: #222;
  border-left-color: white;
}

.logs-box {

  display: flex;
  flex-direction: column; 
  align-items: flex-start;
  padding: 15px 20px;
  margin: 15px 0;

  background: #1a1a1a; 
  border-left: 4px solid #37ff00; 
  border-radius: 8px;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-align: left; 
}

.logs-box strong {
  color: #37ff00; 
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  margin-bottom: 5px;
}

.logs-box p {
  margin: 0;
  color: #ccc; 
  font-size: 0.95rem;
}

.logs-box:hover {
  transform: translateX(5px); 
  background: #222;
  border-left-color: white;
}

.info-box {

  display: flex;
  flex-direction: column; 
  align-items: flex-start;
  padding: 15px 20px;
  margin: 15px 0;

  background: #1a1a1a; 
  border-left: 4px solid #ff0000; 
  border-radius: 8px;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-align: left; 
}

.info-box strong {
  color: #ff0000; 
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  margin-bottom: 5px;
}

.info-box p {
  margin: 0;
  color: #ccc; 
  font-size: 0.95rem;
}

.info-box:hover {
  transform: translateX(5px); 
  background: #222;
  border-left-color: white;
}

.contact {
    color: #603b82;
    font-weight: bold;
    text-decoration: none;
}

.contact:hover {
    color: #7f52c2;
}

.thumb-btn {
    background-color: #007bff; 
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.thumb-btn:hover {
    background-color: #0056b3;
    transform: scale(1.05); 
}

.thumb-btn:disabled {
    background-color: #6c757d; 
    cursor: not-allowed;
    transform: none;
}

.thumb-btn {
    min-width: 120px; 
    font-weight: bold;
}

#like-count {
    margin-left: 5px;
    opacity: 0.9;
}

.golden-btn {
    background-color: #ffea00; 
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.golden-btn:hover {
    background-color: #b5b319;
    transform: scale(1.05); 
}

.golden-btn:disabled {
    background-color: #6c757d; 
    cursor: not-allowed;
    transform: none;
}

.golden-btn {
    min-width: 120px; 
    font-weight: bold;
}

#golden-count {
    margin-left: 5px;
    opacity: 0.9;
}

#golden-state {
    margin-left: 5px;
    opacity: 0.9;
}

.view-count {
    background-color: #00ff0d; 
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-count:hover {
    background-color: #0a680f;
    transform: scale(1.05); 
}

.view-count {
    min-width: 120px;
    font-weight: bold;
}

.stats-row {
    display: flex;             
    justify-content: center;   
    align-items: center;       
    gap: 15px;                 
    margin-bottom: 20px;       
    width: 100%;               
    flex-wrap: wrap;           
}

#ghastly-auth-system {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

#ghastly-auth-system #signup-container {
    background: #1a0b2e; 
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border: 2px solid #3d1d5a;
    width: 100%;
    max-width: 400px;
    text-align: center;
    font-family: 'Segoe UI', sans-serif; 
}

#ghastly-auth-system h2 {
    color: #bc6ff1;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}

#ghastly-auth-system input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #0d0216;
    border: 1px solid #5a2d82;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    display: block; 
}

#ghastly-auth-system input:focus {
    border-color: #bc6ff1;
    outline: none;
    box-shadow: 0 0 10px rgba(188, 111, 241, 0.3);
}

#ghastly-auth-system button {
    width: 100%;
    padding: 14px;
    margin-top: 15px;
    background: linear-gradient(135deg, #892cdc, #bc6ff1);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

#ghastly-auth-system button:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

#ghastly-auth-system #message {
    color: #e0d1ed;
    margin-top: 15px;
}

#auth-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px; 
}

#ghastly-auth-system {
    position: relative;
    background: #1a0b2e;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #bc6ff1;
    width: 90%;
    max-width: 400px;
}

#close-btn {
    position: absolute;
    max-width: 20%;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.05); 
    border: none;
    color: #bc6ff1;

    width: 30px;
    height: 30px;
    font-size: 20px; 
    line-height: 1; 

    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

#close-btn:hover {
    background: rgba(188, 111, 241, 0.2);
    color: #fff;
    transform: rotate(90deg); 
}

#close-btn:hover {
    background: rgba(188, 111, 241, 0.2);
    color: #fff;
    transform: rotate(90deg); 
}

.auth-form {
    display: none; 
}

#auth-buttons button {
    background: #bc6ff1;
    color: white;
    border: none;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

#ghastly-auth-system h2 {
    margin-top: 50px; 
    padding-right: 30px; 
}

#ghastly-header-right {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.auth-box-container {

    width: fit-content;       
    max-width: 900px;        
    min-width: 150px;        

    height: 55px;
    padding: 0 25px;         
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;               
    white-space: nowrap;     
}

.auth-btn {
    all: unset; 
    cursor: pointer;
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
    font-size: 1.1rem; 
    padding: 12px 24px; 
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-btn.signup {
    background: #bc6ff1;
    color: #0d0216;
}

.auth-btn.signup:hover {
    background: #ffffff;
    box-shadow: 0 0 20px #bc6ff1;
    transform: scale(1.05);
}

.auth-btn.login {
    color: #bc6ff1;
    border: 1px solid #bc6ff1;
}

.auth-btn.login:hover {
    background: rgba(188, 111, 241, 0.1);
    color: #fff;
    border-color: #fff;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    z-index: 10000; 
    display: flex;
    align-items: center; 
    justify-content: center; 
    backdrop-filter: blur(3px); 
}

.modal-box {
    background: #1e1e24; 
    border: 2px solid #bc6ff1; 
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    color: white;
    box-shadow: 0 0 20px rgba(188, 111, 241, 0.4);
    animation: popIn 0.3s ease-out;
}

.modal-btn {
    background: #bc6ff1;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: transform 0.2s;
}

.modal-btn:hover {
    transform: scale(1.05);
    background: #a555db;
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.currency-container {
    background-color: #38cff1;
    font-weight: bold;
    margin-right: 80%;
    margin-top: 4%;
    border-radius: 12px;
    box-shadow: none;
    padding: 10px 20px;
    border-style: solid;
    transition: transform 0.2s;
}

.currency-container:hover {
    transform: scale(1.05);
    background: #0950ba;
    box-shadow: 0 0 20px #0544a1
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.show-pw {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #ccc;
    margin-bottom: 10px;
}

.show-pw input {
    cursor: pointer;
    accent-color: #bc6ff1; 
}

.show-pw-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
    user-select: none; 
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333;
    transition: .3s;
    border-radius: 20px;
    border: 1px solid #bc6ff1;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #bc6ff1;
    box-shadow: 0 0 10px #bc6ff1; 
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.switch-label {
    color: #ccc;
    font-size: 0.9rem;
    font-family: inherit;
}

/* The base style for the Premium button */
.premium-card {
    background: linear-gradient(135deg, #ffd700, #bf953f) !important;
    color: #000 !important; /* Black text looks better on gold */
    font-weight: bold;
    border: 2px solid #fff;
    position: relative;
    overflow: hidden;
    animation: goldPulse 2s infinite; /* Link to the animation below */
}

/* The Pulsing Animation */
@keyframes goldPulse {
    0% {
        box-shadow: 0 0 0 0px rgba(255, 215, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0px rgba(255, 215, 0, 0);
    }
}

/* Optional: Add a "shimmer" effect over the gold */
.premium-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    transition: 0.5s;
    pointer-events: none;
}


