* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    color: #333333;
    min-height: 100vh;
    line-height: 1.6;
    min-width: 350px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 32px;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

body {
    padding-top: 96px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #FF002B;
    text-decoration: none;
    cursor: pointer;
}

.logo-img {
    height: 28px;
    width: auto;
    display: block;
}

.poppins-thin {
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.magnetic-enabled {
    cursor: none;
}

#magneticSwarm {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
}

.ms-star {
    position: absolute;
    will-change: transform;
    filter: drop-shadow(6px 6px 0 #000);
}

#ms-cursor {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #000;
    outline: 4px solid #FF2200;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.mobile-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-login:hover {
    color: #FF002B;
}

.btn-outline {
    background: transparent;
    color: #FF002B;
    border: 2px solid #FF002B;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #FF002B;
    color: #ffffff;
}

.btn-primary {
    background: #FF002B;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-login {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-primary:hover {
    background: #FF002B;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 0 80px;
    position: relative;
    background: linear-gradient(135deg, #FF002B 0%, #FF002B 100%);
}

.hero-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-actions {
    text-align: left;
}

.hero-media {
    display: flex;
    justify-content: flex-end;
}

.hero-img {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    position: relative;
    border-radius: 18px;
}

.hero-img::after {
    content: "";
    position: absolute;
    inset: -3px;
    padding: 3px;
    border-radius: inherit;
    background: conic-gradient(from var(--angle), #ffffff 0deg 10deg, transparent 10deg 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
    animation: rotateBorder 2.5s linear infinite;
}

.split-card {
    position: relative;
    /* background: #FEE6D5; */
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.split-card>* {
    position: relative;
    z-index: 1;
}

.split-card::before,
.split-card::after {
    display: none;
}

.comets {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.comet {
    position: absolute;
    width: 4px;
    height: 160px;
    border-radius: 3px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0%, rgba(255, 0, 43, 0.85) 60%, rgba(255, 0, 43, 0) 100%);
    filter: drop-shadow(0 0 6px rgba(255, 0, 43, 0.4)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
    transform: rotate(-28deg) translate3d(0, 0, 0);
    opacity: 0;
    animation: cometFly var(--dur, 8s) linear infinite;
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

.comet::after {
    content: "";
    position: absolute;
    top: -6px;
    left: -6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 0, 43, 0.7) 60%, rgba(255, 0, 43, 0) 100%);
    filter: blur(1px);
}

@keyframes cometFly {
    0% {
        transform: translate3d(var(--tx-start, -20vw), var(--ty-start, -20vh), 0) rotate(-28deg);
        opacity: 0;
    }

    10% {
        opacity: 0.35;
    }

    90% {
        opacity: 0.35;
    }

    100% {
        transform: translate3d(var(--tx-end, 120vw), var(--ty-end, 80vh), 0) rotate(-28deg);
        opacity: 0;
    }
}

.comet.c1 {
    --tx-start: -20vw;
    --ty-start: -30vh;
    --tx-end: 120vw;
    --ty-end: 45vh;
    --dur: 9s;
    animation-delay: 0s;
}

.comet.c2 {
    --tx-start: -25vw;
    --ty-start: -20vh;
    --tx-end: 120vw;
    --ty-end: 75vh;
    --dur: 7s;
    animation-delay: 1.5s;
    height: 200px;
}

.comet.c3 {
    --tx-start: -22vw;
    --ty-start: -10vh;
    --tx-end: 120vw;
    --ty-end: 60vh;
    --dur: 8.5s;
    animation-delay: 3s;
}

.comet.c4 {
    --tx-start: -26vw;
    --ty-start: -35vh;
    --tx-end: 120vw;
    --ty-end: 90vh;
    --dur: 7.5s;
    animation-delay: 4.2s;
}

.comet.c5 {
    --tx-start: -24vw;
    --ty-start: -28vh;
    --tx-end: 120vw;
    --ty-end: 55vh;
    --dur: 9.2s;
    animation-delay: 2.4s;
    height: 190px;
}

.comet.c6 {
    --tx-start: -20vw;
    --ty-start: -15vh;
    --tx-end: 120vw;
    --ty-end: 85vh;
    --dur: 8s;
    animation-delay: 5.1s;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 400px at 80% 0%, rgba(255, 34, 0, 0.10), transparent 60%);
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: enter 600ms ease-out both;
}

@keyframes enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

#heroTitle.typewriting::after {
    content: '|';
    margin-left: 6px;
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@property --angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes rotateBorder {
    to {
        --angle: 360deg;
    }
}

@keyframes pulseRing {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 43, 0.10);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(255, 0, 43, 0.08);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 43, 0.10);
    }
}

.hero p {
    font-size: 1.25rem;
    color: #fef2f2;
    margin-bottom: 50px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.tab {
    background: transparent;
    /* border: 2px solid #ffffff; */
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: inline-block;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.08));
}

.tab.active {
    background: #ffffff;
    color: #FF002B;
}

.tab[aria-selected="true"] {
    background: #ffffff;
    color: #FF002B;
}

.tab:hover {
    filter: brightness(1.06);
}

.tab:focus-visible {
    outline: 2px solid #ffe4e6;
    outline-offset: 2px;
}

.tab:first-child {
    border-radius: 8px 0 0 8px;
}

.tab:last-child {
    border-radius: 0 8px 8px 0;
}

/* Link Shortener Card */
.shortener-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.subcard {
    background: linear-gradient(135deg, #FFF1F2 0%, #FF002B 100%);
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.subcard .tabs {
    justify-content: center;
    gap: 12px;
    padding: 6px;
}

.split-card .shortener-card {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    backdrop-filter: blur(6px);
    position: relative;
    overflow: hidden;
}

.split-card .shortener-card::before,
.split-card .shortener-card::after {
    display: none;
}

.split-card .subcard {
    /* background: linear-gradient(135deg, #FFF1F2 0%, #FF002B 100%); */
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.split-card .tab {
    background: linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
    /* border: 1px solid rgba(229, 231, 235, 0.9); */
    color: #111;
    border-radius: 12px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.10);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, background 160ms ease;
    position: relative;
    will-change: transform, box-shadow;
    overflow: hidden;
}

.split-card .tab::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -100%;
    width: 60%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
    transition: transform 700ms ease;
    transform: translateX(0);
    pointer-events: none;
}

.split-card .tab.active,
.split-card .tab[aria-selected="true"] {
    background: linear-gradient(180deg, #FF3A52 0%, #FF002B 100%);
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(255, 0, 43, 0.28);
}

.split-card .tab.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 32px rgba(255, 0, 43, 0.32);
}

.split-card .tab:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 22px rgba(0, 0, 0, 0.14);
}

.split-card .tab:hover::after {
    transform: translateX(200%);
}

.split-card .shortener-card h2 {
    color: #FF002B;
    font-weight: 700;
}

.split-card .shortener-card h2 {
    font-size: 2rem;
}

.split-card .shortener-card p {
    color: #334155;
}

.split-card .shortener-card p {
    font-size: 1.125rem;
}

.split-card .form-group label {
    color: #0f172a;
}

.split-card .form-group label {
    font-size: 1rem;
}

.split-card .form-group input {
    border: 2px solid #e5e7eb;
    background: #ffffff;
    box-shadow: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.split-card .form-group input:hover,
.split-card .form-group input:focus {
    border-color: #FF002B;
    box-shadow: 0 0 0 4px #ffe4e6;
    background: #ffffff;
    transform: none;
}

.split-card .custom-link-container {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    box-shadow: none;
}

.split-card .custom-link-container:hover,
.split-card .custom-link-container:focus-within {
    border-color: #FF002B;
    box-shadow: 0 0 0 4px #ffe4e6;
    transform: none;
}

.split-card .custom-link-prefix {
    color: #475569;
}

.split-card .custom-link-prefix {
    font-size: 18px;
}

.split-card .custom-link-input {
    color: #0f172a;
}

.split-card .custom-link-input {
    font-size: 18px;
}

.split-card .btn-shorten {
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 12px 24px rgba(255, 0, 43, 0.24);
}

.split-card .btn-shorten:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 32px rgba(255, 0, 43, 0.32);
}

.qr-preview {
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.qr-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.qr-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qr-preview {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    border: 4px solid #000;
    box-shadow: 6px 6px 0 #000;
    background: #ffffff;
    object-fit: contain;
}

.shortener-card h2 {
    color: #333333;
    font-size: 2rem;
    margin-bottom: 8px;
}

.shortener-card p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.125rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #333333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 18px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 18px;
    transition: border-color 0.3s ease;
}

.form-group input:hover,
.form-group input:focus {
    border-color: transparent;
    /* background: linear-gradient(#ffffff, #ffffff) padding-box, */
    /* conic-gradient(from var(--angle), #FF002B, #ff5a5f, #FEE6D5, #ff5a5f, #FF002B) border-box; */
    background-clip: padding-box, border-box;
    animation: rotateBorder 2.5s linear infinite, pulseRing 1.8s ease-out infinite;
}

.custom-link-container {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 16px;
    transition: border-color 0.3s ease;
}

.custom-link-container:hover,
.custom-link-container:focus-within {
    border-color: transparent;
    /* background: linear-gradient(#f8f9fa, #f8f9fa) padding-box,
        conic-gradient(from var(--angle), #FF002B, #ff5a5f, #FEE6D5, #ff5a5f, #FF002B) border-box;
    */
    background-clip: padding-box, border-box;
    animation: rotateBorder 2.5s linear infinite, pulseRing 1.8s ease-out infinite;
}

.custom-link-container:focus-within {
    border-color: transparent;
}

.custom-link-prefix {
    color: #666;
    font-weight: 500;
    font-size: 18px;
}

.custom-link-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 18px;
    padding: 0;
}

.form-help-text {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form-group input:focus {
    outline: none;
    border-color: transparent;
}

.btn-shorten {
    background: linear-gradient(180deg, #FF3A52 0%, #FF002B 100%);
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 12px 24px rgba(255, 0, 43, 0.24);
}

.btn-shorten:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(255, 0, 43, 0.28);
}

.btn-shorten.loading {
    opacity: 0.85;
    cursor: default;
}

.btn-shorten.loading::after {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
}

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

/* Free Plan Section */
.free-plan {
    text-align: center;
    margin-top: 50px;
}

.free-plan h3 {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: #333333;
}

.features {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #000;
    font-weight: 700;
    background: #ffffff;
    border: 4px solid #000;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 6px 6px 0 #000;
    min-width: 260px;
}

.feature:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 #000;
}

.checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FF002B;
    color: #ffffff;
    font-weight: 800;
}

.partners {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 1;
}

.partner {
    font-size: 14px;
    color: #000;
    font-weight: 700;
    background: #ffffff;
    border: 3px solid #000;
    border-radius: 9999px;
    padding: 6px 10px;
    box-shadow: 4px 4px 0 #000;
}

.partner:hover {
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 #000;
}

.partners-carousel {
    position: relative;
    overflow: hidden;
}

.partners-carousel .partners-track {
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
    will-change: transform;
    animation: partnersScroll var(--scrollDur, 24s) linear infinite;
}

.partners-carousel .partner {
    flex: 0 0 auto;
}

@keyframes partnersScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partners .partner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.partner-logo {
    height: 24px;
    width: 24px;
    display: inline-block;
    border-radius: 50%;
    object-fit: cover;
}

/* Auth Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.auth-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #e1e5e9;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: #666;
    font-weight: 600;
}

.auth-tab.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.hidden {
    display: none;
}

/* Footer */
.footer {
    background: #1f2937;
    color: #ffffff;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #FF002B;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FF002B;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    text-align: center;
    color: #9ca3af;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: #d1d5db;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #FF002B;
}

/* Dashboard Styles */
.main-content {
    padding: 40px 0;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.dashboard-header p {
    color: #666;
    font-size: 1.1rem;
}

.link-generator {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.link-generator h2 {
    margin-bottom: 30px;
    color: #333;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.btn-create {
    background: #0066cc;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-create:hover {
    background: #0052a3;
}

.links-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.links-section h2 {
    margin-bottom: 30px;
    color: #333;
}

.link-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link-info {
    flex: 1;
}

.link-name {
    font-weight: 600;
    color: #0066cc;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.link-url {
    color: #666;
    font-size: 14px;
    word-break: break-all;
}

.link-stats {
    color: #999;
    font-size: 12px;
}

.no-links {
    text-align: center;
    color: #666;
    padding: 40px;
    font-style: italic;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-email {
    color: #666;
    font-weight: 500;
}

.btn-logout {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.btn-logout:hover {
    background: #c82333;
}

@media (max-width: 768px) {
    .header {
        padding: 18px 0;
    }

    .nav {
        width: 100%;
        position: relative;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .mobile-menu {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 8px);
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
        padding: 12px;
        z-index: 1001;
    }

    .nav.open .mobile-menu {
        display: block;
    }

    .mobile-menu .language-selector {
        margin-bottom: 10px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu .nav-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-menu .nav-links a {
        padding: 10px 12px;
        border-radius: 6px;
        background: #f8f9fa;
    }

    .mobile-menu .nav-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .btn-login {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 16px;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        background: #ffffff;
    }

    .btn-primary {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }

    .logo-img {
        height: 24px;
    }

    .split-card {
        padding: 16px;
    }

    .hero-split {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        text-align: center;
    }

    .hero-img {
        max-width: 220px;
        margin: 20px auto 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .features {
        flex-direction: column;
        gap: 20px;
    }

    .partners {
        flex-direction: column;
        gap: 15px;
    }

    .form-row {
        flex-direction: column;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .user-info {
        flex-direction: column;
        gap: 10px;
    }

    .shortener-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0 40px;
    }

    .hero h1 {
        font-size: 1.9rem;
        line-height: 1.25;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 32px;
    }

    .hero-img {
        max-width: 200px;
    }

    .tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .tab {
        padding: 10px 16px;
    }

    .shortener-card {
        max-width: 100%;
        padding: 20px;
    }

    .form-group input {
        font-size: 14px;
        padding: 12px;
    }

    .btn-shorten {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.language-selector:hover {
    border-color: #FF002B;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #333;
    font-weight: 500;
}

.flag-icon {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
}

.language-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    padding: 6px;
    display: none;
    min-width: 120px;
    z-index: 1001;
}

.language-selector[aria-expanded="true"] .language-menu,
.language-selector.open .language-menu {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 4px;
}

.language-option:hover {
    background: #f3f4f6;
}

.language-option.selected {
    background: #ffe4e6;
    outline: 1px solid #FF002B;
}

#flagIcon {
    font-size: 18px;
}
