/* Базовые стили для темной темы */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

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

/* Шапка */
.header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: #a1a1aa;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 24px;
    background: #3b82f6;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn:hover span {
    background: #a855f7;
}

.nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    transition: all 0.3s ease;
    display: none;
}

.nav-close:hover {
    color: #3b82f6;
    transform: rotate(90deg);
}

/* Основной контент */
.main {
    flex: 1;
    padding-top: 80px;
}

.content-block {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Фон с плавным исчезновением */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background:
            radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 40% 80%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
    mask: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    -webkit-mask: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    z-index: -1;
}

/* Текстура из диагональных линий с плавным исчезновением */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            linear-gradient(45deg, transparent 48%, rgba(59, 130, 246, 0.05) 49%, rgba(59, 130, 246, 0.05) 51%, transparent 52%),
            linear-gradient(-45deg, transparent 48%, rgba(168, 85, 247, 0.05) 49%, rgba(168, 85, 247, 0.05) 51%, transparent 52%);
    background-size: 60px 60px;
}

/* Более компактная герой секция */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 0;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    z-index: 2;
    margin-bottom: 2rem;
}

/* Уменьшенные заголовки */
.hero h1 {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #3b82f6, #a855f7, #22c55e);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s ease infinite, slideDown 1s ease;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-align: center;
}

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

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

.hero p {
    font-size: 1.4rem;
    color: #a1a1aa;
    margin-bottom: 1rem;
    animation: slideDown 1s ease 0.3s both;
    text-align: center;
}

.highlight {
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 1.5rem;
}

.free-badge-container {
    text-align: center;
    margin-bottom: 1.5rem;
    animation: slideDown 1s ease 0.4s both;
}

.free-badge {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 0.7rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    animation: pulse 2s infinite;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spinning-icon {
    display: inline-block;
    animation: spin 3s linear infinite;
    margin-right: 0.5rem;
    font-size: 1.1em;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Компактная форма */
.shortener-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: scaleIn 1s ease 0.6s both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
}

.shortener-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: left;
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Компактные инпуты */
.form-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 50px;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: #71717a;
    font-size: 1rem;
}

.example-text {
    text-align: center;
    color: #a1a1aa;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Компактная кнопка */
.submit-btn {
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    color: white;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.submit-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;
}

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

/* Компактный дизайн результата/ошибки */
.result {
    margin-top: 1rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    display: none;
    animation: slideDown 0.5s ease;
}

.result.error {
    background: transparent;
    border: none;
}

/* Компактная ошибка */
.error-container {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.15));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.2);
}

.error-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.1), transparent);
    animation: errorShine 2s infinite;
}

@keyframes errorShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}

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

.error-icon {
    font-size: 1.5rem;
    color: #ef4444;
    animation: errorPulse 1.5s ease-in-out infinite;
}

@keyframes errorPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.error-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ef4444;
    margin: 0;
    text-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.error-message {
    font-size: 1rem;
    color: #fca5a5;
    line-height: 1.5;
    margin: 0 0 1.2rem 0;
    text-align: left;
}

.error-message:empty {
    display: none;
    margin: 0;
}

.error-actions {
    display: none;
}

/* Компактные секции */
.section {
    padding: 3rem 0;
    position: relative;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Компактные блок шагов */
.steps-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    width: 100%;
    transition: all 0.3s ease;
    animation: slideInLeft 1s ease;
}

.step-item:hover {
    transform: translateX(8px) scale(1.01);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 800;
    flex-shrink: 0;
    animation: bounce 2s infinite;
}

.step-icon {
    font-size: 2rem;
    flex-shrink: 0;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step-content p {
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.5;
}

.step-arrow {
    font-size: 1.5rem;
    color: #3b82f6;
    animation: bounce 2s infinite;
    margin: 0.5rem 0;
}

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

/* Преимущества */
.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.advantage-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeIn 1s ease;
}

.advantage-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.advantage-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.advantage-card p {
    color: #a1a1aa;
    font-size: 0.9rem;
    line-height: 1.5;
}

.advantage-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* FAQ */
.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.08);
}

.faq-answer {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #a1a1aa;
}

.faq-answer.open {
    padding: 1.2rem;
    max-height: 200px;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Подвал */
.footer {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #a1a1aa;
}

.footer-right {
    display: flex;
    gap: 1rem;
}

.footer a {
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffffff;
}

/* Базовые формы */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #ffffff;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #71717a;
}

.btn {
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Стили для формы входа в статистику */
.stats-login-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.stats-login-form .form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.stats-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.stats-login-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.stats-login-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;
}

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

.stats-login-btn {
    position: relative;
    overflow: hidden;
}
.stats-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stats-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #a1a1aa;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
    word-break: break-all;
}

.stat-number {
    font-size: 2rem !important;
    font-weight: 800;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.short-link {
    color: #3b82f6;
    text-decoration: none;
}

.short-link:hover {
    color: #a855f7;
}

.copy-btn {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    padding: 0.5rem;
    border-radius: 8px;
    margin-left: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.original-url a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
}

.original-url a:hover {
    color: #ffffff;
}

.stats-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chart-label {
    min-width: 120px;
    color: #a1a1aa;
    font-size: 0.9rem;
}

.chart-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.chart-fill {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    border-radius: 4px;
    transition: width 1s ease;
}

.chart-value {
    min-width: 40px;
    text-align: right;
    color: #ffffff;
    font-weight: 600;
}

.clicks-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.click-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #a1a1aa;
}

.click-date {
    font-weight: 600;
    color: #ffffff;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Новые кнопки */
.copy-button,
.edit-button {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.edit-button {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.3);
    color: #a855f7;
}

.copy-button:hover,
.edit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.edit-button:hover {
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.2);
}

/* Статус email */
.email-status {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.email-status.verified {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.email-status.unverified {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.email-verification-note {
    font-size: 0.8rem;
    color: #a1a1aa;
    margin-top: 0.5rem;
    padding: 0.8rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 8px;
    border-left: 3px solid #f59e0b;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.open-email-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.open-email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

/* Тоаст-уведомления */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 10000;
    max-width: 300px;
    backdrop-filter: blur(10px);
}

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

.toast::before {
    content: '📧';
    margin-right: 0.5rem;
}

/* Новая таблица кликов */
.clicks-table-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.clicks-table-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr 1fr;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    font-weight: 700;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.clicks-table {
    display: flex;
    flex-direction: column;
}

.click-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr 1fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    align-items: center;
}

.click-row:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(3px);
}

.click-row:last-child {
    border-bottom: none;
}

.click-col {
    color: #a1a1aa;
    font-size: 0.9rem;
    word-break: break-all;
}

.click-date {
    color: #ffffff !important;
    font-weight: 600;
}

.referrer-col {
    cursor: help;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.details-btn {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.details-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Пагинация */
.pagination-container {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: #a1a1aa;
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.3rem;
}

.page-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 35px;
}

.page-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.page-btn.active {
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    border-color: #3b82f6;
    font-weight: 600;
}

/* Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.95), rgba(26, 26, 26, 0.95));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(50px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #a1a1aa;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 1.5rem;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-row strong {
    color: #ffffff;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.detail-row span {
    color: #a1a1aa;
    font-size: 0.9rem;
    word-break: break-all;
}

.referrer-url,
.user-agent {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
}

.modal-btn {
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.loading,
.error {
    text-align: center;
    padding: 2rem;
    color: #a1a1aa;
    font-size: 1rem;
}

.loading {
    color: #3b82f6;
}

.error {
    color: #ef4444;
}

/* UTM контролы */
.utm-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.utm-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    transition: 0.4s;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    border-color: #3b82f6;
}

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

.toggle-label {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.utm-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.utm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.utm-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.utm-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.utm-input {
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.utm-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.utm-input::placeholder {
    color: #71717a;
}

.utm-save-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.utm-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
}

/* Анимации для UTM уведомлений */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Кнопка "Мої посилання" */
.my-links-btn {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #a855f7;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
}

.my-links-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.2);
    background: rgba(168, 85, 247, 0.3);
}

/* Кнопка "Створити нове посилання" */
.create-new-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    animation: slideDown 1s ease 0.8s both;
}

.create-new-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(34, 197, 94, 0.4);
}

/* Фикс для email блока */
.email-stat-item {
    min-height: auto;
}

.email-stat-item .stat-value {
    gap: 1rem;
}

/* Убираем дублированные UTM секции */
.stats-card + .stats-card h2.stats-title:contains("UTM мітки") {
    display: none;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        gap: 2rem;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav.active {
        display: flex;
        right: 0;
    }

    .nav-close {
        display: block !important;
    }

    .nav a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        border-radius: 12px;
        width: 200px;
        text-align: center;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .nav a:hover {
        background: rgba(59, 130, 246, 0.2);
        border-color: rgba(59, 130, 246, 0.5);
        transform: translateY(-2px);
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .main {
        padding-top: 80px;
    }

    .hero {
        min-height: 70vh;
        padding: 1.5rem 0;
    }

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

    .hero p {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .highlight {
        font-size: 1.3rem;
    }

    .free-badge {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }

    .hero-content {
        margin-bottom: 1.5rem;
    }

    .shortener-form {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .form-label {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }

    .form-input {
        padding: 1rem 1.2rem;
        font-size: 1rem;
        min-height: 45px;
    }

    .form-input::placeholder {
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 1.1rem 2rem;
        font-size: 1rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .example-text {
        font-size: 0.85rem;
        padding: 0.6rem;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.2rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .step-icon {
        font-size: 1.8rem;
    }

    .step-content h3 {
        font-size: 1.1rem;
    }

    .step-content p {
        font-size: 0.9rem;
    }

    .advantages {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .advantage-card {
        padding: 1.2rem;
    }

    .advantage-card h3 {
        font-size: 1.1rem;
    }

    .advantage-card p {
        font-size: 0.85rem;
    }

    .advantage-icon {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .error-container {
        padding: 1rem;
    }

    .error-title {
        font-size: 0.9rem;
    }

    .error-message {
        font-size: 0.8rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .faq-answer.open {
        padding: 1rem;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }

    .stats-login-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .stats-login-form .form-input {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }
    
    .stats-login-btn {
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .click-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        font-size: 0.8rem;
        padding: 0.8rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .copy-button,
    .edit-button {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .email-status {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .utm-grid {
        grid-template-columns: 1fr;
    }

    .utm-fields {
        padding: 1rem;
    }

    .utm-save-btn {
        width: 100%;
        text-align: center;
    }

    .toggle-switch {
        width: 50px;
        height: 28px;
    }

    .toggle-slider:before {
        height: 22px;
        width: 22px;
        left: 3px;
        bottom: 2px;
    }

    input:checked + .toggle-slider:before {
        transform: translateX(22px);
    }

    .my-links-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        margin-top: 0.5rem;
        align-self: flex-start;
    }

    .create-new-btn {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }

    .email-stat-item .stat-value {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }

    .open-email-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        align-self: stretch;
        text-align: center;
    }

    .email-verification-note {
        gap: 0.6rem;
    }
    
    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        text-align: center;
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
    }
    
    /* Мобильная таблица кликов */
    .clicks-table-header {
        display: none;
    }
    
    .click-row {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    
    .click-row:hover {
        transform: none;
    }
    
    .click-col {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.8rem;
    }
    
    .click-col::before {
        content: attr(data-label);
        font-weight: 600;
        color: #ffffff;
        min-width: 80px;
    }
    
    .details-btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        align-self: flex-end;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-content {
        max-height: 90vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }

    .nav {
        display: flex !important;
    }
}

/* Дополнительные анимации для stats.php */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Стабильные стили для success контейнера */
.success-container {
    position: relative !important;
    z-index: 10;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.result.success {
    position: relative !important;
    z-index: 10;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Исправление для анимации спиннера в модальных окнах */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Специфичные стили только для страницы входа в статистику */
.stats-login-description {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    margin: 1.5rem 0 -1.5rem 0 !important;
    color: #a1a1aa !important;
    font-size: 1.2rem !important;

}