/* ============================================
   ThinkLab — Branding & Base Styles
   Navy #1a2b4a, Orange #f5a623
   ============================================ */

:root {
    --tl-navy: #1a2b4a;
    --tl-navy-light: #243656;
    --tl-navy-dark: #111d33;
    --tl-orange: #f5a623;
    --tl-orange-hover: #e6951a;
    --tl-orange-light: #ffd080;
    --tl-white: #ffffff;
    --tl-gray-100: #f8f9fa;
    --tl-gray-200: #e9ecef;
    --tl-transition: 0.3s ease;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--tl-navy);
    color: var(--tl-white);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   STATION PAGE — Tablet Input UI
   ============================================ */

.tl-station {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--tl-navy-dark) 0%, var(--tl-navy) 50%, var(--tl-navy-light) 100%);
}

.tl-header {
    text-align: center;
    padding: 2rem 1rem 1rem;
}

.tl-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}

.tl-header h1 span {
    color: var(--tl-orange);
}

.tl-header p {
    font-size: 1.1rem;
    opacity: 0.7;
    margin: 0.5rem 0 0;
}

.tl-steps {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* ============================================
   BREADCRUMB (Auswahluebersicht)
   ============================================ */

.tl-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 0 auto 1rem;
    max-width: 1100px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(245, 166, 35, 0.15);
    border-radius: 50px;
    backdrop-filter: blur(6px);
}

.tl-bc-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--tl-transition);
    white-space: nowrap;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tl-bc-item.filled {
    background: rgba(245, 166, 35, 0.2);
    color: var(--tl-orange);
    border: 1px solid rgba(245, 166, 35, 0.35);
}

.tl-bc-icon {
    font-size: 1.1rem;
}

.tl-bc-arrow {
    color: rgba(255, 255, 255, 0.25);
    font-size: 1.3rem;
    font-weight: 700;
}

@media (max-width: 640px) {
    .tl-breadcrumb {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    .tl-bc-item {
        padding: 0.3rem 0.7rem;
        font-size: 0.85rem;
        max-width: 140px;
    }
}

/* ============================================
   RESULT SCREEN (Station)
   ============================================ */

.tl-result-panel {
    text-align: center;
}

.tl-result-breadcrumb {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--tl-orange);
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    word-break: break-word;
}

.tl-result-image-wrap {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(245, 166, 35, 0.25);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(245, 166, 35, 0.15);
}

.tl-result-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
}

.tl-result-prompt {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    padding: 0.9rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    text-align: left;
    font-size: 0.9rem;
}

.tl-result-prompt summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--tl-orange);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
}

.tl-result-prompt summary::-webkit-details-marker { display: none; }

.tl-result-prompt[open] summary {
    margin-bottom: 0.75rem;
}

.tl-result-prompt-group {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.tl-result-prompt-group:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.tl-result-prompt-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tl-orange);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tl-result-prompt-text {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    white-space: pre-wrap;
}

/* Textarea variant */
.tl-keyword-textarea {
    min-height: 120px;
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: left;
    resize: vertical;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.tl-char-counter {
    text-align: right;
    font-size: 0.85rem;
    opacity: 0.5;
    margin-top: 0.5rem;
}

/* Step indicator */
.tl-step-indicator {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tl-step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: var(--tl-transition);
}

.tl-step-dot.active {
    background: var(--tl-orange);
    box-shadow: 0 0 12px rgba(245, 166, 35, 0.5);
}

.tl-step-dot.done {
    background: var(--tl-orange-light);
}

/* Step panels */
.tl-step-panel {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.tl-step-panel.active {
    display: block;
}

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

.tl-step-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Selection cards */
.tl-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.tl-card {
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--tl-transition);
    user-select: none;
    -webkit-user-select: none;
}

.tl-card:hover,
.tl-card:active {
    border-color: var(--tl-orange);
    background: rgba(245, 166, 35, 0.1);
    transform: translateY(-2px);
}

.tl-card.selected {
    border-color: var(--tl-orange);
    background: rgba(245, 166, 35, 0.15);
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.2);
}

/* Auto-advance pulse */
.tl-card.pulse {
    animation: cardPulse 0.8s ease-out;
    pointer-events: none;
}

@keyframes cardPulse {
    0%   { transform: scale(1); box-shadow: 0 0 20px rgba(245, 166, 35, 0.2); }
    40%  { transform: scale(1.06); box-shadow: 0 0 40px rgba(245, 166, 35, 0.6); }
    100% { transform: scale(1); box-shadow: 0 0 20px rgba(245, 166, 35, 0.2); }
}

.tl-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.tl-card-label {
    font-size: 1.1rem;
    font-weight: 600;
}

.tl-card-desc {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 0.25rem;
}

/* Keyword input */
.tl-keyword-input {
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    font-size: 1.2rem;
    color: var(--tl-white);
    width: 100%;
    text-align: center;
    transition: var(--tl-transition);
}

.tl-keyword-input::placeholder {
    color: rgba(255,255,255,0.35);
}

.tl-keyword-input:focus {
    outline: none;
    border-color: var(--tl-orange);
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.15);
}

/* Buttons */
.tl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--tl-transition);
    text-decoration: none;
}

.tl-btn-primary {
    background: var(--tl-orange);
    color: var(--tl-navy-dark);
}

.tl-btn-primary:hover {
    background: var(--tl-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(245, 166, 35, 0.3);
}

.tl-btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tl-btn-secondary {
    background: transparent;
    color: var(--tl-white);
    border: 2px solid rgba(255,255,255,0.2);
}

.tl-btn-secondary:hover {
    border-color: rgba(255,255,255,0.4);
}

.tl-step-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Loading overlay */
.tl-loading {
    position: fixed;
    inset: 0;
    background: rgba(17, 29, 51, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.tl-loading.active {
    display: flex;
}

.tl-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: var(--tl-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.tl-loading-text {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    opacity: 0.8;
}

.tl-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tl-success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tl-success-emoji {
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    animation: bounceEmoji 0.8s ease-in-out;
}

.tl-success-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--tl-orange);
    margin-bottom: 0.5rem;
}

.tl-success-sub {
    font-size: 1.2rem;
    opacity: 0.75;
}

@keyframes successPop {
    0%   { opacity: 0; transform: scale(0.7); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes bounceEmoji {
    0%, 100% { transform: translateY(0); }
    30%      { transform: translateY(-20px) rotate(-10deg); }
    60%      { transform: translateY(-10px) rotate(10deg); }
}

/* ============================================
   DISPLAY PAGE — Fullscreen Output
   ============================================ */

.tl-display {
    min-height: 100vh;
    background: linear-gradient(180deg, #000 0%, var(--tl-navy-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tl-display-waiting {
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

.tl-display-waiting i {
    font-size: 4rem;
    color: var(--tl-orange);
    display: block;
    margin-bottom: 1rem;
}

.tl-display-waiting p {
    font-size: 1.5rem;
    opacity: 0.5;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50%      { opacity: 1; }
}

.tl-display-generating {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10;
    backdrop-filter: blur(4px);
}

.tl-display-generating.active {
    display: flex;
}

.tl-display-generating .tl-spinner {
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
}

.tl-display-generating p {
    font-size: 1.8rem;
    color: var(--tl-orange);
    font-weight: 700;
}

/* === Result: image + info layout === */

.tl-display-result {
    display: none;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    width: 100%;
    height: 100vh;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.tl-display-result.active {
    display: flex;
    opacity: 1;
}

.tl-display-image {
    flex: 1 1 60%;
    max-width: 65vw;
    max-height: calc(100vh - 4rem);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(245, 166, 35, 0.15);
}

/* === Info box === */

.tl-info-box {
    flex: 1 1 35%;
    max-width: 35vw;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(26, 43, 74, 0.85);
    border: 1px solid rgba(245, 166, 35, 0.25);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    overflow-y: auto;
}

.tl-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.tl-info-item {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--tl-orange);
    border-radius: 8px;
}

.tl-info-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tl-orange);
    margin-bottom: 0.35rem;
}

.tl-info-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tl-white);
    word-break: break-word;
    line-height: 1.3;
}

.tl-info-prompt {
    padding: 1.25rem 1.5rem;
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.3);
    border-radius: 12px;
}

.tl-info-prompt + .tl-info-prompt-optimized {
    margin-top: 0.75rem;
}

.tl-info-prompt .tl-info-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.tl-info-prompt-text {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
    font-family: 'Segoe UI', system-ui, sans-serif;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ============================================
   FRIENDLY ERROR TOAST (Station)
   ============================================ */

.tl-toast {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translate(-50%, -150%);
    z-index: 3000;
    max-width: 500px;
    width: calc(100% - 2rem);
    padding: 1.1rem 2.5rem 1.1rem 1.25rem;
    border-radius: 14px;
    background: var(--tl-navy);
    border: 1px solid rgba(245, 166, 35, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--tl-white);
}

.tl-toast.open {
    transform: translate(-50%, 0);
}

.tl-toast.kind-warning {
    border-color: rgba(245, 166, 35, 0.6);
    background: linear-gradient(135deg, var(--tl-navy) 0%, rgba(122, 82, 17, 0.4) 100%);
}
.tl-toast.kind-info {
    border-color: rgba(95, 165, 245, 0.6);
    background: linear-gradient(135deg, var(--tl-navy) 0%, rgba(17, 65, 122, 0.4) 100%);
}
.tl-toast.kind-error {
    border-color: rgba(220, 53, 69, 0.6);
    background: linear-gradient(135deg, var(--tl-navy) 0%, rgba(122, 17, 27, 0.4) 100%);
}

.tl-toast-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--tl-orange);
}

.tl-toast-body {
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 0.9;
}

.tl-toast-close {
    position: absolute;
    top: 0.4rem;
    right: 0.6rem;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--tl-white);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
}

.tl-toast-close:hover { opacity: 1; }

/* Slideshow badge */
.tl-slideshow-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(245, 166, 35, 0.15);
    border: 1px solid rgba(245, 166, 35, 0.4);
    border-radius: 50px;
    color: var(--tl-orange);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 20;
    pointer-events: none;
}

.tl-slideshow-badge.visible {
    opacity: 1;
}

/* ============================================
   AUTH (Login)
   ============================================ */

.tl-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--tl-navy-dark) 0%, var(--tl-navy) 100%);
}

.tl-auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.tl-auth-logo {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.tl-auth-logo span {
    color: var(--tl-orange);
}

.tl-auth-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.7;
    margin-bottom: 2rem;
}

.tl-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tl-auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tl-auth-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tl-orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tl-auth-field input {
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--tl-white);
    font-size: 1rem;
    transition: var(--tl-transition);
}

.tl-auth-field input:focus {
    outline: none;
    border-color: var(--tl-orange);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

.tl-auth-submit {
    margin-top: 0.5rem;
    width: 100%;
}

.tl-auth-error {
    padding: 0.75rem 1rem;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.4);
    border-radius: 8px;
    color: #ff8a95;
    font-size: 0.9rem;
}

/* ============================================
   ADMIN
   ============================================ */

.tl-admin {
    min-height: 100vh;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--tl-navy-dark);
}

.tl-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tl-admin-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

.tl-admin-header h1 span {
    color: var(--tl-orange);
}

.tl-admin-sub {
    opacity: 0.6;
    margin: 0.25rem 0 0;
}

.tl-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.tl-stat-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--tl-orange);
    border-radius: 12px;
}

.tl-stat-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tl-orange);
    margin-bottom: 0.5rem;
}

.tl-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.tl-stat-value-sm {
    font-size: 1.3rem;
    font-weight: 700;
}

.tl-stat-count {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.15rem 0.6rem;
    background: rgba(245, 166, 35, 0.25);
    color: var(--tl-orange);
    border-radius: 50px;
    font-size: 0.85rem;
}

/* Table */
.tl-table-wrap {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: auto;
    max-height: 70vh;
}

.tl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.tl-table thead th {
    position: sticky;
    top: 0;
    background: var(--tl-navy);
    padding: 0.9rem 1rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tl-orange);
    border-bottom: 2px solid rgba(245, 166, 35, 0.3);
    z-index: 2;
}

.tl-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
}

.tl-table tbody tr:hover {
    background: rgba(245, 166, 35, 0.05);
}

.tl-col-time {
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Consolas', 'Menlo', monospace;
    font-size: 0.85rem;
}

.tl-col-keyword,
.tl-col-prompt {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.7);
}

.tl-col-actions {
    text-align: center;
    width: 60px;
}

.tl-tag {
    display: inline-block;
    padding: 0.15rem 0.65rem;
    background: rgba(245, 166, 35, 0.15);
    color: var(--tl-orange);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tl-btn-icon {
    padding: 0.4rem 0.6rem;
    background: transparent;
    border: 1px solid rgba(245, 166, 35, 0.3);
    color: var(--tl-orange);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--tl-transition);
}

.tl-btn-icon:hover {
    background: rgba(245, 166, 35, 0.15);
    border-color: var(--tl-orange);
}

.tl-empty {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   SHOWROOM
   ============================================ */

.tl-showroom {
    min-height: 100vh;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--tl-navy-dark);
}

.tl-showroom-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tl-showroom-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
}

.tl-showroom-header h1 span {
    color: var(--tl-orange);
}

.tl-showroom-header p {
    opacity: 0.6;
    margin: 0.5rem 0 0;
}

.tl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.tl-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 180px;
}

.tl-filter-group label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tl-orange);
}

.tl-filter-group select {
    padding: 0.6rem 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--tl-white);
    font-size: 0.95rem;
}

.tl-showroom-meta {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 1rem;
}

.tl-showroom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.tl-showroom-card {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--tl-transition);
}

.tl-showroom-card:hover {
    transform: translateY(-3px);
    border-color: var(--tl-orange);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.tl-showroom-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.tl-showroom-card-meta {
    padding: 0.75rem 1rem;
}

.tl-showroom-topic {
    font-weight: 700;
    color: var(--tl-orange);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.tl-showroom-idea {
    font-size: 0.85rem;
    opacity: 0.75;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tl-showroom-empty {
    text-align: center;
    padding: 4rem;
    opacity: 0.5;
}

.tl-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.tl-pagination-info {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ============================================
   MODAL
   ============================================ */

.tl-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.tl-modal.open {
    display: flex;
}

.tl-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
}

.tl-modal-content {
    position: relative;
    z-index: 1;
    background: var(--tl-navy);
    border: 1px solid rgba(245, 166, 35, 0.3);
    border-radius: 16px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tl-modal-content-lg {
    width: 900px;
}

.tl-modal-content img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 8px;
    align-self: center;
}

.tl-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--tl-white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--tl-transition);
}

.tl-modal-close:hover {
    opacity: 1;
    color: var(--tl-orange);
}

.tl-modal-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

.tl-modal-info strong {
    color: var(--tl-orange);
    font-weight: 700;
    margin-right: 0.5rem;
}

.tl-modal-prompt {
    grid-column: 1 / -1;
    padding: 1rem;
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.25);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.tl-modal-prompt-raw {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.tl-modal-prompt-raw strong {
    color: rgba(255, 255, 255, 0.75);
}

/* Responsive: stack vertically on portrait or narrow screens */
@media (max-aspect-ratio: 1/1), (max-width: 900px) {
    .tl-display-result {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        height: auto;
        min-height: 100vh;
    }

    .tl-display-image {
        max-width: 100%;
        max-height: 55vh;
        flex: 0 0 auto;
    }

    .tl-info-box {
        max-width: 100%;
        min-width: 0;
        flex: 0 0 auto;
        padding: 1.25rem;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (min-width: 768px) {
    .tl-header h1 {
        font-size: 3.5rem;
    }

    .tl-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .tl-header h1 {
        font-size: 2rem;
    }

    .tl-card {
        padding: 1rem;
    }

    .tl-card-icon {
        font-size: 2rem;
    }
}

/* ============================================
   LANDING PAGE
   ============================================ */

.tl-landing {
    background: var(--tl-navy-dark);
    color: var(--tl-white);
    min-height: 100vh;
}

/* Hero */
.tl-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.tl-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--tl-navy-dark);
    transform: scale(1.05);
}

.tl-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(17, 29, 51, 0.55) 0%,
        rgba(26, 43, 74, 0.80) 60%,
        rgba(17, 29, 51, 0.95) 100%
    );
}

.tl-hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 2rem;
    max-width: 900px;
}

.tl-hero-logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.tl-hero-logo span {
    color: var(--tl-orange);
}

.tl-hero-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.tl-hero-subline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    opacity: 0.85;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.tl-hero-cta {
    font-size: 1.2rem;
    padding: 1.1rem 2.8rem;
    box-shadow: 0 10px 40px rgba(245, 166, 35, 0.35);
}

.tl-hero-event {
    margin-top: 3rem;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.6;
}

/* Sections */
.tl-section {
    padding: 5rem 2rem;
}

.tl-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.tl-section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
}

/* How it works */
.tl-how {
    background: var(--tl-navy);
}

.tl-how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.tl-how-step {
    position: relative;
    padding: 2.5rem 2rem 2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid var(--tl-orange);
    border-radius: 16px;
    text-align: center;
    transition: var(--tl-transition);
}

.tl-how-step:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.tl-how-step-num {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--tl-orange);
    color: var(--tl-navy-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
}

.tl-how-step-icon {
    font-size: 2.5rem;
    color: var(--tl-orange);
    margin-bottom: 1rem;
}

.tl-how-step h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tl-how-step p {
    opacity: 0.75;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Links section */
.tl-links {
    background: var(--tl-navy-dark);
}

.tl-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.tl-link-card {
    display: block;
    padding: 2.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    color: var(--tl-white);
    transition: var(--tl-transition);
}

.tl-link-card:hover {
    border-color: var(--tl-orange);
    background: rgba(245, 166, 35, 0.08);
    transform: translateY(-3px);
    color: var(--tl-white);
}

.tl-link-card i {
    font-size: 3rem;
    color: var(--tl-orange);
    display: block;
    margin-bottom: 1rem;
}

.tl-link-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.tl-link-card p {
    font-size: 0.9rem;
    opacity: 0.65;
    margin: 0;
}

/* Footer */
.tl-footer {
    background: #0a1020;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tl-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    opacity: 0.65;
}

.tl-footer-brand {
    font-weight: 700;
    color: var(--tl-orange);
    letter-spacing: 0.05em;
}

.tl-footer-partners {
    display: flex;
    gap: 0.75rem;
}

.tl-footer-sep {
    opacity: 0.4;
}

@media (max-width: 640px) {
    .tl-section { padding: 3rem 1rem; }
    .tl-section-title { font-size: 1.8rem; margin-bottom: 2rem; }
    .tl-hero-content { padding: 3rem 1.25rem; }
    .tl-footer-inner { justify-content: center; text-align: center; }
}
