/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --primary-light: #8B83FF;
    --secondary: #FF6584;
    --bg-dark: #0a0a1a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-white: #ffffff;
    --text-gray: #a0a0b8;
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius: 20px;
    --radius-sm: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 10% 20%, rgba(108, 99, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(255, 101, 132, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(108, 99, 255, 0.05) 0%, transparent 70%);
    z-index: -1;
}

/* ===== FLOATING PARTICLES ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ===== NAVIGATION ===== */
nav {
    padding: 20px 0;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

nav .logo {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

nav .logo span {
    font-size: 30px;
    -webkit-text-fill-color: initial;
}

nav .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

nav .nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

nav .nav-links a:hover {
    color: var(--text-white);
    background: var(--bg-card);
    border-color: var(--border-glass);
}

nav .nav-links .btn-primary-nav {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
}

nav .nav-links .btn-primary-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

/* ===== HERO SECTION ===== */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}

.hero .badge {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, var(--text-gray) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-glass);
    max-width: 650px;
    margin: 0 auto 40px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 8px 40px rgba(108, 99, 255, 0.15);
}

/* ===== URL FORM ===== */
.url-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.url-form .input-wrapper {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.url-form .input-wrapper .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-gray);
}

.url-form input[type="url"] {
    width: 100%;
    padding: 16px 20px 16px 48px;
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.url-form input[type="url"]::placeholder {
    color: var(--text-gray);
}

.url-form input[type="url"]:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.1);
}

.url-form .btn-shorten {
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}

.url-form .btn-shorten:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

.url-form .btn-shorten:active {
    transform: scale(0.95);
}

/* ===== SUCCESS BOX ===== */
.success-box {
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.3);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    animation: fadeSlideIn 0.5s ease;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-box .url-display {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.success-box .url-display .short-url {
    font-size: 18px;
    font-weight: 600;
    color: #2ed573;
    cursor: pointer;
    padding: 8px 16px;
    background: rgba(46, 213, 115, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.success-box .url-display .short-url:hover {
    background: rgba(46, 213, 115, 0.2);
}

.success-box .btn-copy {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-white);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.success-box .btn-copy:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== ERROR BOX ===== */
.error-box {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 20px;
    color: #ff4757;
    animation: fadeSlideIn 0.5s ease;
}

/* ===== AUTH FORMS ===== */
.auth-form {
    max-width: 450px;
    margin: 0 auto 40px;
}

.auth-form h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-form .subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 15px;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.auth-form .form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.auth-form .form-group input::placeholder {
    color: var(--text-gray);
}

.auth-form .btn-auth {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 6px;
}

.auth-form .btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

.auth-form .auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-gray);
    font-size: 14px;
}

.auth-form .auth-footer a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
}

.auth-form .auth-footer a:hover {
    text-decoration: underline;
}

/* ===== DASHBOARD STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 99, 255, 0.3);
}

.stat-card .stat-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
}

.stat-card h3 {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-card p {
    font-size: 32px;
    font-weight: 800;
    margin-top: 4px;
    background: linear-gradient(135deg, #ffffff, var(--text-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card.bot-stat p {
    background: linear-gradient(135deg, #ff6b81, #ff4757);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card.proxy-stat p {
    background: linear-gradient(135deg, #ffa502, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== TABLES ===== */
.table-container {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 24px;
    margin: 20px 0;
    overflow-x: auto;
}

.table-container h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.links-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.links-table th {
    text-align: left;
    padding: 12px 16px;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-glass);
}

.links-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-white);
}

.links-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.links-table .short-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
}

.links-table .short-link:hover {
    text-decoration: underline;
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.badge-bot {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.badge-proxy {
    background: rgba(255, 165, 2, 0.2);
    color: #ffa502;
    border: 1px solid rgba(255, 165, 2, 0.3);
}

.badge-safe {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.3);
}

/* ===== LOGIN MESSAGE ===== */
.login-msg {
    text-align: center;
    color: var(--text-gray);
    margin-top: 12px;
    font-size: 15px;
}

.login-msg a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
}

.login-msg a:hover {
    text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
    margin-top: auto;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-glass);
    color: var(--text-gray);
    font-size: 14px;
}

footer span {
    color: var(--primary-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .glass-card {
        padding: 24px;
        margin: 0 10px 30px;
    }
    
    .url-form {
        flex-direction: column;
    }
    
    .url-form .btn-shorten {
        width: 100%;
        justify-content: center;
    }
    
    nav .logo {
        font-size: 22px;
    }
    
    nav .nav-links a {
        padding: 6px 14px;
        font-size: 13px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card p {
        font-size: 24px;
    }
    
    .success-box {
        flex-direction: column;
        text-align: center;
    }
    
    .success-box .url-display {
        flex-direction: column;
    }
    
    .auth-form {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        padding: 16px;
    }
    
    .links-table {
        font-size: 12px;
    }
    
    .links-table th, .links-table td {
        padding: 8px 10px;
    }
}