@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

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

    :root {
        --primary-color: #1e3a8a;
        --primary-light: #3b82f6;
        --secondary-color: #0ea5e9;
        --tertiary-color: #06b6d4;
        --quaternary-color: #8b5cf6;
        --accent-color: #ec4899;
        --text-dark: #1e293b;
        --text-light: #64748b;
        --white: #ffffff;
        --white-transparent: rgba(255, 255, 255, 0.9);
        --shadow-light: rgba(0, 0, 0, 0.08);
        --shadow-medium: rgba(0, 0, 0, 0.12);
        --shadow-heavy: rgba(0, 0, 0, 0.18);
        --border-light: #e2e8f0;
        --border-hover: rgba(30, 58, 138, 0.2);
        --success-bg: #dbeafe;
        --success-color: #1d4ed8;
        --error-bg: #fee2e2;
        --error-color: #b91c1c;
        --card-bg: rgba(255, 255, 255, 0.85);
    }

    .tiktok_body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
        background-attachment: fixed;
        padding: 20px;
        color: var(--text-dark);
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        overflow-x: hidden;
        min-height: 60vh;
        position: relative;
    }

    .container_tiktok {
        max-width: min(1400px, 95vw);
        margin: 0 auto;
        padding: clamp(15px, 3vw, 30px);
        position: relative;
        z-index: 1;
    }

    .header {
        text-align: center;
        margin-bottom: clamp(30px, 5vw, 50px);
    }

    .logo h1{
        font-size: clamp(2rem, 6vw, 3.5rem);
        font-weight: 800;
        background: linear-gradient(90deg, var(--primary-light), var(--secondary-color), var(--tertiary-color), var(--quaternary-color));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        margin-bottom: clamp(10px, 2vw, 15px);
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: clamp(8px, 2vw, 15px);
        flex-wrap: wrap;
    }

    .logo-icon {
        font-size: clamp(2.5rem, 7vw, 4rem);
        animation: followerBounce 2s ease-in-out infinite;
        flex-shrink: 0;
        color: var(--accent-color);
    }

    @keyframes followerBounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateY(0) rotate(0deg);
        }
        40% {
            transform: translateY(-10px) rotate(-5deg);
        }
        60% {
            transform: translateY(-5px) rotate(5deg);
        }
    }

    .subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
        color: var(--white-transparent);
        font-weight: 400;
        letter-spacing: 0.5px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        max-width: 600px;
        margin: 0 auto;
    }

    .search-section {
        background: var(--card-bg);
        border-radius: clamp(15px, 3vw, 25px);
        padding: clamp(25px, 5vw, 45px) !important;
        margin-bottom: clamp(25px, 4vw, 40px) !important;
        box-shadow: 0 25px 80px var(--shadow-heavy), 0 0 0 1px rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .input-group {
        display: flex;
        gap: clamp(10px, 2vw, 20px);
        margin-bottom: clamp(20px, 3vw, 30px);
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
    }

    .input-field {
        flex: 1 !important;
        min-width: min(300px, 100%) !important;
        padding: clamp(12px, 2.5vw, 18px) clamp(16px, 3vw, 28px) !important;
        border: 2px solid var(--border-light) !important;
        border-radius: clamp(10px, 2vw, 15px) !important;
        font-size: clamp(14px, 2.5vw, 16px) !important;
        outline: none !important;
        background: var(--white) !important;
        transition: all 0.3s ease !important;
        font-weight: 500 !important;
        box-shadow: 0 4px 15px var(--shadow-light) !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        width: 100% !important;
    }

    .input-field:focus {
        border-color: var(--primary-light) !important;
        background: var(--white) !important;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
        transform: translateY(-2px) !important;
        outline: none !important;
    }

    .btn {
        padding: clamp(12px, 2.5vw, 18px) clamp(20px, 4vw, 35px);
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
        color: var(--white);
        border: none;
        border-radius: clamp(10px, 2vw, 15px);
        font-size: clamp(14px, 2.5vw, 16px);
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
        min-width: min(200px, 100%);
        width: 100%;
        box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
        position: relative;
        overflow: hidden;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 52px;
    }

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

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

    .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(30, 58, 138, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
    }

    .btn:active {
        transform: translateY(-1px);
    }

    .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    .loading {
        display: none;
        text-align: center;
        padding: clamp(20px, 4vw, 30px);
        color: var(--primary-light);
    }

    .spinner {
        width: clamp(40px, 8vw, 60px);
        height: clamp(40px, 8vw, 60px);
        border: 5px solid rgba(59, 130, 246, 0.1);
        border-top: 5px solid var(--primary-light);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto clamp(15px, 3vw, 20px);
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    }

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

    .loading-text {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
        font-weight: 600;
    }

    .profile-section {
        display: none;
        background: var(--card-bg);
        border-radius: clamp(15px, 3vw, 25px);
        padding: clamp(25px, 5vw, 45px);
        margin-bottom: clamp(25px, 4vw, 40px);
        box-shadow: 0 25px 80px var(--shadow-heavy), 0 0 0 1px rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .profile-header {
        display: flex;
        align-items: center;
        gap: clamp(15px, 3vw, 30px);
        margin-bottom: clamp(20px, 4vw, 35px);
        flex-wrap: wrap;
    }

    .profile-avatar {
        width: clamp(80px, 15vw, 120px);
        height: clamp(80px, 15vw, 120px);
        border-radius: 50%;
        border: 5px solid var(--primary-light);
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.3), 0 10px 30px var(--shadow-medium);
        object-fit: cover;
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }

    .profile-avatar:hover {
        transform: scale(1.05);
    }

    .profile-info {
        flex: 1;
        min-width: 0;
    }

    .profile-info h2 {
        color: var(--text-dark);
        margin-bottom: clamp(5px, 1vw, 8px);
        font-size: clamp(1.5rem, 4vw, 2.2rem);
        font-weight: 800;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .profile-info p {
        color: var(--text-light);
        margin-bottom: clamp(5px, 1vw, 8px);
        font-weight: 500;
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
        gap: clamp(15px, 3vw, 25px);
        margin-top: clamp(20px, 4vw, 35px);
    }

    .stat-card {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
        color: var(--white);
        padding: clamp(20px, 4vw, 30px);
        border-radius: clamp(12px, 2.5vw, 20px);
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 15px 40px rgba(30, 58, 138, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
        position: relative;
        overflow: hidden;
    }

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

    .stat-card:hover::before {
        left: 100%;
    }

    .stat-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 25px 60px rgba(30, 58, 138, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
    }

    .stat-number {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        font-weight: 900;
        display: block;
        margin-bottom: clamp(5px, 1vw, 8px);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .stat-label {
        font-size: clamp(0.8rem, 2vw, 1rem);
        opacity: 0.95;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .followers-section {
        display: none;
        background: var(--card-bg);
        border-radius: clamp(15px, 3vw, 25px);
        padding: clamp(25px, 5vw, 45px);
        box-shadow: 0 25px 80px var(--shadow-heavy), 0 0 0 1px rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .section-title {
        font-size: clamp(1.5rem, 4vw, 2.2rem);
        background: linear-gradient(90deg, var(--primary-light), var(--secondary-color), var(--tertiary-color), var(--quaternary-color));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        margin-bottom: clamp(20px, 4vw, 35px);
        text-align: center;
        font-weight: 800;
    }

    .followers-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
        gap: clamp(10px, 2vw, 15px);
        margin-top: clamp(15px, 3vw, 25px);
    }

    .follower-card {
        background: var(--white);
        border: 1px solid #f1f5f9;
        border-radius: clamp(10px, 2vw, 15px);
        padding: clamp(10px, 2vw, 15px);
        box-shadow: 0 5px 15px var(--shadow-light), 0 0 0 1px rgba(255, 255, 255, 0.5);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        animation: tikTokSlideIn 0.6s ease-out;
    }

    @keyframes tikTokSlideIn {
        from {
            opacity: 0;
            transform: translateY(20px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .follower-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--secondary-color));
    }

    .follower-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px var(--shadow-medium), 0 0 0 1px rgba(30, 58, 138, 0.1);
        border-color: var(--border-hover);
    }

    .follower-header {
        display: flex;
        align-items: center;
        gap: clamp(8px, 1.5vw, 10px);
        margin-bottom: clamp(8px, 1.5vw, 12px);
    }

    .follower-avatar {
        width: clamp(30px, 6vw, 40px);
        height: clamp(30px, 6vw, 40px);
        border-radius: 50%;
        border: 2px solid var(--primary-light);
        object-fit: cover;
        transition: all 0.3s ease;
        box-shadow: 0 3px 10px rgba(59, 130, 246, 0.15);
        flex-shrink: 0;
    }

    .follower-card:hover .follower-avatar {
        transform: scale(1.1);
        border-color: var(--secondary-color);
        box-shadow: 0 5px 15px rgba(59, 130, 246, 0.25);
    }

    .follower-info {
        flex: 1;
        min-width: 0;
    }

    .follower-name {
        color: var(--text-dark);
        font-size: clamp(0.7rem, 2vw, 0.9rem);
        margin-bottom: 2px;
        font-weight: 700;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .follower-username {
        color: var(--text-light);
        font-size: clamp(0.6rem, 1.8vw, 0.75rem);
        font-weight: 500;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .follower-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(5px, 1vw, 8px);
        padding-top: clamp(8px, 1.5vw, 10px);
        border-top: 1px solid #f1f5f9;
    }

    .follower-stat {
        text-align: center;
        padding: clamp(4px, 1vw, 6px) clamp(3px, 0.8vw, 4px);
        background: #f8fafc;
        border-radius: clamp(5px, 1.5vw, 8px);
        transition: all 0.3s ease;
    }

    .follower-stat:hover {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(30, 58, 138, 0.15);
    }

    .follower-stat-number {
        font-weight: 700;
        color: var(--primary-light);
        display: block;
        font-size: clamp(0.6rem, 1.8vw, 0.8rem);
        line-height: 1;
        margin-bottom: clamp(2px, 0.5vw, 3px);
        transition: color 0.3s ease;
    }

    .follower-stat:hover .follower-stat-number {
        color: var(--white);
    }

    .follower-stat-label {
        font-size: clamp(0.5rem, 1.5vw, 0.6rem);
        color: var(--text-light);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: color 0.3s ease;
    }

    .follower-stat:hover .follower-stat-label {
        color: rgba(255, 255, 255, 0.9);
    }

    .verified-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: clamp(10px, 2.5vw, 14px);
        height: clamp(10px, 2.5vw, 14px);
        background: linear-gradient(135deg, var(--secondary-color) 0%, var(--tertiary-color) 100%);
        border-radius: 50%;
        margin-left: clamp(3px, 1vw, 5px);
        color: var(--white);
        font-size: clamp(6px, 1.5vw, 8px);
        font-weight: bold;
        box-shadow: 0 2px 5px rgba(14, 165, 233, 0.3);
        flex-shrink: 0;
    }

    .error-message {
        background: linear-gradient(135deg, var(--error-bg) 0%, #fecaca 100%);
        color: var(--error-color);
        padding: clamp(12px, 2.5vw, 18px);
        border-radius: clamp(10px, 2vw, 15px);
        margin: clamp(15px, 3vw, 20px) 0;
        border-left: 5px solid #ef4444;
        display: none;
        font-weight: 600;
        box-shadow: 0 8px 25px rgba(185, 28, 28, 0.1);
    }

    .success-message {
        background: linear-gradient(135deg, var(--success-bg) 0%, #bfdbfe 100%);
        color: var(--success-color);
        padding: clamp(12px, 2.5vw, 18px);
        border-radius: clamp(10px, 2vw, 15px);
        margin: clamp(15px, 3vw, 20px) 0;
        border-left: 5px solid #3b82f6;
        display: none;
        font-weight: 600;
        box-shadow: 0 8px 25px rgba(29, 78, 216, 0.1);
    }

    .empty-state {
        text-align: center;
        padding: clamp(50px, 10vw, 80px) clamp(15px, 3vw, 20px);
        color: var(--text-light);
    }

    .empty-state-icon {
        font-size: clamp(3rem, 8vw, 5rem);
        margin-bottom: clamp(15px, 3vw, 25px);
        opacity: 0.6;
        animation: followerBounce 2s ease-in-out infinite;
    }

    .empty-state-text {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
        font-weight: 600;
    }

    .floating-hearts {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 0;
    }

    .heart {
        position: absolute;
        color: var(--accent-color);
        font-size: clamp(12px, 3vw, 20px);
        animation: floatHeart 4s ease-in-out infinite;
        opacity: 0;
        pointer-events: none;
    }

    @keyframes floatHeart {
        0% {
            opacity: 0;
            transform: translateY(100vh) scale(0);
        }
        10% {
            opacity: 1;
            transform: translateY(90vh) scale(1);
        }
        90% {
            opacity: 1;
            transform: translateY(10vh) scale(1);
        }
        100% {
            opacity: 0;
            transform: translateY(0vh) scale(0);
        }
    }

    /* Extra Small Devices (phones, 320px and down) */
    @media (max-width: 320px) {
        .container {
            padding: 10px;
        }

        .logo {
            font-size: 1.8rem;
            flex-direction: column;
        }

        .logo-icon {
            font-size: 2rem;
        }

        .input-group {
            flex-direction: column;
            gap: 10px;
            width: 100%;
        }

        .input-field {
            width: 100%;
            min-width: 100%;
            flex: none;
        }

        .btn {
            width: 100%;
            min-width: 100%;
            flex: none;
        }

        .profile-header {
            flex-direction: column;
            text-align: center;
        }

        .stats-grid {
            grid-template-columns: 1fr;
            gap: 10px;
        }

        .followers-grid {
            grid-template-columns: 1fr;
            gap: 8px;
        }

        .follower-stats {
            grid-template-columns: 1fr;
        }
    }

    /* Small Devices (phones, 321px to 480px) */
    @media (min-width: 321px) and (max-width: 480px) {
        .search-section,
        .profile-section,
        .followers-section {
            padding: clamp(20px, 4vw, 30px);
        }

        .input-group {
            flex-direction: column;
            gap: 15px;
            width: 100%;
        }

        .input-field {
            width: 100%;
            min-width: 100%;
            flex: none;
        }

        .btn {
            width: 100%;
            min-width: 100%;
            flex: none;
        }

        .stats-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }

        .followers-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        .follower-stats {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    /* Medium Devices (tablets, 481px to 768px) */
    @media (min-width: 481px) and (max-width: 768px) {
        .container {
            padding: clamp(15px, 3vw, 25px);
        }

        .input-group {
            flex-direction: column;
            gap: 15px;
            width: 100%;
        }

        .input-field {
            width: 100%;
            min-width: 100%;
            flex: none;
        }

        .btn {
            width: 100%;
            min-width: 100%;
            flex: none;
        }

        .profile-header {
            flex-direction: column;
            text-align: center;
        }

        .stats-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .followers-grid {
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        }
    }

    /* Large Devices (desktops, 769px to 1024px) */
    @media (min-width: 769px) and (max-width: 1024px) {
        .input-group {
            flex-direction: row;
            gap: clamp(10px, 2vw, 20px);
        }

        .input-field {
            flex: 1;
            min-width: min(300px, 100%);
            width: auto;
        }

        .btn {
            min-width: min(200px, 100%);
            width: auto;
            flex-shrink: 0;
        }

        .followers-grid {
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        }
    }

    /* Extra Large Devices (large desktops, 1025px and up) */
    @media (min-width: 1025px) {
        .input-group {
            flex-direction: row;
            gap: clamp(10px, 2vw, 20px);
        }

        .input-field {
            flex: 1;
            min-width: min(300px, 100%);
            width: auto;
        }

        .btn {
            min-width: min(200px, 100%);
            width: auto;
            flex-shrink: 0;
        }

        .followers-grid {
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        }
    }

    /* Landscape orientation adjustments */
    @media (orientation: landscape) and (max-height: 600px) {
        .header {
            margin-bottom: 20px;
        }

        .logo {
            font-size: 2rem;
        }

        .logo-icon {
            font-size: 2.5rem;
        }

        .subtitle {
            font-size: 0.9rem;
        }

        .search-section,
        .profile-section,
        .followers-section {
            padding: 20px;
            margin-bottom: 20px;
        }
    }

    /* High DPI displays */
    @media (-webkit-min-device-pixel-ratio: 2),
    (min-resolution: 192dpi) {
        .profile-avatar,
        .follower-avatar {
            image-rendering: -webkit-optimize-contrast;
            image-rendering: crisp-edges;
        }
    }

    /* Reduced motion preferences */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }

        .floating-hearts {
            display: none;
        }
    }

    /* Dark mode support */
    @media (prefers-color-scheme: dark) {
        body {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
            color: var(--text-dark);
        }

        .search-section,
        .profile-section,
        .followers-section {
            background: rgba(30, 41, 59, 0.9);
            color: var(--text-dark);
        }

        .follower-card {
            background: rgba(30, 41, 59, 0.9);
            color: var(--text-dark);
        }
    }

    /* Print styles */
    @media print {
        .floating-hearts,
        .btn,
        .loading {
            display: none !important;
        }

        body {
            background: white !important;
            color: black !important;
        }

        .search-section,
        .profile-section,
        .followers-section {
            background: white !important;
            box-shadow: none !important;
            border: 1px solid #ccc !important;
        }
    }

    /* Focus styles for accessibility */
    .btn:focus,
    .input-field:focus {
        outline: none;
    }

    .btn:focus-visible,
    .input-field:focus-visible {
        outline: 2px solid var(--primary-light);
        outline-offset: 2px;
    }

    /* Touch device optimizations */
    @media (hover: none) and (pointer: coarse) {
        .btn:hover,
        .stat-card:hover,
        .follower-card:hover,
        .follower-stat:hover {
            transform: none;
        }

        .btn:active,
        .stat-card:active,
        .follower-card:active,
        .follower-stat:active {
            transform: scale(0.98);
        }
    }
	
	
	
	
	/* Responsive adjustments for various device sizes, starting from 992px and below */

/* Medium Desktops and Tablets (769px to 991px) */
@media (min-width: 769px) and (max-width: 991px) {
    .container_tiktok {
        max-width: 900px;
        padding: 30px;
    }

    .header {
        margin-bottom: 50px;
    }

    .logo {
        font-size: 3.5rem;
        gap: 15px;
    }

    .logo-icon {
        font-size: 4.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
        max-width: 700px;
    }

    .search-section,
    .profile-section,
    .followers-section {
        padding: 40px;
        margin-bottom: 40px;
        border-radius: 25px;
    }

    .input-group {
        flex-direction: row;
        gap: 20px;
        margin-bottom: 30px;
    }

    .input-field {
        padding: 18px 25px;
        border-radius: 15px;
        font-size: 1rem;
        min-width: 300px;
    }

  

    .loading {
        padding: 30px;
    }

    .spinner {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .loading-text {
        font-size: 1.1rem;
    }

    .profile-header {
        gap: 30px;
        margin-bottom: 30px;
    }

    .profile-avatar {
        width: 110px;
        height: 110px;
        border-width: 5px;
    }

    .profile-info h2 {
        font-size: 2.4rem;
    }

    .profile-info p {
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        margin-top: 30px;
    }

    .stat-card {
        padding: 30px;
        border-radius: 18px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2.4rem;
        margin-bottom: 30px;
    }

    .followers-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 18px;
        margin-top: 25px;
    }

    .follower-card {
        padding: 18px;
        border-radius: 15px;
    }

    .follower-header {
        gap: 12px;
        margin-bottom: 12px;
    }

    .follower-avatar {
        width: 45px;
        height: 45px;
        border-width: 2.5px;
    }

    .follower-name {
        font-size: 1rem;
    }

    .follower-username {
        font-size: 0.85rem;
    }

    .follower-stats {
        gap: 8px;
        padding-top: 12px;
    }

    .follower-stat {
        padding: 7px 4px;
        border-radius: 9px;
    }

    .follower-stat-number {
        font-size: 0.85rem;
    }

    .follower-stat-label {
        font-size: 0.7rem;
    }

    .verified-badge {
        width: 14px;
        height: 14px;
        font-size: 8px;
        margin-left: 5px;
    }

    .error-message,
    .success-message {
        padding: 18px;
        border-radius: 15px;
        margin: 20px 0;
    }

    .empty-state {
        padding: 80px 25px;
    }

    .empty-state-icon {
        font-size: 5rem;
        margin-bottom: 25px;
    }

    .empty-state-text {
        font-size: 1.2rem;
    }
	
	.stat-number {
	font-size: 1.5rem;
}
}

/* Tablets and Large Phones (600px to 768px) */
@media (min-width: 600px) and (max-width: 768px) {
    .container_tiktok {
        max-width: 700px;
        padding: 25px;
    }

    .header {
        margin-bottom: 40px;
    }

    .logo {
        font-size: 3rem;
        gap: 12px;
        flex-direction: row; /* Ensure logo elements stay in a row */
    }

    .logo-icon {
        font-size: 4rem;
    }

    .subtitle {
        font-size: 1rem;
        max-width: 550px;
    }

    .search-section,
    .profile-section,
    .followers-section {
        padding: 30px;
        margin-bottom: 30px;
        border-radius: 20px;
    }

    .input-group {
        flex-direction: column; /* Stack input and button */
        gap: 15px;
        margin-bottom: 25px;
    }

    .input-field {
        padding: 16px 20px;
        border-radius: 12px;
        font-size: 0.95rem;
        min-width: unset; /* Remove min-width constraint */
        width: 100%; /* Full width */
    }

    .btn {
        padding: 16px 30px;
        border-radius: 12px;
        font-size: 0.95rem;
        min-width: unset; /* Remove min-width constraint */
        width: 100%; /* Full width */
    }

    .loading {
        padding: 25px;
    }

    .spinner {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .loading-text {
        font-size: 1rem;
    }

    .profile-header {
        flex-direction: column; /* Stack avatar and info */
        text-align: center;
        gap: 20px;
        margin-bottom: 25px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
        border-width: 4px;
    }

    .profile-info h2 {
        font-size: 2rem;
    }

    .profile-info p {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns */
        gap: 20px;
        margin-top: 25px;
    }

    .stat-card {
        padding: 25px;
        border-radius: 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 25px;
    }

    .followers-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* At least 200px wide, fill available space */
        gap: 15px;
        margin-top: 20px;
    }

    .follower-card {
        padding: 15px;
        border-radius: 12px;
    }

    .follower-header {
        gap: 10px;
        margin-bottom: 10px;
    }

    .follower-avatar {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }

    .follower-name {
        font-size: 0.9rem;
    }

    .follower-username {
        font-size: 0.8rem;
    }

    .follower-stats {
        grid-template-columns: repeat(2, 1fr); /* Ensure 2 columns for follower stats on smaller tablets */
        gap: 7px;
        padding-top: 10px;
    }

    .follower-stat {
        padding: 6px 3px;
        border-radius: 8px;
    }

    .follower-stat-number {
        font-size: 0.8rem;
    }

    .follower-stat-label {
        font-size: 0.65rem;
    }

    .verified-badge {
        width: 13px;
        height: 13px;
        font-size: 7px;
        margin-left: 4px;
    }

    .error-message,
    .success-message {
        padding: 16px;
        border-radius: 12px;
        margin: 18px 0;
    }

    .empty-state {
        padding: 60px 20px;
    }

    .empty-state-icon {
        font-size: 4rem;
        margin-bottom: 20px;
    }

    .empty-state-text {
        font-size: 1.1rem;
    }
}

/* Small Phones and Portrait Tablets (400px to 599px) */
@media (min-width: 400px) and (max-width: 599px) {
    .container_tiktok {
        max-width: 95vw;
        padding: 20px;
    }

    .header {
        margin-bottom: 35px;
    }

    .logo {
        font-size: 2.5rem;
        gap: 10px;
        flex-direction: column; /* Stack logo elements */
    }

    .logo-icon {
        font-size: 3.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
        max-width: 400px;
    }

    .search-section,
    .profile-section,
    .followers-section {
        padding: 25px;
        margin-bottom: 25px;
        border-radius: 18px;
    }

    .input-group {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }

    .input-field {
        padding: 14px 18px;
        border-radius: 10px;
        font-size: 0.9rem;
        width: 100%;
    }

    .btn {
        padding: 14px 25px;
        border-radius: 10px;
        font-size: 0.9rem;
        width: 100%;
        min-height: 48px; /* Ensure button has a consistent minimum height */
    }

    .loading {
        padding: 20px;
    }

    .spinner {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
    }

    .loading-text {
        font-size: 0.9rem;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-bottom: 20px;
    }

    .profile-avatar {
        width: 90px;
        height: 90px;
        border-width: 3px;
    }

    .profile-info h2 {
        font-size: 1.8rem;
    }

    .profile-info p {
        font-size: 0.95rem;
    }

    .stats-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 15px;
        margin-top: 20px;
    }

    .stat-card {
        padding: 20px;
        border-radius: 12px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

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

    .followers-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* 160px min, fill space */
        gap: 12px;
        margin-top: 18px;
    }

    .follower-card {
        padding: 12px;
        border-radius: 10px;
    }

    .follower-header {
        gap: 8px;
        margin-bottom: 8px;
    }

    .follower-avatar {
        width: 35px;
        height: 35px;
        border-width: 2px;
    }

    .follower-name {
        font-size: 0.85rem;
    }

    .follower-username {
        font-size: 0.75rem;
    }

    .follower-stats {
        grid-template-columns: 1fr; /* Single column for stats on very small screens */
        gap: 5px;
        padding-top: 8px;
    }

    .follower-stat {
        padding: 5px 2px;
        border-radius: 7px;
    }

    .follower-stat-number {
        font-size: 0.75rem;
    }

    .follower-stat-label {
        font-size: 0.6rem;
    }

    .verified-badge {
        width: 12px;
        height: 12px;
        font-size: 6px;
        margin-left: 3px;
    }

    .error-message,
    .success-message {
        padding: 14px;
        border-radius: 10px;
        margin: 15px 0;
    }

    .empty-state {
        padding: 50px 15px;
    }

    .empty-state-icon {
        font-size: 3.5rem;
        margin-bottom: 15px;
    }

    .empty-state-text {
        font-size: 1rem;
    }
	
	.profile-info h2 {
	font-size: 1.4rem;
}
}

/* Smallest Phones (375px and below) */
@media (max-width: 399px) {
    .tiktok_body {
        padding: 10px;
    }

    .container_tiktok {
        padding: 15px;
    }

    .header {
        margin-bottom: 30px;
    }

    .logo {
        font-size: 2.2rem;
        gap: 8px;
        flex-direction: column;
    }

    .logo-icon {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 0.85rem;
        max-width: 300px;
    }

    .search-section,
    .profile-section,
    .followers-section {
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 15px;
    }

    .input-group {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }

    .input-field {
        padding: 12px 15px;
        border-radius: 8px;
        font-size: 0.85rem;
        width: 100%;
    }

    .btn {
        padding: 12px 20px;
        border-radius: 8px;
        font-size: 0.85rem;
        width: 100%;
        min-height: 45px;
    }

    .loading {
        padding: 15px;
    }

    .spinner {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }

    .loading-text {
        font-size: 0.85rem;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        margin-bottom: 15px;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }

    .profile-info h2 {
        font-size: 1.6rem;
    }

    .profile-info p {
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 15px;
    }

    .stat-card {
        padding: 18px;
        border-radius: 10px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }

    .followers-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 10px;
        margin-top: 15px;
    }

    .follower-card {
        padding: 10px;
        border-radius: 8px;
    }

    .follower-header {
        gap: 6px;
        margin-bottom: 6px;
    }

    .follower-avatar {
        width: 30px;
        height: 30px;
        border-width: 1.5px;
    }

    .follower-name {
        font-size: 0.8rem;
    }

    .follower-username {
        font-size: 0.7rem;
    }

    .follower-stats {
        grid-template-columns: 1fr;
        gap: 4px;
        padding-top: 6px;
    }

    .follower-stat {
        padding: 4px 2px;
        border-radius: 6px;
    }

    .follower-stat-number {
        font-size: 0.7rem;
    }

    .follower-stat-label {
        font-size: 0.55rem;
    }

    .verified-badge {
        width: 10px;
        height: 10px;
        font-size: 5px;
        margin-left: 2px;
    }

    .error-message,
    .success-message {
        padding: 12px;
        border-radius: 8px;
        margin: 12px 0;
    }

    .empty-state {
        padding: 40px 10px;
    }

    .empty-state-icon {
        font-size: 3rem;
        margin-bottom: 12px;
    }

    .empty-state-text {
        font-size: 0.9rem;
    }
}

/* --- Codex CSS updates --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff0050;
    --primary-light: #ff3b78;
    --secondary-color: #00f2ea;
    --tertiary-color: #22d3ee;
    --quaternary-color: #7c3aed;
    --accent-color: #ff0050;
    --text-dark: #101827;
    --text-light: #526173;
    --white: #ffffff;
    --white-transparent: rgba(255, 255, 255, 0.86);
    --shadow-light: rgba(15, 23, 42, 0.08);
    --shadow-medium: rgba(15, 23, 42, 0.14);
    --shadow-heavy: rgba(15, 23, 42, 0.24);
    --border-light: #dbe3ee;
    --border-hover: rgba(255, 0, 80, 0.28);
    --success-bg: #dcfce7;
    --success-color: #166534;
    --error-bg: #fee2e2;
    --error-color: #b91c1c;
    --card-bg: rgba(255, 255, 255, 0.92);
}

.tiktok_body {
    width: 100%;
    min-height: 60vh;
    position: relative;
    overflow-x: hidden;
    padding: clamp(18px, 4vw, 42px);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background:
        radial-gradient(circle at 12% 8%, rgba(0, 242, 234, 0.22), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(255, 0, 80, 0.2), transparent 30%),
        linear-gradient(135deg, #080a12 0%, #111827 48%, #182233 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container_tiktok {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(16px, 3vw, 30px);
    position: relative;
    z-index: 1;
}

.floating-hearts {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.header {
    text-align: center;
    margin-bottom: clamp(28px, 5vw, 48px);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2vw, 15px);
    flex-wrap: wrap;
    color: var(--white);
}

.logo h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2vw, 15px);
    flex-wrap: wrap;
    margin-bottom: clamp(10px, 2vw, 15px);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 0;
    background: linear-gradient(90deg, var(--secondary-color), var(--white), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.28);
}

.logo-icon {
    flex-shrink: 0;
    font-size: clamp(2.5rem, 7vw, 4rem);
    color: var(--accent-color);
    animation: followerBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 24px rgba(255, 0, 80, 0.24));
}

.subtitle {
    max-width: 680px;
    margin: 0 auto;
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    color: var(--white-transparent);
    font-weight: 500;
    letter-spacing: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
}

.search-section,
.profile-section,
.followers-section {
    background: var(--card-bg);
    border-radius: clamp(14px, 3vw, 22px);
    padding: clamp(22px, 5vw, 42px) !important;
    margin-bottom: clamp(24px, 4vw, 38px) !important;
    box-shadow: 0 24px 70px var(--shadow-heavy), 0 0 0 1px rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.profile-section,
.followers-section {
    display: none;
}

.input-group {
    display: flex;
    gap: clamp(10px, 2vw, 18px);
    margin-bottom: clamp(20px, 3vw, 30px);
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-field {
    flex: 1 1 320px !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: clamp(13px, 2.5vw, 18px) clamp(16px, 3vw, 26px) !important;
    border: 2px solid var(--border-light) !important;
    border-radius: clamp(10px, 2vw, 14px) !important;
    font-size: clamp(14px, 2.5vw, 16px) !important;
    outline: none !important;
    background: var(--white) !important;
    color: var(--text-dark) !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 15px var(--shadow-light) !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.input-field::placeholder {
    color: #8391a5;
}

.input-field:focus {
    border-color: var(--primary-light) !important;
    background: var(--white) !important;
    box-shadow: 0 0 0 4px rgba(255, 0, 80, 0.14), 0 8px 22px var(--shadow-light) !important;
    transform: translateY(-1px) !important;
    outline: none !important;
}

.btn {
    flex: 0 0 auto;
    min-width: min(210px, 100%);
    min-height: 52px;
    width: auto;
    padding: clamp(12px, 2.5vw, 18px) clamp(20px, 4vw, 34px);
    background: linear-gradient(135deg, var(--primary-color) 0%, #c9184a 100%);
    color: var(--white);
    border: none;
    border-radius: clamp(10px, 2vw, 14px);
    font-size: clamp(14px, 2.5vw, 16px);
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 26px rgba(255, 0, 80, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#searchAnotherBtn {
    display: none;
    gap: 8px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #101827 0%, #263449 100%);
}

#searchAnotherBtn span {
    font-size: 1.2em;
}

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

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(255, 0, 80, 0.36), 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.btn:active {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading {
    display: none;
    text-align: center;
    padding: clamp(20px, 4vw, 30px);
    color: var(--primary-color);
}

.spinner {
    width: clamp(40px, 8vw, 58px);
    height: clamp(40px, 8vw, 58px);
    border: 5px solid rgba(255, 0, 80, 0.12);
    border-top: 5px solid var(--primary-color);
    border-right-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto clamp(15px, 3vw, 20px);
    box-shadow: 0 0 20px rgba(255, 0, 80, 0.14);
}

.loading-text {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 700;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 30px);
    margin-bottom: clamp(20px, 4vw, 35px);
    flex-wrap: wrap;
}

.profile-avatar {
    width: clamp(82px, 15vw, 120px);
    height: clamp(82px, 15vw, 120px);
    border-radius: 50%;
    border: 5px solid var(--secondary-color);
    box-shadow: 0 0 30px rgba(0, 242, 234, 0.22), 0 10px 30px var(--shadow-medium);
    object-fit: cover;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    background: #eef2f7;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-info h2 {
    color: var(--text-dark);
    margin-bottom: clamp(5px, 1vw, 8px);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 900;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.profile-info p {
    color: var(--text-light);
    margin-bottom: clamp(5px, 1vw, 8px);
    font-weight: 500;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: clamp(15px, 3vw, 24px);
    margin-top: clamp(20px, 4vw, 35px);
}

.stat-card {
    background: linear-gradient(135deg, #111827 0%, #242f45 52%, var(--primary-color) 100%);
    color: var(--white);
    padding: clamp(20px, 4vw, 30px);
    border-radius: clamp(12px, 2.5vw, 18px);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 234, 0.16), transparent);
    transition: left 0.5s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(0, 242, 234, 0.18);
}

.stat-number {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    display: block;
    margin-bottom: clamp(5px, 1vw, 8px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
    overflow-wrap: anywhere;
}

.stat-label {
    font-size: clamp(0.78rem, 2vw, 1rem);
    opacity: 0.95;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    background: linear-gradient(90deg, var(--primary-color), #111827, var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: clamp(20px, 4vw, 35px);
    text-align: center;
    font-weight: 900;
    letter-spacing: 0;
}

.followers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: clamp(12px, 2vw, 18px);
    margin-top: clamp(15px, 3vw, 25px);
}

.follower-card {
    background: var(--white);
    border: 1px solid #eef2f7;
    border-radius: clamp(10px, 2vw, 15px);
    padding: clamp(12px, 2vw, 16px);
    box-shadow: 0 6px 16px var(--shadow-light), 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: tikTokSlideIn 0.6s ease-out;
}

.follower-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--quaternary-color));
}

.follower-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow-medium), 0 0 0 1px rgba(255, 0, 80, 0.1);
    border-color: var(--border-hover);
}

.follower-header {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 10px);
    margin-bottom: clamp(8px, 1.5vw, 12px);
}

.follower-avatar {
    width: clamp(34px, 6vw, 44px);
    height: clamp(34px, 6vw, 44px);
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    object-fit: cover;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 242, 234, 0.16);
    flex-shrink: 0;
    background: #eef2f7;
}

.follower-card:hover .follower-avatar {
    transform: scale(1.08);
    border-color: var(--primary-light);
    box-shadow: 0 5px 15px rgba(255, 0, 80, 0.2);
}

.follower-info {
    flex: 1;
    min-width: 0;
}

.follower-name {
    color: var(--text-dark);
    font-size: clamp(0.76rem, 2vw, 0.95rem);
    margin-bottom: 2px;
    font-weight: 800;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.follower-username {
    color: var(--text-light);
    font-size: clamp(0.66rem, 1.8vw, 0.78rem);
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.follower-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(6px, 1vw, 8px);
    padding-top: clamp(8px, 1.5vw, 10px);
    border-top: 1px solid #eef2f7;
}

.follower-stat {
    text-align: center;
    padding: clamp(5px, 1vw, 7px) clamp(3px, 0.8vw, 4px);
    background: #f8fafc;
    border-radius: clamp(6px, 1.5vw, 8px);
    transition: all 0.3s ease;
    min-width: 0;
}

.follower-stat:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, #111827 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 80, 0.16);
}

.follower-stat-number {
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    font-size: clamp(0.64rem, 1.8vw, 0.82rem);
    line-height: 1;
    margin-bottom: clamp(2px, 0.5vw, 3px);
    transition: color 0.3s ease;
    overflow-wrap: anywhere;
}

.follower-stat:hover .follower-stat-number {
    color: var(--white);
}

.follower-stat-label {
    font-size: clamp(0.5rem, 1.5vw, 0.62rem);
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.follower-stat:hover .follower-stat-label {
    color: rgba(255, 255, 255, 0.9);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(10px, 2.5vw, 14px);
    height: clamp(10px, 2.5vw, 14px);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--tertiary-color) 100%);
    border-radius: 50%;
    margin-left: clamp(3px, 1vw, 5px);
    color: var(--white);
    font-size: clamp(6px, 1.5vw, 8px);
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 242, 234, 0.3);
    flex-shrink: 0;
}

.error-message {
    background: linear-gradient(135deg, var(--error-bg) 0%, #fecaca 100%);
    color: var(--error-color);
    padding: clamp(12px, 2.5vw, 18px);
    border-radius: clamp(10px, 2vw, 15px);
    margin: clamp(15px, 3vw, 20px) 0;
    border-left: 5px solid #ef4444;
    display: none;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(185, 28, 28, 0.1);
}

.success-message {
    background: linear-gradient(135deg, var(--success-bg) 0%, #bbf7d0 100%);
    color: var(--success-color);
    padding: clamp(12px, 2.5vw, 18px);
    border-radius: clamp(10px, 2vw, 15px);
    margin: clamp(15px, 3vw, 20px) 0;
    border-left: 5px solid #22c55e;
    display: none;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(22, 101, 52, 0.1);
}

.empty-state {
    text-align: center;
    padding: clamp(50px, 10vw, 80px) clamp(15px, 3vw, 20px);
    color: var(--text-light);
}

.empty-state-icon {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: clamp(15px, 3vw, 25px);
    opacity: 0.7;
    animation: followerBounce 2s ease-in-out infinite;
}

.empty-state-text {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    font-weight: 700;
}

.heart {
    position: absolute;
    color: var(--accent-color);
    font-size: clamp(12px, 3vw, 20px);
    animation: floatHeart 4s ease-in-out infinite;
    opacity: 0;
    pointer-events: none;
}

.btn:focus,
.input-field:focus {
    outline: none;
}

.btn:focus-visible,
.input-field:focus-visible {
    outline: 3px solid rgba(0, 242, 234, 0.75);
    outline-offset: 3px;
}

@keyframes followerBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    40% {
        transform: translateY(-10px) rotate(-5deg);
    }
    60% {
        transform: translateY(-5px) rotate(5deg);
    }
}

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

@keyframes tikTokSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatHeart {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(10vh) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
}

@media (max-width: 320px) {
    .container,
    .container_tiktok {
        padding: 10px;
    }

    .logo {
        flex-direction: column;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .logo-icon {
        font-size: 2rem;
    }

    .input-group {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .input-field {
        width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
    }

    .btn {
        width: 100%;
        min-width: 100%;
        flex: none;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .followers-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .follower-stats {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 321px) and (max-width: 480px) {
    .search-section,
    .profile-section,
    .followers-section {
        padding: clamp(20px, 4vw, 30px) !important;
    }

    .input-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .input-field {
        width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
    }

    .btn {
        width: 100%;
        min-width: 100%;
        flex: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .followers-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .follower-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .container,
    .container_tiktok {
        padding: clamp(15px, 3vw, 25px);
    }

    .input-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .input-field {
        width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
    }

    .btn {
        width: 100%;
        min-width: 100%;
        flex: none;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .followers-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .input-group {
        flex-direction: row;
        gap: clamp(10px, 2vw, 20px);
    }

    .input-field {
        flex: 1 1 300px !important;
        min-width: min(300px, 100%) !important;
        width: auto !important;
    }

    .btn {
        min-width: min(200px, 100%);
        width: auto;
        flex-shrink: 0;
    }

    .followers-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (min-width: 1025px) {
    .input-group {
        flex-direction: row;
        gap: clamp(10px, 2vw, 20px);
    }

    .input-field {
        flex: 1 1 300px !important;
        min-width: min(300px, 100%) !important;
        width: auto !important;
    }

    .btn {
        min-width: min(200px, 100%);
        width: auto;
        flex-shrink: 0;
    }

    .followers-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .container_tiktok {
        max-width: 900px;
        padding: 30px;
    }

    .header {
        margin-bottom: 50px;
    }

    .logo {
        gap: 15px;
    }

    .logo h1 {
        font-size: 3.2rem;
    }

    .logo-icon {
        font-size: 4.2rem;
    }

    .subtitle {
        font-size: 1.1rem;
        max-width: 700px;
    }

    .search-section,
    .profile-section,
    .followers-section {
        padding: 40px !important;
        margin-bottom: 40px !important;
        border-radius: 22px;
    }

    .input-group {
        flex-direction: row;
        gap: 20px;
        margin-bottom: 30px;
    }

    .input-field {
        padding: 18px 25px !important;
        border-radius: 15px !important;
        font-size: 1rem !important;
        min-width: 300px !important;
    }

    .loading {
        padding: 30px;
    }

    .spinner {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .loading-text {
        font-size: 1.1rem;
    }

    .profile-header {
        gap: 30px;
        margin-bottom: 30px;
    }

    .profile-avatar {
        width: 110px;
        height: 110px;
        border-width: 5px;
    }

    .profile-info h2 {
        font-size: 2.3rem;
    }

    .profile-info p {
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        margin-top: 30px;
    }

    .stat-card {
        padding: 30px;
        border-radius: 18px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2.3rem;
        margin-bottom: 30px;
    }

    .followers-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 18px;
        margin-top: 25px;
    }

    .follower-card {
        padding: 18px;
        border-radius: 15px;
    }

    .follower-header {
        gap: 12px;
        margin-bottom: 12px;
    }

    .follower-avatar {
        width: 45px;
        height: 45px;
        border-width: 2.5px;
    }

    .follower-name {
        font-size: 1rem;
    }

    .follower-username {
        font-size: 0.85rem;
    }

    .follower-stats {
        gap: 8px;
        padding-top: 12px;
    }

    .follower-stat {
        padding: 7px 4px;
        border-radius: 9px;
    }

    .follower-stat-number {
        font-size: 0.85rem;
    }

    .follower-stat-label {
        font-size: 0.7rem;
    }

    .verified-badge {
        width: 14px;
        height: 14px;
        font-size: 8px;
        margin-left: 5px;
    }

    .error-message,
    .success-message {
        padding: 18px;
        border-radius: 15px;
        margin: 20px 0;
    }

    .empty-state {
        padding: 80px 25px;
    }

    .empty-state-icon {
        font-size: 5rem;
        margin-bottom: 25px;
    }

    .empty-state-text {
        font-size: 1.2rem;
    }
}

@media (min-width: 600px) and (max-width: 768px) {
    .container_tiktok {
        max-width: 700px;
        padding: 25px;
    }

    .header {
        margin-bottom: 40px;
    }

    .logo {
        gap: 12px;
        flex-direction: row;
    }

    .logo h1 {
        font-size: 3rem;
    }

    .logo-icon {
        font-size: 4rem;
    }

    .subtitle {
        font-size: 1rem;
        max-width: 550px;
    }

    .search-section,
    .profile-section,
    .followers-section {
        padding: 30px !important;
        margin-bottom: 30px !important;
        border-radius: 20px;
    }

    .input-group {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }

    .input-field {
        padding: 16px 20px !important;
        border-radius: 12px !important;
        font-size: 0.95rem !important;
        min-width: unset !important;
        width: 100% !important;
    }

    .btn {
        padding: 16px 30px;
        border-radius: 12px;
        font-size: 0.95rem;
        min-width: unset;
        width: 100%;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        margin-bottom: 25px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
        border-width: 4px;
    }

    .profile-info h2 {
        font-size: 2rem;
    }

    .profile-info p {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 25px;
    }

    .followers-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
        margin-top: 20px;
    }
}

@media (min-width: 400px) and (max-width: 599px) {
    .container_tiktok {
        max-width: 100%;
        padding: 20px;
    }

    .header {
        margin-bottom: 35px;
    }

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

    .logo h1 {
        font-size: 2.4rem;
    }

    .logo-icon {
        font-size: 3.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
        max-width: 400px;
    }

    .search-section,
    .profile-section,
    .followers-section {
        padding: 25px !important;
        margin-bottom: 25px !important;
        border-radius: 18px;
    }

    .input-group {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }

    .input-field {
        padding: 14px 18px !important;
        border-radius: 10px !important;
        font-size: 0.9rem !important;
        width: 100% !important;
    }

    .btn {
        padding: 14px 25px;
        border-radius: 10px;
        font-size: 0.9rem;
        width: 100%;
        min-height: 48px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-bottom: 20px;
    }

    .profile-info h2 {
        font-size: 1.4rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .followers-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .follower-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 399px) {
    .tiktok_body {
        padding: 10px;
    }

    .container_tiktok {
        padding: 15px;
    }

    .header {
        margin-bottom: 30px;
    }

    .logo {
        gap: 8px;
        flex-direction: column;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .logo-icon {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 0.85rem;
        max-width: 300px;
    }

    .search-section,
    .profile-section,
    .followers-section {
        padding: 20px !important;
        margin-bottom: 20px !important;
        border-radius: 15px;
    }

    .input-group {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }

    .input-field {
        padding: 12px 15px !important;
        border-radius: 8px !important;
        font-size: 0.85rem !important;
        width: 100% !important;
    }

    .btn {
        padding: 12px 20px;
        border-radius: 8px;
        font-size: 0.85rem;
        width: 100%;
        min-height: 45px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        margin-bottom: 15px;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }

    .profile-info h2 {
        font-size: 1.45rem;
    }

    .profile-info p {
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 15px;
    }

    .stat-card {
        padding: 18px;
        border-radius: 10px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.55rem;
        margin-bottom: 18px;
    }

    .followers-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 15px;
    }

    .follower-card {
        padding: 10px;
        border-radius: 8px;
    }

    .follower-header {
        gap: 6px;
        margin-bottom: 6px;
    }

    .follower-avatar {
        width: 30px;
        height: 30px;
        border-width: 1.5px;
    }

    .follower-name {
        font-size: 0.8rem;
    }

    .follower-username {
        font-size: 0.7rem;
    }

    .follower-stats {
        grid-template-columns: 1fr;
        gap: 4px;
        padding-top: 6px;
    }

    .follower-stat {
        padding: 4px 2px;
        border-radius: 6px;
    }

    .follower-stat-number {
        font-size: 0.7rem;
    }

    .follower-stat-label {
        font-size: 0.55rem;
    }

    .verified-badge {
        width: 10px;
        height: 10px;
        font-size: 5px;
        margin-left: 2px;
    }

    .error-message,
    .success-message {
        padding: 12px;
        border-radius: 8px;
        margin: 12px 0;
    }

    .empty-state {
        padding: 40px 10px;
    }

    .empty-state-icon {
        font-size: 3rem;
        margin-bottom: 12px;
    }

    .empty-state-text {
        font-size: 0.9rem;
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .header {
        margin-bottom: 20px;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .logo-icon {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .search-section,
    .profile-section,
    .followers-section {
        padding: 20px !important;
        margin-bottom: 20px !important;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-avatar,
    .follower-avatar {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-hearts {
        display: none;
    }
}

@media (prefers-color-scheme: dark) {
    .tiktok_body {
        background:
            radial-gradient(circle at 12% 8%, rgba(0, 242, 234, 0.22), transparent 28%),
            radial-gradient(circle at 88% 12%, rgba(255, 0, 80, 0.2), transparent 30%),
            linear-gradient(135deg, #080a12 0%, #111827 48%, #182233 100%);
        color: var(--text-dark);
    }

    .search-section,
    .profile-section,
    .followers-section {
        background: rgba(255, 255, 255, 0.92);
        color: var(--text-dark);
    }

    .follower-card {
        background: rgba(255, 255, 255, 0.96);
        color: var(--text-dark);
    }
}

@media print {
    .floating-hearts,
    .btn,
    .loading {
        display: none !important;
    }

    .tiktok_body {
        background: white !important;
        color: black !important;
    }

    .search-section,
    .profile-section,
    .followers-section {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .stat-card:hover,
    .follower-card:hover,
    .follower-stat:hover {
        transform: none;
    }

    .btn:active,
    .stat-card:active,
    .follower-card:active,
    .follower-stat:active {
        transform: scale(0.98);
    }
}