* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0c1f, #1a1630, #0b0a1a);
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.glass-card {
    background: rgba(25, 20, 45, 0.5);
    backdrop-filter: blur(15px);
    border-radius: 35px;
    padding: 40px 30px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    transition: transform 0.3s ease;
    animation: cardFloat 0.8s ease-out;
}

@keyframes cardFloat {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.neon-title {
    text-align: center;
    font-size: 2rem;
    background: linear-gradient(135deg, #a78bfa, #6366f1, #818cf8);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 12px;
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(99, 102, 241, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
    }
}

.subtitle {
    text-align: center;
    color: #cbd5e1;
    margin-bottom: 35px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    min-width: 100px;
    padding: 12px 8px;
    background: rgba(30, 27, 46, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 50px;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Vazir', sans-serif;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    animation: tabFadeIn 0.5s ease-out both;
}

.tab-btn:nth-child(1) { animation-delay: 0.1s; }
.tab-btn:nth-child(2) { animation-delay: 0.2s; }
.tab-btn:nth-child(3) { animation-delay: 0.3s; }

@keyframes tabFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.tab-btn:hover::before {
    width: 200px;
    height: 200px;
}

.tab-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.tab-btn:hover i {
    transform: translateX(-3px) scale(1.1);
}

.tab-btn.active {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: white;
    border-color: transparent;
    animation: activePulse 0.4s ease-out;
}

@keyframes activePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
    }
    100% {
        transform: scale(1);
    }
}

.tab-btn:hover:not(.active) {
    background: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
    border-color: #818cf8;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeSlide 0.4s ease-out;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.input-group {
    margin-bottom: 22px;
    position: relative;
    animation: fadeInUp 0.5s ease-out both;
}

.input-group:nth-child(1) { animation-delay: 0.1s; }
.input-group:nth-child(2) { animation-delay: 0.2s; }

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #818cf8;
    transition: all 0.3s ease;
}

.input-group:has(textarea) .input-icon {
    top: 22px;
    transform: none;
}

input, textarea {
    width: 100%;
    padding: 14px 45px 14px 18px;
    background: rgba(20, 18, 35, 0.7);
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:hover, textarea:hover {
    border-color: rgba(129, 140, 248, 0.7);
    transform: scale(1.01);
}

input:focus, textarea:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
    transform: scale(1.02);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(95deg, #6366f1, #a78bfa);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: btnRise 0.5s ease-out 0.3s both;
}

@keyframes btnRise {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn-primary::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.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(129, 140, 248, 0.6);
}

.btn-primary:active {
    transform: scale(0.97);
    transition: 0.05s;
}

.btn-secondary {
    display: block;
    width: 100%;
    padding: 12px;
    background: rgba(99, 102, 241, 0.2);
    border: 2px solid #6366f1;
    border-radius: 50px;
    color: #a78bfa;
    text-align: center;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out 0.4s both;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.3), transparent);
    transition: left 0.5s;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.4);
    transform: scale(1.02);
    color: white;
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn-copy {
    padding: 12px 20px;
    background: #2d2a44;
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-copy::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.4s;
}

.btn-copy:hover::before {
    left: 100%;
}

.btn-copy:hover {
    background: #6366f1;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.btn-copy:active {
    transform: scale(0.95);
}

.success-box {
    text-align: center;
    background: rgba(99, 102, 241, 0.15);
    padding: 25px;
    border-radius: 25px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.success-box i {
    font-size: 2.5rem;
    color: #a78bfa;
    margin-bottom: 10px;
    animation: iconSpin 0.8s ease;
}

@keyframes iconSpin {
    from {
        transform: rotate(0deg) scale(0);
    }
    to {
        transform: rotate(360deg) scale(1);
    }
}

.link-box {
    display: flex;
    gap: 10px;
    margin: 18px 0;
    flex-wrap: wrap;
}

.link-box input {
    flex: 1;
    text-align: center;
    background: #1e1b2e;
    animation: glowPulse 2s ease infinite;
}

@keyframes glowPulse {
    0%, 100% {
        border-color: rgba(99, 102, 241, 0.4);
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.2);
    }
    50% {
        border-color: rgba(129, 140, 248, 0.8);
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    }
}

.message-item {
    background: rgba(35, 30, 55, 0.6);
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 20px;
    margin-bottom: 12px;
    border-right: 4px solid #818cf8;
    transition: all 0.3s ease;
    animation: slideInRight 0.5s ease both;
}

.message-item:nth-child(1) { animation-delay: 0.05s; }
.message-item:nth-child(2) { animation-delay: 0.1s; }
.message-item:nth-child(3) { animation-delay: 0.15s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message-item:hover {
    transform: translateX(-5px) scale(1.01);
    background: rgba(99, 102, 241, 0.25);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.message-item small {
    color: #a78bfa;
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
}

.error {
    color: #facc15;
    background: rgba(250, 204, 21, 0.1);
    padding: 12px;
    border-radius: 50px;
    text-align: center;
    margin-top: 15px;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #a0aec0;
    animation: fadeInScale 0.6s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.empty-state i {
    font-size: 3rem;
    color: #6366f1;
    margin-bottom: 10px;
    display: block;
    animation: floatIcon 3s ease infinite;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 550px) {
    .glass-card {
        padding: 25px 18px;
    }
    .neon-title {
        font-size: 1.5rem;
    }
    .tab-btn {
        min-width: 85px;
        font-size: 0.8rem;
        padding: 10px 5px;
    }
    .link-box {
        flex-direction: column;
    }
    .btn-copy {
        width: 100%;
    }
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #6b7280;
    font-size: 0.75rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.footer i {
    margin-left: 5px;
}