/* Buttons */
        .hom-btn, .analytics-button {
            padding: 12px 24px;
            border: 1px solid #d1d5db;
            border-radius: 40px;
            font-size: 14px;
            font-weight: 500;
            font-family: 'Poppins', sans-serif;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .hom-btn-primary {
            background-color: #000000;
            color: white;
            border-color: #000000;
        }

        .hom-header-top {
            display: flex;
            gap: 15px;
            justify-content: space-between;
            align-items: center;
        }

        .hom-btn-primary:hover {
            background-color: #282828;
        }

        .hom-open-modal-btn {
            background: #000000;
            color: white;
            border: none;
        }

        .hom-open-modal-btn:hover { 
            background: #282828;
        }

        /* Modal */
        .hom-modal-overlay {
            background-color: rgba(0, 0, 0, 0.3);
            position: fixed;
            inset: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 25000;
            transition: all 0.3s cubic-bezier(0.86, 0, 0.07, 1);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .hom-modal-overlay.show { 
            opacity: 1;
            visibility: visible;
            pointer-events: all;
        }

        .hom-modal-overlay.show .hom-modal {
            scale: 0.95;
        }

        .hom-modal {
            background: white;
            border-radius: 20px;
            padding: 32px;
            width: 480px;
            max-width: 95vw;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            transition: all 0.3s cubic-bezier(0.86, 0, 0.07, 1);
            scale: 0.8;
            border: 1px solid #d1d5db;
        }

        .hom-modal-title {
            font-size: 28px;
            font-weight: 500;
            color: #1a1a1a;
            margin-bottom: 8px;
        }

        .hom-modal-subtitle {
            font-size: 14px;
            color: #6b7280;
            margin-bottom: 28px;
        }

        /* URL Section */
        .hom-url-container {
            display: flex;
            align-items: center;
            background: #eff6ff;
            border-radius: 16px;
            padding: 16px;
            gap: 16px;
            margin-bottom: 32px;
            transition: opacity 0.3s ease;
            border: 1px solid #dbeafe;
        }

        .hom-url-container.disabled {
            opacity: 0.5;
            pointer-events: none;
        }

        .hom-url-icon {
            width: 44px;
            height: 44px;
            background: #dbeafe;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            scale: 0.9;
        }

        .hom-url-icon .app-icon-bg {
            scale: 0.8;
            width: 35px !important;
            height: 35px !important;
        }

        .hom-url-text {
            color: #1e40af;
            font-size: 14px;
            font-weight: 500;
            flex: 1;
            word-break: break-all;
            cursor: pointer;
            transition: color 0.2s ease;
            position: relative;
        }

        .hom-url-text:hover { 
            color: #1e3a8a;
        }

        /* Dropdowns */
        .hom-dropdown {
            position: relative;
            width: 100%;
        }

        .hom-dropdown-btn {
            width: 100%;
            background: white;
            border: 1px solid #d1d5db;
            border-radius: 40px;
            text-align: left;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #1f2937;
            padding: 12px 16px;
            font-size: 14px;
            font-family: 'Poppins', sans-serif;
            transition: all 0.2s ease;
        }

        .hom-dropdown-btn:hover {
            background: #f9fafb;
            border-color: #9ca3af;
        }

        .hom-dropdown-arrow {
            width: 0;
            height: 0;
            border: 5px solid transparent;
            border-top-color: #6b7280;
            transition: transform 0.2s ease;
        }

        .hom-dropdown.hom-open .hom-dropdown-arrow { 
            transform: rotate(180deg);
        }

        .hom-dropdown-menu {
            position: absolute;
            top: calc(100% + 4px);
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #d1d5db;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            z-index: 10;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-4px);
            transition: all 0.2s ease;
            overflow: hidden;
        }

        .hom-dropdown.hom-open .hom-dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .hom-dropdown-option {
            padding: 12px 16px;
            font-size: 14px;
            color: #374151;
            cursor: pointer;
            transition: background 0.2s ease;
        }

        .hom-dropdown-option:hover { 
            background: #f9fafb;
        }

        /* URL Dropdown (smaller) */
        .hom-url-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            border: 1px solid #d1d5db;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            z-index: 20;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-4px);
            transition: all 0.2s ease;
            min-width: 120px;
            margin-top: 4px;
            width: 100%;
            overflow: hidden;
        }

        .hom-url-dropdown.hom-open {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .hom-url-dropdown .hom-dropdown-option { 
            font-size: 13px;
        }

        /* Status Section */
        .hom-status-label {
            font-size: 14px;
            font-weight: 500;
            color: #374151;
            margin-bottom: 12px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .hom-status-section { 
            margin-bottom: 40px;
        }

        /* Action Buttons */
        .hom-modal-actions {
            display: flex;
            gap: 12px;
        }

        .hom-btn-secondary {
            background: white;
            color: #6b7280;
            border: 1px solid #d1d5db;
            flex: 1;
        }

        .hom-btn-secondary:hover { 
            background: #f9fafb;
            border-color: #9ca3af;
        }

        .hom-btn-primary {
            background: #000000;
            color: white;
            border-color: #9ca3af;
            flex: 1;
        }

        .hom-btn-primary.public { 
            background: #000000;
            border-color: #000000;
        }

        .hom-btn-primary:hover { 
            background: #313131;
        }

        .hom-btn-primary.public:hover { 
            background: #282828;
        }

        .hom-hidden { 
            display: none;
        }

        .analytics-button {
            display: flex;
            justify-content: space-around;
            align-items: center;
            gap: 10px;
            width: fit-content;
            height: 40px;
            margin-top: 20px;
            margin-bottom: 20px;
            padding: 8px;
            padding-left: 15px;
            padding-right: 15px;
            background-color: #ededed;
            border: none;
            transition: all 0.3s;
            font-size: 0.8rem;
            font-weight: 300;
            min-width: 0;
        }

        .analytics-button p {
            white-space: nowrap;     
            overflow: hidden;         
            text-overflow: ellipsis;   
        }

        .analytics-button img {
            width: 18px;
        }

        .analytics-button span {
            background-color: #3419ab;
            color: white;
            font-size: 10px;
            padding: 3px;
            width: 40px;
            border-radius: 5px;
            scale: 0.8;
        }

        .analytics-button:hover {
            filter: brightness(0.9);
        }

        /* Dark Mode */
        @media (prefers-color-scheme: dark) {
            /* Overlay */
            .hom-modal-overlay {
                background-color: rgba(0, 0, 0, 0.65);
            }

            /* Modal */
            .hom-modal {
                background: #101010;
                color: #e8eaed;
                box-shadow: 0 2px 5px 1px rgba(32,33,36,.28);
                border-color: #5f6368;
            }

            .analytics-button {
                background-color: #232323;
                color: white;
            }

            .analytics-button:hover {
              filter: brightness(1.2);
            }

            .analytics-button img {
                filter: invert(1);
            }

            .hom-modal-title { 
                color: #e8eaed;
            }

            .hom-modal-subtitle { 
                color: #9aa0a6;
            }

            /* URL container */
            .hom-url-container {
                background: #1a2332;
                border-color: #2d3748;
            }

            .hom-url-icon {
                background: #2d3f54;
            }

            .hom-url-text {
                color: #93c5fd;
            }

            .hom-url-text:hover { 
                color: #bfdbfe;
            }

            /* Dropdowns */
            .hom-dropdown-btn {
                background: #101010;
                border-color: #5f6368;
                color: #e8eaed;
                box-shadow: 0 2px 5px 1px rgba(32,33,36,.28);
            }

            .hom-dropdown-btn:hover {
                background: #3c4043;
                border-color: #9aa0a6;
            }

            .hom-dropdown-arrow {
                border-top-color: #9aa0a6;
            }

            .hom-dropdown-menu,
            .hom-url-dropdown {
                background: #101010;
                border-color: #5f6368;
                box-shadow: 0 2px 8px 1px rgba(32,33,36,.4);
            }

            .hom-dropdown-option { 
                color: #e8eaed;
            }

            .hom-dropdown-option:hover { 
                background: #3c4043;
            }

            /* Buttons */
            .hom-open-modal-btn {
                background: #eef2ff;
                color: #000000;
                border-color: #5f6368;
                box-shadow: 0 2px 5px 1px rgba(32,33,36,.28);
            }

            .hom-open-modal-btn:hover {
                background: #cfd3e1;
                border-color: #9aa0a6;
            }

            .hom-btn-secondary { 
                background: #101010;
                color: #e8eaed;
                border-color: #5f6368;
                box-shadow: 0 2px 5px 1px rgba(32,33,36,.28);
            }

            .hom-btn-secondary:hover {
                background: #3c4043;
                border-color: #9aa0a6;
            }

            .hom-btn-primary {
                background: #eef2ff;
                color: #000000;
                border-color: #5f6368;
            }

            .hom-btn-primary.public { 
                background: #eef2ff;
                color: #000000;
                border-color: #5f6368;
            }

            .hom-btn-primary:hover { 
                background: #cfd3e1;
            }

            .hom-btn-primary.public:hover { 
                background: #cfd3e1;
                border-color: #9aa0a6;
            }

            .hom-status-label {
                color: #9aa0a6;
            }
        }


        /* Manual Input Modal Content */
.mim-content {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-family: 'Poppins', sans-serif;
    
}

/* Title */
.mim-title {
    font-size: 22px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 24px;
}

/* Fields */
.mim-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.mim-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

/* Inputs */
.mim-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 16px;
    border: 1px solid #d1d5db;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
    background: white;
    color: #1f2937;
}

.mim-input::placeholder {
    color: #9ca3af;
}

.mim-input:focus {
    outline: none;
    border-color: #9ca3af;
    background: #f9fafb;
}

/* Textarea tweaks */
textarea.mim-input {
    resize: none;
    line-height: 1.5;
}

/* Actions */
.mim-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

/* Buttons */
.mim-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #d1d5db;
}

/* Cancel */
.mim-btn-cancel {
    background: white;
    color: #6b7280;
}

.mim-btn-cancel:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Save */
.mim-btn-save {
    background: #000000;
    color: white;
    border-color: #000000;
}

.mim-btn-save:hover {
    background: #282828;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .mim-content {
        background: #101010;
        border-color: #5f6368;
        box-shadow: 0 2px 5px 1px rgba(32,33,36,.28);
    }

    .mim-title {
        color: #e8eaed;
    }

    .mim-label {
        color: #9aa0a6;
    }

    .mim-input {
        background: #101010;
        color: #e8eaed;
        border-color: #5f6368;
        box-shadow: 0 2px 5px 1px rgba(32,33,36,.28);
    }

    .mim-input::placeholder {
        color: #80868b;
    }

    .mim-input:focus {
        background: #3c4043;
        border-color: #9aa0a6;
    }

    .mim-btn-cancel {
        background: #101010;
        color: #e8eaed;
        border-color: #5f6368;
    }

    .mim-btn-cancel:hover {
        background: #3c4043;
        border-color: #9aa0a6;
    }

    .mim-btn-save {
        background: #eef2ff;
        color: #000000;
        border-color: #5f6368;
    }

    .mim-btn-save:hover {
        background: #cfd3e1;
    }
}
