.ldm-panel {
    max-width: 1100px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Login screen */
.ldm-login-panel {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.ldm-login-form {
    background: #ffffff;
    border: 1px solid #e2e5e9;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(20, 30, 50, 0.08);
    padding: 36px 32px;
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.ldm-login-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 20px;
    margin: 0 0 8px;
    color: #1d2327;
}

.ldm-login-form p {
    color: #666;
    margin: 0 0 18px;
    font-size: 14px;
}

.ldm-error {
    color: #c0392b !important;
    font-weight: 600;
}

.ldm-login-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #d5d9de;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 14px;
}

.ldm-login-btn {
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: 8px;
    background: #2271b1;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ldm-login-btn:hover {
    background: #135e96;
}

/* Header */
.ldm-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.ldm-panel-header h2 {
    margin: 0;
    font-size: 24px;
    color: #1d2327;
}

.ldm-logout-link {
    font-size: 13px;
    color: #b32d2e;
    text-decoration: none;
    border: 1px solid #e5c6c6;
    padding: 6px 12px;
    border-radius: 20px;
}

.ldm-logout-link:hover {
    background: #fbeaea;
}

/* Card grid */
.ldm-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.ldm-card {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(20, 30, 50, 0.05);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.ldm-card:hover {
    box-shadow: 0 8px 20px rgba(20, 30, 50, 0.1);
    transform: translateY(-2px);
}

.ldm-card-logo {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f8fa;
    border-bottom: 1px solid #eee;
}

.ldm-card-logo img {
    max-height: 60px;
    max-width: 70%;
    object-fit: contain;
}

.ldm-card-logo .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: #b7bcc2;
}

.ldm-card-body {
    padding: 16px 18px 18px;
}

.ldm-card-title {
    margin: 0 0 12px;
    font-size: 17px;
    color: #1d2327;
}

.ldm-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    border-top: 1px dashed #eee;
    font-size: 14px;
}

.ldm-card-row:first-of-type {
    border-top: none;
}

.ldm-card-label {
    color: #8a8f98;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ldm-card-link {
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
}

.ldm-card-link:hover {
    text-decoration: underline;
}

.ldm-copyable {
    cursor: pointer;
    font-family: Menlo, Consolas, monospace;
    font-size: 13px;
}

.ldm-copyable:hover {
    color: #2271b1;
}

.ldm-pass-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ldm-toggle-pass-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #8a8f98;
    padding: 0;
    display: flex;
}

.ldm-toggle-pass-btn:hover {
    color: #2271b1;
}

.ldm-card-notes {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    font-size: 12.5px;
    color: #666;
}

.ldm-copy-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #1d2327;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ldm-copy-toast.ldm-show {
    opacity: 1;
}
