@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap");

@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

:root {
    --primary: #2af0ea;
    --primary-glow: rgba(42, 240, 234, 0.34);
    --accent: #ff4fa3;
    --accent-purple: #ff7a59;
    --success: #10B981;
    --error: #EF4444;
    --white: #fff7fb;
    --gray-100: #fdf2ff;
    --gray-300: #d9c7ef;
    --gray-500: #9f8dbd;
    --gray-800: #2e2142;
    --gray-900: #120917;
    --glass-bg: rgba(22, 12, 32, 0.78);
    --glass-border: rgba(122, 243, 238, 0.22);
    --shadow-lg: 0 24px 56px rgba(8, 4, 18, 0.56);
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 17px;
    --transition: all 0.3s cubic-bezier(.23, 1.02, .67, 1.01);
    --text-primary: #ffffff;
    --text-secondary: #d9c7ef;
    --text-muted: #9f8dbd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    position: relative;
    z-index: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 12%, rgba(42, 240, 234, 0.3), transparent 34%),
        radial-gradient(circle at 88% 14%, rgba(255, 79, 163, 0.34), transparent 38%),
        radial-gradient(circle at 80% 82%, rgba(255, 122, 89, 0.2), transparent 42%),
        radial-gradient(circle at 18% 84%, rgba(143, 92, 255, 0.22), transparent 44%),
        radial-gradient(circle at 52% 52%, rgba(255, 255, 255, 0.05), transparent 52%),
        linear-gradient(136deg, #09040d 0%, #150819 20%, #2a1033 42%, #3b0f2f 60%, #4a1638 78%, #120918 100%);
    background-size: 190% 190%, 180% 180%, 220% 220%, 210% 210%, 230% 230%, 240% 240%;

    color: var(--gray-100);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        linear-gradient(160deg, rgba(4, 2, 10, 0.46), rgba(16, 8, 22, 0.22)),
        radial-gradient(circle at 18% 18%, rgba(42, 240, 234, 0.08), transparent 52%),
        radial-gradient(circle at 82% 76%, rgba(255, 79, 163, 0.08), transparent 48%),
        radial-gradient(circle at 55% 56%, rgba(255, 122, 89, 0.06), transparent 54%);
    opacity: 1;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-direction: column;
}

.logo-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    box-shadow: 0 25px 50px rgba(8, 4, 18, 0.3), 0 0 20px rgba(42, 240, 234, 0.3);
}

.logo-text {
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    font-weight: 900;
    background: linear-gradient(135deg, #00f2ea 0%, #25f4ee 25%, #ff0050 75%, #ff4fa3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    font-family: 'Sora', sans-serif;
}

.subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-size: 15px;
    color: var(--text-secondary);
}

.search-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(145%) contrast(1.05);
    -webkit-backdrop-filter: blur(20px) saturate(145%) contrast(1.05);
    border: 2px solid var(--glass-border);
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 28px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 220px;
    padding: 16px 20px;
    border: 2px solid rgba(122, 243, 238, 0.18);
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 500;
    background: #000 !important;
    color: var(--white);
    transition: var(--transition);
    outline: none;
}

.search-input:focus {
    color: #000 !important;
    border-color: rgba(110, 238, 232, 0.78);
    background: rgba(22, 12, 32, 0.78);
    box-shadow: 0 0 0 4px rgba(42, 240, 234, 0.14), 0 10px 24px rgba(18, 8, 28, 0.28);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #00f2ea67 0%, #25f4ed52 25%, #ff0050 75%, #ff4fa3 100%);
    color: white;
    border: 1px solid rgba(122, 243, 238, 0.32);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(42, 240, 234, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.search-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #00f2ea67 0%, #25f4ed52 25%, #ff4fa3 75%, #ff0050 100%);
    box-shadow: 0 12px 28px rgba(255, 79, 163, 0.35), 0 0 20px rgba(42, 240, 234, 0.25);
    border-color: rgba(122, 243, 238, 0.4);
}

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

.paste-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.paste-icon {
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.paste-icon:hover {
    background: rgba(42, 240, 234, 0.1);
    color: var(--primary);
    transform: scale(1.1);
}

.profile-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(145%) contrast(1.05);
    -webkit-backdrop-filter: blur(20px) saturate(145%) contrast(1.05);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 28px;
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease-out;
    box-shadow: var(--shadow-lg);
}

.profile-row {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 2px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(8, 4, 18, 0.3), 0 0 20px rgba(42, 240, 234, 0.3);
}

.profile-details {
    flex: 1;
    min-width: 200px;
}

.nickname {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #00f2ea 0%, #25f4ee 25%, #ff0050 75%, #ff4fa3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Sora', sans-serif;
}

.username {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.bio {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    word-break: break-word;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.stat-box {
    text-align: center;
    padding: 20px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    background: var(--glass-bg);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(42, 240, 234, 0.2);
}

.stat-box:nth-child(1) {
    background: linear-gradient(135deg, rgba(42, 240, 234, 0.15) 0%, rgba(42, 240, 234, 0.05) 100%);
    border-color: rgba(42, 240, 234, 0.3);
}

.stat-box:nth-child(2) {
    background: linear-gradient(135deg, rgba(255, 79, 163, 0.15) 0%, rgba(255, 79, 163, 0.05) 100%);
    border-color: rgba(255, 79, 163, 0.3);
}

.stat-box:nth-child(3) {
    background: linear-gradient(135deg, rgba(255, 122, 89, 0.15) 0%, rgba(255, 122, 89, 0.05) 100%);
    border-color: rgba(255, 122, 89, 0.3);
}

.stat-box:nth-child(4) {
    background: linear-gradient(135deg, rgba(143, 92, 255, 0.15) 0%, rgba(143, 92, 255, 0.05) 100%);
    border-color: rgba(143, 92, 255, 0.3);
}

.stat-num {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.error-box {
    background: rgba(254, 44, 85, 0.1);
    border: 1px solid rgba(254, 44, 85, 0.2);
    color: #fe2c55;
    padding: 14px 20px;
    border-radius: 12px;
    margin-top: 16px;
    display: none;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 14px;
}

.loading {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 48px 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border-radius: var(--radius-xl);
    margin-top: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.loading-inner {
    text-align: center;
}

.spinner-ring {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.spinner-ring div {
    position: absolute;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.spinner-ring div:nth-child(1) {
    width: 100px;
    height: 100px;
    border-top-color: var(--primary);
    animation-duration: 2s;
}

.spinner-ring div:nth-child(2) {
    width: 76px;
    height: 76px;
    top: 12px;
    left: 12px;
    border-right-color: var(--accent);
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.spinner-ring div:nth-child(3) {
    width: 52px;
    height: 52px;
    top: 24px;
    left: 24px;
    border-bottom-color: var(--accent-purple);
    animation-duration: 1s;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.dots span {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.dots span:nth-child(1) { animation-delay: -0.32s; }
.dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.loading-text {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.loading-sub {
    font-size: 13px;
    color: var(--text-muted);
}

.new-search-btn {
    display: none;
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(46, 33, 66, 0.9) 0%, rgba(62, 47, 79, 0.9) 100%);
    color: white;
    border: 1px solid rgba(122, 243, 238, 0.22);
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.new-search-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(62, 47, 79, 0.95) 0%, rgba(86, 55, 80, 0.95) 100%);
    border-color: rgba(115, 242, 237, 0.32);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 4, 13, 0.95);
    backdrop-filter: blur(25px);
    z-index: 1000;
    display: none;
    animation: fadeIn 0.3s ease-out;
    padding: 20px;
}

.modal-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(254, 44, 85, 0.2);
    border: 2px solid rgba(254, 44, 85, 0.5);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(254, 44, 85, 0.3);
}

.modal-close:hover {
    background: rgba(254, 44, 85, 0.4);
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(254, 44, 85, 0.8);
}

.modal-img {
    max-width: 85%;
    max-height: 85%;
    border-radius: 16px;
    box-shadow: 0 24px 56px rgba(8, 4, 18, 0.6);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
    }
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    .profile-row {
        flex-direction: column;
        text-align: center;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .wrapper {
        padding: 20px 10px;
    }
    .logo-icon {
        width: 56px;
        height: 56px;
        font-size: 26px;
    }
}

/* --- Codex CSS updates --- */
:root {
    --primary: #25f4ee;
    --primary-glow: rgba(37, 244, 238, 0.34);
    --accent: #fe2c55;
    --accent-purple: #8b5cf6;
    --success: #10B981;
    --error: #EF4444;
    --white: #ffffff;
    --gray-100: #f8fbff;
    --gray-300: #d7dee9;
    --gray-500: #9ba8b8;
    --gray-800: #18202c;
    --gray-900: #06080d;
    --glass-bg: rgba(10, 14, 22, 0.82);
    --glass-border: rgba(37, 244, 238, 0.22);
    --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.42);
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 17px;
    --transition: all 0.3s cubic-bezier(.23, 1.02, .67, 1.01);
    --text-primary: #ffffff;
    --text-secondary: #d7dee9;
    --text-muted: #9ba8b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    position: relative;
    z-index: 0;
    min-height: 100vh;
    color: var(--gray-100);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 1;
    pointer-events: none;
}

.tc-wp-tool-root {
    position: relative;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 10%, rgba(37, 244, 238, 0.24), transparent 32%),
        radial-gradient(circle at 88% 16%, rgba(254, 44, 85, 0.26), transparent 34%),
        radial-gradient(circle at 76% 86%, rgba(139, 92, 246, 0.18), transparent 38%),
        linear-gradient(135deg, #05070c 0%, #0b1019 38%, #111827 62%, #090b11 100%);
    color: var(--gray-100);
}

.tc-wp-tool-root::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(160deg, rgba(0, 0, 0, 0.34), rgba(10, 14, 22, 0.08)),
        radial-gradient(circle at 52% 46%, rgba(255, 255, 255, 0.06), transparent 48%);
}

.wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 44px) 16px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-direction: column;
}

.logo-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    color: #05070c;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34), 0 0 26px rgba(37, 244, 238, 0.34);
}

.logo-text {
    font-size: clamp(1.6rem, 4vw, 2.65rem);
    font-weight: 900;
    background: linear-gradient(135deg, #25f4ee 0%, #ffffff 38%, #fe2c55 78%, #ff5f7c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0;
    font-family: 'Sora', sans-serif;
    line-height: 1.16;
}

.subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-size: 15px;
    color: var(--text-secondary);
}

.search-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(145%) contrast(1.05);
    -webkit-backdrop-filter: blur(20px) saturate(145%) contrast(1.05);
    border: 2px solid var(--glass-border);
    padding: clamp(22px, 4vw, 40px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 28px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: stretch;
}

.search-input {
    flex: 1;
    min-width: 220px;
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(215, 222, 233, 0.16);
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 500;
    background: rgba(3, 7, 13, 0.88) !important;
    color: var(--white);
    transition: var(--transition);
    outline: none;
}

.search-input:focus {
    color: var(--white) !important;
    border-color: rgba(37, 244, 238, 0.78);
    background: rgba(8, 13, 21, 0.96) !important;
    box-shadow: 0 0 0 4px rgba(37, 244, 238, 0.14), 0 10px 24px rgba(0, 0, 0, 0.28);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.54);
}

.search-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #25f4ee 0%, #14c9d8 36%, #fe2c55 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 16px 34px rgba(254, 44, 85, 0.24), 0 0 22px rgba(37, 244, 238, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.search-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2ffcf6 0%, #25f4ee 28%, #ff4268 100%);
    box-shadow: 0 18px 34px rgba(254, 44, 85, 0.34), 0 0 24px rgba(37, 244, 238, 0.28);
    border-color: rgba(255, 255, 255, 0.28);
}

.search-btn:focus-visible,
.new-search-btn:focus-visible,
.modal-close:focus-visible,
.paste-icon:focus-visible {
    outline: 3px solid rgba(37, 244, 238, 0.38);
    outline-offset: 3px;
}

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

.paste-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.paste-icon {
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.paste-icon:hover {
    background: rgba(37, 244, 238, 0.12);
    color: var(--primary);
    transform: scale(1.1);
}

.profile-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(145%) contrast(1.05);
    -webkit-backdrop-filter: blur(20px) saturate(145%) contrast(1.05);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 28px;
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease-out;
    box-shadow: var(--shadow-lg);
}

.profile-row {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 2px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34), 0 0 22px rgba(37, 244, 238, 0.3);
}

.profile-details {
    flex: 1;
    min-width: 200px;
}

.nickname {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #25f4ee 0%, #ffffff 35%, #fe2c55 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Sora', sans-serif;
    line-height: 1.2;
    word-break: break-word;
}

.username {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 4px;
    word-break: break-word;
}

.bio {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    word-break: break-word;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.stat-box {
    text-align: center;
    padding: 20px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    background: var(--glass-bg);
    transition: var(--transition);
    min-width: 0;
}

.stat-box:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(37, 244, 238, 0.18);
}

.stat-box:nth-child(1) {
    background: linear-gradient(135deg, rgba(37, 244, 238, 0.16) 0%, rgba(37, 244, 238, 0.05) 100%);
    border-color: rgba(37, 244, 238, 0.34);
}

.stat-box:nth-child(2) {
    background: linear-gradient(135deg, rgba(254, 44, 85, 0.16) 0%, rgba(254, 44, 85, 0.05) 100%);
    border-color: rgba(254, 44, 85, 0.34);
}

.stat-box:nth-child(3) {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-color: rgba(139, 92, 246, 0.34);
}

.stat-box:nth-child(4) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-num {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    overflow-wrap: anywhere;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.error-box {
    background: rgba(254, 44, 85, 0.12);
    border: 1px solid rgba(254, 44, 85, 0.35);
    color: #ff8fa5;
    padding: 14px 20px;
    border-radius: 12px;
    margin-top: 16px;
    display: none;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
}

.loading {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 48px 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border-radius: var(--radius-xl);
    margin-top: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.loading-inner {
    text-align: center;
}

.spinner-ring {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.spinner-ring div {
    position: absolute;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.spinner-ring div:nth-child(1) {
    width: 100px;
    height: 100px;
    border-top-color: var(--primary);
    animation-duration: 2s;
}

.spinner-ring div:nth-child(2) {
    width: 76px;
    height: 76px;
    top: 12px;
    left: 12px;
    border-right-color: var(--accent);
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.spinner-ring div:nth-child(3) {
    width: 52px;
    height: 52px;
    top: 24px;
    left: 24px;
    border-bottom-color: var(--accent-purple);
    animation-duration: 1s;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.dots span {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.dots span:nth-child(1) { animation-delay: -0.32s; }
.dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.loading-text {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.loading-sub {
    font-size: 13px;
    color: var(--text-muted);
}

.new-search-btn {
    display: none;
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(24, 32, 44, 0.96) 0%, rgba(14, 20, 31, 0.96) 100%);
    color: white;
    border: 1px solid rgba(37, 244, 238, 0.24);
    border-radius: var(--radius-md);
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.new-search-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(28, 39, 54, 0.98) 0%, rgba(18, 26, 39, 0.98) 100%);
    border-color: rgba(37, 244, 238, 0.4);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 12, 0.94);
    backdrop-filter: blur(25px);
    z-index: 1000;
    display: none;
    animation: fadeIn 0.3s ease-out;
    padding: 20px;
}

.modal-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(254, 44, 85, 0.2);
    border: 2px solid rgba(254, 44, 85, 0.5);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(254, 44, 85, 0.3);
}

.modal-close:hover {
    background: rgba(254, 44, 85, 0.4);
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(254, 44, 85, 0.8);
}

.modal-img {
    max-width: 85%;
    max-height: 85%;
    border-radius: 16px;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.6);
}

#resultArea {
    display: none;
}

.fab {
    line-height: 1;
}

.fas {
    line-height: 1;
}

.fa-tiktok {
    display: inline-block;
}

.fa-search {
    display: inline-block;
}

.fa-paste {
    display: inline-block;
}

.fa-exclamation-circle {
    display: inline-block;
}

.fa-times {
    display: inline-block;
}

.fa-comment {
    display: inline-block;
}

.fa-heart {
    display: inline-block;
}

.fa-share {
    display: inline-block;
}

.fa-video {
    display: inline-block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@media (max-width: 700px) {
    .wrapper {
        padding: 24px 12px;
    }

    .header {
        margin-bottom: 28px;
    }

    .search-card,
    .profile-card {
        padding: 22px 16px;
    }

    .input-group {
        flex-direction: column;
    }

    .search-input {
        min-width: 0;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
        white-space: normal;
    }

    .paste-row {
        justify-content: center;
    }

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

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

    .stat-box {
        padding: 16px 10px;
    }

    .stat-num {
        font-size: 22px;
    }

    .logo-icon {
        width: 56px;
        height: 56px;
        font-size: 26px;
    }

    .modal-overlay {
        padding: 14px;
    }

    .modal-close {
        top: 14px;
        right: 14px;
    }

    .modal-img {
        max-width: 94%;
        max-height: 82%;
    }
}

@media (max-width: 380px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .logo-text {
        font-size: 1.45rem;
    }

    .search-input,
    .search-btn {
        font-size: 14px;
        padding: 14px 16px;
    }
}