/* ========================================
   Modern Profile Pages Design System
   ======================================== */

/* Import modern font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ========================================
   CSS Variables - Design System
   ======================================== */
:root {
    /* Colors */
    --profile-bg-deep: #1E1E2A;
    --profile-bg-card: #2A2A38;
    --profile-bg-hover: #32323F;
    --profile-primary: #3B82F6;
    --profile-primary-hover: #60A5FA;
    --profile-secondary: #4B5563;
    --profile-secondary-hover: #93C5FD;
    --profile-text: #E5E7EB;
    --profile-text-muted: #9CA3AF;
    --profile-accent: #93C5FD;
    --profile-border: #374151;
    --profile-success: #10B981;
    --profile-warning: #F59E0B;
    --profile-danger: #EF4444;
    --profile-info: #3B82F6;

    /* Spacing */
    --profile-spacing-xs: 0.5rem;
    --profile-spacing-sm: 0.75rem;
    --profile-spacing-md: 1rem;
    --profile-spacing-lg: 1.5rem;
    --profile-spacing-xl: 2rem;

    /* Border Radius */
    --profile-radius-sm: 0.375rem;
    --profile-radius-md: 0.5rem;
    --profile-radius-lg: 0.75rem;

    /* Shadows */
    --profile-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --profile-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --profile-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);

    /* Typography */
    --profile-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========================================
   Base Container Styles
   ======================================== */
.profile-container {
    background-color: var(--profile-bg-deep);
    min-height: 100vh;
    padding: var(--profile-spacing-xl) 0;
    font-family: var(--profile-font-family);
    color: var(--profile-text);
}

.profile-header {
    margin-bottom: var(--profile-spacing-xl);
}

.profile-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--profile-text);
    margin-bottom: var(--profile-spacing-xs);
}

.profile-header h2 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--profile-text-muted);
    margin: 0;
}

/* ========================================
   Section Titles
   ======================================== */
.profile-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--profile-text);
    margin-bottom: var(--profile-spacing-lg);
    padding-bottom: var(--profile-spacing-sm);
    border-bottom: 1px solid var(--profile-border);
}

h3.profile-section-title {
    margin-top: 0;
}

h4.profile-subsection-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--profile-text);
    margin-top: var(--profile-spacing-lg);
    margin-bottom: var(--profile-spacing-md);
}

/* ========================================
   Navigation Menu
   ======================================== */
.profile-nav {
    background-color: var(--profile-bg-card);
    border-radius: var(--profile-radius-lg);
    padding: var(--profile-spacing-md);
    box-shadow: var(--profile-shadow-md);
    position: sticky;
    top: var(--profile-spacing-lg);
}

.profile-nav .nav {
    flex-direction: column;
    gap: var(--profile-spacing-xs);
}

.profile-nav .nav-item {
    width: 100%;
}

.profile-nav .nav-link {
    color: var(--profile-text-muted);
    padding: 0.625rem var(--profile-spacing-md);
    border-radius: var(--profile-radius-md);
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9375rem;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 44px;
}

.profile-nav .nav-link i {
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.profile-nav .nav-link span {
    flex: 1;
}

.profile-nav .nav-link:hover {
    background-color: var(--profile-bg-hover);
    color: var(--profile-accent);
    text-decoration: none;
}

.profile-nav .nav-link.active {
    background-color: var(--profile-primary);
    color: white;
    border-color: var(--profile-primary);
}

/* ========================================
   Cards & Content Areas
   ======================================== */
.profile-card {
    background-color: var(--profile-bg-card);
    border-radius: var(--profile-radius-lg);
    padding: var(--profile-spacing-xl);
    box-shadow: var(--profile-shadow-md);
    margin-bottom: var(--profile-spacing-lg);
}

.profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--profile-spacing-lg);
    padding-bottom: var(--profile-spacing-md);
    border-bottom: 1px solid var(--profile-border);
}

.profile-card-header h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--profile-text);
}

.profile-card-body {
    display: flex;
    flex-direction: column;
    gap: var(--profile-spacing-md);
}

/* ========================================
   Forms
   ======================================== */
.profile-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--profile-spacing-xs);
    margin-bottom: var(--profile-spacing-md);
}

.profile-form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--profile-text);
    margin-bottom: var(--profile-spacing-xs);
}

.profile-form-control {
    background-color: var(--profile-bg-deep);
    border: 1px solid var(--profile-border);
    border-radius: var(--profile-radius-md);
    padding: 0.75rem var(--profile-spacing-md);
    color: var(--profile-text);
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    font-family: var(--profile-font-family);
}

.profile-form-control:focus {
    outline: none;
    border-color: var(--profile-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: var(--profile-bg-card);
}

.profile-form-control:disabled,
.profile-form-control[readonly] {
    background-color: var(--profile-secondary);
    color: var(--profile-text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.profile-form-control::placeholder {
    color: var(--profile-text-muted);
}

.profile-form-text {
    font-size: 0.8125rem;
    color: var(--profile-text-muted);
    margin-top: var(--profile-spacing-xs);
}

/* Input Groups */
.profile-input-group {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.profile-input-group .profile-form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
}

.profile-input-group-append {
    display: flex;
}

.profile-input-group-text {
    background-color: var(--profile-bg-deep);
    border: 1px solid var(--profile-border);
    border-left: none;
    padding: 0.75rem var(--profile-spacing-md);
    color: var(--profile-text);
    border-top-right-radius: var(--profile-radius-md);
    border-bottom-right-radius: var(--profile-radius-md);
    display: flex;
    align-items: center;
    font-size: 1.125rem;
}

.profile-input-group-text.text-success {
    color: var(--profile-success);
}

/* ========================================
   Buttons
   ======================================== */
.profile-btn {
    padding: 0.625rem 1.5rem;
    border-radius: var(--profile-radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--profile-spacing-xs);
    font-family: var(--profile-font-family);
    text-decoration: none;
}

.profile-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Primary Button */
.profile-btn-primary {
    background-color: var(--profile-primary);
    color: white;
}

.profile-btn-primary:hover:not(:disabled) {
    background-color: var(--profile-primary-hover);
    box-shadow: var(--profile-shadow-md);
    color: white;
}

/* Secondary Button */
.profile-btn-secondary {
    background-color: var(--profile-secondary);
    color: var(--profile-text);
}

.profile-btn-secondary:hover:not(:disabled) {
    background-color: var(--profile-secondary-hover);
    color: white;
}

/* Outline Button */
.profile-btn-outline {
    background-color: transparent;
    border: 1px solid var(--profile-border);
    color: var(--profile-text);
}

.profile-btn-outline:hover:not(:disabled) {
    background-color: var(--profile-bg-hover);
    border-color: var(--profile-accent);
    color: var(--profile-accent);
}

/* Danger Button */
.profile-btn-danger {
    background-color: var(--profile-danger);
    color: white;
}

.profile-btn-danger:hover:not(:disabled) {
    background-color: #DC2626;
    box-shadow: var(--profile-shadow-md);
    color: white;
}

/* Warning Button */
.profile-btn-warning {
    background-color: var(--profile-warning);
    color: white;
}

.profile-btn-warning:hover:not(:disabled) {
    background-color: #D97706;
    color: white;
}

/* Success Button */
.profile-btn-success {
    background-color: var(--profile-success);
    color: white;
}

.profile-btn-success:hover:not(:disabled) {
    background-color: #059669;
    color: white;
}

/* Link Button */
.profile-btn-link {
    background-color: transparent;
    color: var(--profile-accent);
    padding: 0;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
}

.profile-btn-link:hover:not(:disabled) {
    color: var(--profile-primary-hover);
    text-decoration: underline;
}

/* Button Sizes */
.profile-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.profile-btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

/* Button Widths */
.profile-btn-block {
    width: 100%;
    max-width: 320px;
}

.profile-btn-full {
    width: 100%;
}

/* ========================================
   Alerts & Messages
   ======================================== */
.profile-alert {
    padding: var(--profile-spacing-md) var(--profile-spacing-lg);
    border-radius: var(--profile-radius-md);
    margin-bottom: var(--profile-spacing-md);
    display: flex;
    align-items: flex-start;
    gap: var(--profile-spacing-md);
    position: relative;
    border-left: 4px solid;
}

.profile-alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-left-color: var(--profile-success);
    color: #A7F3D0;
}

.profile-alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-left-color: var(--profile-danger);
    color: #FECACA;
}

.profile-alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-left-color: var(--profile-warning);
    color: #FDE68A;
}

.profile-alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    border-left-color: var(--profile-info);
    color: #BFDBFE;
}

.profile-alert strong {
    font-weight: 600;
}

.profile-alert-dismissible {
    padding-right: 3rem;
}

.profile-alert .btn-close {
    position: absolute;
    right: var(--profile-spacing-md);
    top: var(--profile-spacing-md);
    background: transparent;
    border: none;
    color: currentColor;
    opacity: 0.7;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-alert .btn-close:hover {
    opacity: 1;
}

/* ========================================
   Tables
   ======================================== */
.profile-table-responsive {
    overflow-x: auto;
    border-radius: var(--profile-radius-md);
    margin-bottom: var(--profile-spacing-md);
}

.profile-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
}

.profile-table thead {
    background-color: var(--profile-bg-deep);
}

.profile-table th {
    padding: var(--profile-spacing-md);
    text-align: left;
    font-weight: 600;
    color: var(--profile-text);
    border-bottom: 1px solid var(--profile-border);
}

.profile-table td {
    padding: var(--profile-spacing-md);
    border-bottom: 1px solid var(--profile-border);
    color: var(--profile-text);
}

.profile-table tbody tr {
    transition: background-color 0.2s ease;
}

.profile-table tbody tr:hover {
    background-color: var(--profile-bg-hover);
}

.profile-table tbody tr:last-child td {
    border-bottom: none;
}

.profile-table code {
    background-color: var(--profile-bg-deep);
    padding: 0.25rem 0.5rem;
    border-radius: var(--profile-radius-sm);
    font-size: 0.8125rem;
    color: var(--profile-accent);
}

/* ========================================
   Utility Classes
   ======================================== */
.profile-text-muted {
    color: var(--profile-text-muted);
}

.profile-text-danger {
    color: var(--profile-danger);
}

.profile-text-success {
    color: var(--profile-success);
}

.profile-text-warning {
    color: var(--profile-warning);
}

.profile-mb-0 { margin-bottom: 0; }
.profile-mb-1 { margin-bottom: var(--profile-spacing-xs); }
.profile-mb-2 { margin-bottom: var(--profile-spacing-sm); }
.profile-mb-3 { margin-bottom: var(--profile-spacing-md); }
.profile-mb-4 { margin-bottom: var(--profile-spacing-lg); }
.profile-mb-5 { margin-bottom: var(--profile-spacing-xl); }

.profile-mt-0 { margin-top: 0; }
.profile-mt-1 { margin-top: var(--profile-spacing-xs); }
.profile-mt-2 { margin-top: var(--profile-spacing-sm); }
.profile-mt-3 { margin-top: var(--profile-spacing-md); }
.profile-mt-4 { margin-top: var(--profile-spacing-lg); }
.profile-mt-5 { margin-top: var(--profile-spacing-xl); }

.profile-d-flex {
    display: flex;
}

.profile-justify-between {
    justify-content: space-between;
}

.profile-align-center {
    align-items: center;
}

.profile-gap-2 {
    gap: var(--profile-spacing-sm);
}

.profile-gap-3 {
    gap: var(--profile-spacing-md);
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .profile-nav {
        position: static;
        margin-bottom: var(--profile-spacing-lg);
    }

    .profile-card {
        padding: var(--profile-spacing-md);
    }

    .profile-header h1 {
        font-size: 1.5rem;
    }

    .profile-btn-block {
        max-width: 100%;
    }
}

/* ========================================
   Animation
   ======================================== */
@keyframes profile-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-card,
.profile-nav {
    animation: profile-fade-in 0.3s ease;
}

/* ========================================
   Domain Page Specific Styles
   ======================================== */

/* Page Header */
.domain-header {
    margin-bottom: var(--profile-spacing-xl);
}

.domain-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--profile-spacing-xs);
    font-size: 0.875rem;
    color: var(--profile-text-muted);
    margin-bottom: var(--profile-spacing-sm);
}

.breadcrumb-link {
    color: var(--profile-accent);
    cursor: pointer;
    text-decoration: none;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    font-size: 0.75rem;
}

.breadcrumb-current {
    color: var(--profile-text);
}

.domain-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--profile-text);
    margin: 0 0 var(--profile-spacing-xs) 0;
}

.domain-subtitle {
    font-size: 1rem;
    color: var(--profile-text-muted);
    margin: 0;
}

/* Info Banner */
.domain-info-banner {
    background-color: #113445;
    border: 1px solid #1f4d63;
    border-radius: var(--profile-radius-md);
    padding: var(--profile-spacing-md);
    margin-bottom: var(--profile-spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.info-banner-content {
    display: flex;
    gap: var(--profile-spacing-md);
    flex: 1;
    align-items: flex-start;
}

.info-banner-icon {
    color: #CFEAF6;
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.info-banner-text {
    color: #CFEAF6;
    font-size: 0.9375rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: var(--profile-spacing-sm);
    flex-wrap: wrap;
}

.info-code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: var(--profile-radius-sm);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.875rem;
    color: #A7F3D0;
}

.info-copy-btn {
    background: transparent;
    border: none;
    color: #CFEAF6;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--profile-radius-sm);
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.info-copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.info-banner-close {
    background: transparent;
    border: none;
    color: #CFEAF6;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    font-size: 1rem;
    flex-shrink: 0;
}

.info-banner-close:hover {
    opacity: 1;
}

/* Loading State */
.loading-spinner {
    text-align: center;
    padding: var(--profile-spacing-xl);
    color: var(--profile-text-muted);
    font-size: 1.125rem;
}

.loading-spinner i {
    margin-right: var(--profile-spacing-sm);
}

/* No Domain State */
.no-domain-content {
    text-align: center;
    padding: var(--profile-spacing-xl);
}

.no-domain-icon {
    font-size: 4rem;
    color: var(--profile-text-muted);
    margin-bottom: var(--profile-spacing-lg);
}

.no-domain-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--profile-text);
    margin-bottom: var(--profile-spacing-sm);
}

.no-domain-content p {
    font-size: 1rem;
    margin-bottom: var(--profile-spacing-xl);
}

.domain-preview {
    background-color: var(--profile-bg-deep);
    border: 1px solid var(--profile-border);
    border-radius: var(--profile-radius-md);
    padding: var(--profile-spacing-lg);
    margin-bottom: var(--profile-spacing-lg);
}

.preview-label {
    display: block;
    font-size: 0.875rem;
    color: var(--profile-text-muted);
    margin-bottom: var(--profile-spacing-sm);
}

.preview-url {
    background-color: var(--profile-bg-card);
    padding: var(--profile-spacing-md);
    border-radius: var(--profile-radius-sm);
    border: 1px solid var(--profile-border);
}

.preview-url code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1rem;
    color: var(--profile-accent);
}

#previewDomainName {
    color: var(--profile-warning);
    font-weight: 600;
}

.domain-constraints {
    text-align: left;
    max-width: 400px;
    margin: 0 auto var(--profile-spacing-xl);
    background-color: var(--profile-bg-deep);
    padding: var(--profile-spacing-lg);
    border-radius: var(--profile-radius-md);
    border: 1px solid var(--profile-border);
}

.domain-constraints h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--profile-text);
    margin-bottom: var(--profile-spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.domain-constraints ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.domain-constraints li {
    display: flex;
    align-items: center;
    gap: var(--profile-spacing-sm);
    padding: var(--profile-spacing-xs) 0;
    color: var(--profile-text-muted);
    font-size: 0.9375rem;
}

.domain-constraints li i {
    color: var(--profile-success);
    font-size: 0.875rem;
}

/* Domain Card Header */
.domain-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--profile-spacing-xl);
    padding-bottom: var(--profile-spacing-md);
    border-bottom: 1px solid var(--profile-border);
}

.domain-card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--profile-text);
    margin: 0;
}

.endpoints-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--profile-spacing-xs);
    background-color: rgba(255, 255, 255, 0.08);
    color: #CBD5E1;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.endpoints-chip:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--profile-accent);
}

.endpoints-chip i {
    font-size: 0.875rem;
}

/* Domain Field Section */
.domain-field-section {
    margin-bottom: var(--profile-spacing-xl);
}

.domain-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--profile-text);
    margin-bottom: var(--profile-spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Read Mode */
.domain-name-row {
    display: flex;
    align-items: center;
    gap: var(--profile-spacing-md);
}

.domain-name-token {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 2rem;
    font-weight: 600;
    color: var(--profile-accent);
    background-color: var(--profile-bg-deep);
    padding: var(--profile-spacing-md) var(--profile-spacing-lg);
    border-radius: var(--profile-radius-md);
    border: 1px solid var(--profile-border);
    flex: 1;
}

.domain-actions {
    display: flex;
    gap: var(--profile-spacing-xs);
}

.icon-btn {
    background-color: transparent;
    border: 1px solid var(--profile-border);
    color: var(--profile-text);
    cursor: pointer;
    padding: 0.625rem;
    border-radius: var(--profile-radius-md);
    transition: all 0.2s ease;
    font-size: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: var(--profile-bg-hover);
    border-color: var(--profile-accent);
    color: var(--profile-accent);
}

/* Edit Mode */
.domain-edit-row {
    display: flex;
    gap: var(--profile-spacing-md);
    align-items: flex-start;
}

.domain-edit-input {
    flex: 1;
    height: 40px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1rem;
}

.edit-actions {
    display: flex;
    gap: var(--profile-spacing-xs);
}

.validation-message {
    margin-top: var(--profile-spacing-sm);
    font-size: 0.875rem;
    min-height: 1.25rem;
}

.validation-message.error {
    color: var(--profile-danger);
}

.validation-message.success {
    color: var(--profile-success);
}

.validation-message.checking {
    color: var(--profile-text-muted);
}

/* Base URL Section */
.base-url-section {
    margin-bottom: var(--profile-spacing-xl);
}

.base-url-block {
    display: flex;
    align-items: center;
    gap: var(--profile-spacing-md);
    background-color: var(--profile-bg-deep);
    border: 1px solid var(--profile-border);
    border-radius: var(--profile-radius-md);
    padding: var(--profile-spacing-md) var(--profile-spacing-lg);
}

.base-url-code {
    flex: 1;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1rem;
    color: var(--profile-accent);
}

.base-url-actions {
    display: flex;
    gap: var(--profile-spacing-xs);
}

.curl-example {
    margin-top: var(--profile-spacing-md);
    background-color: var(--profile-bg-deep);
    border: 1px solid var(--profile-border);
    border-radius: var(--profile-radius-md);
    padding: var(--profile-spacing-md);
}

.curl-example summary {
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--profile-text-muted);
    user-select: none;
}

.curl-example summary:hover {
    color: var(--profile-accent);
}

.curl-example pre {
    margin: var(--profile-spacing-md) 0 0 0;
    padding: var(--profile-spacing-md);
    background-color: var(--profile-bg-card);
    border-radius: var(--profile-radius-sm);
    overflow-x: auto;
}

.curl-example code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.875rem;
    color: var(--profile-text);
}

.curl-example code span {
    color: var(--profile-accent);
}

/* Meta Row */
.domain-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--profile-spacing-lg);
    border-top: 1px solid var(--profile-border);
}

.meta-left {
    display: flex;
    gap: var(--profile-spacing-md);
    align-items: center;
    flex-wrap: wrap;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--profile-spacing-xs);
    font-size: 0.875rem;
    color: var(--profile-text-muted);
}

.meta-item i {
    font-size: 0.875rem;
}

.meta-separator {
    color: var(--profile-border);
}

/* Danger Zone */
.danger-zone-card {
    border: 1px solid rgba(239, 68, 68, 0.3);
    background-color: rgba(239, 68, 68, 0.05);
}

.danger-zone-header {
    display: flex;
    align-items: center;
    gap: var(--profile-spacing-sm);
    margin-bottom: var(--profile-spacing-md);
    color: var(--profile-danger);
}

.danger-zone-header i {
    font-size: 1.25rem;
}

.danger-zone-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.danger-zone-text {
    color: var(--profile-text-muted);
    margin-bottom: var(--profile-spacing-lg);
    font-size: 0.9375rem;
}

/* Modal Customization */
.domain-modal .modal-content {
    background-color: var(--profile-bg-card);
    border: 1px solid var(--profile-border);
    color: var(--profile-text);
}

.domain-modal .modal-header {
    border-bottom: 1px solid var(--profile-border);
}

.domain-modal .modal-footer {
    border-top: 1px solid var(--profile-border);
}

.domain-modal .btn-close {
    filter: invert(1);
}

.danger-modal .modal-header {
    background-color: rgba(239, 68, 68, 0.1);
    border-bottom-color: rgba(239, 68, 68, 0.3);
}

.danger-modal .modal-title {
    color: var(--profile-danger);
}

.delete-warning {
    color: var(--profile-text);
}

.delete-warning p {
    margin-bottom: var(--profile-spacing-lg);
}

.affected-endpoints {
    background-color: var(--profile-bg-deep);
    border: 1px solid var(--profile-border);
    border-radius: var(--profile-radius-md);
    padding: var(--profile-spacing-md);
    margin-bottom: var(--profile-spacing-lg);
}

.affected-endpoints h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--profile-spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.endpoint-list {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.875rem;
    color: var(--profile-text-muted);
}

.confirm-input-group {
    margin-top: var(--profile-spacing-md);
}

.confirm-input-group strong {
    color: var(--profile-danger);
}

/* Toast Customization */
#actionToast {
    background-color: var(--profile-bg-card);
    border: 1px solid var(--profile-border);
}

#actionToast.toast-success {
    background-color: rgba(16, 185, 129, 0.2);
    border-color: var(--profile-success);
}

#actionToast.toast-error {
    background-color: rgba(239, 68, 68, 0.2);
    border-color: var(--profile-danger);
}

#actionToast.toast-info {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: var(--profile-info);
}

/* Responsive */
@media (max-width: 768px) {
    .domain-name-row {
        flex-direction: column;
        align-items: stretch;
    }

    .domain-name-token {
        font-size: 1.5rem;
    }

    .domain-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .domain-edit-row {
        flex-direction: column;
    }

    .edit-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .base-url-block {
        flex-direction: column;
        align-items: stretch;
    }

    .base-url-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .domain-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--profile-spacing-md);
    }

    .icon-btn {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
}
