/* ==========================================================================
   PAGE: THIẾT KẾ WEB - DARK GLASSMORPHISM
   Premium dynamic styles with amber gold accents (#C87941)
   ========================================================================== */

/* Variables */
:root {
    --tkw-bg-deep: #1a0e05;
    --tkw-bg-espresso: #2b1607;
    --tkw-primary: #C87941;
    --tkw-primary-glow: rgba(200, 121, 65, 0.4);
    --tkw-accent: #E8A060;
    --tkw-glass-bg: rgba(255, 255, 255, 0.04);
    --tkw-glass-border: rgba(255, 255, 255, 0.08);
    --tkw-text-main: #ffffff;
    --tkw-text-muted: #ebdcd0; /* Highly contrasting warm ivory cream */
    --tkw-success: #4CAF50;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Be Vietnam Pro', sans-serif;
}

/* ==========================================================================
   GLOBAL COLOR CONTRAST & LEGIBILITY OVERRIDES
   Prevents unreadable dark body text leakage from global style sheets.
   ========================================================================== */
.tkw-hero-section,
.tkw-wizard-section,
.tkw-portfolio,
.tkw-modal-overlay {
    color: #ffffff !important;
}

.tkw-dark-wrapper {
    background-color: var(--tkw-bg-espresso) !important;
}

.tkw-hero-section h1 {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 60%, var(--tkw-accent) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}

.tkw-hero-section h2,
.tkw-hero-section h3,
.tkw-wizard-section h1,
.tkw-wizard-section h2,
.tkw-wizard-section h3,
.tkw-wizard-section h4,
.tkw-wizard-section h5,
.tkw-wizard-section h6,
.tkw-portfolio h1,
.tkw-portfolio h2,
.tkw-portfolio h3,
.tkw-portfolio h4,
.tkw-portfolio h5,
.tkw-portfolio h6,
.tkw-modal-overlay h3,
.tkw-modal-overlay h4,
.tkw-modal-overlay h5 {
    color: #ffffff !important;
}

.tkw-hero-section p,
.tkw-wizard-section p,
.tkw-wizard-section span,
.tkw-wizard-section li,
.tkw-wizard-section label,
.tkw-portfolio p,
.tkw-portfolio span,
.tkw-portfolio li,
.tkw-modal-overlay p,
.tkw-modal-overlay span,
.tkw-modal-overlay li {
    color: #ebdcd0 !important;
}

/* Ensure dynamic sitemap structures and specific highlights work properly */
.tkw-wizard-section .text-[#C87941],
.tkw-portfolio .text-[#C87941],
.tkw-wizard-section .tkw-select-label i,
.tkw-wizard-section .tkw-step-indicator.done,
.tkw-wizard-section .tkw-step-indicator.done .step-num {
    color: var(--tkw-primary) !important;
}

.tkw-wizard-section .text-[#E8A060],
.tkw-portfolio .text-[#E8A060],
.tkw-wizard-section .tkw-recommend-card h5,
.tkw-wizard-section .tkw-live-feedback {
    color: var(--tkw-accent) !important;
}

.tkw-wizard-section .tkw-btn-ai,
.tkw-wizard-section .tkw-btn-next,
.tkw-wizard-section .tkw-btn-submit,
.tkw-wizard-section .tkw-btn-back,
.tkw-wizard-section .tkw-btn-edit-tree {
    color: #ffffff !important;
}

.tkw-wizard-section .tkw-step-indicator .step-num {
    color: #ebdcd0 !important;
}

.tkw-wizard-section .tkw-step-indicator.active .step-num {
    color: #ffffff !important;
}

.tkw-wizard-section .tkw-step-indicator.done .step-num {
    color: var(--tkw-primary) !important;
}

.tkw-input, .tkw-textarea, .tkw-edit-input {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.25) !important;
}

.tkw-input::placeholder, .tkw-textarea::placeholder, .tkw-edit-input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}


/* Base Wizard Section styles */
.tkw-wizard-section {
    padding: 60px 0;
    background: var(--tkw-bg-espresso);
    color: var(--tkw-text-main);
    font-family: var(--font-body);
}

.tkw-wizard-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Typography */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.badge-ai {
    display: inline-flex;
    align-items: center;
    background: rgba(200, 121, 65, 0.12);
    color: var(--tkw-primary);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(200, 121, 65, 0.25);
    letter-spacing: 0.05em;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 15px;
    margin-bottom: 10px;
}

.section-title span {
    background: linear-gradient(135deg, var(--tkw-primary), var(--tkw-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--tkw-primary);
    margin: 15px auto;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--tkw-text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Progress bar indicator */
.tkw-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tkw-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--tkw-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    width: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tkw-step-indicator .step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tkw-glass-bg);
    border: 2px solid var(--tkw-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tkw-text-muted);
    transition: all 0.3s ease;
}

.tkw-step-indicator.active {
    color: #fff;
}

.tkw-step-indicator.active .step-num {
    background: var(--tkw-primary);
    border-color: var(--tkw-primary);
    color: #fff;
    box-shadow: 0 0 15px var(--tkw-primary-glow);
}

.tkw-step-indicator.done {
    color: var(--tkw-primary);
}

.tkw-step-indicator.done .step-num {
    background: rgba(200, 121, 65, 0.2);
    border-color: var(--tkw-primary);
    color: var(--tkw-primary);
}

.tkw-step-line {
    flex-grow: 1;
    height: 2px;
    background: var(--tkw-glass-border);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.tkw-step-line.done {
    background: var(--tkw-primary);
}

/* Step content container */
.tkw-step-content {
    display: none;
    background: var(--tkw-glass-bg);
    border: 1px solid var(--tkw-glass-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(12px);
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: tkwFadeIn 0.5s ease;
}

.tkw-step-content.active {
    display: block;
}

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

.tkw-step1-intro {
    text-align: center;
    margin-bottom: 35px;
}

.tkw-step1-intro h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tkw-step1-intro p {
    color: var(--tkw-text-muted);
    font-size: 0.95rem;
}

/* Select Group & Chips */
.tkw-select-group {
    margin-bottom: 35px;
}

.tkw-select-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tkw-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 15px;
}

.tkw-chip, .tkw-chip-industry {
    background: var(--tkw-glass-bg);
    border: 1px solid var(--tkw-glass-border);
    border-radius: 16px;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.tkw-chip i {
    font-size: 1.1rem;
    color: var(--tkw-text-muted);
    transition: all 0.25s ease;
}

.tkw-chip-industry span {
    font-size: 1.2rem;
}

.tkw-chip:hover, .tkw-chip-industry:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: #fff;
}

.tkw-chip.selected, .tkw-chip-industry.selected {
    background: rgba(200, 121, 65, 0.15);
    border-color: var(--tkw-primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(200, 121, 65, 0.2);
}

.tkw-chip.selected i {
    color: var(--tkw-accent);
}

/* Typing / Live Feedback */
.tkw-live-feedback {
    background: rgba(200, 121, 65, 0.08);
    border: 1px dashed rgba(200, 121, 65, 0.25);
    border-radius: 12px;
    padding: 12px 18px;
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--tkw-accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Forms & Textarea */
.tkw-form-group {
    margin-bottom: 25px;
}

.tkw-textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--tkw-glass-border);
    border-radius: 16px;
    padding: 16px;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.6;
    outline: none;
    resize: vertical;
    transition: all 0.3s ease;
}

.tkw-textarea:focus {
    border-color: var(--tkw-primary);
    box-shadow: 0 0 10px rgba(200, 121, 65, 0.2);
}

/* Prompt Strength Meter */
.tkw-prompt-meter-wrap {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.tkw-prompt-meter {
    flex-grow: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.tkw-prompt-meter-fill {
    width: 0;
    height: 100%;
    background-color: var(--tkw-primary);
    border-radius: 3px;
    transition: width 0.4s ease, background-color 0.4s ease;
}

.tkw-prompt-status {
    font-size: 0.8rem;
    color: var(--tkw-text-muted);
    font-weight: 500;
    min-width: 150px;
    text-align: right;
}

.tkw-prompt-suggestions {
    margin-top: 15px;
}

/* Primary Action Buttons */
.tkw-btn-ai {
    background: linear-gradient(135deg, var(--tkw-primary), #a04f1d);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 14px 35px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(200, 121, 65, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.tkw-btn-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 121, 65, 0.55);
}

.tkw-btn-ai:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Spinner and Loadings */
.tkw-ai-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    gap: 15px;
}

.tkw-ai-loading.show {
    display: flex;
}

.tkw-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--tkw-primary);
    animation: tkwSpin 1s linear infinite;
}

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

/* AI Results styling */
.tkw-ai-result {
    display: none;
    margin-top: 30px;
    border-top: 1px solid var(--tkw-glass-border);
    padding-top: 30px;
    animation: tkwFadeIn 0.5s ease;
}

.tkw-ai-result.show {
    display: block;
}

.tkw-ai-result h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.tkw-btn-edit-tree {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tkw-btn-edit-tree:hover {
    background: rgba(200, 121, 65, 0.15);
    border-color: var(--tkw-primary);
    color: #fff;
}

/* Sitemap Tree Layout */
.tkw-tree {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.tkw-tree > li {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--tkw-glass-border);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tkw-tree > li > i {
    color: var(--tkw-primary);
    margin-right: 10px;
    display: inline-block;
}

.tkw-sub-tree {
    list-style: none;
    padding-left: 20px;
    margin-top: 8px;
    border-left: 1px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tkw-sub-tree li {
    font-size: 0.85rem;
    color: var(--tkw-text-muted);
    font-weight: 500;
}

/* Recommendations cards grid */
.tkw-recommend-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.tkw-recommend-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--tkw-glass-border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.tkw-recommend-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(200, 121, 65, 0.3);
    transform: translateY(-2px);
}

.tkw-recommend-card h5 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--tkw-accent);
}

.tkw-recommend-card p {
    font-size: 0.8rem;
    color: var(--tkw-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Navigation inside Wizard Steps */
.tkw-wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    border-top: 1px solid var(--tkw-glass-border);
    padding-top: 30px;
}

.tkw-btn-next, .tkw-btn-submit {
    background: linear-gradient(135deg, var(--tkw-primary), #a04f1d);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
}

.tkw-btn-next:hover, .tkw-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--tkw-primary-glow);
}

.tkw-btn-next:disabled, .tkw-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tkw-btn-back {
    background: transparent;
    color: #fff;
    border: 1px solid var(--tkw-glass-border);
    border-radius: 10px;
    padding: 12px 28px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
}

.tkw-btn-back:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* --- STEP 2 CUSTOM STYLES --- */
.tkw-upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.tkw-upload-zone:hover, .tkw-upload-zone.dragover {
    border-color: var(--tkw-primary);
    background: rgba(200, 121, 65, 0.05);
}

.tkw-upload-zone i {
    font-size: 2.2rem;
    color: var(--tkw-primary);
    margin-bottom: 12px;
}

.tkw-upload-zone p {
    font-size: 0.85rem;
    color: var(--tkw-text-muted);
    margin: 4px 0;
}

.tkw-upload-zone .browse-link {
    color: var(--tkw-accent);
    font-weight: 600;
    text-decoration: underline;
}

.tkw-logo-preview {
    display: none;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--tkw-glass-border);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    margin-top: 15px;
}

.tkw-logo-preview img {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    padding: 5px;
}

.tkw-style-pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.tkw-style-pill {
    background: var(--tkw-glass-bg);
    border: 1px solid var(--tkw-glass-border);
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tkw-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tkw-style-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.tkw-style-pill.selected {
    background: rgba(200, 121, 65, 0.15);
    border-color: var(--tkw-primary);
    color: #fff;
    box-shadow: 0 0 10px rgba(200, 121, 65, 0.15);
}

.tkw-gen-hint {
    font-size: 0.75rem;
    color: var(--tkw-text-muted);
    margin-top: 12px;
    line-height: 1.5;
}

.tkw-gen-hint i {
    color: var(--tkw-primary);
}

/* Browser Frame Preview */
.tkw-preview-frame {
    width: 100%;
    aspect-ratio: 16/10;
    background: #0f0905;
    border: 1px solid var(--tkw-glass-border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tkw-preview-placeholder {
    text-align: center;
    padding: 40px;
}

.tkw-preview-placeholder i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.tkw-preview-placeholder p {
    font-size: 0.9rem;
    color: var(--tkw-text-muted);
    line-height: 1.6;
    margin: 0;
}

.tkw-demo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tkw-preview-frame:hover .tkw-demo-img {
    transform: scale(1.02);
}

.tkw-wf-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.tkw-layout-notice {
    display: flex;
    gap: 10px;
    background: rgba(200, 121, 65, 0.08);
    border: 1px solid rgba(200, 121, 65, 0.18);
    border-radius: 12px;
    padding: 12px 18px;
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--tkw-accent);
    line-height: 1.5;
}

.tkw-layout-notice i {
    font-size: 1.1rem;
    margin-top: 2px;
}

/* Loading overlay for step 2 */
.tkw-gen-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 14, 5, 0.85);
    backdrop-filter: blur(8px);
    z-index: 50;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tkw-gen-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.tkw-overlay-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.tkw-overlay-content p {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.6;
}

/* --- STEP 3 CUSTOM STYLES --- */
.tkw-addon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.tkw-addon-card {
    background: var(--tkw-glass-bg);
    border: 1px solid var(--tkw-glass-border);
    border-radius: 18px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.tkw-addon-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.tkw-addon-check {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--tkw-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s ease;
}

.tkw-addon-card.selected {
    background: rgba(200, 121, 65, 0.08);
    border-color: var(--tkw-primary);
    box-shadow: 0 0 15px rgba(200, 121, 65, 0.15);
}

.tkw-addon-card.selected .tkw-addon-check {
    background: var(--tkw-primary);
    border-color: var(--tkw-primary);
    color: #fff;
}

.tkw-addon-emoji {
    font-size: 2rem;
    margin-bottom: 15px;
}

.tkw-addon-info h5 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
}

.tkw-addon-info p {
    font-size: 0.8rem;
    color: var(--tkw-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Summary Box */
.tkw-summary-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--tkw-glass-border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 35px;
}

.tkw-summary-box h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--tkw-glass-border);
    padding-bottom: 12px;
}

.tkw-summary-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tkw-summary-list li {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tkw-summary-list li i {
    color: var(--tkw-primary);
    width: 20px;
    text-align: center;
}

.tkw-summary-list li strong {
    color: var(--tkw-text-muted);
    font-weight: 600;
}

.tkw-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--tkw-glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.tkw-input:focus {
    border-color: var(--tkw-primary);
    box-shadow: 0 0 8px rgba(200, 121, 65, 0.2);
}

.row.g-3 {
    margin-left: -10px;
    margin-right: -10px;
}
.row.g-3 > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
}

.col-md-6 {
    width: 50%;
    float: left;
}
.col-lg-4 {
    width: 33.333%;
    float: left;
}
.col-lg-8 {
    width: 66.666%;
    float: left;
}

.row::after {
    content: "";
    clear: both;
    display: table;
}

.row.g-4 {
    margin-left: -15px;
    margin-right: -15px;
}
.row.g-4 > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

/* Modals System */
.tkw-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 9, 5, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tkw-modal-overlay.active, .tkw-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.tkw-modal-content {
    background: #2b1607;
    border: 1px solid var(--tkw-glass-border);
    border-radius: 24px;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tkw-modal-overlay.active .tkw-modal-content {
    transform: scale(1);
}

.tkw-modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid var(--tkw-glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tkw-modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.tkw-modal-close {
    background: none;
    border: none;
    color: var(--tkw-text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.tkw-modal-close:hover {
    color: #fff;
}

.tkw-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
}

.tkw-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--tkw-glass-border);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.tkw-btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid var(--tkw-glass-border);
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
}

.tkw-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.tkw-btn-primary {
    background: var(--tkw-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
}

.tkw-btn-primary:hover {
    background: #a04f1d;
}

/* Edit Tree Rows Form Builder */
.tkw-edit-group {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--tkw-glass-border);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.tkw-edit-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tkw-edit-row.indent {
    padding-left: 25px;
}

.tkw-edit-row:last-child {
    margin-bottom: 0;
}

.tkw-edit-input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--tkw-glass-border);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
}

.tkw-edit-input:focus {
    border-color: var(--tkw-primary);
}

/* Success popup specific */
.tkw-modal {
    background: #2b1607;
    border: 1px solid var(--tkw-glass-border);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tkw-modal-overlay.show .tkw-modal {
    transform: scale(1);
}

.tkw-modal i.fa-check-circle {
    font-size: 4rem;
    color: var(--tkw-success);
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(76, 175, 80, 0.3));
}

.tkw-modal h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.tkw-modal p {
    color: var(--tkw-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* --- TOAST SYSTEM --- */
.tkw-toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tkw-toast {
    background: rgba(15, 9, 5, 0.95);
    border-left: 4px solid var(--tkw-primary);
    border-radius: 12px;
    padding: 16px 24px;
    color: #fff;
    min-width: 280px;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tkw-toast.show {
    transform: translateX(0);
}

.tkw-toast i {
    font-size: 1.3rem;
}

.tkw-toast.error {
    border-left-color: #ff4d4d;
}
.tkw-toast.error i {
    color: #ff4d4d;
}

.tkw-toast.success {
    border-left-color: var(--tkw-success);
}
.tkw-toast.success i {
    color: var(--tkw-success);
}

.tkw-toast-text {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Features Grid */
.tkw-features {
    padding: 80px 0;
    background: #1a0e05;
}

.tkw-feat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.tkw-feat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--tkw-glass-border);
    border-radius: 20px;
    padding: 35px 30px;
    transition: all 0.3s ease;
}

.tkw-feat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(200, 121, 65, 0.3);
    transform: translateY(-5px);
}

.tkw-feat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(200, 121, 65, 0.15);
    color: var(--tkw-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.tkw-feat-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.tkw-feat-card p {
    color: var(--tkw-text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

/* Portfolio Gallery */
.tkw-portfolio {
    padding: 80px 0;
    background: var(--tkw-bg-espresso);
}

.tkw-port-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tkw-port-filter button {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--tkw-glass-border) !important;
    color: #ebdcd0 !important;
    padding: 10px 22px !important;
    border-radius: 30px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.tkw-port-filter button:hover, .tkw-port-filter button.active {
    background: var(--tkw-primary) !important;
    border-color: var(--tkw-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(200, 121, 65, 0.25) !important;
}

.tkw-port-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.tkw-port-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--tkw-glass-border) !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    height: 100% !important;
}

.tkw-port-card:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(200, 121, 65, 0.3) !important;
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(200, 121, 65, 0.1) !important;
}

.tkw-port-img-wrap {
    width: 100% !important;
    aspect-ratio: 3/4 !important; /* Perfect vertical rectangle matching user requirements */
    overflow: hidden !important;
    position: relative !important;
    background: rgba(0, 0, 0, 0.2) !important;
    display: block !important;
}

.tkw-port-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top !important; /* Scroll down starting from the top header */
    transition: transform 0.5s ease !important;
}

.tkw-port-card:hover .tkw-port-img-wrap img {
    transform: scale(1.05) !important;
}

.tkw-port-info {
    padding: 20px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex-grow: 1 !important;
    background: rgba(0, 0, 0, 0.15) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.tkw-port-info h4 {
    font-family: var(--font-heading) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 6px !important;
    line-height: 1.4 !important;
    transition: color 0.2s ease !important;
}

.tkw-port-card:hover .tkw-port-info h4 {
    color: var(--tkw-accent) !important;
}

.tkw-port-info span {
    font-size: 0.75rem !important;
    color: var(--tkw-primary) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    display: block !important;
    margin-bottom: 12px !important;
}

.tkw-port-price {
    font-family: var(--font-heading) !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: var(--tkw-accent) !important;
    margin-top: auto !important;
    border-top: 1px dashed rgba(255, 255, 255, 0.08) !important;
    padding-top: 12px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.tkw-port-price::after {
    content: "Xem Mẫu";
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffffff !important;
    background: rgba(200, 121, 65, 0.15) !important;
    border: 1px solid rgba(200, 121, 65, 0.3) !important;
    padding: 5px 12px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
}

.tkw-port-card:hover .tkw-port-price::after {
    background: var(--tkw-primary) !important;
    border-color: var(--tkw-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(200, 121, 65, 0.3) !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .col-lg-4, .col-lg-8 {
        width: 100%;
        float: none;
    }
    .col-lg-8 {
        margin-top: 30px;
    }
    .tkw-preview-frame {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 767px) {
    .col-md-6 {
        width: 100%;
        float: none;
        margin-bottom: 20px;
    }
    .col-md-6:last-child {
        margin-bottom: 0;
    }
    .tkw-step-content {
        padding: 20px;
    }
    .tkw-chip-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    .tkw-style-pills {
        grid-template-columns: repeat(2, 1fr);
    }
    .tkw-progress {
        display: none; /* Hide indicator on mobile to save space, rely on headers */
    }
    .section-title {
        font-size: 2rem;
    }
}
