:root {
    --tk-premium-gold: #ffcb05;
    --tk-premium-gold-dark: #cca300;
    --tk-bg-dark: #08080a;
    --tk-surface-dark: #111114;
    --tk-border: rgba(255,255,255,0.08);
    --tk-text-muted: rgba(255,255,255,0.6);
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

.tk-hero {
    padding: 140px 0 60px;
    text-align: center;
}

.tk-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.tk-hero p {
    font-size: 1.25rem;
    color: var(--tk-text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.tk-category-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--tk-border);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tk-category-title i {
    color: var(--tk-premium-gold);
}

/* Tool Selection Grid */
.tk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tk-tool-card {
    background: var(--tk-surface-dark);
    border: 1px solid var(--tk-border);
    border-radius: 20px;
    padding: 2.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
    display: block;
    text-decoration: none;
    color: inherit;
}

.tk-tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 203, 5, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.tk-tool-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 203, 5, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.tk-tool-card:hover::before {
    opacity: 1;
}

.tk-tool-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--tk-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--tk-premium-gold);
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.tk-tool-card:hover .tk-tool-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--tk-premium-gold);
    color: #000;
}

.tk-tool-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tk-tool-card p {
    color: var(--tk-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Workspace Area */
.tk-workspace {
    background: var(--tk-surface-dark);
    border: 1px solid var(--tk-border);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 6rem;
    min-height: 400px;
    position: relative;
}

.tk-tool-header {
    margin-bottom: 3rem;
}

.tk-tool-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.tk-tool-header p {
    color: var(--tk-text-muted);
    font-size: 1.1rem;
}

/* Form Styling */
.tk-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .tk-form { grid-template-columns: 1fr; }
}

.tk-field {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tk-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tk-text-muted);
}

.tk-input, .tk-textarea {
    background: #050507;
    border: 1px solid var(--tk-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.tk-input:focus, .tk-textarea:focus {
    outline: none;
    border-color: var(--tk-premium-gold);
    box-shadow: 0 0 15px rgba(255, 203, 5, 0.1);
}

.tk-textarea {
    resize: vertical;
    min-height: 120px;
}

.tk-submit-btn {
    background: var(--tk-premium-gold);
    color: #000;
    font-weight: 800;
    font-family: var(--font-display);
    padding: 1.25rem 2.5rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 2rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
}

.tk-submit-btn:hover {
    background: #fff;
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 203, 5, 0.2);
}

.tk-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Output Area */
.tk-output-container {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--tk-border);
    display: none;
}

.tk-output-container.active {
    display: block;
}

.tk-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tk-output-box {
    background: #050507;
    border: 1px solid var(--tk-border);
    border-radius: 20px;
    padding: 2.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    position: relative;
    white-space: pre-wrap;
}

.tk-copy-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--tk-border);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--tk-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.tk-loading-dots::after {
    content: '...';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}
