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

html {
    overflow-x: hidden;
}

html, body {
    width: 100%;
    max-width: 100vw;
}

:root {
    --dark-bg: #1a1a1a;
    --dark-card: #2c2c2c;
    --dark-border: #3a3a3a;
    --orange: #ff6b35;
    --orange-hover: #e85a28;
    --blue: #4a90e2;
    --text-light: #e0e0e0;
    --text-dim: #a0a0a0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Auth Screen */
.auth-container {
    max-width: 400px;
    margin: 100px auto;
    background: var(--dark-card);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.auth-container h1 {
    color: var(--orange);
    text-align: center;
    margin-bottom: 10px;
}

.tagline {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 30px;
}

.form-container {
    margin-top: 20px;
}

.form-container.hidden {
    display: none;
}

.form-container h2 {
    margin-bottom: 20px;
    color: var(--text-light);
    text-align: center;
}

.form-container input, .form-container select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--dark-border);
    background: var(--dark-bg);
    color: var(--text-light);
    border-radius: 6px;
    font-size: 14px;
}

.form-container input:focus, .form-container select:focus {
    outline: none;
    border-color: var(--orange);
}

.form-container button {
    width: 100%;
    padding: 12px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.form-container button:hover {
    background: var(--orange-hover);
}

button {
    padding: 10px 20px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
}

button:hover {
    background: var(--orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

button.secondary {
    background: transparent;
    border: 1px solid var(--dark-border);
    color: var(--text-light);
}

button.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-dim);
    transform: translateY(-1px);
    box-shadow: none;
}

button.danger {
    background: #dc3545;
    color: white;
}

button.danger:hover {
    background: #c82333;
}

.form-container p {
    margin-top: 15px;
    text-align: center;
    color: var(--text-dim);
}

.form-container a {
    color: var(--orange);
    text-decoration: none;
}

/* Header */
header {
    background: var(--dark-card);
    padding: 24px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--dark-border);
}

header h1, header h2 {
    color: var(--text-light);
    font-size: 22px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--text-dim);
}

.header-actions span {
    margin-right: 8px;
    font-size: 14px;
    font-weight: 500;
}

.header-actions button {
    width: auto;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
}

header button {
    background: transparent;
    border: 1px solid var(--dark-border);
    color: var(--text-light);
}

header button:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--orange);
    color: var(--orange);
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--dark-card);
    border-right: 1px solid var(--dark-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 32px 24px;
    border-bottom: 1px solid var(--dark-border);
}

.sidebar-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
}

.sidebar-nav {
    flex: 1;
    padding: 24px 16px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 8px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-item:hover:not(.disabled) {
    background: rgba(255, 107, 53, 0.1);
    color: var(--orange);
}

.nav-item.active {
    background: rgba(255, 107, 53, 0.15);
    color: var(--orange);
}

.nav-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    color: var(--orange);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--dark-border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-hover));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: #000;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 12px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--dark-border);
    color: var(--text-light);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: rgba(244, 67, 54, 0.1);
    border-color: #f44336;
    color: #f44336;
    transform: none;
    box-shadow: none;
}

.logout-icon {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.logout-btn:hover .logout-icon {
    transform: translateX(4px);
}

.admin-panel-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--dark-border);
    color: var(--text-light);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-panel-btn:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--orange);
    color: var(--orange);
    transform: none;
    box-shadow: none;
}

.admin-panel-btn:hover .logout-icon {
    transform: translateX(4px);
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    background: var(--dark-bg);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 48px 32px;
    border-bottom: 1px solid var(--dark-border);
    background: var(--dark-card);
}

.content-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 4px;
}

.subtitle {
    font-size: 14px;
    color: var(--text-dim);
}

.header-actions {
    display: flex;
    gap: 12px;
}

.header-actions button {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-actions button span:first-child {
    font-size: 18px;
    line-height: 1;
}

/* Boards Grid */
.boards-grid {
    padding: 32px 48px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.board-card {
    background: var(--dark-card);
    border-radius: 12px;
    border: 1px solid var(--dark-border);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.board-card:hover {
    border-color: var(--orange);
}

.board-card-content {
    padding: 24px 24px 20px 24px;
    flex: 1;
}

.board-card-content h3 {
    color: var(--text-light);
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    min-height: 50px;
}

.board-card-content p {
    color: var(--text-dim);
    font-size: 13px;
    margin: 0 0 16px 0;
    line-height: 1.5;
    height: 20px;
}

.board-card-content .board-code {
    display: inline-block;
    background: rgba(255, 107, 53, 0.15);
    color: var(--orange);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1.5px;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
}

.board-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
    font-size: 13px;
    color: var(--text-dim);
    height: 50px;
}

.board-card-footer span {
    opacity: 0.8;
    margin-right: 20px;
}

/* Board Layout - Desktop with Sidebar */
.board-layout {
    display: flex;
    height: 100vh;
    width: 100%;
}

.board-sidebar {
    width: 280px;
    background: var(--dark-card);
    border-right: 1px solid var(--dark-border);
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.board-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Mobile Header - Hidden on Desktop */
.board-mobile-header {
    display: none; /* Hidden on desktop */
}

.back-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    padding: 0;
    cursor: pointer;
    line-height: 1;
}

.board-title {
    flex: 1;
    min-width: 0;
}

.board-title h2 {
    color: var(--text-light);
    font-size: 24px;
    margin: 0 0 4px 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.board-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-dim);
    font-size: 13px;
}

.board-meta svg {
    color: var(--orange);
}

.menu-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

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

/* Board Menu Dropdown */
.board-menu {
    position: fixed;
    top: 60px;
    right: 16px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    min-width: 240px;
    max-width: calc(100vw - 32px);
    z-index: 1000;
    overflow: hidden;
}

.board-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--dark-border);
}

.board-menu-item:last-child {
    border-bottom: none;
}

.board-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.board-menu-item svg {
    color: var(--orange);
    flex-shrink: 0;
}

.menu-item-title {
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
}

.menu-item-subtitle {
    color: var(--text-dim);
    font-size: 12px;
    margin-top: 2px;
}

.board-container {
    padding: 16px;
    flex: 1;
    overflow-x: auto;
    overflow-y: auto;
}

.board-segments {
    display: flex;
    gap: 20px;
    min-height: 100%;
}

.segment {
    flex: 1;
    min-width: 220px;
    background: var(--dark-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--dark-border);
    display: flex;
    flex-direction: column;
}

.segment h3 {
    color: var(--text-light);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--orange);
}

.stickers-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100px;
    flex: 1;
}

.sticker {
    padding: 12px 14px;
    margin-bottom: 10px;
    border-radius: 6px;
    cursor: move;
    position: relative;
    user-select: none;
}

.sticker:last-child {
    margin-bottom: 0;
}

/* Priority indicator - triangular corner in top-right */
.priority-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 24px 24px 0;
}

.priority-indicator.high {
    border-color: transparent #EA580C transparent transparent;
}

.priority-indicator.normal {
    border-color: transparent #3B82F6 transparent transparent;
}

.priority-indicator.low {
    border-color: transparent #14B8A6 transparent transparent;
}

/* Drag and Drop styles - NO animations, NO hover effects per design rules */
.sticker[draggable="true"] {
    cursor: move;
    user-select: none; /* Prevent text selection during drag */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.sticker.dragging {
    opacity: 0.3;
}

.stickers-container.drop-zone {
    background: rgba(255, 107, 53, 0.1);
    border: 2px dashed var(--orange);
    border-radius: 8px;
    min-height: 60px;
}

.sticker-content {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
    font-weight: 500;
}

.sticker-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    opacity: 0.7;
    font-weight: 600;
}

.sticker-actions {
    display: flex;
    gap: 5px;
}

.sticker-actions button {
    padding: 5px 10px;
    font-size: 12px;
    width: auto;
}

/* Sticker Footer */
.sticker-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    cursor: default;
    font-size: 11px;
}

.sticker-creator {
    font-size: 14px;
    font-weight: bold;
    flex: 1;
    text-align: center;
}

.sticker-like-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sticker-like-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    opacity: 0.7;
}

.sticker-like-btn:active {
    opacity: 1;
}

.sticker-like-btn svg {
    width: 16px;
    height: 16px;
}

.sticker-like-btn.liked svg {
    fill: var(--orange);
    stroke: var(--orange);
}

.sticker-like-btn:not(.liked) svg {
    fill: none;
    stroke: currentColor;
}

.sticker-like-count {
    font-size: 11px;
    opacity: 0.8;
}

.sticker-delete-btn {
    padding: 5px 10px;
    font-size: 12px;
    width: auto;
    background: var(--orange);
    border: 1px solid var(--orange);
    border-radius: 6px;
    cursor: pointer;
    color: white;
    font-weight: 600;
}

.sticker-delete-btn:active {
    opacity: 0.9;
}

/* Share Page / Join Page */
.share-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: var(--dark-bg);
}

.share-container h1 {
    font-size: 22px;
    margin-bottom: 12px;
    text-align: center;
}

.share-code {
    font-size: 42px;
    font-weight: bold;
    color: var(--orange);
    letter-spacing: 10px;
    margin: 0 0 24px;
    font-family: 'SF Mono', Monaco, monospace;
    text-align: center;
}

.share-container .form-container {
    width: 100%;
    max-width: 420px;
    background: var(--dark-card);
    padding: 24px 20px;
    border-radius: 12px;
    border: 1px solid var(--dark-border);
}

.share-container .form-container h2 {
    font-size: 16px;
    margin-bottom: 16px;
    text-align: left;
}

.share-container .form-container label {
    display: block;
    color: var(--text-light);
    margin: 16px 0 6px 0;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-container .form-container input {
    margin-bottom: 0;
    padding: 10px 12px;
}

#color-picker-wheel {
    display: flex;
    justify-content: center;
    margin: 12px 0 20px;
}

.share-container button {
    width: 100%;
    margin-top: 4px;
    padding: 12px;
}

@media (max-width: 500px) {
    .share-code {
        font-size: 32px;
        letter-spacing: 6px;
        margin: 0 0 20px;
    }

    .share-container h1 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .share-container .form-container {
        padding: 20px 16px;
    }

    .share-container .color-picker {
        max-height: 100px;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--dark-card);
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--dark-border);
}

.modal-content h2 {
    color: var(--orange);
    margin-bottom: 20px;
}

.modal-content label {
    display: block;
    color: var(--text-light);
    margin-bottom: 8px;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content textarea,
.modal-content select {
    width: 100%;
    padding: 10px;
    background: var(--dark-bg);
    color: var(--text-light);
    border: 1px solid var(--dark-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.modal-content textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-content select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.modal-content select:hover {
    border-color: var(--text-dim);
}

.modal-content select option {
    background: var(--dark-card);
    color: var(--text-light);
    padding: 8px;
}

.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
    outline: none;
    border-color: var(--orange);
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.modal-actions button {
    flex: 1;
}

/* Order by modal radio options */
.order-by-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 24px 0;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: var(--dark-bg);
    border: 2px solid var(--dark-border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.radio-option:hover {
    border-color: var(--orange);
}

.radio-option input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--orange);
}

.radio-option span {
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
    flex: 1;
}

.stage-input {
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
}

.stage-input input {
    flex: 1;
    padding: 10px 12px;
    background: var(--dark-bg);
    color: var(--text-light);
    border: 1px solid var(--dark-border);
    border-radius: 6px;
    font-size: 14px;
}

.stage-input input:focus {
    outline: none;
    border-color: var(--orange);
}

.remove-stage-btn {
    font-size: 20px;
    line-height: 1;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.remove-stage-btn:hover {
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

/* Stage Color Picker */
.stage-color-picker {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.stage-color-option {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.stage-color-option.selected {
    border-color: var(--orange);
}

.stage-color-option.locked {
    cursor: pointer;
    position: relative;
}

.color-picker {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.color-option {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border 0.2s;
}

#settings-color-picker {
    display: flex;
    justify-content: center;
    margin: 12px 0 20px;
}

.color-option:hover, .color-option.selected {
    border-color: var(--orange);
}

/* FAB */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--orange);
    color: white;
    font-size: 30px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1);
}

/* Toast */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

@media (max-width: 768px) {
    #toast-container {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: 90%;
        max-width: 400px;
        z-index: 999999 !important;
        pointer-events: none;
    }

    .toast {
        animation: slideInMobile 0.3s;
        pointer-events: auto;
        box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    }

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

.toast {
    background: var(--dark-card);
    color: var(--text-light);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    animation: slideIn 0.3s;
    border-left: 4px solid var(--orange);
}

.toast.success { border-left-color: #4caf50; }
.toast.error { border-left-color: #f44336; }
.toast.info { border-left-color: #2196f3; }

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .board-segments {
        flex-direction: column;
        gap: 12px;
    }

    .segment {
        min-width: 100%;
        padding: 12px;
    }

    .segment h3 {
        font-size: 14px;
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

    .sticker-content {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .sticker-meta {
        font-size: 11px;
    }

    .boards-grid {
        grid-template-columns: 1fr;
    }

    .board-container {
        padding: 12px;
        flex: 1;
        overflow-y: auto;
    }

    .dashboard-layout {
        flex-direction: column;
    }

    /* Base sidebar - hide on mobile by default */
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        width: 280px;
        z-index: 200;
        transition: left 0.3s ease;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
        border-right: 1px solid var(--dark-border);
        border-bottom: none;
    }

    /* Show sidebar when active */
    .sidebar.active,
    #dashboard-sidebar.active {
        left: 0;
    }

    /* Mobile: Hide sidebar, show mobile header */
    .board-sidebar {
        display: none;
    }

    .board-mobile-header {
        display: flex;
        align-items: center;
        gap: 12px;
        background: var(--dark-card);
        border-bottom: 1px solid var(--dark-border);
        padding: 14px 16px;
    }

    .board-title h2 {
        font-size: 18px;
    }

    /* Fix AI Summary panel scrolling on mobile */
    .summary-panel {
        width: 100%;
        max-width: 100%;
    }

    .summary-panel-content {
        padding-bottom: calc(120px + env(safe-area-inset-bottom, 20px)); /* Extra space for iOS toolbar */
    }

    .summary-actions {
        margin-top: 24px;
        padding-bottom: env(safe-area-inset-bottom, 20px); /* iOS safe area */
    }
}

/* AI Summary Slide-in Panel */
.summary-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 500px;
    height: 100vh;
    background: var(--dark-card);
    box-shadow: -4px 0 24px rgba(0,0,0,0.5);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.summary-panel.active {
    right: 0;
}

.summary-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.summary-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.summary-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--dark-border);
}

.summary-panel-header h3 {
    color: var(--text-light);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.close-panel-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.close-panel-btn:hover {
    background: var(--dark-border);
    color: var(--text-light);
}

.summary-panel-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.summary-scroll-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    padding-bottom: 200px;
}

/* Prevent body scroll when summary panel is open */
body.summary-panel-open {
    overflow: hidden;
}

.generate-btn {
    background: var(--orange);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.generate-btn:disabled {
    background: var(--dark-border);
    cursor: not-allowed;
    opacity: 0.6;
}

.summary-actions {
    margin-top: 20px;
}

.summary-actions button {
    width: 100%;
    margin-bottom: 10px;
}

.summary-actions button:last-child {
    margin-bottom: 0;
}

.export-pdf-btn {
    background: var(--orange);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.export-pdf-btn:hover {
    background: var(--orange-hover);
}

.export-pdf-btn:disabled {
    background: var(--dark-border);
    cursor: not-allowed;
    opacity: 0.6;
}

.summary-content {
    background: var(--dark-bg);
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.summary-content h4 {
    color: var(--orange);
    font-size: 14px;
    margin: 12px 0 8px 0;
}

.summary-content h4:first-child {
    margin-top: 0;
}

.summary-content h5 {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 4px 0;
    padding-left: 10px;
    border-left: 2px solid var(--orange);
}

.summary-content h5:first-of-type {
    margin-top: 8px;
}

.summary-content h5 + p {
    margin: 4px 0 8px 12px;
    color: var(--text-dim);
}

.summary-content ul {
    margin: 8px 0 8px 20px;
    color: var(--text-dim);
}

.summary-content ul li {
    margin: 4px 0;
}

.summary-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-dim);
    padding: 20px;
    font-size: 14px;
}

/* Simple spinner animation */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--dark-border);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.summary-empty {
    text-align: center;
    color: var(--text-dim);
    padding: 20px;
    font-style: italic;
}

.summary-error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: 12px;
    border-radius: 6px;
}

.quality-score {
    display: inline-block;
    background: var(--orange);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
}

.rate-limit-info {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 8px;
}

/* ==================== Settings Modal Styles ==================== */

.settings-modal {
    max-width: 700px;
    min-height: 450px;
}

.settings-tabs {
    display: flex;
    gap: 24px;
    margin: 20px 0;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.settings-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 12px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    color: var(--text-dim);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin: 0 0 -2px 0 !important;
    border-radius: 0;
    outline: none;
    line-height: 1.5;
    vertical-align: baseline;
    transform: none !important;
}

.settings-tab span {
    font-size: 16px;
}

.settings-tab:hover {
    background: transparent !important;
    box-shadow: none !important;
    padding: 16px 12px !important;
    margin: 0 0 -2px 0 !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    transform: none !important;
}

.settings-tab.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
    background: transparent !important;
}

.settings-tab:focus,
.settings-tab:active {
    background: transparent !important;
    outline: none;
    box-shadow: none !important;
}

.settings-content {
    margin: 25px 0;
    min-height: 300px;
}

.settings-section {
    display: none;
    animation: fadeIn 0.3s;
}

.settings-section.active {
    display: block;
}

.settings-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: var(--text-primary);
}

.settings-group {
    margin-bottom: 25px;
}

.settings-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.settings-group input[type="text"],
.settings-group input[type="email"],
.settings-group select {
    width: 100%;
    padding: 10px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
}

.settings-hint {
    color: var(--text-dim);
    font-size: 12px;
    margin: 5px 0 10px 0;
}

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

/* Mobile responsive */
@media (max-width: 600px) {
    .settings-modal {
        max-width: 100%;
        min-height: auto;
    }
    
    .settings-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
    }

    .settings-tab {
        flex-shrink: 0;
        padding: 14px 12px;
        font-size: 13px;
        gap: 8px;
    }

    .settings-tab span {
        font-size: 14px;
    }
}

/* ==========================================
   UNIVERSAL TAB SYSTEM
   ========================================== */

/* Universal Tab Container */
.tab-container {
    display: flex;
    gap: 24px;
    margin-top: 12px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--dark-border);
}

/* Universal Tab Button */
.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 12px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    color: var(--text-dim);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin: 0 0 -2px 0 !important;
    border-radius: 0;
    outline: none;
    line-height: 1.5;
    vertical-align: baseline;
    transform: none !important;
}

.tab-btn svg {
    stroke: #6b7280;
    fill: none;
    width: 20px;
    height: 20px;
}

.tab-btn svg path,
.tab-btn svg circle,
.tab-btn svg line,
.tab-btn svg rect {
    stroke: inherit;
    fill: none;
}

.tab-btn:hover {
    background: transparent !important;
    box-shadow: none !important;
    padding: 16px 12px !important;
    margin: 0 0 -2px 0 !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    transform: none !important;
}

.tab-btn.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
    background: transparent !important;
}

.tab-btn.active svg {
    stroke: var(--orange);
}

.tab-btn:focus,
.tab-btn:active {
    background: transparent !important;
    outline: none;
    box-shadow: none !important;
}

/* ==========================================
   SETTINGS SCREEN LAYOUT
   ========================================== */

/* Settings Horizontal Tabs */
.settings-tabs-horizontal {
    display: flex;
    gap: 24px;
    padding: 0 48px;
    margin-top: 12px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--dark-border);
}

.settings-tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 12px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    color: var(--text-dim);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin: 0 0 -2px 0 !important;
    border-radius: 0;
    outline: none;
    line-height: 1.5;
    vertical-align: baseline;
    transform: none !important;
}

.settings-tab-btn svg {
    stroke: #6b7280;
    fill: none;
    width: 20px;
    height: 20px;
}

.settings-tab-btn svg path,
.settings-tab-btn svg circle,
.settings-tab-btn svg line,
.settings-tab-btn svg rect {
    stroke: inherit;
    fill: none;
}

.settings-tab-btn:hover {
    background: transparent !important;
    box-shadow: none !important;
    padding: 16px 12px !important;
    margin: 0 0 -2px 0 !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    transform: none !important;
}

.settings-tab-btn.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
    background: transparent !important;
}

.settings-tab-btn.active svg {
    stroke: var(--orange);
}

.settings-tab-btn:focus,
.settings-tab-btn:active {
    background: transparent !important;
    outline: none;
    box-shadow: none !important;
}

/* Settings Panels */
.settings-panels {
    padding: 0 48px;
    max-width: 800px;
}

.settings-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.settings-panel.active {
    display: block;
}

.settings-card {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 0;
    padding: 32px;
    margin-bottom: 24px;
}

.settings-card h3 {
    margin: 0 0 24px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
}

.settings-group {
    margin-bottom: 24px;
}

.settings-group:last-child {
    margin-bottom: 0;
}

.settings-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
}

.settings-group input[type="text"],
.settings-group input[type="email"],
.settings-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    background: var(--dark-bg);
    border: 1px solid var(--dark-border);
    border-radius: 0;
    color: var(--text-light);
    font-size: 14px;
    transition: all 0.2s;
}

.settings-group input[type="text"]:focus,
.settings-group input[type="email"]:focus,
.settings-group input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: none;
}

.settings-hint {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: var(--text-dim);
}

/* Settings Actions */
.settings-actions {
    padding: 24px 48px 48px;
    display: flex;
    gap: 12px;
}

.settings-actions button {
    padding: 12px 32px;
}

/* Color Picker in Settings */
#settings-color-picker {
    flex-shrink: 0;
}

/* Sticker Preview in Settings */
#sticker-preview {
    pointer-events: none;
}

/* Mobile Header for Settings */
.mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--dark-surface);
    border-bottom: 1px solid var(--dark-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
}

.hamburger-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-btn svg {
    stroke: var(--text-light);
}

.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.close-sidebar-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-light);
    position: absolute;
    right: 16px;
    top: 16px;
}

.close-sidebar-btn svg {
    stroke: var(--text-light);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    .close-sidebar-btn {
        display: flex;
    }

    /* Settings and team sidebars for other pages */
    #settings-sidebar,
    #team-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        width: 280px;
        z-index: 200;
        transition: left 0.3s ease;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
    }

    #settings-sidebar.active,
    #team-sidebar.open {
        left: 0;
    }

    .sidebar-header {
        position: relative;
    }

    .content-header {
        padding: 20px 16px 16px;
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .content-header h2 {
        font-size: 20px;
        margin-bottom: 2px;
    }

    .subtitle {
        font-size: 13px;
    }

    .header-actions {
        flex-direction: row;
        gap: 8px;
    }

    .header-actions button {
        padding: 8px 16px;
        font-size: 14px;
        flex: 1;
    }

    .header-actions button span:first-child {
        font-size: 16px;
    }

    .settings-tabs-horizontal {
        padding: 0 16px;
        margin-bottom: 24px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 20px;
    }

    .settings-tabs-horizontal::-webkit-scrollbar {
        display: none;
    }

    .settings-tab-btn {
        flex-shrink: 0;
        padding: 14px 12px;
        font-size: 14px;
        white-space: nowrap;
        gap: 8px;
    }

    .settings-tab-btn svg {
        width: 18px;
        height: 18px;
    }

    .settings-panels {
        padding: 0 16px;
    }

    /* Remove padding for billing panel on mobile */
    .settings-panels:has(#settings-panel-billing.active) {
        padding: 0 !important;
    }

    .settings-card {
        padding: 24px;
    }

    /* Stack color picker and preview on mobile */
    .settings-group > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 20px !important;
    }

    #sticker-preview {
        width: 100% !important;
    }

    .settings-actions {
        padding: 24px 24px 32px;
        flex-direction: column;
    }

    .settings-actions button {
        width: 100%;
    }

    /* Mobile Billing Plans - Stack vertically */
    #billing-plans-container > div {
        flex-direction: column !important;
        padding: 0 16px !important;
    }

    /* Make each pricing card full width on mobile */
    #billing-plans-container > div > div {
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* Mobile adjustments for billing cards */
    #settings-panel-billing .settings-card {
        padding: 20px 16px !important;
        margin-left: 16px !important;
        margin-right: 16px !important;
    }
}

/* Billing section needs full width for pricing cards */
.settings-panels:has(#settings-panel-billing.active) {
    max-width: 100% !important;
    padding: 0 !important;
}

#settings-panel-billing.settings-panel {
    max-width: 100% !important;
    padding: 0 !important;
}

#billing-plans-container {
    margin-bottom: 48px;
    width: 100%;
}

/* Make billing plans responsive - target the flex container inside */
#billing-plans-container > div {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    justify-content: center !important;
    align-items: stretch !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

#settings-panel-billing .settings-card {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 24px 48px;
}

/* Analytics Upgrade Prompt */
.analytics-upgrade-prompt {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background: var(--dark-card);
    border: 2px solid var(--dark-border);
    border-radius: 12px;
    text-align: center;
}

.analytics-upgrade-icon {
    margin-bottom: 24px;
}

.analytics-upgrade-icon svg {
    display: inline-block;
}

.analytics-upgrade-prompt h2 {
    color: var(--text-light);
    font-size: 24px;
    margin: 0 0 16px 0;
    font-weight: 600;
}

.analytics-upgrade-prompt p {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 auto 32px;
    text-align: center;
}

.analytics-upgrade-prompt button {
    background: var(--orange);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.analytics-upgrade-prompt button:hover {
    background: var(--orange-hover);
}

/* Analytics ENT Badge */
.badge-ent {
    margin-left: auto;
    font-size: 10px;
    background: var(--orange);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Analytics Coming Soon */
.analytics-coming-soon-subtitle {
    max-width: 600px;
    margin: 0 auto 24px;
    text-align: center;
}

.analytics-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.analytics-feature-card {
    padding: 20px;
    background: var(--dark-card);
    border-radius: 8px;
    border: 1px solid var(--dark-border);
}

.analytics-feature-icon {
    margin-bottom: 12px;
}

.analytics-feature-card h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: var(--text-light);
}

.analytics-feature-card p {
    margin: 0;
    font-size: 14px;
    color: var(--text-dim);
}

.analytics-coming-soon-footer {
    margin-top: 32px;
    font-size: 14px;
    color: var(--text-dim);
}

@media (max-width: 768px) {
    .analytics-upgrade-prompt {
        margin: 40px 24px;
    }

    .analytics-features-grid {
        padding: 0 24px;
    }
}

/* Admin Statistics Cards */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 48px 48px;
}

.stat-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 152, 0, 0.1);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 32px;
    color: var(--text-light);
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-value {
        font-size: 28px;
    }
}

/* Admin Activity Section */
.admin-activity-section {
    padding: 0 48px 48px;
}

.activity-section-title {
    font-size: 24px;
    color: var(--text-light);
    margin: 0 0 24px 0;
    font-weight: 700;
}

.activity-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 24px;
}

.activity-table-container {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    overflow: hidden;
}

.activity-table-title {
    font-size: 16px;
    color: var(--text-light);
    padding: 20px 24px;
    margin: 0;
    font-weight: 600;
    border-bottom: 1px solid var(--dark-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-table-title svg {
    flex-shrink: 0;
}

.activity-table-wrapper {
    overflow-x: auto;
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
}

.activity-table thead th {
    text-align: left;
    padding: 16px 24px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--dark-bg);
}

.activity-table tbody td {
    padding: 16px 24px;
    font-size: 14px;
    color: var(--text-light);
    border-top: 1px solid var(--dark-border);
}

.activity-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.table-username {
    color: var(--orange);
    font-weight: 500;
}

.user-type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.user-type-badge.registered {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.user-type-badge.guest {
    background: rgba(255, 152, 0, 0.15);
    color: var(--orange);
}

.loading-row,
.empty-row {
    text-align: center;
    color: var(--text-dim);
    font-style: italic;
}

@media (max-width: 1200px) {
    .activity-tables {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-activity-section {
        padding: 0 24px 24px;
    }

    .activity-table thead th,
    .activity-table tbody td {
        padding: 12px 16px;
        font-size: 13px;
    }

    .activity-table-title {
        padding: 16px;
        font-size: 15px;
    }
}

/* ============================================
   Admin - Manage Users Page
   ============================================ */

.admin-users-section {
    padding: 48px 48px 48px;
}

/* Search Field */
.users-search-container {
    margin-bottom: 24px;
}

.search-input-wrapper {
    position: relative;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.admin-search-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: all 0.2s ease;
}

.admin-search-input::placeholder {
    color: var(--text-muted);
}

.admin-search-input:focus {
    outline: none;
    border-color: var(--orange);
    background: rgba(0, 0, 0, 0.4);
}

/* Users Table */
.users-table-container {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    overflow: hidden;
}

.users-table-wrapper {
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table thead th {
    text-align: left;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--dark-border);
}

.users-table tbody td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--dark-border);
    color: var(--text-light);
    font-size: 14px;
}

.users-table tbody tr:last-child td {
    border-bottom: none;
}

.users-table tbody tr:hover {
    background: rgba(255, 152, 0, 0.05);
}

/* User Name Cell with Avatar */
.user-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name-cell .table-username {
    font-size: 15px;
    font-weight: 500;
}

.table-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    flex-shrink: 0;
}

/* Subscription Badge */
.subscription-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.subscription-badge.tier-free {
    background: rgba(158, 158, 158, 0.15);
    color: #9e9e9e;
}

.subscription-badge.tier-planner {
    background: rgba(33, 150, 243, 0.15);
    color: #2196f3;
}

.subscription-badge.tier-enterprise {
    background: rgba(156, 39, 176, 0.15);
    color: #9c27b0;
}

/* Details Button */
.details-btn, .delete-btn {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.details-btn {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid var(--orange);
    color: var(--orange);
}

.delete-btn {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #f44336;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

/* Loading and Empty States */
.loading-row,
.empty-row,
.error-row {
    text-align: center;
    padding: 32px !important;
    color: var(--text-muted);
}

.error-row {
    color: #f44336;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-users-section {
        padding: 0 24px 24px;
    }

    .search-input-wrapper {
        max-width: 100%;
    }

    .users-table thead th,
    .users-table tbody td {
        padding: 12px 16px;
        font-size: 13px;
    }

    .table-user-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* ============================================
   Admin - Payments Page
   ============================================ */

.admin-payments-section {
    padding: 0px 48px 48px;
}

/* Search Field */
.payments-search-container {
    margin-bottom: 24px;
}

/* Payments Table */
.payments-table-container {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    overflow: hidden;
}

.payments-table-wrapper {
    overflow-x: auto;
}

.payments-table {
    width: 100%;
    border-collapse: collapse;
}

.payments-table thead th {
    text-align: left;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--dark-border);
}

.payments-table tbody td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--dark-border);
    color: var(--text-light);
    font-size: 14px;
}

.payments-table tbody tr:last-child td {
    border-bottom: none;
}

.payments-table tbody tr:hover {
    background: rgba(255, 152, 0, 0.05);
}

/* Payment specific cells */
.payment-id,
.order-id {
    font-size: 14px;
    color: var(--text-muted);
}

.payment-amount {
    font-weight: 600;
    color: var(--orange);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.status-completed {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.status-badge.status-pending {
    background: rgba(255, 152, 0, 0.15);
    color: var(--orange);
}

.status-badge.status-failed {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.status-badge.status-refunded {
    background: rgba(158, 158, 158, 0.15);
    color: #9e9e9e;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-top: 1px solid var(--dark-border);
    background: rgba(0, 0, 0, 0.1);
}

.pagination-info {
    color: var(--text-muted);
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    padding: 8px 16px;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid var(--dark-border);
    border-radius: 6px;
    color: var(--text-light);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 152, 0, 0.2);
    border-color: var(--orange);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    gap: 4px;
}

.pagination-page {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--dark-border);
    border-radius: 6px;
    color: var(--text-light);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-page:hover {
    background: rgba(255, 152, 0, 0.1);
    border-color: var(--orange);
}

.pagination-page.active {
    background: var(--orange);
    border-color: var(--orange);
    color: #1a1a1a;
    font-weight: 600;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-payments-section {
        padding: 0 24px 24px;
    }

    .payments-table thead th,
    .payments-table tbody td {
        padding: 12px 16px;
        font-size: 13px;
    }

    .pagination-container {
        flex-direction: column;
        gap: 16px;
    }

    .pagination-info {
        font-size: 13px;
    }

    .pagination-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .pagination-page {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* ============================================
   Admin - Logs Page
   ============================================ */

.admin-logs-section {
    padding: 0 48px 48px;
}

/* Log Tab Header */
.log-tab-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

/* Clean Log Button */
.clean-log-btn {
    padding: 10px 20px;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    border-radius: 8px;
    color: #f44336;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clean-log-btn:hover {
    background: #f44336;
    color: white;
}

/* Logs Tabs */
.logs-tabs {
    display: flex;
    gap: 24px;
    margin-top: 12px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--dark-border);
}

.log-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 12px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin: 0 0 -2px 0 !important;
    border-radius: 0;
    outline: none;
    line-height: 1.5;
    vertical-align: baseline;
    transform: none !important;
}

.log-tab:hover {
    background: transparent !important;
    box-shadow: none !important;
    padding: 16px 12px !important;
    margin: 0 0 -2px 0 !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    transform: none !important;
}

.log-tab.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
    background: transparent !important;
}

.log-tab:focus,
.log-tab:active {
    background: transparent !important;
    outline: none;
    box-shadow: none !important;
}

/* Logs Table */
.logs-table-container {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    overflow: hidden;
}

.logs-table-wrapper {
    overflow-x: auto;
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.logs-table thead th {
    text-align: left;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--dark-border);
    white-space: nowrap;
}

.logs-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--dark-border);
    color: var(--text-light);
}

.logs-table tbody tr:last-child td {
    border-bottom: none;
}

.logs-table tbody tr:hover {
    background: rgba(255, 152, 0, 0.03);
}

/* Log Cell Styles */
.log-timestamp {
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
}

.log-ip {
    font-size: 14px;
    color: var(--text-light);
}

.log-method {
    font-weight: 600;
    font-size: 14px;
    padding: 5px 12px;
    border-radius: 4px;
    display: inline-block;
}

.method-get {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.method-post {
    background: rgba(33, 150, 243, 0.15);
    color: #2196f3;
}

.method-put {
    background: rgba(255, 152, 0, 0.15);
    color: var(--orange);
}

.method-delete {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.method-patch {
    background: rgba(156, 39, 176, 0.15);
    color: #9c27b0;
}

.log-path {
    font-size: 14px;
    color: var(--text-light);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.log-status {
    font-weight: 600;
    font-size: 14px;
    padding: 5px 12px;
    border-radius: 4px;
    display: inline-block;
}

.status-success {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.status-redirect {
    background: rgba(33, 150, 243, 0.15);
    color: #2196f3;
}

.status-client-error {
    background: rgba(255, 152, 0, 0.15);
    color: var(--orange);
}

.status-server-error {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.log-size {
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
}

.log-user-agent {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    cursor: help;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-logs-section {
        padding: 0 24px 24px;
    }

    .logs-table {
        font-size: 12px;
    }

    .logs-table thead th,
    .logs-table tbody td {
        padding: 10px 12px;
    }

    .log-path {
        max-width: 150px;
    }

    .log-user-agent {
        max-width: 200px;
    }
}

/* ============================================
   Admin - Sitemap Generator
   ============================================ */

.sitemap-status-card,
.sitemap-preview-card,
.url-list-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    margin-bottom: 24px;
}

.sitemap-status-header,
.sitemap-preview-header,
.url-list-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--dark-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sitemap-status-header h3,
.sitemap-preview-header h3,
.url-list-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
}

.sitemap-status-content {
    padding: 24px;
}

.sitemap-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sitemap-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sitemap-info-label {
    font-weight: 600;
    color: var(--text-light);
    min-width: 140px;
}

.sitemap-info-value {
    color: var(--text-dim);
}

.sitemap-info-value a {
    color: var(--orange);
    text-decoration: none;
}

.sitemap-info-value a:hover {
    border-bottom: 1px solid var(--orange);
}

.status-success {
    color: #10b981;
    font-weight: 600;
}

.status-warning {
    color: #f59e0b;
    font-weight: 600;
}

.sitemap-preview-content {
    padding: 0;
    max-height: 500px;
    overflow-y: auto;
}

.sitemap-preview-loading {
    padding: 40px 24px;
    text-align: center;
    color: var(--text-dim);
}

.sitemap-content {
    margin: 0;
    padding: 24px;
    background: #1a1a1a;
    color: var(--text-light);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    display: none;
}

.url-list-content {
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.url-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.url-list li {
    padding: 12px 24px;
    border-bottom: 1px solid var(--dark-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.url-list li:last-child {
    border-bottom: none;
}

.url-path {
    font-weight: 600;
    color: var(--text-light);
}

.url-full {
    color: var(--text-dim);
    font-size: 13px;
}

.url-count {
    background: var(--orange);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.btn-secondary {
    background: var(--dark-bg);
    color: var(--text-light);
    border: 1px solid var(--dark-border);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    border-color: var(--orange);
}

@media (max-width: 768px) {
    .sitemap-status-header,
    .sitemap-preview-header,
    .url-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .sitemap-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .url-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ==========================================
   BOARD SETTINGS PAGE
   ========================================== */

/* Settings Layout */
.board-settings-layout {
    min-height: 100vh;
    background: var(--dark-bg);
    display: flex;
    flex-direction: column;
}

/* Settings Header */
.settings-header {
    background: var(--dark-card);
    border-bottom: 1px solid var(--dark-border);
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.settings-header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.settings-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--orange);
}

.back-button svg {
    flex-shrink: 0;
}

.header-spacer {
    width: 120px;
}

/* Settings Tabs */
.settings-tabs {
    background: var(--dark-card);
    border-bottom: 2px solid var(--dark-border);
    padding: 0 40px;
    padding-top: 12px;
    display: flex;
    gap: 24px;
}

.settings-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 12px;
    background: transparent !important;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: -2px;
    border-radius: 0;
    outline: none;
}

.settings-tab:hover {
    background: transparent !important;
    box-shadow: none !important;
    padding: 16px 12px !important;
    margin: 0 0 -2px 0 !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    transform: none !important;
}

.settings-tab.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
    background: transparent !important;
}

.settings-tab:focus,
.settings-tab:active {
    background: transparent !important;
    outline: none;
    box-shadow: none !important;
}

.settings-tab svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Settings Content */
.settings-content {
    flex: 1;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: block;
}

/* Settings Sections */
.board-settings-layout .settings-section {
    display: block;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.settings-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 24px 0;
}

.settings-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--orange);
    background: rgba(0, 0, 0, 0.4);
}

.help-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

/* Share Code Display */
.share-code-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
}

.share-code-display code {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--orange);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid var(--orange);
    border-radius: 6px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(255, 152, 0, 0.2);
}

/* Stages List */
.stages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stage-input-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.stage-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.stage-input:focus {
    outline: none;
    border-color: var(--orange);
    background: rgba(0, 0, 0, 0.4);
}

.btn-remove-stage {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove-stage:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-add-stage {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
}

/* Danger Zone */
.danger-zone {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.danger-zone h2 {
    color: #ef4444;
}

.danger-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.danger-action-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
}

.danger-action-item p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 6px 0 0 0;
}

.btn-danger-outline {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #ef4444;
    border-radius: 8px;
    color: #ef4444;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-danger-outline:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn-danger {
    padding: 10px 20px;
    background: #ef4444;
    border: 1px solid #ef4444;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* Settings Actions */
.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--dark-border);
}

.btn-primary {
    padding: 12px 24px;
    background: var(--orange);
    border: 1px solid var(--orange);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .settings-header {
        padding: 16px 20px;
    }

    .settings-header h1 {
        font-size: 20px;
    }

    .back-button span {
        display: none;
    }

    .back-button {
        padding: 10px;
    }

    .header-spacer {
        display: none;
    }

    .settings-tabs {
        padding: 0 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
    }

    .settings-tab {
        padding: 14px 12px;
        white-space: nowrap;
        gap: 8px;
    }

    .settings-content {
        padding: 20px;
    }

    .settings-section {
        padding: 20px;
    }

    .danger-action-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .danger-action-item button {
        width: 100%;
    }

    .settings-actions {
        flex-direction: column;
    }

    .settings-actions .btn-primary,
    .settings-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Template Cards */
.template-card {
    transition: border-color 0.2s;
}

.template-card:hover {
    border-color: var(--orange) !important;
}

/* Admin Templates Page */
#templates-list {
    margin-top: 24px;
    padding: 0 48px;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.template-card-admin {
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    padding: 20px;
    background: var(--dark-card);
}

.template-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.template-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    opacity: 0.8;
    margin-top: 4px;
    display: inline-block;
}

.template-badge.system {
    background: var(--orange);
}

.template-badge.user {
    background: var(--blue);
}

.template-actions {
    display: flex;
    gap: 8px;
}

.template-btn {
    padding: 6px 12px;
    background: var(--dark-bg);
    border: 1px solid var(--dark-border);
    border-radius: 6px;
    color: var(--text-light);
    cursor: pointer;
    font-size: 13px;
}

.template-btn.delete {
    border-color: #e74c3c;
    color: #e74c3c;
}

.template-description {
    color: var(--text-dim);
    font-size: 13px;
    margin: 0 0 12px 0;
}

.template-segments {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    justify-content: flex-start;
    align-items: flex-start;
}

.template-segment-tag {
    font-size: 11px;
    padding: 4px 8px;
    background: var(--dark-bg);
    border-radius: 4px;
    color: var(--text-dim);
}

.template-usage {
    color: var(--text-dim);
    font-size: 12px;
    margin: 12px 0 0 0;
}

/* Template Selection Modal (Dashboard) - COMPLETELY NEW DESIGN */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.template-card-new {
    cursor: pointer;
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    border-radius: 8px;
    padding: 0;
    transition: all 0.2s ease;
    overflow: hidden;
}

.template-card-new:hover {
    border-color: var(--orange);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.template-card-inner {
    padding: 24px;
}

.template-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.template-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.template-lock-icon {
    flex-shrink: 0;
    margin-left: 12px;
}

.template-desc {
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.5;
    margin-bottom: 16px;
}

.template-stages {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--orange);
}

.template-stages span {
    white-space: nowrap;
}

.template-stages .separator {
    color: #666;
}

/* Admin template cards */
.template-card-new {
    display: flex;
    flex-direction: column;
}

.template-card-inner {
    flex: 1;
}

.template-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #3a3a3a;
    background: rgba(0, 0, 0, 0.2);
    margin-top: auto;
}

.template-badge {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 4px;
    margin-left: 12px;
    flex-shrink: 0;
}

.template-badge.system {
    background: var(--orange);
    color: white;
}

.template-badge.user {
    background: var(--blue);
    color: white;
}

.template-actions {
    display: flex;
    gap: 8px;
}

.template-btn {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #555;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    font-weight: 500;
}

.template-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #666;
}

.template-btn.delete {
    color: #ff4444;
    border-color: #ff4444;
}

.template-btn.delete:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: #ff5555;
}

.template-usage {
    font-size: 13px;
    color: #999;
}

#templates-list h3 {
    margin: 32px 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
}

/* Template Modal Styles */
#template-modal textarea {
    width: 100%;
    padding: 10px;
    background: var(--dark-bg);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    color: var(--text-light);
    font-family: inherit;
    resize: vertical;
}

#template-modal select {
    width: 100%;
    padding: 10px;
    background: var(--dark-bg);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    color: var(--text-light);
}

#template-modal input[type="checkbox"] {
    width: auto;
}

.template-checkbox-label {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* Delete Modal */
#delete-template-modal .modal-content {
    max-width: 400px;
}

#delete-template-modal p {
    color: var(--text-dim);
    margin: 16px 0;
}

.btn-danger {
    background: #e74c3c;
}

/* Modal widths */
#template-modal .modal-content {
    max-width: 600px;
}

#template-selection-modal .modal-content {
    max-width: 900px;
}

/* ========== Template Gallery Styles ========== */

/* Template Gallery Content Wrapper */
.template-gallery-content {
    padding: 48px;
}

/* Search and View Toggle Row */
.search-view-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.search-view-row .search-input-wrapper {
    flex: 1;
    max-width: 400px;
}

/* View Toggle */
.view-toggle-container {
    display: flex;
    gap: 12px;
}

.view-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-dim);
}

.view-toggle-icon.active {
    color: var(--orange);
}

.view-toggle-icon svg {
    display: block;
    stroke: currentColor;
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--dark-card);
    border: 2px solid var(--dark-border);
    border-radius: 8px;
    color: var(--text-light);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.category-btn.active {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}

.category-btn svg {
    flex-shrink: 0;
}

/* Templates Gallery Grid */
.templates-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Templates Gallery List View */
.templates-gallery-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.templates-gallery-grid.list-view .template-gallery-card {
    display: grid;
    grid-template-columns: 220px 100px 1fr 150px;
    align-items: start;
    min-height: auto;
    padding: 20px 24px;
    gap: 20px;
}

.templates-gallery-grid.list-view .template-card-header {
    padding: 0;
    margin: 0;
    grid-column: 1;
}

.templates-gallery-grid.list-view .template-card-header h3 {
    font-size: 16px;
    margin: 0;
}

.templates-gallery-grid.list-view .template-badge {
    padding: 0;
    margin: 0;
    grid-column: 2;
}

.templates-gallery-grid.list-view .template-description-with-stages {
    padding: 0;
    margin: 0;
    grid-column: 3;
}

.templates-gallery-grid.list-view .template-description {
    font-size: 14px;
    margin-bottom: 12px;
}

.templates-gallery-grid.list-view .template-footer {
    padding: 0;
    border-top: none;
    margin: 0;
    grid-column: 4;
}

.templates-gallery-grid.list-view .template-usage {
    font-size: 13px;
}

.templates-gallery-grid.list-view .template-lock-overlay {
    top: 50%;
    bottom: auto;
    right: 24px;
    transform: translateY(-50%);
}

.template-gallery-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.template-locked {
}

/* Team Members Grid (Default - Grid View) */
.team-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.team-member-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.team-member-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.team-member-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 24px;
    flex-shrink: 0;
}

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

.team-member-name {
    font-weight: 700;
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-member-email {
    font-size: 14px;
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-member-boards {
    margin-bottom: 20px;
}

.team-member-boards-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.team-member-boards-header span:first-child {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-member-boards-count {
    background: rgba(255, 107, 53, 0.2);
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
}

.team-member-boards-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.team-board-chip {
    font-size: 13px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    font-weight: 500;
}

.team-member-no-boards {
    text-align: center;
    padding: 12px 0;
    color: var(--text-dim);
    font-size: 13px;
    font-style: italic;
}

.team-remove-btn {
    width: 100%;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
}

/* Team Members List View */
#team-members-list.list-view .team-members-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#team-members-list.list-view .team-member-card {
    display: grid !important;
    grid-template-columns: 300px 1fr 60px 180px !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    padding: 16px 20px !important;
    gap: 20px !important;
    min-height: auto !important;
}

#team-members-list.list-view .team-member-header {
    margin: 0 !important;
    gap: 12px !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
}

#team-members-list.list-view .team-member-avatar {
    width: 48px !important;
    height: 48px !important;
    font-size: 18px !important;
}

#team-members-list.list-view .team-member-name {
    font-size: 15px !important;
    margin-bottom: 2px !important;
}

#team-members-list.list-view .team-member-email {
    font-size: 13px !important;
}

#team-members-list.list-view .team-member-boards {
    margin: 0 !important;
    grid-column: 2 / 4 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

#team-members-list.list-view .team-member-boards-header {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    order: 2 !important;
    flex-shrink: 0 !important;
}

#team-members-list.list-view .team-member-boards-header span:first-child {
    display: none !important;
}

#team-members-list.list-view .team-member-boards-list {
    gap: 6px !important;
    display: flex !important;
    align-items: center !important;
    order: 1 !important;
    flex: 1 !important;
}

#team-members-list.list-view .team-board-chip {
    font-size: 12px !important;
    padding: 4px 10px !important;
}

#team-members-list.list-view .team-remove-btn {
    width: auto !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    grid-column: 4 !important;
    grid-row: 1 !important;
}

/* Mobile: adjust list view for smaller screens but keep horizontal layout */
@media (max-width: 768px) {
    #team-members-list.list-view .team-member-card {
        grid-template-columns: 1fr 60px 120px !important;
        padding: 12px 16px !important;
        gap: 12px !important;
    }

    #team-members-list.list-view .team-member-header {
        gap: 8px !important;
    }

    #team-members-list.list-view .team-member-avatar {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }

    #team-members-list.list-view .team-member-name {
        font-size: 14px !important;
    }

    #team-members-list.list-view .team-member-email {
        font-size: 12px !important;
    }

    #team-members-list.list-view .team-member-boards {
        grid-column: 2 !important;
    }

    #team-members-list.list-view .team-member-boards-list {
        display: none !important;
    }

    #team-members-list.list-view .team-remove-btn {
        padding: 6px 12px !important;
        font-size: 12px !important;
        grid-column: 3 !important;
    }
}

.template-lock-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 107, 53, 0.15);
    border-radius: 6px;
    padding: 6px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-lock-overlay svg {
    display: block;
    stroke: var(--orange);
    width: 16px;
    height: 16px;
}

.template-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.template-card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
}

.template-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.template-badge.system {
    background: rgba(74, 144, 226, 0.2);
    color: #4a90e2;
}

.template-badge.public {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.template-badge.private {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
}

.template-description {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.template-description-with-stages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.template-description-with-stages .template-description {
    margin-bottom: 0;
}

.template-gallery-card .template-segments {
    margin-bottom: 12px;
    flex: 1;
    display: block;
}

.template-gallery-card .template-segments strong {
    display: block;
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 8px;
}

.template-gallery-card .template-stages-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
}

.template-stages-list .stage-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 107, 53, 0.15) !important;
    color: var(--orange) !important;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.2;
}

.template-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--dark-border);
    margin-top: 16px;
}

.template-usage {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 13px;
}

.template-usage svg {
    stroke: var(--text-light);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    color: var(--text-dim);
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* Template Preview Box */
.template-preview-box {
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 20px;
}

.template-preview-box h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 0 6px 0;
}

.template-preview-box p {
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 16px;
}

.template-preview-box .template-segments {
    margin-bottom: 0;
}

.template-preview-box .template-segments strong {
    font-size: 12px;
    margin-bottom: 6px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .template-gallery-content {
        padding: 24px;
    }

    .templates-gallery-grid {
        grid-template-columns: 1fr;
    }

    .category-filter {
        gap: 8px;
    }

    .category-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .category-btn span {
        display: none;
    }

    .category-btn.active span {
        display: inline;
    }
}

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

/* Landing Page Body */
.landing-page {
    background: var(--dark-bg);
    color: var(--text-light);
    min-height: 100vh;
}

/* Landing Header */
.landing-header {
    background: var(--dark-card);
    border-bottom: 1px solid var(--dark-border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.landing-header-container {
    max-width: 1400px;
    width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

/* Hamburger Menu (Hidden on Desktop) */
.landing-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
}

/* Auth buttons inside nav (hidden on desktop, shown in mobile menu) */
.landing-nav-auth {
    display: none;
}

/* Logo and Brand */
.landing-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-brand a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

/* NO HOVER EFFECTS - 2025 Design Rule */
.landing-brand a:hover,
.landing-brand a:focus {
    opacity: 1;
    text-decoration: none;
}

.landing-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.landing-brand-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
}

/* Navigation */
.landing-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.landing-nav-item {
    position: relative;
    text-decoration: none;
    color: var(--text-light);
    cursor: pointer;
}

.landing-nav-link {
    font-size: 15px;
    color: var(--text-dim);
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px 0;
}

/* NO HOVER EFFECTS - 2025 Design Rule */
.landing-nav-link:hover,
.landing-nav-link:focus {
    color: var(--text-dim) !important;
    background: none !important;
    outline: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.landing-nav-item.dropdown .landing-nav-link {
    padding-right: 18px;
    position: relative;
}

.landing-nav-item.dropdown .landing-nav-link::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--text-dim);
}

.landing-nav-item.dropdown.active .landing-nav-link::after {
    border-top: none;
    border-bottom: 4px solid var(--orange);
}

/* Dropdown Menu */
.landing-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    display: none;
}

.landing-nav-item.dropdown.active .landing-dropdown-menu {
    display: block;
}

.landing-dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid var(--dark-border);
}

/* NO HOVER EFFECTS - 2025 Design Rule */
.landing-dropdown-item:hover,
.landing-dropdown-item:focus {
    color: var(--text-light) !important;
    background: none !important;
    text-decoration: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.landing-dropdown-item:last-child {
    border-bottom: none;
}

.landing-dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.landing-dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* Auth Buttons */
.landing-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-btn {
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

/* NO HOVER EFFECTS - 2025 Design Rule */
.landing-btn:hover,
.landing-btn:focus {
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
}

.landing-btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--dark-border);
}

.landing-btn-secondary:hover,
.landing-btn-secondary:focus {
    background: transparent !important;
    color: var(--text-light) !important;
    border-color: var(--dark-border) !important;
    transform: none !important;
}

.landing-btn-primary {
    background: var(--orange);
    color: white;
}

.landing-btn-primary:hover,
.landing-btn-primary:focus {
    background: var(--orange) !important;
    color: white !important;
    transform: none !important;
}

/* Main Content */
.landing-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    overflow: visible;
}

/* Page Header (for landing pages without gradient - simple style) */
.page-header {
    margin-bottom: 48px;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--text-light);
}

.page-subtitle {
    font-size: 20px;
    color: var(--text-dim);
}

/* Page Body */
.page-body {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
}

/* ========================================
   HERO SECTION (INDEX PAGE)
   ======================================== */

/* Hero section breaks out of landing-main container */
.hero-section {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    margin-top: 0;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Left Side: Content */
.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-light);
    font-weight: 700;
}

.hero-title-highlight {
    background: var(--orange);
    padding: 0 8px;
    display: inline-block;
    color: white;
    border-radius: 12px;
}

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-dim);
    margin-bottom: 32px;
}

.hero-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--orange);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

/* NO HOVER EFFECTS - 2025 Design Rule */
.hero-cta-button:hover,
.hero-cta-button:focus {
    background: var(--orange) !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
}

.hero-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-dim);
}

.hero-trust {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--dark-border);
}

.hero-trust-text {
    font-size: 15px;
    color: var(--text-dim);
}

.hero-trust-text strong {
    color: var(--text-light);
    font-weight: 600;
}

/* Right Side: Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .landing-header-container {
        padding: 0 24px;
        gap: 24px;
    }

    .landing-main {
        padding: 32px 24px;
    }

    /* Hero Section Mobile */
    .hero-section {
        padding: 60px 24px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-description {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    /* Hide desktop auth buttons */
    .landing-auth {
        display: none;
    }

    /* Show hamburger button on the right */
    .landing-hamburger {
        display: block;
        margin-left: auto;
    }

    /* Mobile navigation */
    .landing-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--dark-card);
        display: none;
        flex-direction: column;
        padding: 24px 16px;
        overflow-y: auto;
        z-index: 999;
        gap: 24px;
    }

    .landing-nav.active {
        display: flex;
    }

    .landing-nav-item {
        width: 100%;
        border-bottom: 1px solid var(--dark-border);
    }

    .landing-nav-item .landing-nav-link {
        display: block;
        padding: 16px 0;
        font-size: 16px;
    }

    .landing-dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: transparent;
        padding-left: 16px;
    }

    .landing-nav-item.dropdown.active .landing-dropdown-menu {
        display: block;
    }

    .landing-dropdown-item {
        padding: 12px 0;
        font-size: 15px;
    }

    /* Show auth buttons inside mobile menu */
    .landing-nav-auth {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    .landing-nav-auth .landing-btn {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        padding: 16px 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: var(--text-light) !important;
        font-size: 16px !important;
        font-weight: 400 !important;
        border: none !important;
        margin: 0 !important;
    }

    .landing-nav-auth .landing-btn-secondary {
        background: transparent !important;
        color: var(--text-light) !important;
        border-bottom: 1px solid var(--dark-border) !important;
    }

    .landing-nav-auth .landing-btn-primary {
        background: transparent !important;
        color: var(--orange) !important;
        border-bottom: 1px solid var(--dark-border) !important;
        margin-top: 24px !important;
    }

    .landing-header-container {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
    }

    .landing-brand-name {
        font-size: 16px;
    }

    .landing-logo {
        width: 28px;
        height: 28px;
    }

    .landing-main {
        padding: 24px 16px;
    }

    .page-body {
        font-size: 15px;
    }

    .landing-auth {
        gap: 8px;
    }

    .landing-btn {
        padding: 8px 14px;
        font-size: 14px;
    }

    /* Hero Section Small Mobile */
    .hero-section {
        position: static;
        left: auto;
        right: auto;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        padding: 0;
    }

    .hero-container {
        max-width: 100%;
        width: 100%;
        padding: 40px 16px;
        gap: 40px;
        display: flex;
        flex-direction: column;
    }

    .hero-content {
        max-width: 100%;
        width: 100%;
    }

    .hero-image {
        width: 100%;
        max-width: 100%;
    }

    .hero-image-placeholder {
        width: 100%;
        max-width: 100%;
    }

    .hero-image-placeholder svg {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-cta-button {
        width: 100%;
        justify-content: center;
        font-size: 16px;
        padding: 14px 24px;
    }

    .hero-trust {
        margin-top: 32px;
        padding-top: 24px;
    }

    /* Hide skeleton animation on mobile */
    .skeleton-container {
        display: none !important;
    }

    /* Hero landing container mobile styles */
    .hero-landing-container {
        padding: 40px 16px 60px !important;
    }

    /* Image wrapper mobile styles */
    .hero-image-wrapper {
        padding-bottom: 40px !important;
    }
}

/* ========================================
   COUNTDOWN SECTION
   ======================================== */

.countdown-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 48px 0;
    text-align: center;
}

.countdown-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 48px;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.countdown-item {
    background: var(--dark-card);
    border-radius: 12px;
    padding: 24px 16px;
    border: 1px solid rgba(255, 107, 53, 0.15);
    min-width: 0;
}

.countdown-value {
    font-size: 44px;
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

@media (max-width: 1024px) {
    .countdown-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .countdown-item:nth-child(4),
    .countdown-item:nth-child(5) {
        grid-column: span 1;
    }

    .countdown-item:nth-child(4) {
        grid-column: 1 / 2;
    }

    .countdown-item:nth-child(5) {
        grid-column: 3 / 4;
    }
}

@media (max-width: 768px) {
    .countdown-section {
        padding: 40px 24px 60px;
    }

    .countdown-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .countdown-item {
        padding: 24px 16px;
    }

    .countdown-item:nth-child(4),
    .countdown-item:nth-child(5) {
        grid-column: auto;
    }

    .countdown-item:nth-child(5) {
        grid-column: 1 / -1;
    }

    .countdown-value {
        font-size: 36px;
    }

    .countdown-label {
        font-size: 12px;
    }
}

/* ========================================
   PRICING PAGE STYLES
   ======================================== */

.pricing-section {
    padding: 0px 48px;
}

.pricing-container {
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-header {
    margin-bottom: 64px;
    padding: 32px;
    border-radius: 16px;
    background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--orange) 60%, transparent),
    #1a1a1aE6  /* ~90% opacity using hex alpha */
    );
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.pricing-header h1 {
    font-size: 48px;
    margin: 0;
    color: var(--text-light);
    text-align: left;
}

.pricing-subtitle {
    font-size: 20px;
    color: var(--white-70);
    margin: 0;
    text-align: right;
}

/* Billing Period Toggle */
.billing-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.billing-toggle {
    display: inline-flex;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.billing-toggle-btn {
    padding: 12px 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-dim);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    min-width: 120px;
}

.billing-toggle-btn.active {
    background: var(--orange);
    color: white;
}

/* NO HOVER EFFECTS - 2025 Design Rule */
.billing-toggle-btn:hover,
.billing-toggle-btn:focus {
    background: transparent !important;
    color: var(--text-dim) !important;
    transform: none !important;
    box-shadow: none !important;
}

.billing-toggle-btn.active:hover,
.billing-toggle-btn.active:focus {
    background: var(--orange) !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card-popular {
    border-color: var(--orange);
    box-shadow: 0 0 0 2px var(--orange);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--orange);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.pricing-card-header {
    text-align: center;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--dark-border);
}

.pricing-card-header h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-light);
}

.pricing-price {
    margin-bottom: 12px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-light);
}

.price-period {
    font-size: 18px;
    color: var(--text-dim);
}

.pricing-description {
    font-size: 15px;
    color: var(--text-dim);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 32px 0;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-light);
    font-size: 15px;
}

.pricing-features li svg {
    stroke: var(--orange);
    flex-shrink: 0;
}

.pricing-button {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.pricing-button-primary {
    background: var(--orange);
    color: white;
}

.pricing-button-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--dark-border);
}

/* NO HOVER EFFECTS - 2025 Design Rule */
.pricing-button:hover,
.pricing-button:focus {
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
}

.pricing-button-primary:hover,
.pricing-button-primary:focus {
    background: var(--orange) !important;
    color: white !important;
}

.pricing-button-secondary:hover,
.pricing-button-secondary:focus {
    background: transparent !important;
    color: var(--text-light) !important;
    border-color: var(--dark-border) !important;
}

/* Pricing Page Mobile Responsive */
@media (max-width: 1024px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pricing-section {
        padding: 60px 24px;
    }

    .pricing-header h1 {
        font-size: 36px;
    }

    .pricing-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 40px 16px;
    }

    .pricing-header {
        margin-bottom: 48px;
        padding: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pricing-header h1 {
        font-size: 32px;
        text-align: left;
    }

    .pricing-subtitle {
        font-size: 16px;
        text-align: left;
    }

    .pricing-card {
        padding: 24px;
    }

    .price-amount {
        font-size: 40px;
    }
}

/* ==================== Landing Page Header with Gradient (Reusable) ==================== */
.landing-page-header {
    margin-bottom: 64px;
    padding: 32px;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--orange) 60%, transparent),
        #1a1a1aE6
    );
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.landing-page-header h1 {
    font-size: 48px;
    margin: 0;
    color: var(--text-light);
    text-align: left;
}

.landing-page-subtitle {
    font-size: 20px;
    color: var(--white-70);
    margin: 0;
    text-align: right;
}

/* Centered Hero Variant for Templates/Use Case Pages */
.landing-hero-centered {
    text-align: center;
    padding: 80px 24px 60px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    border-radius: 16px;
    margin-bottom: 48px;
}

.landing-hero-centered h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.2;
}

.landing-hero-centered .subtitle {
    font-size: 22px;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Mobile responsive - Stack subtitle under h1 */
@media (max-width: 1024px) {
    .landing-page-header h1 {
        font-size: 36px;
    }

    .landing-page-subtitle {
        font-size: 18px;
    }

    .landing-hero-centered h1 {
        font-size: 36px;
    }

    .landing-hero-centered .subtitle {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .landing-page-header {
        margin-bottom: 48px;
        padding: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .landing-page-header h1 {
        font-size: 32px;
        text-align: left;
    }

    .landing-page-subtitle {
        font-size: 16px;
        text-align: left;
    }

    .landing-hero-centered {
        padding: 60px 20px;
        margin-bottom: 32px;
    }

    .landing-hero-centered h1 {
        font-size: 32px;
    }

    .landing-hero-centered .subtitle {
        font-size: 16px;
    }
}

/* ==================== Features Page Styles (Modern 2025 SaaS) ==================== */

/* Stats Bar */
.features-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 48px 0 80px;
    padding: 32px;
    background: var(--dark-card);
    border-radius: 12px;
    border: 1px solid var(--dark-border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-dim);
}

/* Section Titles */
.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-dim);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

/* Features Grid */
.features-grid-section {
    margin: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 32px;
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card-icon svg {
    stroke: var(--orange);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dim);
}

/* Feature Spotlight */
.feature-spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin: 80px 0;
    padding: 64px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.03) 0%, rgba(0, 0, 0, 0) 100%);
    border-radius: 16px;
}

.spotlight-badge {
    display: inline-block;
    background: rgba(255, 107, 53, 0.15);
    color: var(--orange);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.spotlight-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
}

.spotlight-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.spotlight-benefits {
    list-style: none;
    padding: 0;
    margin: 24px 0 0 0;
}

.spotlight-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-light);
}

.spotlight-benefits li svg {
    stroke: var(--orange);
    flex-shrink: 0;
}

.spotlight-image {
    height: 500px;
}

.feature-image-placeholder {
    background: var(--dark-card);
    border: 2px dashed var(--dark-border);
    border-radius: 12px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 16px;
}

/* Platform Section */
.platform-section {
    margin: 80px 0;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.platform-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
}

.platform-card svg {
    stroke: var(--orange);
    margin-bottom: 20px;
}

.platform-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 12px;
}

.platform-card p {
    font-size: 15px;
    color: var(--text-dim);
}

/* Comparison Table */
.comparison-section {
    margin: 80px 0;
}

.comparison-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 48px;
}

.comparison-table {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    min-width: 600px;
}

.comparison-header,
.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid var(--dark-border);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-header {
    background: rgba(255, 107, 53, 0.05);
}

.comparison-cell {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 15px;
    color: var(--text-light);
}

.comparison-cell:first-child {
    justify-content: flex-start;
    text-align: left;
    font-weight: 500;
}

.comparison-header .comparison-cell {
    font-weight: 600;
    color: var(--text-light);
}

/* Mobile Comparison Cards */
.comparison-mobile {
    display: none;
}

.comparison-mobile-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.comparison-mobile-card:last-child {
    margin-bottom: 0;
}

.comparison-mobile-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: center;
}

.comparison-mobile-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--dark-border);
}

.comparison-mobile-item:last-child {
    border-bottom: none;
}

.comparison-mobile-item span {
    font-size: 14px;
    color: var(--text-light);
}

.comparison-mobile-item strong {
    font-size: 14px;
    color: var(--orange);
    font-weight: 600;
}

.comparison-mobile-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.comparison-mobile-item svg.check {
    color: var(--orange);
}

.comparison-mobile-item svg.cross {
    color: var(--text-dim);
}

/* Tier Cards */
.tier-section {
    margin: 80px 0;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.tier-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 40px 32px;
    position: relative;
    text-align: center;
}

.tier-card-popular {
    border: 2px solid var(--orange);
}

.tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--orange);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.tier-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 16px;
}

.tier-card-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--dark-border);
    margin-bottom: 24px;
}

.tier-card-header h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.tier-price {
    margin-bottom: 12px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--orange);
}

.price-period {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-dim);
}

.tier-description {
    font-size: 15px;
    color: var(--text-dim);
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    text-align: center;
}

.tier-features li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--dark-border);
    font-size: 15px;
    color: var(--text-light);
}

.tier-features li:last-child {
    border-bottom: none;
}

.tier-features li svg {
    flex-shrink: 0;
    color: var(--orange);
}

.tier-cta {
    display: block;
    width: 100%;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}

.tier-cta-primary {
    background: var(--orange);
    color: white;
}

.tier-cta-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--dark-border);
}

/* Final CTA */
.final-cta-section {
    text-align: center;
    padding: 80px 32px;
    margin: 80px 0 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(0, 0, 0, 0) 100%);
    border-radius: 16px;
}

.final-cta-section h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 16px;
}

.final-cta-section p {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 32px;
}

.landing-btn-lg {
    padding: 14px 32px;
    font-size: 18px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .landing-main {
        padding: 32px 24px;
    }

    .comparison-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .comparison-table {
        min-width: 700px;
    }

    .features-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 24px;
        margin: 32px 0 60px;
    }

    .stat-number {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .feature-card {
        padding: 24px;
    }

    .features-grid-section {
        margin: 60px 0;
    }

    .feature-spotlight {
        grid-template-columns: 1fr;
        padding: 48px 24px;
        gap: 32px;
        margin: 60px 0;
    }

    .spotlight-content h2 {
        font-size: 32px;
    }

    .spotlight-image {
        height: 350px;
    }

    .platform-section {
        margin: 60px 0;
    }

    .platform-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .platform-card {
        padding: 32px 20px;
    }

    .comparison-section {
        margin: 60px 0;
    }

    .comparison-table {
        font-size: 14px;
        overflow-x: auto;
    }

    .comparison-cell {
        padding: 16px 12px;
        font-size: 14px;
    }

    .tier-section {
        margin: 60px 0;
    }

    .tier-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tier-card {
        padding: 32px 24px;
    }

    .final-cta-section {
        padding: 60px 24px;
        margin: 60px 0 0;
    }

    .final-cta-section h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    /* Override landing container padding */
    .landing-main {
        padding: 24px 16px;
    }

    .landing-container {
        max-width: 100%;
        padding: 0;
    }

    /* Stats Bar */
    .features-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 20px 16px;
        margin: 24px 0 48px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* Section Titles */
    .section-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 15px;
        margin-bottom: 32px;
        padding: 0 16px;
    }

    /* Features Grid */
    .features-grid-section {
        margin: 48px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-card-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 16px;
    }

    .feature-card-icon svg {
        width: 20px;
        height: 20px;
    }

    .feature-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .feature-card p {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Feature Spotlight */
    .feature-spotlight {
        grid-template-columns: 1fr;
        padding: 32px 16px;
        gap: 24px;
        margin: 48px 0;
    }

    .spotlight-badge {
        font-size: 12px;
        padding: 4px 10px;
        margin-bottom: 16px;
    }

    .spotlight-content h2 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .spotlight-content p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    .spotlight-benefits {
        margin-top: 20px;
    }

    .spotlight-benefits li {
        padding: 8px 0;
        font-size: 14px;
        gap: 10px;
    }

    .spotlight-benefits li svg {
        width: 18px;
        height: 18px;
    }

    .spotlight-image {
        height: 250px;
    }

    .feature-image-placeholder {
        height: 250px;
        font-size: 14px;
        padding: 16px;
        text-align: center;
    }

    /* Platform Section */
    .platform-section {
        margin: 48px 0;
    }

    .platform-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .platform-card {
        padding: 24px 16px;
    }

    .platform-card svg {
        width: 28px;
        height: 28px;
        margin-bottom: 16px;
    }

    .platform-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .platform-card p {
        font-size: 14px;
    }

    /* Comparison Table - Hide on mobile */
    .comparison-section {
        margin: 48px 0;
    }

    .comparison-section .section-subtitle {
        margin-bottom: 20px;
    }

    .comparison-desktop {
        display: none;
    }

    .comparison-mobile {
        display: block;
    }

    /* Tier Cards */
    .tier-section {
        margin: 48px 0;
    }

    .tier-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tier-card {
        padding: 28px 20px;
    }

    .tier-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .tier-price {
        font-size: 36px;
        margin-bottom: 24px;
    }

    .tier-price span {
        font-size: 36px;
    }

    .tier-features {
        margin-bottom: 24px;
    }

    .tier-features li {
        padding: 10px 0;
        font-size: 14px;
    }

    .tier-cta {
        padding: 10px 20px;
        font-size: 15px;
    }

    /* Final CTA */
    .final-cta-section {
        padding: 48px 16px;
        margin: 48px 0 0;
    }

    .final-cta-section h2 {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .final-cta-section p {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .landing-btn-lg {
        padding: 12px 28px;
        font-size: 15px;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .landing-main {
        padding: 20px 12px;
    }

    .features-stats {
        gap: 10px;
        padding: 16px 12px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 11px;
    }

    .section-title {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .feature-card {
        padding: 16px;
    }

    .feature-spotlight {
        padding: 24px 12px;
    }

    .spotlight-content h2 {
        font-size: 22px;
    }

    .spotlight-image {
        height: 200px;
    }

    .platform-card {
        padding: 20px 12px;
    }

    .comparison-table-wrapper {
        display: none;
    }

    .tier-card {
        padding: 24px 16px;
    }

    .tier-price {
        font-size: 32px;
    }

    .final-cta-section h2 {
        font-size: 24px;
    }

    .final-cta-section p {
        font-size: 14px;
    }
}

/* ============================================
   Homepage New Sections
   ============================================ */

/* Feature Section (Left/Right alternating) */
.feature-section {
    padding: 80px 0;
    background: var(--dark-bg);
}

.feature-section:nth-child(even) {
    background: rgba(255, 107, 53, 0.02);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-section-left .feature-row {
    grid-template-columns: 1fr 1fr;
}

.feature-section-right .feature-row {
    grid-template-columns: 1fr 1fr;
}

.feature-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.feature-description {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 28px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-light);
}

.feature-list li svg {
    flex-shrink: 0;
}

.feature-image-placeholder {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--dark-card);
    border-radius: 12px;
    overflow: hidden;
}

.feature-image-placeholder svg {
    width: 100%;
    height: auto;
}

.feature-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--orange);
    color: var(--dark-bg);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    margin-top: 24px;
    cursor: pointer;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: var(--dark-bg);
}

.section-title {
    font-size: 38px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--dark-card);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.testimonial-role {
    font-size: 13px;
    color: var(--text-dim);
}

/* Get Started Section */
.get-started-section {
    padding: 80px 0;
    background: rgba(255, 107, 53, 0.02);
}

.get-started-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step-card {
    text-align: center;
}

.step-image-placeholder {
    margin-bottom: 28px;
    background: var(--dark-card);
    border-radius: 12px;
    overflow: hidden;
}

.step-image-placeholder svg {
    width: 100%;
    height: auto;
    display: block;
}

.step-content {
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--orange);
    color: var(--dark-bg);
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 16px;
}

.step-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.step-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dim);
}

/* Use Cases Section */
.use-cases-section {
    padding: 80px 0;
    background: var(--dark-bg);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.use-case-card {
    background: var(--dark-card);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.use-case-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.use-case-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.use-case-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dim);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: rgba(255, 107, 53, 0.02);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--dark-card);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: var(--dark-card);
    border: none;
    color: var(--text-light);
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.faq-question span {
    flex: 1;
}

.faq-question svg {
    flex-shrink: 0;
    margin-left: 16px;
    transition: none;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 28px;
    max-height: 0;
    overflow: hidden;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 4px 28px 28px 28px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--dark-bg);
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 60px 48px;
    border-radius: 16px;
    border: 2px solid var(--dark-border);
}

.cta-box h2 {
    font-size: 38px;
    margin-bottom: 16px;
    color: var(--text-light);
}

.cta-box > p {
    font-size: 18px;
    color: var(--text-dim);
    margin-bottom: 32px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--orange);
    color: var(--dark-bg);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 17px;
    cursor: pointer;
}

.cta-note {
    font-size: 14px;
    color: var(--text-dim);
    margin-top: 16px;
}

/* Footer */
.landing-footer {
    background: var(--dark-card);
    padding: 60px 0 32px 0;
    margin-top: 0;
    border-top: 1px solid var(--dark-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo {
    width: 32px;
    height: 32px;
}

.footer-brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dim);
}

.footer-links-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: var(--text-dim);
    text-decoration: none;
    margin-bottom: 10px;
    cursor: pointer;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--dark-border);
}

.footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 0;
    font-size: 13px;
}

.footer-legal-links a {
    color: var(--text-dim);
    text-decoration: none;
    cursor: pointer;
}

.footer-separator {
    color: var(--dark-border);
    margin: 0 12px;
}

.footer-made-in {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-card);
    border-top: 1px solid var(--dark-border);
    padding: 20px 24px;
    display: none;
    z-index: 10000;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.3);
}

.cookie-consent-banner.show {
    display: block;
    animation: slideUpBanner 0.4s ease-out;
}

@keyframes slideUpBanner {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-consent-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.cookie-consent-text a {
    color: var(--orange);
    text-decoration: none;
}

.cookie-consent-text a:hover {
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cookie-consent-actions .btn-primary,
.cookie-consent-actions .btn-secondary {
    white-space: nowrap;
    margin: 0;
}

@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 16px;
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cookie-consent-text {
        font-size: 13px;
    }

    .cookie-consent-actions {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-consent-actions .btn-primary,
    .cookie-consent-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

.flag-no {
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* ============================================
   Responsive - Homepage New Sections
   ============================================ */

@media (max-width: 1024px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-section-left .feature-row,
    .feature-section-right .feature-row {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .get-started-steps {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links-section {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .feature-section {
        padding: 60px 0;
    }

    .feature-content h2 {
        font-size: 28px;
    }

    .feature-description {
        font-size: 15px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .testimonials-section,
    .get-started-section,
    .use-cases-section,
    .faq-section,
    .cta-section {
        padding: 60px 0;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .cta-box h2 {
        font-size: 28px;
    }

    .cta-box > p {
        font-size: 16px;
    }

    .footer-content {
        padding: 0 16px;
        margin-bottom: 32px;
    }

    .footer-brand {
        max-width: 100%;
        margin-bottom: 16px;
    }

    .footer-description {
        font-size: 13px;
        line-height: 1.5;
    }

    .footer-links-section {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0;
    }

    .footer-column {
        margin-bottom: 0;
    }

    .footer-column h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .footer-column a {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .footer-bottom {
        padding: 24px 16px 0 16px;
    }

    .footer-legal-links {
        flex-direction: column;
        gap: 12px;
        text-align: left;
        align-items: flex-start;
        font-size: 13px;
    }

    .footer-legal-links a {
        text-align: left;
    }

    .footer-separator {
        display: none;
    }

    .footer-made-in {
        margin-top: 4px;
    }
}

@media (max-width: 480px) {
    .feature-content h2 {
        font-size: 24px;
    }

    .section-title {
        font-size: 24px;
    }

    .feature-list li {
        font-size: 14px;
    }

    .testimonial-card {
        padding: 24px;
    }

    .testimonial-quote {
        font-size: 15px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .step-content h3 {
        font-size: 18px;
    }

    .use-case-card {
        padding: 24px;
    }

    .use-case-card h3 {
        font-size: 18px;
    }

    .faq-question {
        padding: 20px;
        font-size: 15px;
    }

    .faq-answer {
        padding: 0 20px;
        font-size: 14px;
    }

    .faq-item.active .faq-answer {
        padding: 4px 20px 24px 20px;
    }

    .cta-box h2 {
        font-size: 24px;
    }

    .cta-button {
        padding: 14px 24px;
        font-size: 15px;
    }

    .landing-footer {
        padding: 40px 0 24px 0;
    }
}

/* ============================================
   Legal Pages
   ============================================ */

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0px 24px 40px;
    color: var(--text-light);
    line-height: 1.8;
}

.legal-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-dim);
}

.legal-content a {
    color: var(--orange);
    text-decoration: none;
    cursor: pointer;
}

.legal-content h2 {
    font-size: 28px;
    margin-top: 48px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.legal-content h3 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-light);
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 20px;
    padding-left: 32px;
}

.legal-content li {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text-dim);
}

@media (max-width: 768px) {
    .legal-content {
        padding: 0px 16px 32px;
    }

    .legal-content h2 {
        font-size: 24px;
    }

    .legal-content h3 {
        font-size: 20px;
    }

    .legal-content p,
    .legal-content li {
        font-size: 15px;
    }
}

/* ============================================
   Contact Form
   ============================================ */

.contact-form-section {
    padding: 60px 0;
}

.contact-form-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-card,
.contact-info-card {
    background: var(--dark-card);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-group label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    background: var(--dark-bg);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 15px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.char-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 12px;
    color: var(--text-dim);
    background: var(--dark-bg);
    padding: 2px 6px;
    border-radius: 4px;
}

.contact-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.contact-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-icon {
    flex-shrink: 0;
}

/* Success/Error Messages */
.contact-message {
    text-align: center;
    padding: 48px 32px;
}

.contact-message svg {
    margin-bottom: 24px;
}

.contact-message h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-light);
}

.contact-message p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dim);
    margin-bottom: 28px;
}

.contact-send-another,
.contact-try-again {
    padding: 12px 28px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* Contact Info Card */
.contact-info-card h3 {
    font-size: 20px;
    margin-bottom: 28px;
    color: var(--text-light);
}

.contact-info-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--dark-border);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info-item strong {
    display: block;
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-info-item p {
    font-size: 14px;
    color: var(--text-dim);
    margin: 0;
}

.contact-info-item a {
    color: var(--orange);
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .contact-form-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .contact-form-section {
        padding: 40px 0;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 28px 20px;
    }

    .contact-message {
        padding: 32px 20px;
    }

    .contact-message h3 {
        font-size: 20px;
    }

    .contact-message svg {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   Admin Contact Messages
   ============================================ */

.admin-contact-section {
    padding: 32px 48px 48px;
}

.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background: var(--dark-card);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-dim);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--orange);
}

.messages-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.loading-messages,
.no-messages,
.error-messages {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
}

.message-card {
    background: var(--dark-card);
    padding: 24px;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
}

.message-card.message-unread {
    border-color: var(--orange);
}

.message-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.message-from {
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-from strong {
    font-size: 16px;
    color: var(--text-light);
}

.unread-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--orange);
    color: var(--dark-bg);
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
}

.message-date {
    font-size: 13px;
    color: var(--text-dim);
}

.message-card-subject {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
}

.message-card-preview {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.message-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message-email {
    font-size: 13px;
    color: var(--text-dim);
}

/* Message Detail Modal */
.message-modal-content {
    max-width: 900px;
    width: 90%;
}

.message-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.message-detail-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    display: block;
    margin-bottom: 6px;
}

.message-field p {
    font-size: 15px;
    color: var(--text-light);
    margin: 0;
}

.message-field a {
    color: var(--orange);
    text-decoration: none;
}

.message-content-box {
    background: var(--dark-bg);
    padding: 20px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
}

/* AI Suggestions */
.ai-suggest-btn {
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    display: none;
    align-items: center;
    justify-content: center;
}

.ai-suggest-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ai-suggestions-container {
    background: var(--dark-card);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
}

.ai-suggestions-title {
    color: var(--orange);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ai-suggestion-item {
    background: var(--dark-bg);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 6px;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
}

.ai-suggestion-item:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .ai-suggest-btn {
        width: 100%;
        margin-top: 12px;
    }

    .ai-suggestions-container {
        margin-top: 12px;
    }

    .ai-suggestion-item {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .admin-contact-section {
        padding: 24px;
    }

    .admin-stats-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .message-card {
        padding: 20px 16px;
    }

    .message-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ============================================================================
   AI Clustering Styles
   ============================================================================ */

/* Segment Header with Cluster Button */
.segment-header {
    margin-bottom: 8px;
}

.segment-header h3 {
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--orange);
}

.segment-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    margin-top: 8px;
}

.cluster-btn,
.order-by-btn {
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.cluster-btn:disabled,
.order-by-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cluster-clear-btn {
    background: transparent;
    color: white;
    border: 1px solid var(--orange);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

/* Mobile responsive for cluster buttons */
@media (max-width: 768px) {
    .cluster-btn,
    .order-by-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .cluster-clear-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .segment-actions {
        gap: 6px;
    }
}

.cluster-labels-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cluster-labels-wrapper:not(:empty) {
    margin-bottom: 12px;
}

.cluster-label {
    background: rgba(255, 107, 53, 0.15);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 4px;
    border-left: 5px solid var(--orange);
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    width: auto;
    flex-shrink: 0;
}

/* Timer Styles */
.timer-panel {
    padding: 16px;
    border-top: 1px solid var(--dark-border);
    background: var(--dark-bg);
}

.timer-display {
    text-align: center;
    margin-bottom: 16px;
}

.timer-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.timer-status-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--orange);
}

.timer-status-circle.running {
    background: var(--orange);
}

.timer-time {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-light);
    font-family: 'Courier New', monospace;
    line-height: 1;
}

.timer-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timer-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.timer-input-group input {
    flex: 1;
    padding: 8px 12px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 14px;
    text-align: center;
}

.timer-input-group input:focus {
    outline: none;
    border-color: var(--orange);
}

.timer-input-group label {
    font-size: 11px;
    color: var(--text-dim);
    text-align: center;
    display: block;
    margin-top: 4px;
}

.timer-btn-group {
    display: flex;
    gap: 8px;
}

.timer-btn {
    flex: 1;
    padding: 8px 16px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.timer-btn:hover {
    border-color: var(--orange);
}

.timer-btn.primary {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}

.timer-btn.danger {
    background: #ff4444;
    color: white;
    border-color: #ff4444;
}

.timer-btn.danger:hover {
    border-color: #ff6666;
}

.timer-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Timer */
.timer-panel-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.timer-panel-mobile .timer-status-circle {
    width: 10px;
    height: 10px;
}

.timer-panel-mobile .timer-time {
    font-size: 18px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .timer-panel-mobile {
        position: relative;
        left: auto;
        transform: none;
    }
}
