.suite-hub-btn {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1.5px solid #c9a84c;
    border-radius: 8px;
    color: #c9a84c;
    font-family: 'Cinzel', 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 2px 12px rgba(201, 168, 76, 0.15);
    transition: all 0.25s ease;
}
.suite-hub-btn:hover {
    background: linear-gradient(135deg, #c9a84c, #e8d48b);
    color: #0a0a1a;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
    transform: translateY(-1px);
}
body { padding-top: 0; }

:root {
    --bg-dark: #0a0a0c;
    --card-bg: rgba(20, 20, 24, 0.7);
    --accent-gold: #c9a55c;
    --accent-purple: #8e44ad;
    --text-main: #e0e0e6;
    --text-muted: #a0a0b0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --gold-glow: 0 0 15px rgba(201, 165, 92, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(142, 68, 173, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(201, 165, 92, 0.05) 0%, transparent 40%);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, .logo {
    font-family: 'Crimson Pro', serif;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header & Logo */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.logo h1 {
    font-size: 2.5rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.logo h1 span {
    color: var(--accent-gold);
    text-shadow: var(--gold-glow);
}

.logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.api-settings {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.engine-toggle select, .tier-toggle select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}

.input-with-help {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.api-settings input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    width: 250px;
    transition: all 0.3s ease;
}

.help-link {
    font-size: 0.75rem;
    color: var(--accent-gold);
    text-decoration: none;
    margin-top: 5px;
    opacity: 0.8;
}

.help-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.api-settings input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.08);
}

/* Cards & Layout */
main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.glass {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-header h2 {
    color: var(--accent-gold);
}

.word-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

textarea {
    width: 100%;
    height: 400px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    resize: none;
    padding: 0.5rem;
    line-height: 1.8;
}

textarea:focus {
    outline: none;
}

/* Controls */
.controls {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.options select {
    background: #1a1a1e;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-left: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), #b8860b);
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(201, 165, 92, 0.4);
}

.export-controls {
    margin-top: 1.5rem;
    text-align: right;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(201, 165, 92, 0.1);
    box-shadow: var(--gold-glow);
}

/* Results Area */
.results-area {
    min-height: 550px;
}

.empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
}

.result-card {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
    border-left: 4px solid var(--accent-gold);
    animation: fadeInSlide 0.5s ease forwards;
    opacity: 0;
}

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

.result-card:nth-child(1) { animation-delay: 0.1s; }
.result-card:nth-child(2) { animation-delay: 0.2s; }
.result-card:nth-child(3) { animation-delay: 0.3s; }
.result-card:nth-child(4) { animation-delay: 0.4s; }
.result-card:nth-child(5) { animation-delay: 0.5s; }
.result-card:nth-child(6) { animation-delay: 0.6s; }

.result-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    float: right;
}

.copy-btn:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.6;
}

.reset-link {
    background: transparent;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 0.75rem;
    text-decoration: underline;
    margin-top: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.reset-link:hover {
    color: #ff4757;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: #1a1a1e;
    margin: 10% auto;
    padding: 2.5rem;
    border: 1px solid var(--glass-border);
    width: 50%;
    max-width: 500px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,1);
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal h2 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.modal-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-body li {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.modal-body a {
    color: var(--accent-gold);
}

.note {
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}
