* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
}

.kcd-dashboard,
.kcd-login-wrap {
    max-width: 700px;
    margin: 20px auto;
    padding: 16px;
}

.kcd-login-card,
.kcd-section,
.kcd-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.kcd-login-card {
    max-width: 400px;
    margin: 60px auto;
    padding: 40px 30px;
    text-align: center;
}

.kcd-login-card h2 {
    margin-bottom: 24px;
    font-size: 24px;
    color: #111827;
}

.kcd-login-card form,
.kcd-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.kcd-login-card input,
.kcd-form input,
.kcd-form textarea,
.kcd-form select {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 16px;
    background: #f9fafb;
}

.kcd-form textarea {
    min-height: 100px;
    resize: vertical;
}

.kcd-form label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: -6px;
}

.kcd-login-card button,
.kcd-form button[type=submit] {
    width: 100%;
    padding: 16px;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
}

.kcd-login-card button:hover,
.kcd-form button[type=submit]:hover {
    background: #1f2937;
}

.kcd-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
    background: #111827;
    color: #fff;
}

.kcd-btn:hover {
    background: #1f2937;
    color: #fff;
}

.kcd-btn-outline {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.kcd-btn-outline:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.kcd-small-btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
    background: #3b82f6;
    color: #fff;
}

.kcd-small-btn:hover {
    background: #2563eb;
    color: #fff;
}

.kcd-btn-danger {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
    background: #ef4444;
    color: #fff;
}

.kcd-btn-danger:hover {
    background: #dc2626;
    color: #fff;
}

.kcd-btn-secondary {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
    margin-top: 6px;
    width: 100%;
}

.kcd-btn-secondary:hover {
    background: #e5e7eb;
}

.kcd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 22px 20px;
    border-radius: 18px;
}

.kcd-header h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

.kcd-header p {
    margin: 0;
    opacity: 0.85;
    font-size: 14px;
}

.kcd-cards {
    display: grid;
    grid-template-columns: 32% 32% 32%;
    gap: 14px;
    margin-bottom: 20px;
}

.kcd-card {
    padding: 20px;
    text-align: center;
}

.kcd-card h3 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kcd-card p {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #111827;
}

.kcd-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.kcd-tab {
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    border: 2px solid transparent;
}

.kcd-tab:hover {
    background: #e5e7eb;
    color: #111827;
}

.kcd-tab.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.kcd-section {
    padding: 22px;
    margin-bottom: 20px;
}

.kcd-section h3 {
    margin: 0 0 16px;
    font-size: 18px;
    color: #111827;
}

.kcd-section h4 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #374151;
}

.kcd-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.kcd-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kcd-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #f3f4f6;
    border-radius: 14px;
    background: #fafafa;
}

.kcd-list-item strong {
    display: block;
    margin-bottom: 4px;
    color: #111827;
}

.kcd-list-item span {
    display: block;
    color: #6b7280;
    font-size: 13px;
}

.kcd-product-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}

.kcd-no-image {
    width: 60px;
    height: 60px;
    background: #f3f4f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #9ca3af;
}

.kcd-product-info {
    flex: 1;
}

.kcd-product-btns {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kcd-status {
    display: inline-block;
    font-size: 12px;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 999px;
    color: #374151;
    font-weight: 600;
    margin-bottom: 4px;
}

.kcd-message {
    background: #dcfce7;
    color: #166534;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
}

.kcd-denied {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 14px;
    text-align: center;
    font-weight: 600;
}

.kcd-divider {
    border: none;
    border-top: 2px solid #f3f4f6;
    margin: 16px 0;
}

.kcd-hint {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.kcd-attribute-row {
    display: grid;
    grid-template-columns: 49% 49%;
    gap: 10px;
    margin-bottom: 10px;
}

.kcd-variation-row {
    display: grid;
    grid-template-columns: 32% 32% 32%;
    gap: 10px;
    margin-bottom: 10px;
}

.kcd-edit-form {
    margin-top: 20px;
    border-top: 2px solid #f3f4f6;
    padding-top: 20px;
}

@media screen and (max-width: 600px) {

    .kcd-cards {
        display: block;
    }

    .kcd-cards .kcd-card {
        margin-bottom: 14px;
    }

    .kcd-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .kcd-list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .kcd-tabs {
        gap: 6px;
    }

    .kcd-tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .kcd-product-btns {
        flex-direction: row;
    }

    .kcd-attribute-row {
        display: block;
    }

    .kcd-attribute-row input {
        margin-bottom: 10px;
    }

    .kcd-variation-row {
        display: block;
    }

    .kcd-variation-row input {
        margin-bottom: 10px;
    }

}