.owner-body {
    min-height: 100vh;
    background: var(--dark-bg);
}

.owner-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.owner-login-card {
    width: 100%;
    max-width: 400px;
    background: var(--dark-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
}

.owner-login-card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.owner-login-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.owner-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0;
}

.owner-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.owner-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
}

.owner-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.owner-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px 4rem;
}

.owner-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0;
}

.owner-tab {
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    color: var(--text-gray);
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}

.owner-tab:hover {
    color: var(--text-light);
}

.owner-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.owner-panel {
    display: none;
}

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

.owner-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.owner-panel-header h2 {
    font-size: 1.35rem;
    font-weight: 600;
}

.inquiries-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.inquiries-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.inquiries-table th,
.inquiries-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.inquiries-table th {
    background: var(--dark-secondary);
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.inquiry-type {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.inquiry-type.quote {
    background: rgba(0, 180, 216, 0.2);
    color: var(--accent);
}

.inquiry-type.contact,
.inquiry-type.inquiry {
    background: rgba(0, 119, 182, 0.2);
    color: #48cae4;
}

.inquiry-status {
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: var(--dark-bg);
    color: var(--text-light);
    cursor: pointer;
}

.inquiry-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    padding: 0.4rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: rgba(255, 80, 80, 0.15);
    color: #ff6b6b;
    border-color: rgba(255, 80, 80, 0.3);
}

.btn-icon.clear-inquiry:hover {
    background: rgba(0, 180, 216, 0.15);
    color: var(--accent);
    border-color: rgba(0, 180, 216, 0.35);
}

.btn-icon.restore-inquiry:hover {
    background: rgba(72, 202, 228, 0.15);
    color: #48cae4;
    border-color: rgba(72, 202, 228, 0.35);
}

.inquiry-section {
    margin-bottom: 2.5rem;
}

.inquiry-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.inquiry-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    padding: 0.1rem 0.45rem;
    margin-left: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(0, 180, 216, 0.15);
    color: var(--accent);
    border-radius: 999px;
}

.inquiry-section-cleared .inquiry-count {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-gray);
}

.inquiry-section-empty {
    padding: 1.5rem;
    font-size: 0.9rem;
}

.inquiry-cleared-label {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-gray);
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.image-card {
    background: var(--dark-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.image-card-preview {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #111;
}

.image-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-card-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-sections-panel {
    background: var(--dark-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.gallery-sections-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.gallery-sections-header p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 0.85rem;
}

.category-chip-label {
    color: var(--text-light);
}

.category-chip-count {
    font-size: 0.75rem;
    color: var(--text-gray);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
}

.category-chip-remove {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 0.15rem;
    transition: color 0.2s;
}

.category-chip-remove:hover {
    color: #ff6b6b;
}

.add-category-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.add-category-form input {
    flex: 1;
    min-width: 180px;
    padding: 0.5rem 0.75rem;
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.85rem;
}

.image-field-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-gray);
    margin-bottom: 0.35rem;
}

.image-section-field {
    margin-bottom: 0.75rem;
}

.category-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.image-section-hint {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-top: 0.35rem;
    line-height: 1.4;
}

.image-placement {
    margin-bottom: 0.75rem;
}

.image-placement-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.placement-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.placement-badge.placement-section {
    background: rgba(0, 180, 216, 0.15);
    color: var(--accent);
}

.placement-badge.placement-carousel {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
}

.placement-badge.placement-gallery {
    background: rgba(72, 202, 228, 0.12);
    color: #48cae4;
}

.image-card-body {
    padding: 1rem;
}

.image-card-body input[type="text"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.85rem;
}

.image-toggles {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.image-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    cursor: pointer;
}

.image-toggle input {
    accent-color: var(--primary-color);
}

.image-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.image-card-actions button {
    flex: 1;
    min-width: 70px;
    padding: 0.4rem;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-light);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.image-card-actions button:hover {
    background: rgba(0, 180, 216, 0.15);
    border-color: var(--primary-color);
}

.image-card-actions button.danger:hover {
    background: rgba(255, 80, 80, 0.15);
    border-color: #ff6b6b;
}

.owner-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark-secondary);
    border: 1px solid var(--primary-color);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 2000;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: min(90vw, 420px);
}

.owner-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-undo {
    flex-shrink: 0;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 6px;
    color: var(--accent);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.toast-undo:hover {
    background: var(--accent);
    color: var(--dark-bg);
}

@media (max-width: 768px) {
    .inquiries-table {
        font-size: 0.8rem;
    }

    .inquiries-table th,
    .inquiries-table td {
        padding: 0.75rem 0.5rem;
    }
}
