:root {
    --bg-color: #0f111a;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary: #8b5cf6;
    --secondary: #ec4899;
    --tab-inactive: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Animated Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--secondary);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: #3b82f6;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.2); }
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
}

header {
    text-align: center;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease-out;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    margin-bottom: 1rem;
}

.status-badge.loading {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
    border-color: rgba(234, 179, 8, 0.3);
}

.status-badge.success {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.4) transparent;
    flex-shrink: 0;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

/* Tab Panel Visibility */
.tab-content {
    display: none !important;
}

.tab-content.active {
    display: grid !important;
}

/* Placeholder tabs override - display as flex column */
.tab-content.placeholder-tab.active {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

/* Placeholder tab styles */
.placeholder-hero {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

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

.placeholder-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.placeholder-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 520px;
    background: var(--card-bg);
    border: 1px dashed var(--card-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
}

/* Section-level extra overrides removed — use .publishers-grid */
.publishers-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

/* Flag filter bar */
.flag-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0 0 0.6rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid var(--card-border);
    grid-column: 1 / -1; /* Ensure spans full width in grid */
}

.flag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.flag-pill:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: #fff;
}

.flag-pill.active {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.7);
    color: #fff;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.flag-pill-img {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.flag-pill-count {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.8;
}

/* Grids */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); /* Compact for Games */
    gap: 0.5rem;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); /* Further reduced for compactness */
    gap: 0.35rem; /* Even tighter spacing */
}

/* Tab 4: make theme art read slightly larger without distorting aspect ratio */
#themes .game-image {
    width: 110%;
    height: auto;
    max-width: none;
    max-height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#publishers {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.game-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    animation: fadeInUp 0.2s ease-out backwards;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.publisher-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    min-height: 180px;
}

.game-image-container {
    width: 100%;
    /* Aspect Ratio: Height +10%, Width -10% => ~1.22 ratio */
    padding-top: 122%; 
    height: 0;
    overflow: hidden;
    position: relative;
    background: rgba(0,0,0,0.3);
}

#games .game-image-container {
    padding-top: 147.62%;
}

#themes .game-image-container {
    padding-top: 100%;
}

.game-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show full image without cropping */
    transition: transform 0.5s ease;
}

.game-card:hover .game-image {
    transform: scale(1.05);
}

#games .game-image.is-ultratall {
    width: auto;
    height: 110%;
    max-width: none;
    max-height: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#games .game-card:hover .game-image.is-ultratall {
    transform: translate(-50%, -50%) scale(1.05);
}

#themes .game-card:hover .game-image {
    transform: translate(-50%, -50%) scale(1.05);
}

.game-content {
    padding: 1rem;
    width: 100%;
}

.publisher-content {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
}

.publisher-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.5rem;
}

.rank-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-color);
}

.flag-container {
    width: 32px;
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.publisher-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-title {
    font-size: 0.85rem; /* Compact */
    font-weight: 600;
    margin-bottom: 0.1rem;
    color: #fff;
    line-height: 1.2;
    /* Default: show full name in Themes, can be overridden if needed */
    white-space: normal; 
    word-break: break-word;
}

/* Specific truncation for Games if it gets too long, but Themes show all */
#games .game-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-title-cn {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.1;
    white-space: normal;
    word-break: break-word;
}

#games .game-title-cn {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.publisher-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    color: #fff;
}

.publisher-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.publisher-title a:hover {
    color: var(--primary);
}

.publisher-stats {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.4rem 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.recent-apps {
    display: flex;
    gap: 4px;
    margin-top: 0.6rem;
    justify-content: center;
    width: 100%;
    height: 32px;
}

.recent-app-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: transform 0.2s;
}

.recent-app-icon:hover {
    transform: scale(1.15) translateY(-2px);
    z-index: 10;
    border-color: var(--primary);
}

.recent-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scraper-loading {
    font-size: 0.65rem;
    color: #eab308;
    margin-top: 5px;
    font-style: italic;
}

.game-description {
    display: none;
}

.hidden {
    display: none !important;
}

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--card-bg);
    border: 1px dashed var(--card-border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease;
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-muted);
    line-height: 1.6;
}

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

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

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

/* ─── Top Apps Grid ─── */
.topapps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.65rem;
}

.app-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
    animation: fadeInUp 0.2s ease-out backwards;
    overflow: hidden;
}

.app-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.18);
}

.app-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 36px;
    flex-shrink: 0;
}

.app-rank-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.rank-change {
    font-size: 0.65rem;
    font-weight: 700;
    margin-top: 2px;
    border-radius: 4px;
    padding: 1px 4px;
    line-height: 1.4;
}

.rank-change.up {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
}

.rank-change.down {
    color: #f87171;
    background: rgba(248, 113, 113, 0.15);
}

.rank-change.new {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.15);
}

.rank-change.stable {
    color: var(--text-muted);
}

.app-icon-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.app-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.app-title-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 2px;
}

.app-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.store-icons {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.store-icon {
    width: 12px;
    height: 12px;
    fill: var(--text-muted);
}

.app-publisher {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

/* ─── TrustMRR Tab ─── */
#stripe-mrr.active {
    display: block !important;
}

#mrr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.65rem;
}

.mrr-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.2s ease-out backwards;
    transition: all 0.2s;
}

.mrr-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateX(4px);
}

.mrr-rank-badge {
    min-width: 40px;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.mrr-logo-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mrr-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mrr-logo-placeholder {
    font-size: 1.2rem;
    font-weight: 800;
    color: rgba(255,255,255,0.5);
}

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

.mrr-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.3;
}

.mrr-product-link {
    color: #fff;
    text-decoration: none;
}

.mrr-product-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.mrr-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mrr-founder {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.mrr-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.15);
}

.mrr-founder-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.mrr-founder-link:hover {
    color: #a78bfa;
    text-decoration: underline;
}

.mrr-money {
    text-align: right;
    flex-shrink: 0;
}

.mrr-amount {
    font-weight: 800;
    font-size: 1rem;
    color: #4ade80;
}

.mrr-growth {
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 2px;
}

/* Tab 13: Claw Agents Styles */
#claw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    padding: 1rem 0;
}

.claw-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.4s ease-out both;
}

.claw-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.2);
}

.claw-header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.claw-logo-wrap {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.claw-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.claw-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    line-height: 1.2;
    min-width: 0;
}

.claw-name-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.claw-name-link:hover {
    color: #a78bfa;
}

.claw-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.claw-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.claw-tag {
    font-size: 0.65rem;
    background: rgba(139, 92, 246, 0.15);
    color: #c084fc;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.claw-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 0.5rem;
}

.claw-socials {
    display: flex;
    gap: 0.75rem;
}

.claw-social-link {
    color: var(--text-muted);
    transition: color 0.2s;
}

.claw-social-link:hover {
    color: #fff;
}

.claw-visit-btn {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s;
}

.claw-visit-btn:hover {
    transform: scale(1.05);
}

/* Optimized Compact Claw Grid */
#claw-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.claw-card {
    padding: 1rem;
    gap: 0.75rem;
}

.claw-desc-container {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.claw-inline-socials {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.claw-inline-socials .claw-social-link {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.claw-inline-socials .claw-social-link:hover {
    opacity: 1;
}

/* Hide original footer elements */
.claw-footer, .claw-visit-btn {
    display: none !important;
}

.claw-logo-wrap {
    width: 40px;
    height: 40px;
}

.claw-name {
    font-size: 1.05rem;
}

/* Optimized Compact MRR Grid */
#mrr-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.mrr-card {
    padding: 1rem;
    gap: 1rem;
    align-items: flex-start;
}

/* Hide original rank badge */
.mrr-rank-badge {
    display: none !important;
}

.mrr-name {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.mrr-desc {
    -webkit-line-clamp: 3; /* Show more lines now that width is increased */
    margin-bottom: 0.5rem;
}

.mrr-compact-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.mrr-amount-label {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
}

.mrr-growth-label {
    font-size: 0.8rem;
    background: rgba(255,255,255,0.05);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.mrr-founder {
    margin-top: 0.25rem;
}

/* Hide original money column */
.mrr-money {
    display: none !important;
}

/* Tab 13: Claw Add Form Styles */
.claw-form-container {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
}

.claw-form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.claw-form-header h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.claw-form-header p {
    color: var(--text-muted);
}

.claw-form {
    display: flex;
    gap: 1rem;
    width: 100%;
}

#claw-url-input {
    flex: 1;
    min-width: 0;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#claw-url-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

#claw-submit-btn {
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

#claw-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

#claw-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.claw-status-hint {
    margin-top: 1rem;
    text-align: center;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.claw-status-hint.info { color: #60a5fa; background: rgba(96, 165, 250, 0.1); }
.claw-status-hint.success { color: #4ade80; background: rgba(74, 222, 128, 0.1); }
.claw-status-hint.error { color: #f87171; background: rgba(248, 113, 113, 0.1); }

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

@media (max-width: 768px) {
    #claw-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .claw-card {
        min-width: 0;
    }

    .claw-form-container {
        width: 100%;
        padding: 1.25rem;
    }

    .claw-form {
        flex-direction: column;
        gap: 0.75rem;
    }

    #claw-submit-btn {
        width: 100%;
        min-width: 0;
        padding: 0.9rem 1.25rem;
    }
}
