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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    min-height: 100vh;
}

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

header {
    background: white;
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.workflow-hub {
    margin-bottom: 1.5rem;
}

.workflow-hub-card {
    background: linear-gradient(135deg, #fff9f1 0%, #f5fbff 100%);
    border: 1px solid #e6eef7;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 6px 18px rgba(21, 61, 97, 0.08);
}

.workflow-hub-header h2 {
    color: #1f3a56;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.workflow-hub-header p {
    color: #4f657b;
    margin-bottom: 1rem;
}

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

.workflow-status-item {
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.workflow-status-item.done {
    background: #e7f8ef;
    color: #18633e;
}

.workflow-status-item.todo {
    background: #eef4fb;
    color: #2d4f6f;
}

.workflow-recommendation {
    background: #fff;
    border-left: 4px solid #e89f3d;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    color: #3b4f62;
}

.workflow-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.7rem;
}

.workflow-action-btn {
    border: 1px solid #dbe7f4;
    border-radius: 10px;
    background: #fff;
    color: #254464;
    padding: 0.75rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.workflow-action-btn i {
    color: #1d6fa5;
}

.workflow-action-btn span {
    font-weight: 600;
}

.workflow-action-btn small {
    color: #5d7184;
}

.workflow-action-btn:hover {
    border-color: #9ec4e5;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(30, 95, 146, 0.12);
}

.login-container {
    position: relative;
    padding: 1.5rem;
    background:
        radial-gradient(circle at 85% 15%, rgba(36, 95, 134, 0.13) 0%, rgba(36, 95, 134, 0) 38%),
        radial-gradient(circle at 8% 88%, rgba(14, 165, 233, 0.08) 0%, rgba(14, 165, 233, 0) 45%),
        linear-gradient(180deg, #f8fbff 0%, #eef2f6 100%);
}

.login-form {
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #dde5ee;
    border-radius: 16px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.12);
    padding: 1.35rem 1.3rem;
}

.login-form h2 {
    font-size: 1.06rem;
    letter-spacing: -0.01em;
    color: #243647;
    margin-bottom: 1rem;
}

.login-subtitle {
    margin-top: -0.35rem;
    margin-bottom: 0.95rem;
    color: #5a6d81;
    font-size: 0.82rem;
    text-align: center;
}

.login-form .form-group label {
    font-size: 0.82rem;
    color: #41566d;
    font-weight: 700;
}

.login-help-text {
    display: block;
    margin-top: 0.3rem;
    color: #63758a;
    font-size: 0.74rem;
}

.login-form .form-group input {
    height: 40px;
    border-radius: 10px;
    border: 1px solid #cfd9e4;
    background: #fbfdff;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
    color: #1f2937;
}

.login-form .form-group input:focus {
    border-color: #3b82a3;
    box-shadow: 0 0 0 3px rgba(59, 130, 163, 0.18);
}

.password-input-wrap {
    position: relative;
}

.password-input-wrap input {
    padding-right: 2.3rem;
}

.password-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid transparent;
    background: transparent;
    color: #58718b;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.password-toggle-btn:hover {
    color: #28455f;
    background: #eef4f9;
}

.password-toggle-btn:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

.login-form .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.85rem;
    padding: 10px 12px;
    border-radius: 10px;
}

.login-footer-note {
    margin-top: 0.8rem;
    margin-bottom: 0;
    color: #607487;
    font-size: 0.74rem;
    text-align: center;
}

.auth-link-button {
    display: block;
    width: auto;
    margin: 0.75rem auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #17658a;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.auth-link-button:hover {
    color: #0f4d6b;
    text-decoration: underline;
}

.auth-link-button:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 3px;
}

.optional-label {
    color: #6b7d8f;
    font-size: 0.7rem;
    font-weight: 500;
}


.login-message {
    margin-top: 0.85rem;
    min-height: 1.2rem;
    font-size: 0.8rem;
    color: #4b6178;
}

/* Login Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f8f9fa;
}

.login-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.login-message {
    margin-top: 1rem;
    text-align: center;
    min-height: 1.5rem;
}

.login-message.error {
    color: #dc3545;
}

.login-message.success {
    color: #28a745;
}

.signup-title {
    margin: 0.25rem 0 0.5rem;
    text-align: center;
    color: #333;
    font-size: 1.1rem;
}

.signup-cta {
    margin-top: 1rem;
    padding-top: 0.25rem;
    text-align: center;
}

.signup-cta-divider {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.75rem;
    color: #63758a;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.signup-cta-divider::before,
.signup-cta-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dde5ee;
}

.login-form .signup-cta-button {
    background: #1f9d55;
    border-color: #1f9d55;
    color: #fff;
    font-weight: 700;
}

.login-form .signup-cta-button:hover {
    background: #17853f;
    border-color: #17853f;
}

.signup-status {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e9ee;
    text-align: center;
}

.signup-status .task-form-actions {
    justify-content: center;
}

#password-recovery-expiry {
    margin-bottom: 0.75rem;
}

.login-ip-support {
    margin-top: 0.35rem;
}

.login-ip-support-expiry {
    margin: -0.35rem 0 0.7rem;
    text-align: center;
}

.login-ip-support .support-message-list {
    min-height: 132px;
    max-height: 260px;
    padding: 10px;
    border: 1px solid #d8e1ea;
    border-radius: 8px 8px 0 0;
}

.login-ip-support .support-message {
    width: 88%;
    padding: 8px 10px;
}

.login-ip-support .support-composer {
    padding: 10px;
    border: 1px solid #d8e1ea;
    border-top: 0;
    border-radius: 0 0 8px 8px;
}

.login-ip-support .support-composer textarea {
    min-height: 74px;
}

.login-ip-support .support-composer-footer .btn {
    width: auto;
    min-width: 88px;
}

/* Main Panel Styles */
.main-panel {
    min-height: 100vh;
    background-color: #f8f9fa;
}

.header-user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#user-display {
    font-weight: 500;
    color: #333;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    background: white;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 15px 20px;
    color: #6c757d;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.tab-btn.active {
    background: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Tab Content */
.tab-content {
    display: none;
}

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

.section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section h3 {
    color: #764ba2;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

/* Forms */
.form-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    display: block;
}

.subdomain-input {
    display: flex;
    align-items: center;
    gap: 5px;
}

.subdomain-input input {
    flex: 0 0 150px;
}

.subdomain-input span {
    font-weight: bold;
    color: #667eea;
}

.subdomain-input select {
    flex: 1;
}

/* Buttons */
.btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Upload Area */
.upload-area {
    border: 3px dashed #667eea;
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    background: #f8f9ff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #5a67d8;
    background: #f0f4ff;
}

.upload-area i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.upload-area p {
    color: #666;
    font-size: 1.1rem;
}

.upload-area input[type="file"] {
    display: none;
}

.upload-preview {
    margin-bottom: 1rem;
}

.upload-progress {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid #cdd9e5;
    border-radius: 8px;
    background: #f7fafc;
}

.upload-progress[hidden] {
    display: none;
}

.upload-progress-header,
.upload-progress-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.upload-progress-header {
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
}

.upload-progress progress {
    display: block;
    width: 100%;
    height: 0.75rem;
    margin-bottom: 0.45rem;
    accent-color: #237a57;
}

.upload-progress-footer {
    color: #5e7185;
    font-size: 0.76rem;
}

.upload-progress-footer .btn {
    width: auto;
    flex: 0 0 auto;
    padding: 6px 10px;
    font-size: 0.76rem;
}

.file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e9ecef;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.file-preview .file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-preview .file-size {
    color: #666;
    font-size: 0.9rem;
}

/* Grid Layouts */
.domains-grid,
.subdomains-grid,
.websites-grid,
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.domain-card,
.subdomain-card,
.website-card,
.user-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.domain-card:hover,
.subdomain-card:hover,
.website-card:hover,
.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.domain-card h4,
.subdomain-card h4,
.website-card h4,
.user-card h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.domain-card p,
.subdomain-card p,
.website-card p {
    color: #666;
    margin-bottom: 1rem;
}

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

.card-actions .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.user-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-card-info h4 {
    margin: 0;
    color: #667eea;
}

.user-card-info p {
    margin: 0;
    color: #666;
}

.user-card-info .user-role {
    align-self: flex-start;
}

.user-card-info small {
    color: #999;
    font-size: 0.85rem;
}

/* File Manager */
.file-manager {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
}

.file-toolbar {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.file-toolbar-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    padding: 0.6rem;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
}

.basic-actions {
    flex: 1 1 380px;
}

.copy-actions {
    flex: 1 1 420px;
}

.advanced-actions {
    flex: 1 1 360px;
}

.toolbar-group-title {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #6c757d;
    text-transform: uppercase;
    padding-right: 0.2rem;
}

.file-toolbar select {
    max-width: 200px;
}

.toolbar-hint {
    display: inline-flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.85rem;
    padding: 0 0.35rem;
}

.copy-actions .toolbar-hint {
    flex-basis: 100%;
    padding: 0;
}

.feature-action-guide,
.file-action-guide {
    width: 100%;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #ffffff;
    padding: 0.75rem 0.85rem;
}

.feature-action-guide strong,
.file-action-guide strong {
    display: block;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.feature-action-guide p,
.file-action-guide p {
    margin: 0;
    color: #374151;
    font-size: 0.95rem;
}

.feature-action-guide small,
.file-action-guide small {
    display: block;
    margin-top: 0.4rem;
    color: #6b7280;
}

.file-browser {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    background: white;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.file-item:hover {
    background: #f8f9fa;
}

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

.file-icon {
    width: 24px;
    margin-right: 12px;
    text-align: center;
    color: #667eea;
}

.file-name {
    flex: 1;
    font-weight: 500;
}

.file-size {
    color: #666;
    font-size: 0.9rem;
    margin-right: 12px;
}

.file-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.file-actions button {
    background: transparent;
    border: 1px solid transparent;
    color: #495057;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.file-actions button:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #212529;
}

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

.modal-content {
    background: white;
    margin: 50px auto;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content-sm {
    max-width: 560px;
}

.modal-header {
    background: #667eea;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Newbie-focused visual accessibility pass */

:root {
    --ui-bg: #f3f4f6;
    --ui-surface: #ffffff;
    --ui-subtle: #f7f8fa;
    --ui-border: #e4e7ec;
    --ui-border-strong: #ccd3dd;
    --ui-text: #1f2937;
    --ui-muted: #5b6778;
    --ui-accent: #245f86;
    --ui-accent-hover: #1b4f71;
    --ui-focus: #0ea5e9;
}

body {
    font-family: 'Manrope', 'Segoe UI', Tahoma, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    color: var(--ui-text);
    background: radial-gradient(circle at 12% -10%, #ffffff 0%, #f8fafc 38%, var(--ui-bg) 100%);
}

.container {
    max-width: 1280px;
    padding: 18px;
}

header {
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--ui-border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

header p {
    font-size: 0.92rem;
    color: var(--ui-muted);
}

.header-user-info {
    margin-top: 0.75rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    justify-content: flex-end;
}

.header-user-info #user-display {
    margin-right: auto;
}

.workflow-hub-card {
    border-radius: 12px;
    border: 1px solid var(--ui-border);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.workflow-hub-header h2 {
    font-size: 1.05rem;
}

.workflow-hub-header p,
.workflow-status-item,
.workflow-action-btn small {
    font-size: 0.86rem;
}

.tab-nav {
    gap: 0.35rem;
    padding: 0.35rem;
    border: 1px solid var(--ui-border);
    border-radius: 12px;
}

.tab-btn {
    padding: 10px 12px;
    font-size: 0.87rem;
    font-weight: 700;
    color: #4b5a6b;
    border-radius: 9px;
}

.tab-btn i {
    font-size: 0.95rem;
}

.tab-btn.active {
    background: #eaf3f8;
    color: #143952;
    box-shadow: none;
}

.section {
    border: 1px solid var(--ui-border);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    padding: 1.2rem;
    margin-bottom: 1.1rem;
}

.section h2 {
    font-size: 1.12rem;
    margin-bottom: 0.95rem;
}

.section h3 {
    color: #2f4357;
    font-size: 0.97rem;
    margin-top: 0;
    margin-bottom: 0.7rem;
}

.domains-layout-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.files-layout-grid,
.subdomains-layout-grid,
.users-layout-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 0.9rem;
    align-items: start;
}

.manager-card,
.list-card,
.sites-intro-card {
    background: var(--ui-subtle);
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    padding: 1rem;
}

.manager-card h3,
.list-card h3,
.sites-intro-card h3 {
    margin-bottom: 0.6rem;
}

.websites-shell {
    display: grid;
    gap: 0.9rem;
}

.sites-intro-card p {
    margin: 0;
    color: var(--ui-muted);
    font-size: 0.82rem;
}

.url-upload-section {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: #f5f8fb;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
}

.url-upload-section h3 {
    margin: 0 0 0.55rem 0;
    font-size: 0.86rem;
}

.url-upload-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
}

.url-upload-status {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: #66778b;
    min-height: 1rem;
}

.upload-divider {
    text-align: center;
    margin: 0.5rem 0 0.65rem;
    color: #76879a;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.upload-card .btn {
    width: 100%;
    justify-content: center;
}

.form-card {
    background: var(--ui-subtle);
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    padding: 1rem;
}

.form-group {
    margin-bottom: 0.9rem;
}

.form-group label {
    font-size: 0.84rem;
    margin-bottom: 0.3rem;
    color: #304255;
}

.form-group input,
.form-group select,
.form-group textarea {
    border-radius: 9px;
    border: 1px solid var(--ui-border-strong);
    padding: 9px 11px;
    font-size: 0.9rem;
}

.form-group small {
    font-size: 0.75rem;
    color: #6b7280;
}

.btn {
    border-radius: 9px;
    padding: 9px 12px;
    font-size: 0.83rem;
    font-weight: 700;
    gap: 6px;
}

.btn i {
    font-size: 0.84rem;
}

.btn,
.btn-primary {
    background: var(--ui-accent);
}

.btn:hover,
.btn-primary:hover {
    background: var(--ui-accent-hover);
    box-shadow: 0 6px 16px rgba(36, 95, 134, 0.22);
}

.btn-secondary {
    background: #f0f3f6;
    color: #243447;
    border: 1px solid var(--ui-border-strong);
}

.btn-secondary:hover {
    background: #e7edf3;
}

.card-actions {
    gap: 0.4rem;
}

.card-actions .btn {
    font-size: 0.77rem;
    padding: 7px 10px;
}

.feature-action-guide,
.file-action-guide {
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #dce3ec;
    padding: 0.65rem 0.7rem;
}

.feature-action-guide p,
.file-action-guide p {
    font-size: 0.82rem;
}

.feature-action-guide small,
.file-action-guide small {
    font-size: 0.74rem;
}

.upload-area {
    padding: 1.4rem;
    border-width: 2px;
    border-style: dashed;
    border-color: #9cb3c8;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #f4f7fb 100%);
}

.upload-area i {
    font-size: 1.8rem;
    margin-bottom: 0.45rem;
    color: #3a6e94;
}

.upload-area p {
    font-size: 0.85rem;
}

.file-manager {
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    padding: 0.8rem;
    background: #fff;
}

.file-toolbar-group {
    border-radius: 10px;
    border: 1px solid var(--ui-border);
    background: #fff;
    padding: 0.5rem;
}

.toolbar-group-title {
    font-size: 0.68rem;
    color: #66778c;
}

.toolbar-hint {
    font-size: 0.76rem;
}

.file-path {
    font-size: 0.8rem;
    color: #4b5d73;
}

.file-browser {
    border-radius: 10px;
    border: 1px solid var(--ui-border);
}

.file-item {
    padding: 8px 10px;
}

.file-icon {
    width: 20px;
    margin-right: 8px;
    font-size: 0.92rem;
    color: #436b8c;
}

.file-name {
    font-size: 0.86rem;
}

.file-size {
    font-size: 0.75rem;
}

.file-actions button {
    padding: 5px 8px;
    font-size: 0.84rem;
}

.domains-grid,
.subdomains-grid,
.websites-grid,
.users-grid {
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.domain-card,
.subdomain-card,
.website-card,
.user-card {
    border-radius: 11px;
    padding: 0.9rem;
}

.users-grid {
    margin-top: 0;
}

.domain-card h4,
.subdomain-card h4,
.website-card h4,
.user-card h4 {
    font-size: 0.94rem;
    margin-bottom: 0.35rem;
}

.domain-card p,
.subdomain-card p,
.website-card p,
.user-card p {
    font-size: 0.8rem;
    margin-bottom: 0.55rem;
}

.status-badge {
    font-size: 0.66rem;
    padding: 4px 7px;
}

.notification {
    border-radius: 10px;
    font-size: 0.86rem;
}

.modal-content {
    border-radius: 12px;
}

.modal-header {
    padding: 0.85rem 1rem;
}

.modal-header h3 {
    font-size: 0.98rem;
}

.modal-body {
    padding: 1rem;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.tab-btn:focus-visible,
.workflow-action-btn:focus-visible {
    outline: 2px solid var(--ui-focus);
    outline-offset: 2px;
}

@media (max-width: 1024px) {
    .domains-layout-grid {
        grid-template-columns: 1fr 1fr;
    }

    .files-layout-grid,
    .subdomains-layout-grid,
    .users-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .domains-layout-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 10px;
    }

    .tab-btn {
        padding: 9px 10px;
        font-size: 0.82rem;
    }

    .file-toolbar-group {
        width: 100%;
    }
}

/* File manager toolbar layout refactor: compact, aligned, non-scattered */
.file-manager .file-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    align-items: start;
}

.file-manager .file-toolbar-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    align-content: start;
    min-height: 100%;
}

.file-manager .toolbar-group-title {
    grid-column: 1 / -1;
}

.file-manager .file-toolbar .btn,
.file-manager .file-toolbar select {
    width: 100%;
}

.file-manager .file-toolbar .btn {
    justify-content: center;
}

.file-manager #file-domain-filter,
.file-manager #transfer-conflict-mode,
.file-manager .toolbar-hint,
.file-manager #clear-clipboard-btn,
.file-manager #paste-files-btn,
.file-manager #bulk-download-btn,
.file-manager #optimize-images-btn {
    grid-column: 1 / -1;
}

.file-manager .toolbar-hint {
    margin: 0;
    padding: 0;
    font-size: 0.75rem;
}

@media (max-width: 1180px) {
    .file-manager .file-toolbar {
        grid-template-columns: 1fr;
    }

    .file-manager .file-toolbar-group {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .file-manager .file-toolbar-group {
        grid-template-columns: 1fr;
    }
}

.ssl-mode-update,
.security-policy-update {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
    margin-bottom: 0.5rem;
}

.ssl-mode-select,
.security-policy-select {
    flex: 1;
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid var(--input-border, #d6deeb);
    padding: 0.5rem 0.65rem;
    background: #fff;
    font-size: 0.9rem;
}

.ssl-mode-update .btn,
.security-policy-update .btn {
    flex-shrink: 0;
}

@media (max-width: 680px) {
    .ssl-mode-update,
    .security-policy-update {
        flex-direction: column;
        align-items: stretch;
    }

    .ssl-mode-update .btn,
    .security-policy-update .btn {
        width: 100%;
    }
}

/* Unified button system: one style everywhere */
:root {
    --btn-height: 48px;
    --btn-radius: 12px;
    --btn-font-size: 0.86rem;
    --btn-font-weight: 700;
    --btn-gap: 0.45rem;
}

.btn,
button.btn,
a.btn {
    min-height: var(--btn-height);
    height: auto;
    padding: 0.62rem 0.95rem;
    border-radius: var(--btn-radius);
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    line-height: 1.15;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--btn-gap);
    text-align: center;
    white-space: normal;
    word-break: normal;
    box-shadow: none;
    transform: none;
}

.btn i,
button.btn i,
a.btn i {
    font-size: 0.9rem;
    line-height: 1;
}

.btn:hover,
button.btn:hover,
a.btn:hover {
    transform: none;
}

.btn:disabled,
button.btn:disabled,
a.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Keep toolbar controls visually consistent with all other buttons */
.file-manager .file-toolbar .btn,
.file-manager .file-toolbar select {
    min-height: var(--btn-height);
    border-radius: var(--btn-radius);
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
}

@media (max-width: 768px) {
    .btn,
    button.btn,
    a.btn {
        min-height: 46px;
        font-size: 0.84rem;
    }
}

.modal-body {
    padding: 2rem;
}

.action-modal-message {
    color: #495057;
    margin-bottom: 1rem;
}

#action-modal-custom-body {
    margin-bottom: 0.5rem;
}

.structured-action-form {
    display: grid;
    gap: 0.8rem;
}

.structured-action-form .form-group {
    margin-bottom: 0;
}

.structured-action-form .form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: #31465b;
}

.structured-action-form .form-group input,
.structured-action-form .form-group select {
    width: 100%;
}

.structured-action-help {
    color: #66778c;
    font-size: 0.78rem;
}

.trusted-ip-list {
    display: grid;
    gap: 0.65rem;
}

.trusted-ip-item {
    border: 1px solid #d7e1eb;
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    background: #f8fbff;
    display: grid;
    gap: 0.2rem;
}

.trusted-ip-item strong {
    color: #1f3650;
    font-size: 0.86rem;
}

.trusted-ip-item small {
    color: #5f7388;
    font-size: 0.75rem;
}

.security-insights-panel {
    margin-bottom: 0.9rem;
}

.security-insights-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.6rem;
    margin: 0.6rem 0 0.75rem;
}

.security-metric-tile {
    border: 1px solid #d7e1eb;
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    background: #f8fbff;
}

.security-metric-tile strong {
    display: block;
    font-size: 1.05rem;
    color: #1f3650;
}

.security-metric-tile small {
    color: #5f7388;
    font-size: 0.75rem;
}

.security-events-list {
    display: grid;
    gap: 0.45rem;
}

.security-event-item {
    border: 1px solid #d7e1eb;
    border-radius: 9px;
    padding: 0.45rem 0.6rem;
    background: #ffffff;
    display: grid;
    gap: 0.1rem;
}

.security-event-item strong {
    font-size: 0.82rem;
    color: #28435f;
}

.security-event-item small {
    font-size: 0.72rem;
    color: #667b91;
}

.action-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.editor-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.editor-toolbar select {
    max-width: 150px;
}

.editor-toolbar-actions,
.editor-search-meta,
.editor-match-case {
    display: flex;
    align-items: center;
}

.editor-toolbar-actions {
    gap: 0.5rem;
    margin-left: auto;
}

.editor-search-panel {
    display: grid;
    gap: 0.55rem;
    width: min(100%, 620px);
    margin: -0.35rem 0 0.8rem auto;
    padding: 0.55rem;
    box-sizing: border-box;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #f8fafc;
    box-shadow: 0 4px 14px rgba(34, 56, 77, 0.08);
}

.editor-search-panel[hidden],
.editor-replace-row[hidden] {
    display: none;
}

.editor-search-row,
.editor-replace-row {
    display: grid;
    align-items: center;
    gap: 0.4rem;
}

.editor-search-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

.editor-replace-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.editor-search-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.editor-search-panel input[type="search"],
.editor-search-panel input[type="text"] {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0.4rem 0.7rem;
    border: 1px solid #c7d2dc;
    border-radius: 6px;
    background: #fff;
    color: var(--text-primary);
    font: inherit;
    font-size: 0.84rem;
    line-height: 1.2;
    box-shadow: inset 0 1px 2px rgba(34, 56, 77, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.editor-search-panel input::placeholder {
    color: #7b8b99;
}

.editor-search-panel input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.13);
}

.editor-search-panel .icon-action {
    width: 36px;
    min-width: 36px;
    height: 36px;
}

.editor-search-meta {
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 20px;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.editor-match-case {
    gap: 0.4rem;
    font-weight: 650;
}

.editor-match-case input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--accent);
}

#file-content {
    width: 100%;
    height: 400px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 1rem;
    resize: vertical;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
    max-width: 400px;
}

.notification.error {
    background: #dc3545;
}

.notification.warning {
    background: #ffc107;
    color: #212529;
}

.notification.show {
    display: flex;
    animation: slideIn 0.3s ease;
}

#close-notification {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

#close-notification:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .tab-nav {
        flex-direction: column;
        gap: 5px;
    }

    .tab-btn {
        justify-content: flex-start;
        text-align: left;
    }

    .domains-grid,
    .subdomains-grid,
    .websites-grid {
        grid-template-columns: 1fr;
    }

    .file-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .subdomain-input {
        flex-direction: column;
        align-items: stretch;
    }

    .subdomain-input input,
    .subdomain-input select {
        flex: none;
    }

    .card-actions {
        justify-content: center;
    }

    .modal-content {
        width: 95%;
        margin: 20px auto;
    }

    .modal-body {
        padding: 1rem;
    }

    #file-content {
        height: 300px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Premium neutral theme overrides (clean, minimal, non-branded) */
:root {
    --bg: #f5f5f7;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: #ffffff;
    --line: rgba(17, 17, 17, 0.08);
    --line-strong: rgba(17, 17, 17, 0.14);
    --text: #1d1d1f;
    --text-muted: #6e6e73;
    --accent: #0071e3;
    --accent-hover: #0062c4;
    --success: #248a3d;
    --danger: #c7372f;
    --warning: #b07a00;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 34px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 20% -10%, #ffffff 0%, #f8f8fa 35%, var(--bg) 100%);
    letter-spacing: -0.01em;
}

.container {
    max-width: 1240px;
    padding: 28px;
}

header,
.section,
.modal-content {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}

header {
    border-radius: var(--radius-lg);
    padding: 2.2rem;
}

header h1 {
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

header p,
.domain-card p,
.subdomain-card p,
.website-card p,
.form-group small,
.file-size,
.upload-area p {
    color: var(--text-muted);
}

.tab-nav {
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.tab-btn {
    color: var(--text-muted);
    font-weight: 600;
    border-radius: 12px;
}

.tab-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text);
}

.tab-btn.active {
    background: var(--surface-strong);
    color: var(--text);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06), 0 8px 20px rgba(0, 0, 0, 0.08);
}

.section {
    border-radius: var(--radius-lg);
}

.section h2,
.section h3,
.domain-card h4,
.subdomain-card h4,
.website-card h4,
.file-icon {
    color: var(--text);
}

.form-card,
.file-manager,
.domain-card,
.subdomain-card,
.website-card,
.file-browser,
.file-preview {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.domain-card:hover,
.subdomain-card:hover,
.website-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-hover);
}

.form-group label {
    color: var(--text);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea,
.file-toolbar select,
.editor-toolbar select,
#file-content {
    border: 1px solid var(--line-strong);
    background: #fff;
    border-radius: var(--radius-sm);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
#file-content:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14);
}

.subdomain-input span {
    color: var(--text-muted);
}

.btn {
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover,
.btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 8px 22px rgba(0, 113, 227, 0.25);
}

.btn-secondary {
    background: #f2f2f5;
    color: var(--text);
    border-color: var(--line-strong);
}

.btn-secondary:hover {
    background: #eaeaef;
    box-shadow: none;
}

.btn-success {
    background: var(--success);
}

.btn-success:hover {
    background: #1f7434;
}

.btn-danger {
    background: var(--danger);
}

.btn-danger:hover {
    background: #ad3029;
}

.btn-warning {
    background: #f5c04f;
    color: #1d1d1f;
}

.btn-warning:hover {
    background: #e5b040;
}

.upload-area {
    border: 2px dashed rgba(0, 113, 227, 0.28);
    background: linear-gradient(180deg, rgba(0, 113, 227, 0.04), rgba(255, 255, 255, 0.9));
    border-radius: var(--radius-md);
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: rgba(0, 113, 227, 0.55);
    background: linear-gradient(180deg, rgba(0, 113, 227, 0.07), rgba(255, 255, 255, 0.94));
}

.upload-area i {
    color: var(--accent);
}

.file-item {
    border-bottom: 1px solid var(--line);
}

.file-item:hover {
    background: rgba(0, 0, 0, 0.035);
}

.modal {
    background: rgba(20, 20, 20, 0.34);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-header {
    background: #f6f6f8;
    color: var(--text);
    border-bottom: 1px solid var(--line);
}

.close {
    color: var(--text-muted);
}

.close:hover,
#close-notification:hover {
    background: rgba(0, 0, 0, 0.06);
}

.notification {
    border-radius: 14px;
    box-shadow: var(--shadow-hover);
}

.notification.success {
    background: #1f7a35;
}

.notification.error {
    background: #b7322a;
}

.ssl-status-panel {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.ssl-status-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem;
}

.ssl-status-card .label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.35rem;
    display: block;
}

.ssl-status-card .value {
    font-weight: 700;
    color: #1f2937;
}

.ssl-status-banner {
    grid-column: 1 / -1;
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    font-weight: 600;
}

.ssl-status-banner.ok {
    background: #e8f7ec;
    color: #1f7a35;
    border: 1px solid #caedd5;
}

.ssl-status-banner.warn {
    background: #fff8e6;
    color: #8a6100;
    border: 1px solid #f0dfb3;
}

.ssl-status-banner.bad {
    background: #fdecec;
    color: #b7322a;
    border: 1px solid #f5c7c3;
}

.file-toolbar {
    flex-wrap: wrap;
}

.file-select-checkbox {
    margin-right: 10px;
    accent-color: #0071e3;
}

.file-item.selected {
    background: rgba(0, 113, 227, 0.08);
}

.file-editor {
    width: 100%;
    height: 420px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
}

.notification.warning {
    background: #f0b83d;
    color: #1d1d1f;
}

.status-active {
    background: rgba(36, 138, 61, 0.14);
    color: #1e6f33;
}

.status-inactive {
    background: rgba(199, 55, 47, 0.14);
    color: #9e2f28;
}

.status-pending {
    background: rgba(176, 122, 0, 0.14);
    color: #8c6500;
}

@media (max-width: 768px) {
    .container {
        padding: 14px;
    }

    header,
    .section {
        border-radius: 16px;
        padding: 1.25rem;
    }

    .tab-nav {
        border-radius: 14px;
    }
}

/* Compact icons + stronger responsive controls */
.tab-btn i {
    font-size: 0.86rem;
}

.section h2 i,
.section h3 i,
.domain-card h4 i,
.subdomain-card h4 i,
.website-card h4 i {
    font-size: 0.9rem;
}

.upload-area i {
    font-size: 2.1rem;
}

.btn {
    min-height: 42px;
    padding: 10px 18px;
    font-size: 0.94rem;
    line-height: 1;
    gap: 6px;
}

.btn i {
    font-size: 0.82rem;
}

.card-actions {
    gap: 0.6rem;
}

.card-actions .btn {
    min-width: 108px;
}

.file-actions button {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-actions button:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #212529;
}

.file-actions button:hover i {
    transform: scale(1.1);
}

.file-actions button i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.file-actions button[title="Delete"]:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.file-actions button[title="Edit"]:hover,
.file-actions button[title="Open"]:hover {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.file-actions button[title="Download"]:hover {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.file-actions button[title="Rename"]:hover {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.file-toolbar {
    flex-wrap: wrap;
}

.file-toolbar .btn,
.file-toolbar select {
    min-height: 40px;
}

@media (max-width: 768px) {

    .file-toolbar-group {
        width: 100%;
    }

    .action-modal-actions {
        flex-wrap: wrap;
    }

    .action-modal-actions .btn {
        width: 100%;
    }
    .tab-btn {
        padding: 12px 14px;
        font-size: 0.92rem;
    }

    .tab-btn i {
        font-size: 0.8rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .card-actions {
        width: 100%;
    }

    .card-actions .btn {
        flex: 1 1 calc(50% - 0.6rem);
        min-width: 0;
    }

    .file-toolbar {
        gap: 0.7rem;
    }

    .file-toolbar .btn,
    .file-toolbar select,
    .toolbar-hint {
        width: 100%;
        max-width: 100%;
    }

    .editor-toolbar {
        flex-wrap: wrap;
    }

    .editor-toolbar select {
        width: 100%;
        max-width: 100%;
    }

    .editor-toolbar-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        margin-left: 0;
    }

    .editor-toolbar-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .editor-replace-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .editor-replace-row input {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .editor-search-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .editor-search-actions {
        justify-content: flex-end;
    }

    .card-actions .btn {
        flex: 1 1 100%;
    }

    .subdomain-input {
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

.file-path {
    margin: 0.5rem 0 0.75rem;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.75);
    overflow-wrap: anywhere;
}

/* Stable toolbar system: consistent sizes, no clipped labels, predictable layout */
.file-manager .file-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: start;
}

.file-manager .file-toolbar-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.7rem;
    border-radius: 12px;
    border: 1px solid var(--ui-border);
    background: #fff;
}

.file-manager .toolbar-group-title,
.file-manager #file-domain-filter,
.file-manager #transfer-conflict-mode,
.file-manager #paste-files-btn,
.file-manager #clear-clipboard-btn,
.file-manager #bulk-delete-btn,
.file-manager #bulk-download-btn,
.file-manager #optimize-images-btn,
.file-manager .toolbar-hint {
    grid-column: 1 / -1;
}

.file-manager .file-toolbar .btn,
.file-manager .file-toolbar select {
    width: 100%;
    min-height: 52px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.15;
    border-radius: 14px;
}

.file-manager .file-toolbar .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    white-space: normal;
    text-align: center;
    padding: 8px 10px;
}

.file-manager .file-toolbar .btn i {
    font-size: 0.86rem;
}

.file-manager .toolbar-hint {
    margin: 0;
    padding: 0 0.1rem;
    font-size: 0.74rem;
}

@media (max-width: 1180px) {
    .file-manager .file-toolbar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .file-manager .file-toolbar-group {
        grid-template-columns: 1fr;
    }
}