html, body {
    min-height: 100vh;
    max-width: 100%;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: 
        url("data:image/svg+xml;utf8,<svg width='100' height='100' xmlns='http://www.w3.org/2000/svg'><circle cx='10' cy='10' r='1.2' fill='white' opacity='0.8'/><circle cx='80' cy='30' r='1.5' fill='white' opacity='0.7'/><circle cx='60' cy='80' r='1' fill='white' opacity='0.6'/><circle cx='30' cy='60' r='0.8' fill='white' opacity='0.5'/><circle cx='50' cy='40' r='1.1' fill='white' opacity='0.7'/></svg>") repeat,
        linear-gradient(135deg, #1a0036 0%, #3a006e 60%, #7b00ff 100%);
    overflow-x: hidden;
    position: relative;
    padding-top: 40px;
    overflow-x: hidden;
}
.hero-bg {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 180px;
    z-index: 0;
    overflow: hidden;
}
.hero-bg::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}
.hero-bg::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.3), transparent);
    filter: blur(12px);
    pointer-events: none;
    z-index: 1;
}
.hero {
    width: 100%;
    padding: 3.5rem 0 2.5rem 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: transparent;
    position: relative;
    z-index: 1;
}
.hero-content {
    max-width: 700px;
    width: 100%;
    text-align: center;
    color: #fff;
}
.hero h1 {
    font-size: 2.7rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.2rem 0;
    letter-spacing: -1px;
    text-shadow: 0 2px 12px rgba(124, 58, 237, 0.18);
}
.hero p {
    color: #ede9fe;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0;
    text-shadow: 0 2px 12px rgba(124, 58, 237, 0.12);
}
.hero-divider {
    width: 100%;
    height: 90px;
    background: transparent;
    position: relative;
    z-index: 2;
    margin-bottom: -30px;
}
.shorten-section {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    border-color: #9900ff;
    border-width: 5px;
    border-style: solid;
    padding: 2rem 2rem 0.5rem 2rem;
    margin-top: 0;
    box-shadow: 0 4px 32px 0 rgba(80, 0, 120, 0.10);
    transition: padding-bottom 0.4s cubic-bezier(.4,2,.6,1), box-shadow 0.2s;
    padding-bottom: 1.5rem;
}
.shorten-section.has-email {
    padding-bottom: 3.5rem;
}
form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
}
#url-input {
    flex: 1;
    padding: 1rem 1.2rem;
    border: none;
    border-radius: 12px;
    background: rgba(226, 232, 240, 0.7);
    font-size: 1.1rem;
    color: #4b006e;
    outline: none;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.06);
}
#url-input:focus {
    background: #fff;
    box-shadow: 0 0 0 2px #a78bfa;
}
.login-btn {
    padding: 1rem 1.5rem;
    background: #7b00ff;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(168, 139, 250, 0.13);
    transition: background 0.2s, transform 0.1s, width 0.3s, opacity 0.2s;
    min-width: 120px;
}
.login-btn:hover {
    background: #7b00ff;
    transform: translateY(-2px) scale(1.03);
}
.create-link-msg {
    min-height: 2.5rem;
    background: rgba(236, 254, 255, 0.7);
    border-radius: 10px;
    padding: 1rem;
    color: #7c3aed;
    font-size: 1.05rem;
    text-align: center;
    word-break: break-all;
    box-shadow: 0 1px 4px rgba(124, 58, 237, 0.07);
    margin-bottom: 1rem;
    display: none;
}
.create-link-msg.active {
    display: block;
    animation: fadeIn 0.5s;
    position: relative;
    z-index: 100;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px);}
    to { opacity: 1; transform: translateY(0);}
}
.features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2.5rem auto 0 auto;
    max-width: 900px;
    flex-wrap: wrap;
    z-index: 3;
    position: relative;
}
.feature {
    background: rgba(255,255,255,0.85);
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(124, 58, 237, 0.07);
    padding: 1.5rem 1.2rem;
    flex: 1 1 220px;
    min-width: 220px;
    max-width: 280px;
    text-align: center;
    margin-bottom: 1.5rem;
}
.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}
.feature h3 {
    color: #7c3aed;
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
    font-weight: 700;
}
.feature p {
    color: #6d28d9;
    font-size: 1rem;
    margin: 0;
}
footer {
    text-align: center;
    color: #a78bfa;
    font-size: 0.95rem;
    margin-top: 2.5rem;
    letter-spacing: 0.02em;
    padding-bottom: 1.5rem;
    z-index: 3;
    position: relative;
}
*, *::before, *::after {
    box-sizing: border-box;
}
.email-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
    align-items: flex-start;
    transition: max-height 0.5s cubic-bezier(.4,2,.6,1), opacity 0.4s, margin-bottom 0.3s;
}
.email-container.active {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.5rem;
    margin-bottom: 1.2rem;
}
#email-input, #slug-input {
    flex: 1;
    padding: 1rem 1.2rem;
    border: none;
    border-radius: 12px;
    background: rgba(226, 232, 240, 0.7);
    font-size: 1.1rem;
    color: #4b006e;
    outline: none;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.06);
    margin-bottom: 0;
}
#email-input:focus, #slug-input:focus, #url-input:focus {
    background: #fff;
    box-shadow: 0 0 0 2px #a78bfa;
    outline: 2px solid #a78bfa;
    outline-offset: 0;
}
#email-submit, button[type="submit"] {
    padding: 1rem 1.5rem;
    background: #7b00ff;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(168, 139, 250, 0.13);
    transition: background 0.2s, transform 0.1s;
    outline: none;
    margin-bottom: 0;
}
#email-submit:focus, button[type="submit"]:focus {
    outline: 2px solid #a78bfa;
    outline-offset: 0;
}
#email-submit:hover, button[type="submit"]:hover {
    background: #5900b8;
    transform: translateY(-2px) scale(1.03);
}
.slug-group {
    display: flex;
    align-items: center;
    background: rgba(226, 232, 240, 0.7);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.06);
    margin-left: 0.5rem;
    max-width: 320px;
    flex: 1 1 0;
}
.slug-prefix {
    padding: 0 0.7rem;
    color: #7c3aed;
    font-size: 1.05rem;
    background: transparent;
    white-space: nowrap;
    font-weight: 600;
    opacity: 0.85;
}
#slug-input {
    border: none;
    border-radius: 0 12px 12px 0;
    background: transparent;
    box-shadow: none;
    margin-left: 0;
    padding-left: 0;
    flex: 1 1 0;
}
.slug-group:focus-within {
    background: #fff;
    box-shadow: 0 0 0 2px #a78bfa;
    outline: 2px solid #a78bfa;
    outline-offset: 0;
}
#slug-input:focus {
    background: transparent;
    box-shadow: none;
    outline: none;
}
.anon-row {
    position: relative;
    z-index: 1300;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.1rem;
}
.anon-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.15rem 0.25rem;
}
#anon-checkbox {
    width: 1.35rem;
    height: 1.35rem;
    margin: 0;
    flex: 0 0 auto;
    accent-color: #a78bfa;
}
.info-icon {
    margin-left: 0.4rem;
    flex: 0 0 auto;
    user-select: none;
}
.anon-label-strong {
    color: #7c3aed;
    font-weight: 600;
    font-size: 1.05rem;
}
.anon-label-sub {
    color: #6d28d9;
    font-size: 0.98rem;
    opacity: 0.7;
    margin-left: 0.2em;
}
.expiry-group {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0.7rem 0 0.2rem 0;
}
.expiry-label {
    color: #7c3aed;
    font-weight: 600;
    font-size: 1.05rem;
    min-width: 54px;
}
#expiry-input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(226, 232, 240, 0.7);
    font-size: 1.05rem;
    color: #4b006e;
    outline: none;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.06);
}
#expiry-input:focus {
    background: #fff;
    box-shadow: 0 0 0 2px #a78bfa;
}
.options-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 0.7rem;
    margin-top: -0.3rem;
    flex-wrap: wrap;
}
.expiry-group {
    margin: 0;
}
.anon-row {
    margin: 0;
}
.options-row {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
    margin-top: 0.5rem;
    margin-bottom: 0.7rem;
    width: 100%;
}
.advanced-fields {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(.4,2,.6,1), opacity 0.4s;
    pointer-events: none;
}
.advanced-fields.active {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
    margin-top: 1rem;
}
.custom-slug-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    user-select: none;
}
#custom-slug-checkbox {
    accent-color: #f472b6;
    width: 1.2em;
    height: 1.2em;
    border-radius: 6px;
    cursor: pointer;
}
.custom-slug-label-strong {
    color: #f472b6;
    font-weight: 600;
    font-size: 1.05rem;
}
.info-icon {
    display: inline-block;
    position: relative;
    margin-left: 0.5em;
    width: 1.2em;
    height: 1.2em;
    background: #ede9fe;
    color: #7c3aed;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
    font-size: 1em;
    line-height: 1.2em;
    cursor: pointer;
    user-select: none;
    border: 1.5px solid #a78bfa;
    transition: background 0.2s;
}
.info-icon:hover,
.info-icon:focus {
    background: #a78bfa;
    color: #fff;
}
.info-tooltip {
    display: none;
    position: absolute;
    left: 110%;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #4b006e;
    border: 1px solid #a78bfa;
    border-radius: 8px;
    padding: 0.7em 1em;
    font-size: 0.98em;
    min-width: 220px;
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.13);
    z-index: 10;
    white-space: normal;
}
.info-icon:hover .info-tooltip,
.info-icon:focus .info-tooltip {
    display: block;
}
.email-slug-container {
    display: none;
    gap: 1rem;
    align-items: flex-start;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(.4,2,.6,1), opacity 0.4s;
    margin-bottom: 0;
}
.email-slug-container.active {
    display: flex;
    max-height: 200px;
    opacity: 1;
    margin-top: 0.5rem;
    margin-bottom: 1.2rem;
}
.email-slug-continue {
    padding: 1rem 1.5rem;
    background: #7b00ff;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(168, 139, 250, 0.13);
    transition: background 0.2s, transform 0.1s;
    outline: none;
}
.email-slug-continue:hover {
    background: #5700b4;
    transform: translateY(-2px) scale(1.03);
}
.final-shorten {
    display: none;
    width: 100%;
    margin-bottom: 1rem;
}
button[type="submit"] {
    transition: background 0.2s, transform 0.1s, width 0.3s, opacity 0.2s;
    min-width: 120px;
}
.tm-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.829);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.06);
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 64px;
}
.navbar-brand img {
    height: 40px;
    vertical-align: middle;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}
.nav-links li {
    display: flex;
    align-items: center;
}
.tm-nav-link {
    color: #7b00ff;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.08rem;
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.tm-nav-link:hover,
.tm-nav-link.current {
    color: #ffffff;
    background: #7b00ff;
}
.terms-and-conditions-label {
    color: #ffffff;
    font-weight: 900;
    padding-left: 10px;
    font-size: 0.6rem;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #7b00ff;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: background 0.15s;
}
.nav-toggle:focus {
    outline: 2px solid #a78bfa;
}
.short-url-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    justify-content: center;
}
.short-url {
    font-weight: bold;
    color: #6d28d9;
    background: #f3f4f6;
    padding: 0.3em 0.7em;
    border-radius: 6px;
    font-size: 1.1em;
}
.copy-btn {
    background: #a78bfa;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.3em 0.9em;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s;
}
.copy-btn:hover {
    background: #6d28d9;
}
.qr-row {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}
.qr-img {
    width: 140px;
    height: 140px;
    border: 2px solid #a78bfa;
    border-radius: 10px;
    background: #fff;
    padding: 8px;
}
.message-row {
    text-align: center;
    color: #6d28d9;
    margin-top: 0.5rem;
    font-size: 1em;
    word-break: normal;
    overflow-wrap: anywhere;
}
.error-message {
    color: #fff;
    background: #e11d48;
    border-radius: 8px;
    padding: 1em;
    text-align: center;
    font-weight: 600;
    margin-bottom: 1em;
    box-shadow: 0 2px 8px rgba(225,29,72,0.08);
    word-break: normal;
    overflow-wrap: anywhere;
}
.download-btn {
    background: #ede9fe;
    border: none;
    border-radius: 8px;
    padding: 0.5em 0.7em;
    margin-left: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.18s, box-shadow 0.18s;
    box-shadow: 0 1px 4px rgba(124, 58, 237, 0.07);
}
.download-btn:hover, .download-btn:focus {
    background: #d1c4e9;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.13);
}
.download-btn svg {
    display: block;
}
.features-btn{
    padding: 14px;
    background: #7b00ff;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(168, 139, 250, 0.13);
    transition: background 0.2s, transform 0.1s;
    outline: none;
    margin-top: 10px;
}
.features-btn:hover{
    background: #5700b4;
    transform: translateY(-2px) scale(1.03);
}
.features-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(60, 0, 110, 0.25);
    backdrop-filter: blur(2px);
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
}
.features-modal.active {
    display: flex;
    animation: fadeIn 0.25s;
}
.features-modal-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 40px 0 rgba(124, 58, 237, 0.17);
    padding: 2.2rem 2rem 1.5rem 2rem;
    max-width: 380px;
    width: 90vw;
    text-align: center;
    position: relative;
    border: 4px solid #a78bfa;
    color: #4b006e;
}
.features-modal-content h2 {
    color: #7b00ff;
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.features-modal-close {
    position: absolute;
    top: 1.1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #a78bfa;
    cursor: pointer;
    transition: color 0.2s;
    font-weight: 800;
    line-height: 1;
}
.features-modal-close:hover {
    color: #7b00ff;
}
.privacy-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(60, 0, 110, 0.25);
    backdrop-filter: blur(2px);
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
}
.privacy-modal.active {
    display: flex;
    animation: fadeIn 0.25s;
}
.privacy-modal-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 40px 0 rgba(124, 58, 237, 0.17);
    padding: 2.2rem 2rem 1.5rem 2rem;
    max-width: 380px;
    width: 90vw;
    text-align: center;
    position: relative;
    border: 4px solid #a78bfa;
    color: #4b006e;
}
.privacy-modal-content h2 {
    color: #7b00ff;
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.privacy-modal-close {
    position: absolute;
    top: 1.1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #a78bfa;
    cursor: pointer;
    transition: color 0.2s;
    font-weight: 800;
    line-height: 1;
}
.privacy-modal-close:hover {
    color: #7b00ff;
}
.cookie-notice {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 3000;
    background: rgba(255,255,255,0.97);
    color: #4b006e;
    border: 2.5px solid #a78bfa;
    border-radius: 14px;
    box-shadow: 0 4px 24px 0 rgba(124, 58, 237, 0.13);
    padding: 1.1rem 1.5rem 1.1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.01rem;
    max-width: 410px;
    min-width: 220px;
    animation: fadeIn 0.5s;
}
.cookie-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}
.cookie-notice a {
    color: #7b00ff;
    text-decoration: underline;
    font-weight: 600;
}
.cookie-dismiss-btn {
    margin-left: 1.2rem;
    background: #a78bfa;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5em 1.2em;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.10);
}
.cookie-dismiss-btn:hover {
    background: #7b00ff;
}
#contact-result {
    word-break: keep-all;
    white-space: pre-line;
}
.result {
    min-height: 2.5rem;
    background: rgba(236, 254, 255, 0.7);
    border-radius: 10px;
    padding: 1rem;
    color: #7c3aed;
    font-size: 1.05rem;
    text-align: center;
    box-shadow: 0 1px 4px rgba(124, 58, 237, 0.07);
    margin-bottom: 1rem;
    display: none;
    word-break: normal;
    overflow-wrap: anywhere;
}
.result.active {
    display: block;
    word-break: break-word;
    animation: fadeIn 0.5s;
    position: relative;
    z-index: 100;
}
.login-section form {
    width: 70%;
    max-width: 500px;
    margin: 0 auto;
}
.login-input {
    padding: 1rem 1.5rem;
    background: rgba(226, 232, 240, 0.7);
    color: #4b006e;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(168, 139, 250, 0.13);
    outline: none;
    position: relative;
    z-index: 3;
    width: 100%;
    border-radius: 10px;
    border: none;
    margin-bottom: 0.5rem;
}
.login-input:focus{
    background: #fff;
    box-shadow: 0 0 0 2px #a78bfa;
}
.login-section {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    border-color: #9900ff;
    border-width: 5px;
    border-style: solid;
    padding: 2rem 2rem 0.5rem 2rem;
    margin-top: 0;
    box-shadow: 0 4px 32px 0 rgba(80, 0, 120, 0.10);
    transition: padding-bottom 0.4s cubic-bezier(.4,2,.6,1), box-shadow 0.2s;
    padding-bottom: 1.5rem;
}
.login-info-message {
    color: #312e81;
    background: #c7d2fe;
    border-radius: 8px;
    padding: 1em;
    text-align: center;
    font-weight: 600;
    margin-bottom: 1em;
    box-shadow: 0 2px 8px rgba(59,130,246,0.08);
    word-break: normal;
    overflow-wrap: anywhere;
}
.email-slug-container,
.email-slug-container.active {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}
.email-slug-container > * {
    min-width: 0;
}
#email-input,
#slug-input,
#url-input,
.slug-group {
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
}
.slug-group {
    max-width: calc(100% - 120px);
}
#email-slug-continue,
#shorten-url-button {
    flex: 0 0 110px;
    min-width: 88px;
    box-sizing: border-box;
}
button[disabled],
input[type="submit"][disabled] {
    background: #9e9e9e;
    color: #fff;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.95;
    pointer-events: none;
}
#email-slug-continue:disabled,
.email-slug-continue:disabled {
    background: #9e9e9e !important;
    color: #fff !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 0.95 !important;
    pointer-events: none !important;
    transform: none !important;
}
#email-slug-continue,
#shorten-url-button,
#email-submit,
button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.25rem;
    box-sizing: border-box;
    text-align: center;
    line-height: 1;
}
#email-slug-continue::-moz-focus-inner,
#shorten-url-button::-moz-focus-inner,
button[type="submit"]::-moz-focus-inner {
    border: 0;
    padding: 0;
}
.email-slug-container > #email-slug-continue,
.shorten-section > form > #shorten-url-button {
    margin-left: 0;
}
@media (max-width: 575.98px) {
    .cookie-notice {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.6rem;
        bottom: 12px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: calc(100% - 24px);
        max-height: calc(60vh - 24px);
        overflow-y: auto;
        font-size: 0.95rem;
        border-radius: 12px;
    }
    .cookie-notice .cookie-icon {
        margin: 0 0 0.25rem 0;
        align-self: center;
        flex: 0 0 auto;
    }
    .cookie-notice .cookie-dismiss-btn {
        width: 100%;
        margin-left: 0;
        padding: 0.45rem 0.9rem;
        font-size: 0.95rem;
    }
    .cookie-notice > span {
        flex: 1 1 auto;
        min-width: 0;
    }
    .email-slug-container,
    .email-slug-container.active {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }
    #email-input,
    .slug-group,
    #slug-input {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        box-sizing: border-box;
        min-width: 0;
    }
    .slug-group {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-left: 0;
    }
    .slug-prefix {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    #slug-input {
        flex: 1 1 auto;
        min-width: 0;
    }
    #email-slug-continue {
        width: 100%;
        flex: 0 0 auto;
    }
    .email-slug-container,
    .shorten-section form,
    form#url-form {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: wrap;
        width: 100%;
    }
    .slug-group {
        max-width: 100%;
        margin-left: 0;
    }
    #email-slug-continue,
    #shorten-url-button {
        width: 100%;
        flex: 0 0 auto;
    }
    .nav-container {
        padding: 0 0.5rem;
    }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        z-index: 1100;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        right: 0;
        left: 0;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        gap: 0;
        padding: 0.6rem 1rem;
        box-shadow: 0 8px 30px rgba(80,0,120,0.12);
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        z-index: 1050;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        width: 100%;
    }
    .tm-nav-link {
        display: block;
        width: 100%;
        padding: 0.9rem 0.8rem;
        border-radius: 8px;
        text-align: left;
    }
    .tm-nav-link:hover,
    .tm-nav-link.current {
        color: #ffffff;
        background: #7b00ff;
    }
    .shorten-section {
        padding-left: 12px;
        padding-right: 12px;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }
    #url-input {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }
    #shorten-url-button {
        flex: 0 0 auto;
        min-width: 88px;
        padding: 0.9rem 1rem;
        border-radius: 12px;
    }
    .features {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }
    .shorten-section {
        padding: 1.2rem 0.7rem 1rem 0.7rem;
    }
    .hero-content {
        margin-left: 0.5rem;
    }
}
@media (min-width: 576px) and (max-width: 767.98px) {
    .nav-container {
        padding: 0 1rem;
    }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        z-index: 1100;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        right: 0;
        left: 0;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        gap: 0;
        padding: 0.6rem 1rem;
        box-shadow: 0 8px 30px rgba(80,0,120,0.12);
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        z-index: 1050;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        width: 100%;
    }
    .tm-nav-link {
        display: block;
        width: 100%;
        padding: 0.9rem 0.8rem;
        border-radius: 8px;
        text-align: left;
    }
    .tm-nav-link:hover,
    .tm-nav-link.current {
        color: #ffffff;
        background: #7b00ff;
    }
    .shorten-section {
        padding-left: 12px;
        padding-right: 12px;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }
    form#url-form,
    .shorten-section form {
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    #url-input {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }
    #shorten-url-button {
        flex: 0 0 auto;
        min-width: 88px;
        padding: 0.9rem 1rem;
        border-radius: 12px;
    }
    .features {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }
    .shorten-section {
        padding: 1.2rem 0.7rem 1rem 0.7rem;
    }
    .hero-content {
        margin-left: 0.5rem;
    }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .nav-container {
        padding: 0 1rem;
    }
    .features {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }
    .shorten-section {
        padding: 1.2rem 0.7rem 1rem 0.7rem;
    }
    .hero-content {
        margin-left: 0.5rem;
    }
    form#url-form,
    .shorten-section form {
        flex-wrap: wrap;
    }
}