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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(10deg, #fff9da9e 0%, #f9b5b557 20% 100%);
    min-height: 100vh;
    color: #2c2c2c;
    position: relative;
    overflow-x: hidden;
}

/* Background pattern */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="3" fill="rgba(255,255,255,0.2)"/></svg>') repeat;
    background-size: 60px 60px;
    animation: float 25s linear infinite;
    z-index: 0;
}

@keyframes float {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

/* Header Section */
.header-section {
    text-align: center;
    backdrop-filter: blur(15px);
    padding: 2rem;
}

.logo-container {
    cursor: pointer;
}

.logo {
    width: 350px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
    border-radius: 30%;
}

.brand-name {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -1px;
    background: linear-gradient(45deg, #C65D00, #7A8471, #A8B5A0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-slogan {
    font-size: 0.9rem;
    font-weight: 700;
    color: #555;
    word-spacing: -1px;
    line-height: 1;
    text-transform: uppercase;
}

/* Main Content */
.main-content {
    text-align: center;
    margin-bottom: 4rem;
    backdrop-filter: blur(15px);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.url-form {
    width: 100%;
}

.input-group {
    width: 100%;
    display: flex;
    justify-content: center;
}

.url-input {
    max-width: 600px;
    width: 100%;
    min-width: 450px;
    padding: 16px 30px;
    border: 2px solid #f9a7b0;
    border-radius: 16px;
    font-size: 1rem;
    word-spacing: 1px; 
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(168, 181, 160, 0.2);
}

.url-input::placeholder {
    color: #000;
    font-style: italic;
}

.url-input:focus {
    border-color: #E10616;
    background: white;
}

/* Custom Alias Section */
.custom-alias-section {
    width: 100%;
    max-width: 600px;
}

.alias-container {
    width: 100%;
}

.alias-preview {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #6bcb8c;
    border-radius: 10px;
    padding: 0;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(168, 181, 160, 0.2);
    overflow: hidden;
    width: 100%;
}

.alias-preview:focus-within {
    border-color: #317942d9;
}

.domain-part {
    color: black;
    padding: 10px 0px 10px 15px;
    font-weight: 700;
    font-family: monospace;
    white-space: nowrap;
}

.alias-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 0px;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: monospace;
    background: transparent;
    color: #333;
    min-width: 200px;
}

.alias-input::placeholder {
    color: #999;
    font-style: italic;
}

.availability-status {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    min-height: 20px;
    text-align: center;
    max-width: 400px;
    margin: 10px auto 0;
}

.availability-status.available {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.availability-status.unavailable {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.availability-status.checking {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.availability-status.invalid {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Password Protection Styles */
.password-protection-section {
    margin-top: 1rem;
    width: 100%;
}

.password-toggle {
    margin-bottom: 1rem;
}

.password-link {
    color: #2d271c;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 15px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    display: inline-block;
}

.password-input-section {
    width: 100%;
}

.password-preview {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #ff6b35;
    border-radius: 10px;
    padding: 0;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(168, 181, 160, 0.2);
    overflow: hidden;
    width: 100%;
}

.password-preview:focus-within {
    border-color: #E10616;
}

.password-icon {
    color: #ff6b35;
    padding: 10px 0px 10px 15px;
    font-weight: 700;
    white-space: nowrap;
}

.password-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 15px;
    font-size: 1rem;
    font-weight: 500;
    background: transparent;
    color: #333;
    min-width: 200px;
}

.password-input::placeholder {
    color: #999;
    font-style: italic;
}

.password-hint {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.password-hint small {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Custom Link Toggle */
.custom-link-toggle {
    margin-bottom: 1rem;
}

.custom-link {
    color: #2d271c;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 15px;
    background: rgba(255, 176, 0, 0.1);
    border: 1px solid rgba(255, 176, 0, 0.3);
    display: inline-block;
}

/* Button Container */
.button-container {
    display: flex;
    justify-content: center;
}

.shorten-btn {
    padding: 20px 40px;
    background: #E10616;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(198, 93, 0, 0.3);
    min-width: 200px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.shorten-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.shorten-btn:hover {
    background: #FF1A2A;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 26, 42, 0.4);
    letter-spacing: 1.5px;
}

.shorten-btn:hover::before {
    left: 100%;
}

.shorten-btn:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 8px 25px rgba(255, 26, 42, 0.3);
}

.shorten-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #ccc;
    transform: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.shorten-btn:disabled:hover {
    background: #ccc;
    transform: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Extra shine effect for premium feel */
.shorten-btn:focus {
    outline: none;
    box-shadow: 0 12px 35px rgba(255, 26, 42, 0.4), 0 0 0 3px rgba(255, 26, 42, 0.2);
}

/* Pulse animation when button is ready */
@keyframes pulse {
    0% { box-shadow: 0 6px 20px rgba(198, 93, 0, 0.3); }
    50% { box-shadow: 0 8px 25px rgba(225, 6, 22, 0.4); }
    100% { box-shadow: 0 6px 20px rgba(198, 93, 0, 0.3); }
}

.shorten-btn.ready {
    animation: pulse 2s infinite;
}

.result {
    margin: 3rem 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    border: 1px solid rgba(168, 181, 160, 0.6);
    display: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Close button for result box */
.result-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(198, 93, 0, 0.1);
    border: 2px solid rgba(198, 93, 0, 0.3);
    color: #C65D00;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.result.show {
    display: block;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.result-label {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #555;
}

.short-url {
    background: rgba(255, 255, 255, 0.95);
    color: #C65D00;
    padding: 20px 30px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 20px 0;
    word-break: break-all;
    border: 1px solid #A8B5A0;
    font-family: monospace;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(168, 181, 160, 0.2);
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.copy-btn, .test-btn, .share-btn {
    background: linear-gradient(135deg, #7A8471, #A8B5A0);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(122, 132, 113, 0.3);
}

.test-btn {
    background: linear-gradient(135deg, #C65D00, #7A8471);
}

.share-btn {
    background: linear-gradient(135deg, #C65D00, #A8B5A0);
}

/* NEW: Wide Features Section - Bitly Style */
.features-section {
    margin-bottom: 4rem;
}

.features-header {
    text-align: center;
    margin-bottom: 3rem;
}

.features-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.features-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    gap: 2rem;
    backdrop-filter: blur(15px);
    padding: 3rem 2rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(168, 181, 160, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(225, 6, 22, 0.3);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E10616, #C65D00, #FF6B75);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #E10616, #C65D00);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(225, 6, 22, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 12px 30px rgba(225, 6, 22, 0.4);
}

.feature-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.feature-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-details li {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
    position: relative;
    line-height: 1.5;
}

.feature-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #E10616, #C65D00);
    border-radius: 50%;
    transform: scale(0);
    animation: checkPop 0.3s ease forwards;
}

.feature-card:hover .feature-details li::before {
    animation: checkPop 0.3s ease forwards;
}

@keyframes checkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.feature-cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(168, 181, 160, 0.2);
}

.feature-link {
    color: #E10616;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.feature-link:hover {
    color: #C65D00;
    transform: translateX(5px);
}

.feature-link i {
    transition: transform 0.3s ease;
}

.feature-link:hover i {
    transform: translateX(3px);
}

/* Info Section */
.info-section {
    margin-bottom: 4rem;
    backdrop-filter: blur(15px);
    padding: 3rem 2rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.15);
}

.info-content {
    max-width: 1000px;
    margin: 0 auto;
}

.info-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(168, 181, 160, 0.4);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #e10616;
}

.info-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.info-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #A8B5A0;
    font-weight: bold;
}

.info-card code {
    background: rgba(198, 93, 0, 0.1);
    color: #C65D00;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
}

.pro-tip {
    background: linear-gradient(135deg, rgba(198, 93, 0, 0.1), rgba(168, 181, 160, 0.1));
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid rgba(198, 93, 0, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.pro-tip-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.pro-tip-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.pro-tip-content strong {
    color: #C65D00;
}

/* Footer Section */
.footer-section {
    margin-top: 4rem;
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
    font-weight: 500;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 15px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ebc80c85;
    color: #2c2c2c;
    padding: 15px 25px;
    border-radius: 15px;
    font-weight: 600;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #ebc80c;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: #C65D00;
    color: white;
    border-color: #7A8471;
}

/* Share menu overlay */
.share-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Share menu */
.share-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background: white;
    border-radius: 20px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.share-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.share-menu-content {
    padding: 0;
}

.share-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #C65D00, #A8B5A0);
    color: white;
    border-radius: 20px 20px 0 0;
}

.share-menu-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.share-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.share-options {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    color: #333;
}

.share-icon {
    font-size: 1.2rem;
}

.share-text {
    font-size: 0.95rem;
}

/* GAMIFICATION STYLES */

/* Achievement Notification Styles */
.achievement-notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.4);
    z-index: 1001;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 320px;
    max-width: 500px;
    border: 3px solid #FFD700;
}

.achievement-notification.show {
    top: 20px;
    animation: achievementBounce 0.8s ease-out;
}

.achievement-notification.legendary {
    background: linear-gradient(135deg, #FFD700, #FF6B35);
    border-color: #FFD700;
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.3);
}

.achievement-notification.epic {
    background: linear-gradient(135deg, #9B59B6, #E74C3C);
    border-color: #9B59B6;
    color: white;
}

.achievement-notification.rare {
    background: linear-gradient(135deg, #3498DB, #2ECC71);
    border-color: #3498DB;
    color: white;
}

@keyframes achievementBounce {
    0% { transform: translateX(-50%) scale(0.3) rotate(-10deg); }
    50% { transform: translateX(-50%) scale(1.1) rotate(2deg); }
    100% { transform: translateX(-50%) scale(1) rotate(0deg); }
}

.achievement-content {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    gap: 15px;
    position: relative;
}

.achievement-icon {
    font-size: 3rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
    animation: iconSpin 2s ease-in-out;
}

@keyframes iconSpin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.1); }
    50% { transform: rotate(10deg) scale(1.2); }
    75% { transform: rotate(-5deg) scale(1.1); }
}

.achievement-text {
    flex: 1;
}

.achievement-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.achievement-description {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 600;
}

.achievement-close {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #333;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User Stats Panel */
.user-stats-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 999;
}

.stats-toggle {
    background: linear-gradient(135deg, #C65D00, #A8B5A0);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(198, 93, 0, 0.3);
    font-size: 1rem;
}

.stats-icon {
    font-size: 1.2rem;
}

.badge-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

.user-stats-panel.expanded .stats-toggle {
    border-radius: 15px 15px 0 0;
}

.stats-content {
    background: white;
    border-radius: 0 15px 15px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 300px;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    animation: statsSlideDown 0.3s ease-out;
}

@keyframes statsSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #C65D00, #A8B5A0);
    color: white;
    border-radius: 0 15px 0 0;
}

.stats-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.stats-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

.user-overview {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-icon {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.stat-label {
    flex: 1;
    font-weight: 600;
    color: #555;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #C65D00;
}

.achievements-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.achievement-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    background: white;
}

.achievement-badge.common { border-color: #28a745; background: #f8fff9; }
.achievement-badge.rare { border-color: #007bff; background: #f8fbff; }
.achievement-badge.epic { border-color: #6f42c1; background: #faf9ff; }
.achievement-badge.legendary { border-color: #ffc107; background: #fffbf0; }

.badge-icon {
    font-size: 2rem;
    width: 50px;
    text-align: center;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.1));
}

.badge-info {
    flex: 1;
}

.badge-name {
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}

.badge-description {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 4px;
}

.badge-earned {
    font-size: 0.75rem;
    color: #999;
    font-style: italic;
}

.no-achievements {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    font-size: 1.1rem;
}

.stats-actions {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.view-leaderboard-btn {
    width: 100%;
    background: linear-gradient(135deg, #7A8471, #A8B5A0);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

/* Leaderboard Modal */
.leaderboard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.leaderboard-overlay.show {
    opacity: 1;
    visibility: visible;
}

.leaderboard-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.leaderboard-overlay.show .leaderboard-modal {
    transform: translate(-50%, -50%) scale(1);
}

.leaderboard-header {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.leaderboard-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
}

.leaderboard-close {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.leaderboard-content {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid transparent;
}

.leaderboard-item.top-three {
    background: linear-gradient(135deg, #fff8dc, #f0f8ff);
    border-color: #FFD700;
}

.rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 60px;
}

.rank-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #C65D00;
}

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

.user-stats {
    display: flex;
    gap: 20px;
    font-weight: 600;
    color: #555;
}

.user-links, .user-clicks {
    font-size: 1.1rem;
}

.user-badges {
    display: flex;
    gap: 15px;
}

.badge-stat {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-stat.legendary {
    background: #fff3cd;
    color: #856404;
}

.badge-stat.epic {
    background: #e2e3f1;
    color: #6f42c1;
}

.badge-stat.total {
    background: #d4edda;
    color: #155724;
}

.empty-leaderboard {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.2rem;
    font-style: italic;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header-section, .main-content, .features-grid, .info-section, .footer-section {
        padding: 1.5rem;
    }
    
    .brand-name {
        font-size: 3rem;
        letter-spacing: -1px;
    }
    
    .main-slogan {
        font-size: 0.8rem;
    }
    
    .url-input {
        min-width: 100%;
        max-width: 100%;
        font-size: 0.8rem;
        padding: 18px 25px;
    }
    
    .shorten-btn {
        font-size: 1.1rem;
        padding: 18px 35px;
        width: 100%;
    }
    
    .logo {
        width: 300px;
        height: auto;
    }
    
    .features-title {
        font-size: 2rem;
    }
    
    .features-subtitle {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .feature-title {
        font-size: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-title {
        font-size: 2rem;
    }
    
    .result-close {
        top: 10px;
        right: 15px;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .result {
        padding: 25px;
        padding-top: 50px;
    }
    
    .alias-preview, .password-preview {
        flex-direction: column;
        border-radius: 20px;
    }
    
    .domain-part, .password-icon {
        width: 100%;
        text-align: center;
        border-radius: 20px 20px 0 0;
    }
    
    .alias-input, .password-input {
        width: 100%;
        text-align: center;
        border-radius: 0 0 20px 20px;
    }
    
    .footer-links {
        gap: 1rem;
    }
    
    .pro-tip {
        flex-direction: column;
        text-align: center;
    }
    
    .user-stats-panel {
        position: fixed;
        top: 10px;
        left: 10px;
    }
    
    .stats-content {
        min-width: 280px;
        max-width: calc(100vw - 40px);
    }
    
    .achievement-notification {
        min-width: 280px;
        max-width: calc(100vw - 40px);
        left: 50%;
        transform: translateX(-50%);
    }
    
    .achievement-content {
        padding: 15px 20px;
        gap: 12px;
    }
    
    .achievement-icon {
        font-size: 2.5rem;
    }
    
    .achievement-title {
        font-size: 1.1rem;
    }
    
    .achievement-description {
        font-size: 0.9rem;
    }
    
    .leaderboard-modal {
        width: 95%;
        max-height: 85vh;
    }
    
    .leaderboard-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .user-stats {
        justify-content: center;
    }
    
    .user-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 0.5rem;
    }
    
    .header-section, .main-content, .features-grid, .info-section, .footer-section {
        padding: 1rem;
    }
    
    .logo {
        width: 220px;
        height: auto;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .copy-btn, .test-btn, .share-btn {
        width: 100%;
    }
    
    .url-input {
        min-width: 280px;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-title {
        font-size: 1.3rem;
    }
    
    .share-menu {
        max-width: 95%;
    }
    
    .share-options {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .share-option {
        padding: 12px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stats-content {
        min-width: 260px;
    }
    
    .user-overview {
        padding: 15px;
    }
    
    .achievements-grid {
        padding: 15px;
    }
    
    .achievement-badge {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}