@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: #1a365d;
        --primary-light: #2c5282;
        --secondary-color: #2b6cb0;
        --tertiary-color: #3182ce;
        --quaternary-color: #4299e1;
        --accent-color: #63b3ed;
        --text-dark: #1a202c;
        --text-light: #4a5568;
        --white: #ffffff;
        --white-transparent: rgba(255, 255, 255, 0.92);
        --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(26, 54, 93, 0.25);
        --success-bg: #c6f6d5;
        --success-color: #2f855a;
        --error-bg: #fed7d7;
        --error-color: #c53030;
        --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, #1a365d 0%, #2c5282 20%, #2b6cb0 40%, #3182ce 70%, #4299e1 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;
    }

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

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

    .logo h1{
        font-size: clamp(2rem, 6vw, 3.5rem);
        font-weight: 800;
        color: var(--white);
        margin-bottom: clamp(10px, 2vw, 15px);
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        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;
    }

    @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: rgba(255, 255, 255, 0.95);
        font-weight: 400;
        letter-spacing: 0.5px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        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-color) !important;
        background: var(--white) !important;
        box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.15) !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(26, 54, 93, 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(26, 54, 93, 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-color);
    }

    .spinner {
        width: clamp(40px, 8vw, 60px);
        height: clamp(40px, 8vw, 60px);
        border: 5px solid rgba(26, 54, 93, 0.1);
        border-top: 5px solid var(--primary-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto clamp(15px, 3vw, 20px);
        box-shadow: 0 0 20px rgba(26, 54, 93, 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-color);
        box-shadow: 0 0 30px rgba(26, 54, 93, 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(26, 54, 93, 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(26, 54, 93, 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);
        color: var(--text-dark);
        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(26, 54, 93, 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-color);
        object-fit: cover;
        transition: all 0.3s ease;
        box-shadow: 0 3px 10px rgba(26, 54, 93, 0.15);
        flex-shrink: 0;
    }

    .follower-card:hover .follower-avatar {
        transform: scale(1.1);
        border-color: var(--accent-color);
        box-shadow: 0 5px 15px rgba(26, 54, 93, 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(26, 54, 93, 0.15);
    }

    .follower-stat-number {
        font-weight: 700;
        color: var(--primary-color);
        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(--primary-color) 0%, var(--secondary-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(26, 54, 93, 0.3);
        flex-shrink: 0;
    }

    .error-message {
        background: linear-gradient(135deg, var(--error-bg) 0%, #feb2b2 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 #e53e3e;
        display: none;
        font-weight: 600;
        box-shadow: 0 8px 25px rgba(197, 48, 48, 0.1);
    }

    .success-message {
        background: linear-gradient(135deg, var(--success-bg) 0%, #9ae6b4 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 #38a169;
        display: none;
        font-weight: 600;
        box-shadow: 0 8px 25px rgba(47, 133, 90, 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(--primary-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 !important;
            gap: 8px;
        }
        .follower-stats {
            grid-template-columns: 1fr;
        }
			.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)) !important;
	gap: clamp(15px, 3vw, 25px) !important;
	margin-top: clamp(20px, 4vw, 35px);
}
    }

    /* 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(1, 1fr) !important;
            gap: 10px;
        }
        .follower-stats {
            grid-template-columns: repeat(2, 1fr);
        }
        .profile-header {
            flex-direction: column;
            text-align: center;
        }
			.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)) !important;
	gap: clamp(15px, 3vw, 25px) !important;
	margin-top: clamp(20px, 4vw, 35px);
}
    }

    /* 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(1, 1fr) !important;
            gap: 10px;
        }
			.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)) !important;
	gap: clamp(15px, 3vw, 25px) !important;
	margin-top: clamp(20px, 4vw, 35px);
}
    }

    /* 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(1, 1fr) !important;
            gap: 10px;
        }
    }

    /* 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;
        }
        .followers-grid {
            grid-template-columns: repeat(1, 1fr) !important;
            gap: 10px;
        }
    }

    /* 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 (keeping light theme consistent) */
    @media (prefers-color-scheme: dark) {
        body {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 25%, var(--secondary-color) 50%, var(--tertiary-color) 75%, var(--quaternary-color) 100%);
            color: var(--text-dark);
        }
        .search-section,
        .profile-section,
        .followers-section {
            background: var(--card-bg);
            color: var(--text-dark);
        }
        .follower-card {
            background: var(--white);
            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-color);
        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);
        }
    }

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

:root {
    --primary-color: #00f2ea;
    --primary-light: #18d8d2;
    --secondary-color: #ff0050;
    --tertiary-color: #8b5cf6;
    --quaternary-color: #111827;
    --accent-color: #ff4d7d;
    --text-dark: #101828;
    --text-light: #667085;
    --white: #ffffff;
    --white-transparent: rgba(255, 255, 255, 0.94);
    --shadow-light: rgba(16, 24, 40, 0.08);
    --shadow-medium: rgba(16, 24, 40, 0.14);
    --shadow-heavy: rgba(16, 24, 40, 0.22);
    --border-light: #e5e7eb;
    --border-hover: rgba(0, 242, 234, 0.45);
    --success-bg: #dcfce7;
    --success-color: #166534;
    --error-bg: #ffe4ec;
    --error-color: #be123c;
    --card-bg: rgba(255, 255, 255, 0.92);
}

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

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

.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;
    width: 100%;
}

.logo h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: clamp(10px, 2vw, 15px);
    text-shadow: 0 5px 22px rgba(0, 242, 234, 0.18), 0 2px 16px rgba(255, 0, 80, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2vw, 15px);
    flex-wrap: wrap;
    line-height: 1.12;
    letter-spacing: 0;
}

.logo-icon {
    font-size: clamp(2.5rem, 7vw, 4rem);
    animation: followerBounce 2s ease-in-out infinite;
    flex-shrink: 0;
    filter: drop-shadow(0 8px 18px rgba(0, 242, 234, 0.28));
}

@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.95rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    max-width: 680px;
    margin: 0 auto;
}

.search-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.16);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 242, 234, 0.18);
}

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

.input-field {
    flex: 1 !important;
    min-width: min(320px, 100%) !important;
    padding: clamp(12px, 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 16px var(--shadow-light) !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
}

.input-field::placeholder {
    color: #98a2b3;
}

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

.btn {
    padding: clamp(12px, 2.5vw, 18px) clamp(20px, 4vw, 34px);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #061018;
    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;
    min-width: min(200px, 100%);
    width: 100%;
    box-shadow: 0 10px 28px rgba(255, 0, 80, 0.22), 0 8px 24px rgba(0, 242, 234, 0.16);
    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.36), transparent);
    transition: left 0.5s;
}

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 42px rgba(255, 0, 80, 0.28), 0 12px 32px rgba(0, 242, 234, 0.22);
}

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

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

#searchAnotherBtn {
    display: none;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

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

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

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

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

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

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

.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-color);
    box-shadow: 0 0 30px rgba(0, 242, 234, 0.24), 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.45rem, 4vw, 2.2rem);
    font-weight: 800;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.18;
}

.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, #111827 0%, #1f2937 50%, #0f766e 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(17, 24, 39, 0.22), 0 0 0 1px rgba(0, 242, 234, 0.12);
    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.18), 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(17, 24, 39, 0.3), 0 0 0 1px rgba(255, 0, 80, 0.22);
}

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

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

.followers-section {
    display: none;
    background: var(--card-bg);
    border-radius: clamp(14px, 3vw, 22px);
    padding: clamp(22px, 5vw, 42px);
    box-shadow: 0 24px 70px var(--shadow-heavy), 0 0 0 1px rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 242, 234, 0.18);
}

.section-title {
    font-size: clamp(1.45rem, 4vw, 2.2rem);
    color: var(--text-dark);
    margin-bottom: clamp(20px, 4vw, 35px);
    text-align: center;
    font-weight: 800;
    line-height: 1.2;
}

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

.follower-card {
    background: var(--white);
    border: 1px solid #eef2f7;
    border-radius: clamp(10px, 2vw, 14px);
    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(--secondary-color), var(--tertiary-color));
}

.follower-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow-medium), 0 0 0 1px rgba(0, 242, 234, 0.18);
    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, 42px);
    height: clamp(34px, 6vw, 42px);
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 242, 234, 0.16);
    flex-shrink: 0;
}

.follower-card:hover .follower-avatar {
    transform: scale(1.1);
    border-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(255, 0, 80, 0.18);
}

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

.follower-name {
    color: var(--text-dark);
    font-size: clamp(0.78rem, 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.68rem, 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(5px, 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(5px, 1.5vw, 8px);
    transition: all 0.3s ease;
}

.follower-stat:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #07111a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 234, 0.18);
}

.follower-stat-number {
    font-weight: 800;
    color: #0f766e;
    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;
}

.follower-stat:hover .follower-stat-number {
    color: #061018;
}

.follower-stat-label {
    font-size: clamp(0.52rem, 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(6, 16, 24, 0.86);
}

.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(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    margin-left: clamp(3px, 1vw, 5px);
    color: #061018;
    font-size: clamp(6px, 1.5vw, 8px);
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 242, 234, 0.26);
    flex-shrink: 0;
}

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

.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, 14px);
    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.12);
}

.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.65;
    animation: followerBounce 2s ease-in-out infinite;
}

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

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

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

@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);
    }
}

@media (max-width: 320px) {
    .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;
        white-space: normal;
    }
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    .stats-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-top: clamp(20px, 4vw, 35px);
    }
    .followers-grid {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }
    .follower-stats {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 321px) and (max-width: 480px) {
    .tiktok_body {
        padding: 14px;
    }
    .search-section,
    .profile-section,
    .followers-section {
        padding: clamp(20px, 4vw, 30px);
    }
    .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;
        white-space: normal;
    }
    .stats-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-top: clamp(20px, 4vw, 35px);
    }
    .followers-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    .follower-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .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 {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)) !important;
        gap: clamp(15px, 3vw, 25px) !important;
        margin-top: clamp(20px, 4vw, 35px);
    }
    .followers-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .input-group {
        flex-direction: row;
        gap: clamp(10px, 2vw, 20px);
    }
    .input-field {
        flex: 1 !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(2, 1fr) !important;
        gap: 12px;
    }
}

@media (min-width: 1025px) {
    .input-group {
        flex-direction: row;
        gap: clamp(10px, 2vw, 20px);
    }
    .input-field {
        flex: 1 !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 (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;
        margin-bottom: 20px;
    }
    .followers-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
}

@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 10% 10%, rgba(0, 242, 234, 0.18), transparent 30%),
            radial-gradient(circle at 90% 15%, rgba(255, 0, 80, 0.18), transparent 28%),
            linear-gradient(135deg, #07090f 0%, #111827 42%, #172033 100%);
        color: var(--text-dark);
    }
    .search-section,
    .profile-section,
    .followers-section {
        background: var(--card-bg);
        color: var(--text-dark);
    }
    .follower-card {
        background: var(--white);
        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;
    }
}

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

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

@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);
    }
}