* {
    transition: all 0.5s ease;
    font-family: rubik;
    user-select: none;
}

body {
    overflow: hidden;
    margin: 0;
    padding: 15px;
    background-color: black;
    display: flex;
}

#canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

#customButton {
    background-color: rgb(0, 157, 255);
    padding: 8px 11px;
    border: none;
    cursor: pointer;
    height: auto;
    border-radius: 5px;
}

#customButton:hover {
    background-color: #0ec2f9;
}

#chatInputContainer {
    display: flex;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 10px;
}

#smilesInputContainer {
    display: flex;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 10px;
}



#chatInput::placeholder {
    color: #9ca3af;
    opacity: 1;
}

#captureScreen {
    background-color: rgb(255, 128, 0);
}

#chatInput:focus {
    outline: none;
    border-color: transparent;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(to right, #6366f1, #a855f7) border-box;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}


#chatInput:hover {
    border-color: #a5b4fc;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

#chatInput:disabled {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.7;
}

#chatInput.error {
    border-color: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.3);
}

#chatContainer {
    background: linear-gradient(90deg, rgb(211, 237, 255) 0%, rgba(255, 232, 224, 1) 50%, rgb(255, 254, 219) 100%);
}

#smilesContainer {

    background: linear-gradient(90deg, rgb(211, 255, 220) 0%, rgba(255, 232, 224, 1) 50%, rgb(252, 219, 255) 100%);

}

#jsonContainer {
    background: linear-gradient(90deg, rgb(230, 211, 255) 0%, rgb(255, 224, 224) 50%, rgb(219, 247, 255) 100%);
}

.fancy-input-container {
    /* padding: 200px; */
    position: absolute;
    top: -200px;
    /* Adjust spacing from bottom of viewport or buttons */
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    height: auto;
    width: 1000px;
    display: flex;
    /* flex-direction: row; */
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    gap: 32px;
}

.fancy-input-container.on {
    top: 40px !important;
}


#chatOutput {
    margin: 0;
}

#aiGenerate {
    color: #fff;
    background: linear-gradient(90deg, rgb(77, 166, 255), rgb(255, 42, 42), rgb(215, 181, 32));
    padding: 8px 11px;
    border: none;
    cursor: pointer;
    height: auto;
    border-radius: 5px;
}

#aiGenerate:hover {
    color: #ffea00;
    box-shadow: 0 0 10px rgb(255, 255, 0), 0 0 15px rgba(255, 204, 0, 0);
    background-color: #0ec2f9;
}

#buttons {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    /* background-color: #e4e4e4; */
    /* padding: 30px; */
    width: 100vw;
}

#aiContainer {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.button {
    background-color: rgb(0, 115, 8);
    padding: 8px 11px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.button:hover {
    background-color: #00d600;
}

#generateButton {
    color: #fff;
    background: linear-gradient(90deg, rgba(0, 136, 255, 1) 0%, rgb(0, 94, 255) 0%, rgba(255, 0, 98, 1) 100%);
    padding: 8px 11px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    background-size: 300% 100%;
    height: 43px;
}

#generateButton:hover {
    color: #ffea00;
    background-color: #0ec2f9;
}

#toggleLabels {
    color: #fff;
    background-color: rgb(255, 170, 0);
    padding: 8px 11px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}


#switchMode {
    color: #ffffff;
    background-color: rgb(47, 113, 212);
    padding: 8px 11px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.snake-container {
    position: relative;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
}

#compare {
    background-color: #a855f7;
}

.snake-container::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #ff0000, #ff9900, #33cc33, #3399ff, #cc33cc, #ff0000);
    background-size: 400%;
    z-index: -2;
    border-radius: 14px;
    animation: snake 8s linear infinite;
}

.snake-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-radius: 10px;
    z-index: -1;
}

#loadSmilesButton {
    height: 43px;
    background: linear-gradient(90deg, rgba(0, 136, 255, 1) 0%, rgb(0, 94, 255) 0%, rgba(255, 0, 98, 1) 100%);
}

#loadJsonButton {
    height: 43px;
    background: linear-gradient(90deg, rgba(0, 136, 255, 1) 0%, rgb(0, 94, 255) 0%, rgba(255, 0, 98, 1) 100%);
}

.typewriter {
    display: inline-block;
    overflow: hidden;
    border-right: 0.15em solid rgba(255, 166, 0, 0);
    white-space: nowrap;
    animation: typing 0.75s steps(20, end), blink-caret 0.75s step-end infinite;
}

.glow {
    font-size: 2em;
    color: #fff;
    text-shadow: 0 0 10px #fff, 0 0 20px #ff0080, 0 0 30px #ff0080;
    animation: glow 2s ease-in-out infinite alternate;
}

.fade-in {
    animation: fadeIn 0.5s;
}

.fade-out {
    animation: fadeOut 0.5s;
}

.fancy-button {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 140px;
    will-change: transform;

}

.fancy-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2), 0 0 8px rgba(255, 255, 255, 0.3);
}

.fancy-button.pulse {
    animation: subtlePulse 2s infinite;
}

@keyframes subtlePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.fancy-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); */
    transition: left 0.4s ease;
}



.fancy-button:active {
    transform: translateY(0) scale(0.98);
    /* Subtle press-down effect */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    /* Reduced shadow on click */
}

.fancy-button {
    position: relative;
    overflow: hidden;
}

.fancy-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    /* background: rgba(255, 255, 255, 0.3); */
    /* Subtle white ripple */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.fancy-button:active::after {
    width: 100px;
    /* Size of ripple */
    height: 100px;
    opacity: 0.5;
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
}

.fancy-button::after {
    left: var(--ripple-x, 50%);
    top: var(--ripple-y, 50%);
}

#import-smiles {
    background-color: #d244ef;
}

#import-json {
    background-color: #17af2d;
    display: none;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

#tutorialLinkButton {
    /* position: absolute; */
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
    background-color: #006dea;
    padding: 8px 16px;
    border-radius: 8px;
    margin: 10px;
    bottom: 10px;
    right: 10px;
    z-index: 10000000;
    width: 106px;
}

#tutorialLinkButton:hover {
    background-color: #009dff;
    transform: translate(0, -2px);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.fancy-textbox {
    padding: 12px 9px;
    border-radius: 10px;
    border: 2px solid #d1d5db;
    /* margin: 12px; */
    font-size: 15px;
    background-color: #ffffff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    caret-color: #6366f1;
    border: 2px solid #6200ea;
    width: 880px;
    /* Vibrant border color */
    border-radius: 10px;
    /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 0 10px rgba(98, 0, 234, 0.5);
    /* Subtle shadow + glow */
    height: 20px;
    outline: none;
    /* Remove default outline */
}



#loading {
    position: absolute;
    color: #fff;
    /* background-color: #00d600; */
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding: 10px 0;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 2em;
    height: 30px;
    /* Ensures text stays on one line */
    background: linear-gradient(90deg, #ff0000, #ff9900, #33cc33, #3399ff, #ff0000);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient 7s linear infinite;
    display: inline-block;
    top: -100px;
    transition: all 0.5s ease;
    z-index: 9999;
    pointer-events: none;
}

#loading.on {
    top: 15px;
}

#clear-canvas {
    background-color: #efbc44;
}

#analyze-molecule {
    background-color: #7ad23c;
}

#analysisResponseContainer {
    background-color: #c2e7ff5e;
    width: calc(100vw - 80px);
    height: 610px;
    overflow-y: scroll;
    z-index: 9999999999999999;
    position: absolute;
    top: calc(50% + 20px);
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    border: none;
    transition: all 1s ease;
    pointer-events: none;
    padding: 20px;
    color: #fff;
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 1.2em;
    opacity: 0;
    overflow-y: auto;
    overflow-x: hidden;

}

/* 
#analysisResponseContainer.on {
    top: 1500px;
    pointer-events: none;

} */
#analysisResponseContainer.on {
    opacity: 1;
    pointer-events: all !important
}

#analysisHeader {
    z-index: 99999999999999;
    background-color: #0088dd;
    padding: 10px;
    border-radius: 10px;
}

#closeAnalysis {
    position: absolute;
    transform: translate(-50%, -50%);
    right: 0px;
    top: 35px;
    background-color: rgba(255, 0, 0, 0);

}

#explorationCanvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    pointer-events: none;
    opacity: 0;
    z-index: 9;
    transition: all 0.9s ease;
    background-color: #0088dd43;
}

#compareButton {
    background-color: #5800dd;
}

#explorationCanvas.on {
    opacity: 1;
}

#styleSelector {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 9999;
    background-color: #002c55;
    width: 300px;
    height: 660px;
    /* max-height: 600px; */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #0091ff !important;
    border: 3px solid #002c55;
}

#styleSelector.on {
    bottom: -900px;
}

#molecules-list {
    color: black !important;
    /* or whatever color shows on white background */
    background: white;
    padding: 0px !important;
    height: 35px !important;
}

#editMoleculePanel {
    position: absolute;
    top: 50%;
    left: 10px;
    z-index: 9999;
    background-color: #ffffff00;
    width: 250px;
    height: auto;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    transform: translate(0%, -50%);
    gap: 10px;
}

#editMoleculePanel.on {
    left: -600px;
}

#editMoleculeContent {
    background-color: #ffbd8b1c;
    width: fit-content;
    height: 100%;
    text-align: center;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    box-shadow: inset 0 0 10px rgba(125, 125, 125, 0.215), 10px 10px 20px rgba(0, 0, 0, 0.259);
    padding: 20px;
    border-radius: 10px;

}

#select-an-atom {
    color: #000000;
    align-self: center;
}

.switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cccccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #166bb0;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.switch-label {
    font-size: 16px;
}

@keyframes gradient {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 600% 0%;
        /* Moves gradient fully to the right */
    }
}

input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    /* background: #ddd; */
    background: linear-gradient(90deg, #263d9c, #9f29ff);

    border-radius: 5px;
    outline: none;
    transition: background 0.3s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #0098ea;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #006dea;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-track {
    background: #ddd;
    border-radius: 5px;
    height: 8px;
}

input[type="range"]:focus {
    background: linear-gradient(90deg, #536ac4, #ae4bff);

}


#editMolecule {
    background: #0084ff;
    background: linear-gradient(90deg, rgba(0, 132, 255, 1) 0%, rgba(159, 69, 255, 1) 51%, rgba(255, 171, 74, 1) 100%);
}

#dragFile {
    background: #0084ff;
    background: linear-gradient(90deg, rgba(0, 132, 255, 1) 0%, rgba(159, 69, 255, 1) 51%, rgba(255, 171, 74, 1) 100%);
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;

}

#dragFile.dragover {
    opacity: 0.4;
    z-index: 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999;
    cursor: pointer;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff0000;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    margin-bottom: 8px;
}

.tooltip:hover::after {
    opacity: 1;
}

#signInButton {
    background-color: #2196F3;
}

#signOutButton {

    background-color: #8e1acd;
}

#userStatus {
    position: absolute;
    top: 7px;
    right: 10px;
    padding: 0px 0px;
    border-radius: 5px;
    color: #ffffff6a;
    background-color: none;
}

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

/* Icon styling */
.dropdown-icon {
    font-size: 24px;
    cursor: pointer;
    padding: 7px;
    background-color: #00000000;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: background 0.3s ease;
    /* Smooth transition for background */
}

/* Show dropdown when active class is present */
.dropdown.active .dropdown-content {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown.active .dropdown-icon {
    background-color: #a8e3fff0;
    backdrop-filter: blur(10px);
    color: #0038ba;
    transform: scale(1.2);
    transition: all 0.3s ease;
}

/* #toolbar-background {
    background-color: #d7d7d720;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
} */

#fragmentList {

    list-style: none;
    padding: 0;
    margin-top: 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    color: white;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 35px;
    justify-content: center;
    /* background-color: #0056b3; */
}

#fragmentListContainer {
    display: flex;
    align-items: center;
    justify-content: top;
    flex-direction: column;
    width: 130px;
    height: 100vh;
    padding: 10px 0;
    position: absolute;
    top: 0;
    right: 8px;
    margin-right: 20px;
    margin-top: 10px;
    /* background-color: chartreuse; */
}

#fragmentListTitle {
    color: white;
    position: relative;
}

#fragmentList li {
    margin: 5px 0;
    text-align: center;
    width: fit-content;
    padding: 16px 10px;
}

#selectionBox {
    position: absolute;
    border: 2px dashed;
    background: rgba(246, 255, 0, 0.1);
    pointer-events: none;
    display: none;
    z-index: 1000;
    transition: none;
    animation: pulse 2s infinite;
    border-radius: 3px;
}

#premiumUpgradeBtn {
    display: flex !important;
    opacity: 1 !important;
    z-index: 10000 !important;
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    margin-top: 10px;
}

/* Success notification style */
.limit-notification.success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.9), rgba(40, 200, 69, 0.9));
    border: 2px solid #28a745;
}

.limit-notification.success i {
    color: #ffffff;
}

#rotationSlider {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    outline: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

#rotationSlider:hover {
    opacity: 1;
}



#rotationSlider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(255, 0, 255, 0.7);
}

#rotationSlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ff00ff;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255, 0, 255, 0.5);
}

/* Axis control panel styling */
#defineAxisBtn {
    animation: pulse-magenta 2s infinite;
}

@keyframes pulse-magenta {
    0% {
        box-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 15px rgba(255, 0, 255, 0.8);
    }

    100% {
        box-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
    }
}

#removeAxisBtn:hover {
    background-color: #ff3333 !important;
    transform: scale(1.05);
}

/* Rotation value display */
#rotationValue {
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
}

/* Enhanced user initials styling - add this to your style.css */

/* User initials container */
.user-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-family: 'Rubik', sans-serif;
}

/* Signed-in state for dropdown icon - prevents rainbow effect */

.donate-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
}

.donate-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFD700;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    width: 140px;
    text-align: center;
    justify-content: center
}

.donate-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
    transform: translateY(-2px);
}

.donate-btn i {
    font-size: 16px;
}

/* Quick donation modal - matches ChopChopMol panels */
.donate-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgb(0, 42, 102) 0%, rgb(55, 0, 97) 100%);
    border-radius: 12px;
    padding: 30px;
    z-index: 10000;
    backdrop-filter: blur(20px);
    min-width: 320px;
}

.donate-modal.show {
    display: block;
}

.donate-modal h3 {
    color: #FFD700;
    margin: 0 0 20px 0;
    font-family: 'Rubik', sans-serif;
    font-size: 20px;
    text-align: center;
}

.donate-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.amount-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    transition: all 0.2s ease;
}

.amount-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
}

.amount-btn.selected {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    color: #FFD700;
}

.donate-proceed {
    width: 100%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    color: black;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.donate-proceed:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.donate-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.donate-close:hover {
    color: white;
}

/* Backdrop */
.donate-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.donate-backdrop.show {
    display: block;
}

.dropdown-icon.signed-in {
    background: transparent !important;
    padding: 6px !important;
}



/* Hover effect for user initials - replaces the rainbow effect */
.dropdown-icon.signed-in:hover .user-initials {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Animation for when user signs in */
.user-initials {
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Optional: Different color themes for variety */
.user-initials.blue-theme {
    background: linear-gradient(135deg, #2196F3 0%, #21CBF3 100%);
}

.user-initials.purple-theme {
    background: linear-gradient(135deg, #9C27B0 0%, #E91E63 100%);
}

.user-initials.green-theme {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
}

.user-initials.orange-theme {
    background: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
}

/* Ensure the settings dropdown positioning remains correct */
#settings .dropdown-icon {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes rainbow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
        /* Move gradient for seamless loop */
    }
}

@keyframes pulse {
    0% {
        border-color: #007bff;
        box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    }

    50% {
        border-color: #00d4ff;
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.7);
    }

    100% {
        border-color: #007bff;
        box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    }
}

/* Dropdown content */
.dropdown-content {
    position: absolute;
    top: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    /* background-color: #6464640c; */

    background: linear-gradient(135deg, rgba(236, 210, 255, 0.025), rgba(178, 215, 255, 0.096));
    /* display: none; */

    min-width: 160px;
    z-index: 1;
    border-radius: 10px;
    padding: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    align-items: center;
    text-align: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.134), 0 8px 16px rgba(0, 0, 0, 0.2);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.183) 0%,
            rgba(255, 255, 255, 0) 20%);
    background-repeat: no-repeat;
}

.dropdown-content::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.1;
    pointer-events: none;
}

/* Show dropdown on hover with fade-in and slide */


/* Fancy button styling */
.dropdown-content button {
    margin: 5px 0;
}

.fancy-button:hover {
    background-color: #0056b3;
}

#settings {
    position: absolute;
    top: -9px;
    left: 10px;
}




@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Accessibility: Focus state for keyboard navigation */
.dropdown-icon:focus+.dropdown-content {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.shake-button:hover {
    animation: angry-shake 1s infinite;
}

#modalSignIn:hover {
    box-shadow: 0 4px 12px rgba(25, 98, 255, 0.473);
    transform: scale(1.1);
    transition: 0.4s all ease;
}

.dismiss {
    background: rgba(255, 255, 255, 0.232);
    border: none;
    color: white;
    border-radius: 30%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.2s;
    flex-shrink: 0;

}

.dismiss:hover {
    background: rgba(255, 67, 67, 0.316);


}

/* Add these styles to your style.css file */

/* User initials styling */
.user-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Signed-in state for dropdown icon */
.dropdown-icon.signed-in {
    background: transparent !important;
    padding: 6px !important;
}

/* Override the rainbow hover effect for signed-in users */
.dropdown:hover .dropdown-icon.signed-in {
    background: transparent !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    animation: none !important;
}

/* Hover effect for user initials */
.dropdown-icon.signed-in:hover .user-initials {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Animation for when user signs in */
.user-initials {
    animation: fadeInScale 0.5s ease-out;
}

#settings.dropdown-icon {
    margin: 20px !important;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Alternative color schemes you can use */
.user-initials.blue-theme {
    background: linear-gradient(135deg, #2196F3 0%, #21CBF3 100%);
}

.user-initials.purple-theme {
    background: linear-gradient(135deg, #9C27B0 0%, #E91E63 100%);
}

.user-initials.green-theme {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
}

/* For WebKit browsers */
::-webkit-scrollbar {
    width: 4px;
    /* scrollbar width */
}

::-webkit-scrollbar-track {
    background: #111;
    /* background behind scrollbar */
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #009dff, #af4dff, #ffffff);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffffff, #0095ff, #8400ff);
}

/* ============ STRIPE PREMIUM STYLES ============ */

/* Premium upgrade button */
.premium-upgrade-btn {
    position: fixed;
    top: 20px;
    left: 75px;
    padding: 5px 15px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.premium-upgrade-btn.premium-active {
    background: linear-gradient(135deg, #10812b, #00fa21);
    color: white;
}

.premium-upgrade-btn i {
    font-size: 16px;
}

/* Premium modal */
.premium-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.309);
    z-index: 10000;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.premium-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-modal-content {
    background: linear-gradient(135deg, #1c2553, #21163e);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.3s ease;
    position: relative;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.close-premium-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-premium-modal:hover {
    color: #fff;
}

.premium-header {
    text-align: center;
    margin-bottom: 30px;
}

.premium-crown {
    font-size: 48px;
    color: #FFD700;
    /* margin-bottom: 15px; */
    animation: float 3s ease-in-out infinite;
    perspective: 1000px;
}

.premium-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-header p {
    color: #aaa;
    font-size: 16px;
}

.premium-price-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
    font-size: 15px;
}

.price-tag {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #fff;
}

.price-tag .currency {
    font-size: 24px;
    vertical-align: super;
    color: #FFD700;
}

.price-tag .period {
    font-size: 18px;
    color: #aaa;
}

.premium-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    text-align: left;
}

.premium-features li {
    padding: 12px 0;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-features li:last-child {
    border-bottom: none;
}

.premium-features i {
    color: #28a745;
    font-size: 14px;
}

.subscribe-premium-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    position: relative;
}

.subscribe-premium-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.subscribe-premium-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.subscribe-premium-btn.loading .btn-text {
    display: none;
}

.subscribe-premium-btn.loading .loading-spinner {
    display: block;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

.trial-text {
    color: #888;
    font-size: 12px;
    margin-top: 15px;
}

/* Limit notification */
.limit-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
    display: none;
    animation: slideInRight 0.3s ease;
    z-index: 2000;
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.limit-notification.show {
    display: flex;
}

.limit-notification.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.limit-notification i {
    font-size: 20px;
}

/* Tool locked state */
.tool-locked {
    opacity: 0.5;
    cursor: not-allowed !important;
    position: relative;
}

.tool-locked:after {
    content: "🔒";
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 12px;
}

#premiumUpgradeBtn {
    display: none;
    /* Hidden by default */
}

/* Trial active state */
.premium-upgrade-btn.trial-active {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED) !important;
    color: white;
}

.premium-upgrade-btn.trial-active:hover {
    background: linear-gradient(135deg, #9333EA, #8B5CF6) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

/* User initials in dropdown */
.user-initials {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    cursor: pointer;
}

#settings .dropdown-icon.signed-in {
    font-size: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Trial notification styles */
.limit-notification.trial-warning {
    background: linear-gradient(135deg, #F59E0B, #D97706) !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1.1);
    }

    50% {
        transform: translateY(-10px) scale(0.9) rotateX(15deg);

    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes glowButton {
    0% {
        box-shadow: 0 0 20px #00a6ff;
        transform: scale(1);
        color: #fff;
    }

    50% {
        box-shadow: 0 0 30px #00ffe1;
        /* color: #00ffea; */
        transform: scale(1.1);

    }

    100% {
        box-shadow: 0 0 20px #009dff;
        color: #fff;
        transform: scale(1);

    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #fff, 0 0 20px #ff0080, 0 0 30px #ff0080;
        color: #fff;
    }

    to {
        text-shadow: 0 0 20px #fff, 0 0 30px #00ffea, 0 0 40px #00ffea;
        color: #00ffea;
    }
}

@keyframes angry-shake {
    0% {
        transform: translate(0, 0);
    }

    5% {
        transform: translate(1.2px, 0.8px);
    }

    10% {
        transform: translate(-1.7px, 1.1px);
    }

    15% {
        transform: translate(0.3px, -1.9px);
    }

    20% {
        transform: translate(-1.1px, -0.6px);
    }

    25% {
        transform: translate(-1.9px, -1.4px);
    }

    30% {
        transform: translate(-0.5px, 1.7px);
    }

    35% {
        transform: translate(1.3px, -0.3px);
    }

    40% {
        transform: translate(2px, 1px);
    }

    45% {
        transform: translate(0.7px, -1.8px);
    }

    50% {
        transform: translate(-1.6px, 1.4px);
    }

    55% {
        transform: translate(1.5px, -0.9px);
    }

    60% {
        transform: translate(-0.4px, 1.2px);
    }

    65% {
        transform: translate(0.9px, -1.6px);
    }

    70% {
        transform: translate(-1.3px, 0.2px);
    }

    75% {
        transform: translate(1.8px, -1.1px);
    }

    80% {
        transform: translate(-0.7px, 1.9px);
    }

    85% {
        transform: translate(0.2px, -1.3px);
    }

    90% {
        transform: translate(-1.9px, 0.5px);
    }

    95% {
        transform: translate(1.1px, -0.6px);
    }

    100% {
        transform: translate(0, 0.5);
    }
}


@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: rgba(255, 166, 0, 0);
    }
}

@keyframes snake {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 400% 50%;
    }
}

@keyframes moveGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}